Searched refs:fi (Results 1 – 2 of 2) sorted by relevance
/system/extras/tests/framebuffer/ |
D | fb_test.c | 46 struct fb_fix_screeninfo fi; variable 49 static void dumpinfo(struct fb_fix_screeninfo *fi, 81 if(ioctl(fd, FBIOGET_FSCREENINFO, &fi) < 0) { in get_framebuffer() 86 dumpinfo(&fi, &vi); in get_framebuffer() 88 bits = mmap(0, fi.smem_len, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in get_framebuffer() 98 fb->stride = fi.line_length / bytes_per_pixel; in get_framebuffer() 106 fb->stride = fi.line_length / bytes_per_pixel; in get_framebuffer() 125 static void dumpinfo(struct fb_fix_screeninfo *fi, struct fb_var_screeninfo *vi) in dumpinfo() argument 135 fprintf(stderr, "fi.line_length = %d\n", fi->line_length); in dumpinfo() 210 int stride = fi.line_length / (vi.bits_per_pixel >> 3); in draw_grid() [all …]
|
/system/core/toolbox/upstream-netbsd/bin/cp/ |
D | utils.c | 96 progress(const struct finfo *fi, size_t written) in progress() argument 98 int pcent = (int)((100.0 * written) / fi->size); in progress() 102 fi->from, fi->to, written, fi->size, pcent); in progress() 197 struct finfo fi; in copy_file() local 199 fi.from = entp->fts_path; in copy_file() 200 fi.to = to.p_path; in copy_file() 201 fi.size = (size_t)fs->st_size; in copy_file() 244 progress(&fi, ptotal); in copy_file() 264 progress(&fi, ptotal); in copy_file()
|