Lines Matching refs:ofbi

31 	struct omapfb_info *ofbi = FB2OFB(fbi);  in show_rotate_type()  local
33 return sysfs_emit(buf, "%d\n", ofbi->rotation_type); in show_rotate_type()
41 struct omapfb_info *ofbi = FB2OFB(fbi); in store_rotate_type() local
56 if (rot_type == ofbi->rotation_type) in store_rotate_type()
59 rg = omapfb_get_mem_region(ofbi->region); in store_rotate_type()
66 ofbi->rotation_type = rot_type; in store_rotate_type()
85 struct omapfb_info *ofbi = FB2OFB(fbi); in show_mirror() local
87 return sysfs_emit(buf, "%d\n", ofbi->mirror); in show_mirror()
95 struct omapfb_info *ofbi = FB2OFB(fbi); in store_mirror() local
106 ofbi->mirror = mirror; in store_mirror()
108 omapfb_get_mem_region(ofbi->region); in store_mirror()
124 omapfb_put_mem_region(ofbi->region); in store_mirror()
135 struct omapfb_info *ofbi = FB2OFB(fbi); in show_overlays() local
136 struct omapfb2_device *fbdev = ofbi->fbdev; in show_overlays()
143 for (t = 0; t < ofbi->num_overlays; t++) { in show_overlays()
144 struct omap_overlay *ovl = ofbi->overlays[t]; in show_overlays()
169 struct omapfb_info *ofbi = FB2OFB(fbdev->fbs[i]); in get_overlay_fb() local
171 for (t = 0; t < ofbi->num_overlays; t++) { in get_overlay_fb()
172 if (ofbi->overlays[t] == ovl) in get_overlay_fb()
173 return ofbi; in get_overlay_fb()
184 struct omapfb_info *ofbi = FB2OFB(fbi); in store_overlays() local
185 struct omapfb2_device *fbdev = ofbi->fbdev; in store_overlays()
235 if (ofbi2 && ofbi2 != ofbi) { in store_overlays()
243 for (i = 0; i < ofbi->num_overlays; ++i) { in store_overlays()
246 ovl = ofbi->overlays[i]; in store_overlays()
260 DBG("detaching %d\n", ofbi->overlays[i]->id); in store_overlays()
262 omapfb_get_mem_region(ofbi->region); in store_overlays()
269 omapfb_put_mem_region(ofbi->region); in store_overlays()
271 for (t = i + 1; t < ofbi->num_overlays; t++) { in store_overlays()
272 ofbi->rotation[t-1] = ofbi->rotation[t]; in store_overlays()
273 ofbi->overlays[t-1] = ofbi->overlays[t]; in store_overlays()
276 ofbi->num_overlays--; in store_overlays()
287 for (t = 0; t < ofbi->num_overlays; ++t) { in store_overlays()
288 if (ovl == ofbi->overlays[t]) { in store_overlays()
296 ofbi->rotation[ofbi->num_overlays] = 0; in store_overlays()
297 ofbi->overlays[ofbi->num_overlays++] = ovl; in store_overlays()
303 omapfb_get_mem_region(ofbi->region); in store_overlays()
307 omapfb_put_mem_region(ofbi->region); in store_overlays()
325 struct omapfb_info *ofbi = FB2OFB(fbi); in show_overlays_rotate() local
331 for (t = 0; t < ofbi->num_overlays; t++) { in show_overlays_rotate()
333 t == 0 ? "" : ",", ofbi->rotation[t]); in show_overlays_rotate()
347 struct omapfb_info *ofbi = FB2OFB(fbi); in store_overlays_rotate() local
365 if (num_ovls == ofbi->num_overlays) { in store_overlays_rotate()
376 if (ofbi->rotation[num_ovls] != rot) in store_overlays_rotate()
385 if (num_ovls != ofbi->num_overlays) { in store_overlays_rotate()
392 ofbi->rotation[i] = rotation[i]; in store_overlays_rotate()
394 omapfb_get_mem_region(ofbi->region); in store_overlays_rotate()
398 omapfb_put_mem_region(ofbi->region); in store_overlays_rotate()
417 struct omapfb_info *ofbi = FB2OFB(fbi); in show_size() local
419 return sysfs_emit(buf, "%lu\n", ofbi->region->size); in show_size()
426 struct omapfb_info *ofbi = FB2OFB(fbi); in store_size() local
427 struct omapfb2_device *fbdev = ofbi->fbdev; in store_size()
445 rg = ofbi->region; in store_size()
472 if (size != ofbi->region->size) { in store_size()
473 r = omapfb_realloc_fbmem(fbi, size, ofbi->region->type); in store_size()
494 struct omapfb_info *ofbi = FB2OFB(fbi); in show_phys() local
496 return sysfs_emit(buf, "%0x\n", ofbi->region->paddr); in show_phys()
503 struct omapfb_info *ofbi = FB2OFB(fbi); in show_virt() local
505 return sysfs_emit(buf, "%p\n", ofbi->region->vaddr); in show_virt()