Searched refs:info (Results 1 - 25 of 59) sorted by relevance

123

/system/extras/tests/framebuffer/
H A Drefresh.c49 struct fb_var_screeninfo info; local
50 if (ioctl(fd, FBIOGET_VSCREENINFO, &info) == -1)
53 info.reserved[0] = 0;
54 info.reserved[1] = 0;
55 info.reserved[2] = 0;
56 info.xoffset = 0;
57 info.yoffset = 0;
58 info.bits_per_pixel = 16;
59 info.activate = FB_ACTIVATE_NOW;
61 if (ioctl(fd, FBIOPUT_VSCREENINFO, &info)
[all...]
/system/extras/ext4_utils/
H A Dext4_sb.c21 int ext4_parse_sb(struct ext4_super_block *sb, struct fs_info *info) argument
31 info->block_size = 1024 << sb->s_log_block_size;
32 info->blocks_per_group = sb->s_blocks_per_group;
33 info->inodes_per_group = sb->s_inodes_per_group;
34 info->inode_size = sb->s_inode_size;
35 info->inodes = sb->s_inodes_count;
36 info->feat_ro_compat = sb->s_feature_ro_compat;
37 info->feat_compat = sb->s_feature_compat;
38 info->feat_incompat = sb->s_feature_incompat;
39 info
[all...]
H A Dmake_ext4fs.c231 dentries[i].link = calloc(info.block_size, 1);
232 readlink(dentries[i].full_path, dentries[i].link, info.block_size - 1);
331 u32 journal_blocks = DIV_ROUND_UP(info.len, info.block_size) / 64;
341 return info.block_size * 8;
346 return DIV_ROUND_UP(info.len, info.block_size) / 4;
351 u32 blocks = DIV_ROUND_UP(info.len, info.block_size);
352 u32 block_groups = DIV_ROUND_UP(blocks, info
[all...]
H A Dext4_utils.c46 struct fs_info info; variable in typeref:struct:fs_info
86 if (!(info.feat_ro_compat & EXT4_FEATURE_RO_COMPAT_SPARSE_SUPER))
136 /* Compute the rest of the parameters of the filesystem from the basic info */
139 aux_info.first_data_block = (info.block_size > 1024) ? 0 : 1;
140 aux_info.len_blocks = info.len / info.block_size;
141 aux_info.inode_table_blocks = DIV_ROUND_UP(info.inodes_per_group * info.inode_size,
142 info.block_size);
144 info
[all...]
H A Dext2simg.c42 extern struct fs_info info;
64 block_bitmap = malloc(info.block_size);
70 info.block_size * aux_info.first_data_block, 0);
73 u32 first_block = aux_info.first_data_block + i * info.blocks_per_group;
74 u32 last_block = min(info.blocks_per_group, aux_info.len_blocks - first_block);
76 ret = lseek64(fd, (u64)info.block_size * aux_info.bg_desc[i].bg_block_bitmap,
81 ret = read(fd, block_bitmap, info.block_size);
84 if (ret != (int)info.block_size)
95 (u64)info.block_size * start_block,
96 info
[all...]
H A Dindirect.c31 if (DIV_ROUND_UP(backing_len, info.block_size) > EXT4_NDIR_BLOCKS)
45 len = min(region_len * info.block_size, backing_len);
123 u32 *ind_block_data = calloc(info.block_size, 1);
124 sparse_file_add_data(ext4_sparse_file, ind_block_data, info.block_size,
153 u32 *dind_block_data = calloc(info.block_size, 1);
154 sparse_file_add_data(ext4_sparse_file, dind_block_data, info.block_size,
202 u32 *ind_block_data = calloc(info.block_size, 1);
203 sparse_file_add_data(ext4_sparse_file, ind_block_data, info.block_size,
234 u32 *dind_block_data = calloc(info.block_size, 1);
235 sparse_file_add_data(ext4_sparse_file, dind_block_data, info
[all...]
H A Dext4fixup.c80 group = (old_inum - 1) / info.inodes_per_group;
81 offset = (old_inum -1) % info.inodes_per_group;
172 bg_num = (inum-1) / info.inodes_per_group;
173 bg_offset = (inum-1) % info.inodes_per_group;
175 inode_offset = ((unsigned long long)aux_info.bg_desc[bg_num].bg_inode_table * info.block_size) +
176 (bg_offset * info.inode_size);
195 off = block_num * info.block_size;
201 len=read(fd, block, info.block_size);
202 if (len != info.block_size) {
218 off = block_num * info
[all...]
H A Dmake_ext4fs_main.c48 extern struct fs_info info;
86 info.len = parse_num(optarg);
89 info.journal_blocks = parse_num(optarg);
92 info.block_size = parse_num(optarg);
95 info.blocks_per_group = parse_num(optarg);
98 info.inodes = parse_num(optarg);
101 info.inode_size = parse_num(optarg);
104 info.label = optarg;
125 info.no_journal = 1;
H A Dext4_sb.h46 int ext4_parse_sb(struct ext4_super_block *sb, struct fs_info *info);
/system/core/toolbox/
H A Dlsof.c71 static void print_type(char *type, struct pid_info_t* info) argument
76 strlcat(info->path, type, sizeof(info->path));
77 if ((link_dest_size = readlink(info->path, link_dest, sizeof(link_dest)-1)) < 0) {
81 snprintf(link_dest, sizeof(link_dest), "%s (readlink: %s)", info->path, strerror(errno));
91 info->cmdline, info->pid, info->user, type,
95 info->path[info
99 print_maps(struct pid_info_t* info) argument
131 print_fds(struct pid_info_t* info) argument
166 struct pid_info_t info; local
[all...]
/system/extras/f2fs_utils/
H A Df2fs_sparseblock.c124 static void dbg_print_info_struct(struct f2fs_info *info) argument
130 SLOGD("blocks_per_segment: %"PRIu64, info->blocks_per_segment);
131 SLOGD("block_size: %d", info->block_size);
132 SLOGD("sit_bmp loc: %p", info->sit_bmp);
133 SLOGD("sit_bmp_size: %d", info->sit_bmp_size);
134 SLOGD("blocks_per_sit: %"PRIu64, info->blocks_per_sit);
135 SLOGD("sit_blocks loc: %p", info->sit_blocks);
136 SLOGD("sit_sums loc: %p", info->sit_sums);
137 SLOGD("sit_sums num: %d", le16_to_cpu(info->sit_sums->n_sits));
139 for(i = 0; i < (le16_to_cpu(info
256 get_valid_checkpoint_info(int fd, struct f2fs_super_block *sb, struct f2fs_checkpoint **cp, struct f2fs_info *info) argument
309 gather_sit_info(int fd, struct f2fs_info *info) argument
342 sum_blk_addr(struct f2fs_checkpoint *cp, struct f2fs_info *info, int base, int type) argument
348 get_sit_summary(int fd, struct f2fs_info *info, struct f2fs_checkpoint *cp) argument
380 struct f2fs_info *info; local
452 free_f2fs_info(struct f2fs_info *info) argument
467 get_num_blocks_used(struct f2fs_info *info) argument
482 run_on_used_blocks(u64 startblock, struct f2fs_info *info, int (*func)(u64 pos, void *data), void *data) argument
535 struct f2fs_info *info; member in struct:privdata
601 struct f2fs_info *info = generate_f2fs_info(infd); local
[all...]
H A Df2fs_sparseblock.h64 u64 get_num_blocks_used(struct f2fs_info *info);
66 void free_f2fs_info(struct f2fs_info *info);
68 int run_on_used_blocks(u64 startblock, struct f2fs_info *info, int (*func)(u64 pos, void *data), void *data);
/system/core/fastboot/
H A Dusbtest.c50 int printifc(usb_ifc_info *info) argument
53 info->dev_class, info->dev_subclass, info->dev_protocol,
54 info->dev_vendor, info->dev_product);
56 info->ifc_class, info->ifc_subclass, info->ifc_protocol,
57 info
62 match_null(usb_ifc_info *info) argument
71 match_zero(usb_ifc_info *info) argument
80 match_loop(usb_ifc_info *info) argument
[all...]
H A Dusb_osx.c57 usb_ifc_info info; member in struct:usb_handle
171 if ((*interface)->GetInterfaceClass(interface, &handle->info.ifc_class) != 0 ||
172 (*interface)->GetInterfaceSubClass(interface, &handle->info.ifc_subclass) != 0 ||
173 (*interface)->GetInterfaceProtocol(interface, &handle->info.ifc_protocol) != 0)
179 handle->info.has_bulk_in = 0;
180 handle->info.has_bulk_out = 0;
201 handle->info.has_bulk_in = 1;
204 handle->info.has_bulk_out = 1;
208 if (handle->info.ifc_protocol == 0x01) {
215 if (handle->info
[all...]
H A Dusb_linux.c122 struct usb_ifc_info info; local
140 info.dev_vendor = dev->idVendor;
141 info.dev_product = dev->idProduct;
142 info.dev_class = dev->bDeviceClass;
143 info.dev_subclass = dev->bDeviceSubClass;
144 info.dev_protocol = dev->bDeviceProtocol;
145 info.writable = writable;
147 snprintf(info.device_path, sizeof(info.device_path), "usb:%s", sysfs_name);
155 info
[all...]
H A Dusb_windows.c279 struct usb_ifc_info info; local
303 info.dev_vendor = device_desc.idVendor;
304 info.dev_product = device_desc.idProduct;
305 info.dev_class = device_desc.bDeviceClass;
306 info.dev_subclass = device_desc.bDeviceSubClass;
307 info.dev_protocol = device_desc.bDeviceProtocol;
308 info.ifc_class = interf_desc.bInterfaceClass;
309 info.ifc_subclass = interf_desc.bInterfaceSubClass;
310 info.ifc_protocol = interf_desc.bInterfaceProtocol;
311 info
[all...]
/system/core/libsync/
H A Dsync.c54 struct sync_fence_info_data *info; local
57 info = malloc(4096);
58 if (info == NULL)
61 info->len = 4096;
62 err = ioctl(fd, SYNC_IOC_FENCE_INFO, info);
64 free(info);
68 return info;
71 struct sync_pt_info *sync_pt_info(struct sync_fence_info_data *info, argument
75 itr = (struct sync_pt_info *) info->pt_info;
79 if ((__u8 *)itr - (__u8 *)info >
85 sync_fence_info_free(struct sync_fence_info_data *info) argument
[all...]
/system/core/run-as/
H A Drun-as.c112 PackageInfo info; local
126 if (get_package_info(pkgname, &info) < 0) {
132 if (info.uid < AID_APP) {
138 if (!info.isDebuggable) {
144 if (check_data_path(info.dataDir, info.uid) < 0) {
152 uid = gid = info.uid;
158 if (selinux_android_setcontext(uid, 0, info.seinfo, pkgname) < 0) {
167 ret = chdir(info.dataDir);
H A Dpackage.h38 extern int get_package_info(const char* packageName, PackageInfo* info);
H A Dpackage.c422 get_package_info(const char* pkgName, PackageInfo *info) argument
430 info->uid = 0;
431 info->isDebuggable = 0;
432 info->dataDir[0] = '\0';
433 info->seinfo[0] = '\0';
477 info->uid = (uid_t) uid;
487 info->isDebuggable = 0;
490 info->isDebuggable = 1;
507 p = string_copy(info->dataDir, sizeof info
[all...]
/system/core/libnetutils/
H A Ddhcpclient.c129 static int dhcp_configure(const char *ifname, dhcp_info *info) argument
131 last_good_info = *info;
132 return ifc_configure(ifname, info->ipaddr, info->prefixLength, info->gateway,
133 info->dns1, info->dns2);
151 void dump_dhcp_info(dhcp_info *info) argument
155 dhcp_type_to_name(info->type), info
166 decode_dhcp_msg(dhcp_msg *msg, int len, dhcp_info *info) argument
395 dhcp_info info; local
[all...]
/system/core/libutils/
H A Dmisc.cpp56 sysprop_change_callback_info info; local
57 info.callback = cb;
58 info.priority = priority;
62 gSyspropList->insertAt(info, i);
68 gSyspropList->add(info);
/system/media/audio_utils/
H A Dtinysndfile.c33 SF_INFO info; member in struct:SNDFILE_
62 static SNDFILE *sf_open_read(const char *path, SF_INFO *info) argument
74 handle->info.format = SF_FORMAT_WAV;
173 handle->info.samplerate = samplerate;
174 handle->info.channels = channels;
177 handle->info.format |= SF_FORMAT_PCM_U8;
180 handle->info.format |= SF_FORMAT_PCM_16;
184 handle->info.format |= SF_FORMAT_FLOAT;
186 handle->info.format |= SF_FORMAT_PCM_32;
200 handle->info
242 sf_open_write(const char *path, SF_INFO *info) argument
313 sf_open(const char *path, int mode, SF_INFO *info) argument
[all...]
/system/core/libsync/include/sync/
H A Dsync.h48 struct sync_pt_info *sync_pt_info(struct sync_fence_info_data *info,
50 void sync_fence_info_free(struct sync_fence_info_data *info);
/system/keymaster/include/keymaster/
H A Dlogger.h27 virtual int info(const char* fmt, ...) const = 0;

Completed in 262 milliseconds

123