Home
last modified time | relevance | path

Searched refs:info (Results 1 – 25 of 38) sorted by relevance

12

/system/extras/tests/framebuffer/
Drefresh.c49 struct fb_var_screeninfo info; in main() local
50 if (ioctl(fd, FBIOGET_VSCREENINFO, &info) == -1) in main()
53 info.reserved[0] = 0; in main()
54 info.reserved[1] = 0; in main()
55 info.reserved[2] = 0; in main()
56 info.xoffset = 0; in main()
57 info.yoffset = 0; in main()
58 info.bits_per_pixel = 16; in main()
59 info.activate = FB_ACTIVATE_NOW; in main()
61 if (ioctl(fd, FBIOPUT_VSCREENINFO, &info) == -1) { in main()
[all …]
/system/core/toolbox/
Dlsof.c66 void print_type(char *type, struct pid_info_t* info) in print_type() argument
71 strncat(info->path, type, sizeof(info->path)); in print_type()
72 if ((link_dest_size = readlink(info->path, link_dest, sizeof(link_dest)-1)) < 0) { in print_type()
76 snprintf(link_dest, sizeof(link_dest), "%s (readlink: %s)", info->path, strerror(errno)); in print_type()
85 printf("%-9s %5d %10s %4s %9s %18s %9s %10s %s\n", info->cmdline, info->pid, "???", type, in print_type()
89 info->path[info->parent_length] = '\0'; in print_type()
93 void print_maps(struct pid_info_t* info) in print_maps() argument
104 strncat(info->path, "maps", sizeof(info->path)); in print_maps()
106 maps = fopen(info->path, "r"); in print_maps()
116 printf("%-9s %5d %10s %4s %9s %18s %9zd %10ld %s\n", info->cmdline, info->pid, "???", "mem", in print_maps()
[all …]
Dschedtop.c97 struct thread_info *info; in add_thread() local
99 info = get_item(&processes); in add_thread()
101 info = get_item(&threads); in add_thread()
102 info->pid = pid; in add_thread()
103 info->tid = tid; in add_thread()
111 if(sscanf(line, "%llu %llu %u", &info->exec_time, &info->delay_time, &info->run_count) != 3) in add_thread()
114 proc_info->exec_time += info->exec_time; in add_thread()
115 proc_info->delay_time += info->delay_time; in add_thread()
116 proc_info->run_count += info->run_count; in add_thread()
143 if (name_len >= sizeof(info->name)) in add_thread()
[all …]
/system/core/fastboot/
Dusbtest.c50 int printifc(usb_ifc_info *info) in printifc() argument
53 info->dev_class, info->dev_subclass, info->dev_protocol, in printifc()
54 info->dev_vendor, info->dev_product); in printifc()
56 info->ifc_class, info->ifc_subclass, info->ifc_protocol, in printifc()
57 info->has_bulk_in ? " in" : "", in printifc()
58 info->has_bulk_out ? " out" : ""); in printifc()
62 int match_null(usb_ifc_info *info) in match_null() argument
64 if(info->dev_vendor != 0x18d1) return -1; in match_null()
65 if(info->ifc_class != 0xff) return -1; in match_null()
66 if(info->ifc_subclass != 0xfe) return -1; in match_null()
[all …]
Dusb_osx.c57 usb_ifc_info info; member
171 if ((*interface)->GetInterfaceClass(interface, &handle->info.ifc_class) != 0 || in try_interfaces()
172 (*interface)->GetInterfaceSubClass(interface, &handle->info.ifc_subclass) != 0 || in try_interfaces()
173 (*interface)->GetInterfaceProtocol(interface, &handle->info.ifc_protocol) != 0) in try_interfaces()
179 handle->info.has_bulk_in = 0; in try_interfaces()
180 handle->info.has_bulk_out = 0; in try_interfaces()
201 handle->info.has_bulk_in = 1; in try_interfaces()
204 handle->info.has_bulk_out = 1; in try_interfaces()
208 if (handle->info.ifc_protocol == 0x01) { in try_interfaces()
215 if (handle->info.has_bulk_in && handle->info.has_bulk_out) { in try_interfaces()
[all …]
Dusb_windows.c272 struct usb_ifc_info info; in recognized_device() local
296 info.dev_vendor = device_desc.idVendor; in recognized_device()
297 info.dev_product = device_desc.idProduct; in recognized_device()
298 info.dev_class = device_desc.bDeviceClass; in recognized_device()
299 info.dev_subclass = device_desc.bDeviceSubClass; in recognized_device()
300 info.dev_protocol = device_desc.bDeviceProtocol; in recognized_device()
301 info.ifc_class = interf_desc.bInterfaceClass; in recognized_device()
302 info.ifc_subclass = interf_desc.bInterfaceSubClass; in recognized_device()
303 info.ifc_protocol = interf_desc.bInterfaceProtocol; in recognized_device()
304 info.writable = 1; in recognized_device()
[all …]
Dusb_linux.c100 struct usb_ifc_info info; in filter_usb_device() local
118 info.dev_vendor = dev->idVendor; in filter_usb_device()
119 info.dev_product = dev->idProduct; in filter_usb_device()
120 info.dev_class = dev->bDeviceClass; in filter_usb_device()
121 info.dev_subclass = dev->bDeviceSubClass; in filter_usb_device()
122 info.dev_protocol = dev->bDeviceProtocol; in filter_usb_device()
123 info.writable = writable; in filter_usb_device()
126 info.serial_number[0] = 0; in filter_usb_device()
148 info.serial_number[i - 1] = buffer[i]; in filter_usb_device()
149 info.serial_number[i - 1] = 0; in filter_usb_device()
[all …]
Dfastboot.c147 int match_fastboot(usb_ifc_info *info) in match_fastboot() argument
149 if(!(vendor_id && (info->dev_vendor == vendor_id)) && in match_fastboot()
150 (info->dev_vendor != 0x18d1) && // Google in match_fastboot()
151 (info->dev_vendor != 0x0451) && in match_fastboot()
152 (info->dev_vendor != 0x0502) && in match_fastboot()
153 (info->dev_vendor != 0x0fce) && // Sony Ericsson in match_fastboot()
154 (info->dev_vendor != 0x05c6) && // Qualcomm in match_fastboot()
155 (info->dev_vendor != 0x22b8) && // Motorola in match_fastboot()
156 (info->dev_vendor != 0x0955) && // Nvidia in match_fastboot()
157 (info->dev_vendor != 0x413c) && // DELL in match_fastboot()
[all …]
/system/extras/ext4_utils/
Dmake_ext4fs.c147 dentries[i].link = calloc(info.block_size, 1); in build_directory_structure()
148 readlink(dentries[i].full_path, dentries[i].link, info.block_size - 1); in build_directory_structure()
196 u32 journal_blocks = DIV_ROUND_UP(info.len, info.block_size) / 64; in compute_journal_blocks()
206 return info.block_size * 8; in compute_blocks_per_group()
211 return DIV_ROUND_UP(info.len, info.block_size) / 4; in compute_inodes()
216 u32 blocks = DIV_ROUND_UP(info.len, info.block_size); in compute_inodes_per_group()
217 u32 block_groups = DIV_ROUND_UP(blocks, info.blocks_per_group); in compute_inodes_per_group()
218 return DIV_ROUND_UP(info.inodes, block_groups); in compute_inodes_per_group()
224 memset(&info, 0, sizeof(info)); in reset_ext4fs_info()
235 if (info.len == 0) in make_ext4fs()
[all …]
Dext4_utils.c42 struct fs_info info; variable
64 if (!(info.feat_ro_compat & EXT4_FEATURE_RO_COMPAT_SPARSE_SUPER)) in ext4_bg_has_super_block()
91 if (info.block_size > 1024) { in write_ext4_image()
94 write_data_block(out, 0, buf, info.block_size); in write_ext4_image()
100 write_data_block(out, (u64)(aux_info.first_data_block + 1) * info.block_size, in write_ext4_image()
102 aux_info.bg_desc_blocks * info.block_size); in write_ext4_image()
106 pad_output_file(out, info.len); in write_ext4_image()
114 aux_info.first_data_block = (info.block_size > 1024) ? 0 : 1; in ext4_create_fs_aux_info()
115 aux_info.len_blocks = info.len / info.block_size; in ext4_create_fs_aux_info()
116 aux_info.inode_table_blocks = DIV_ROUND_UP(info.inodes_per_group * info.inode_size, in ext4_create_fs_aux_info()
[all …]
Dmake_ext4fs_main.c28 extern struct fs_info info;
53 info.len = parse_num(optarg); in main()
56 info.journal_blocks = parse_num(optarg); in main()
59 info.block_size = parse_num(optarg); in main()
62 info.blocks_per_group = parse_num(optarg); in main()
65 info.inodes = parse_num(optarg); in main()
68 info.inode_size = parse_num(optarg); in main()
71 info.label = optarg; in main()
84 info.no_journal = 1; in main()
Doutput_file.c156 if (skip_len % info.block_size) { in emit_skip_chunk()
158 skip_len, info.block_size); in emit_skip_chunk()
165 chunk_header.chunk_sz = skip_len / info.block_size; in emit_skip_chunk()
176 chunk = (skip_len > info.block_size) ? info.block_size : skip_len; in emit_skip_chunk()
209 if (off % info.block_size) { in write_chunk_raw()
211 off, info.block_size); in write_chunk_raw()
221 rnd_up_len = (len + (info.block_size - 1)) & (~(info.block_size -1)); in write_chunk_raw()
227 chunk_header.chunk_sz = rnd_up_len / info.block_size; in write_chunk_raw()
279 zero_buf = malloc(info.block_size); in open_output_file()
284 memset(zero_buf, '\0', info.block_size); in open_output_file()
[all …]
Dcontents.c37 if (len % info.block_size + dentry_len > info.block_size) in dentry_size()
38 len += info.block_size - (len % info.block_size); in dentry_size()
53 u32 start_block = *offset / info.block_size; in add_dentry()
54 u32 end_block = (*offset + rec_len) / info.block_size; in add_dentry()
60 prev->rec_len += end_block * info.block_size - *offset; in add_dentry()
61 *offset = end_block * info.block_size; in add_dentry()
93 blocks = DIV_ROUND_UP(dentry_size(entries, dentries), info.block_size); in make_directory()
94 len = blocks * info.block_size; in make_directory()
97 inode_num = allocate_inode(info); in make_directory()
168 inode_num = allocate_inode(info); in make_file()
[all …]
Dindirect.c32 if (DIV_ROUND_UP(backing_len, info.block_size) > EXT4_NDIR_BLOCKS) in create_backing()
46 len = min(region_len * info.block_size, backing_len); in create_backing()
124 u32 *ind_block_data = calloc(info.block_size, 1); in fill_dindirect_block()
125 queue_data_block((u8*)ind_block_data, info.block_size, ind_block); in fill_dindirect_block()
153 u32 *dind_block_data = calloc(info.block_size, 1); in fill_tindirect_block()
154 queue_data_block((u8*)dind_block_data, info.block_size, dind_block); in fill_tindirect_block()
201 u32 *ind_block_data = calloc(info.block_size, 1); in inode_attach_indirect_blocks()
202 queue_data_block((u8*)ind_block_data, info.block_size, ind_block); in inode_attach_indirect_blocks()
232 u32 *dind_block_data = calloc(info.block_size, 1); in inode_attach_dindirect_blocks()
233 queue_data_block((u8*)dind_block_data, info.block_size, dind_block); in inode_attach_dindirect_blocks()
[all …]
Dextent.c43 len = min(region_len * info.block_size, backing_len); in extent_create_backing()
65 len = min(region_len * info.block_size, backing_len); in extent_create_backing_file()
76 u32 block_len = DIV_ROUND_UP(len, info.block_size); in do_inode_allocate_extents()
122 u8 *data = calloc(info.block_size, 1); in do_inode_allocate_extents()
126 queue_data_block(data, info.block_size, extent_block); in do_inode_allocate_extents()
128 if (((int)(info.block_size - sizeof(struct ext4_extent_header) / in do_inode_allocate_extents()
138 hdr->eh_max = (info.block_size - sizeof(struct ext4_extent_header)) / in do_inode_allocate_extents()
162 blocks = (u64)block_len * info.block_size / 512; in do_inode_allocate_extents()
Dallocate.c114 reg->bg * info.blocks_per_group + reg->block,
115 reg->bg * info.blocks_per_group + reg->block + reg->len - 1,
153 bg->inode_table = calloc(aux_info.inode_table_blocks, info.block_size); in allocate_bg_inode_table()
158 * info.block_size, block); in allocate_bg_inode_table()
263 bg->bitmaps = calloc(info.block_size, 2); in init_bg()
265 bg->inode_bitmap = bg->bitmaps + info.block_size; in init_bg()
268 bg->first_block = aux_info.first_data_block + i * info.blocks_per_group; in init_bg()
273 queue_data_block(bg->bitmaps, 2 * info.block_size, block); in init_bg()
276 bg->free_blocks = info.blocks_per_group; in init_bg()
278 bg->free_inodes = info.inodes_per_group; in init_bg()
[all …]
Dbacked_block.c113 last_block = db->block + DIV_ROUND_UP(db->len, info.block_size) - 1; in for_each_data_block()
116 file_func(out, (u64)db->block * info.block_size, db->filename, db->offset, db->len); in for_each_data_block()
118 data_func(out, (u64)db->block * info.block_size, db->data, db->len); in for_each_data_block()
/system/core/libnetutils/
Ddhcpclient.c131 static int ifc_configure(const char *ifname, dhcp_info *info) in ifc_configure() argument
135 if (ifc_set_addr(ifname, info->ipaddr)) { in ifc_configure()
136 printerr("failed to set ipaddr %s: %s\n", ipaddr(info->ipaddr), strerror(errno)); in ifc_configure()
139 if (ifc_set_mask(ifname, info->netmask)) { in ifc_configure()
140 printerr("failed to set netmask %s: %s\n", ipaddr(info->netmask), strerror(errno)); in ifc_configure()
143 if (ifc_create_default_route(ifname, info->gateway)) { in ifc_configure()
144 printerr("failed to set default route %s: %s\n", ipaddr(info->gateway), strerror(errno)); in ifc_configure()
149 property_set(dns_prop_name, info->dns1 ? ipaddr(info->dns1) : ""); in ifc_configure()
151 property_set(dns_prop_name, info->dns2 ? ipaddr(info->dns2) : ""); in ifc_configure()
153 last_good_info = *info; in ifc_configure()
[all …]
/system/core/run-as/
Drun-as.c106 PackageInfo info; in main() local
120 if (get_package_info(pkgname, &info) < 0) { in main()
126 if (info.uid < AID_APP) { in main()
132 if (!info.isDebuggable) { in main()
138 if (check_data_path(info.dataDir, info.uid) < 0) { in main()
147 ret = chdir(info.dataDir); in main()
159 uid = gid = info.uid; in main()
Dpackage.c372 get_package_info(const char* pkgName, PackageInfo *info) in get_package_info() argument
380 info->uid = 0; in get_package_info()
381 info->isDebuggable = 0; in get_package_info()
382 info->dataDir[0] = '\0'; in get_package_info()
425 info->uid = (uid_t) uid; in get_package_info()
435 info->isDebuggable = 0; in get_package_info()
438 info->isDebuggable = 1; in get_package_info()
455 string_copy(info->dataDir, sizeof info->dataDir, p, q - p); in get_package_info()
Dpackage.h37 extern int get_package_info(const char* packageName, PackageInfo* info);
/system/core/init/
Dutil.c82 struct android_id_info *info = android_ids; in android_name_to_id() local
86 if (!strcmp(info[n].name, name)) in android_name_to_id()
87 return info[n].aid; in android_name_to_id()
312 struct stat info; in mkdir_recursive() local
327 if (stat(buf, &info) != 0) { in mkdir_recursive()
385 struct stat info; in wait_for_file() local
389 while (gettime() < timeout_time && ((ret = stat(filename, &info)) < 0)) in wait_for_file()
Dbuiltins.c321 struct loop_info info; in do_mount() local
337 if (ioctl(loop, LOOP_GET_STATUS, &info) < 0 && errno == ENXIO) { in do_mount()
461 struct stat info; in do_copy() local
468 if (stat(args[1], &info) < 0) in do_copy()
477 if (!(buffer = malloc(info.st_size))) in do_copy()
481 brtr = info.st_size; in do_copy()
493 brtw = info.st_size; in do_copy()
/system/wlan/ti/wilink_6_1/platforms/os/linux/src/
DWlanDrvWext.c55 struct iw_request_info *info,
165 struct iw_request_info *info, in wlanDrvWext_Handler() argument
178 switch (info->cmd) in wlanDrvWext_Handler()
249 info->cmd, in wlanDrvWext_Handler()
250 info->flags, in wlanDrvWext_Handler()
/system/core/libpixelflinger/codeflinger/
DGGLAssembler.cpp158 component_info_t& info = mInfo[i]; in scanline_core() local
163 info.masked = !!(masking & mask); in scanline_core()
164 info.inDest = !info.masked && mCbFormat.c[i].h && in scanline_core()
168 info.inDest = false; in scanline_core()
170 info.needed = (i==GGLFormat::ALPHA) && in scanline_core()
172 info.replaced = !!(mTextureMachine.replaced & mask); in scanline_core()
173 info.iterated = (!info.replaced && (info.inDest || info.needed)); in scanline_core()
174 info.smooth = mSmooth && info.iterated; in scanline_core()
175 info.fog = mFog && info.inDest && (i != GGLFormat::ALPHA); in scanline_core()
176 info.blend = (fs != int(GGL_ONE)) || (fd > int(GGL_ZERO)); in scanline_core()
[all …]

12