Lines Matching defs:ofbi

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