Lines Matching defs:ofbi
30 struct omapfb_info *ofbi = FB2OFB(fbi);
32 return snprintf(buf, PAGE_SIZE, "%d\n", ofbi->rotation_type);
40 struct omapfb_info *ofbi = FB2OFB(fbi);
55 if (rot_type == ofbi->rotation_type)
58 rg = omapfb_get_mem_region(ofbi->region);
65 ofbi->rotation_type = rot_type;
84 struct omapfb_info *ofbi = FB2OFB(fbi);
86 return snprintf(buf, PAGE_SIZE, "%d\n", ofbi->mirror);
94 struct omapfb_info *ofbi = FB2OFB(fbi);
105 ofbi->mirror = mirror;
107 omapfb_get_mem_region(ofbi->region);
123 omapfb_put_mem_region(ofbi->region);
134 struct omapfb_info *ofbi = FB2OFB(fbi);
135 struct omapfb2_device *fbdev = ofbi->fbdev;
142 for (t = 0; t < ofbi->num_overlays; t++) {
143 struct omap_overlay *ovl = ofbi->overlays[t];
168 struct omapfb_info *ofbi = FB2OFB(fbdev->fbs[i]);
170 for (t = 0; t < ofbi->num_overlays; t++) {
171 if (ofbi->overlays[t] == ovl)
172 return ofbi;
183 struct omapfb_info *ofbi = FB2OFB(fbi);
184 struct omapfb2_device *fbdev = ofbi->fbdev;
234 if (ofbi2 && ofbi2 != ofbi) {
242 for (i = 0; i < ofbi->num_overlays; ++i) {
245 ovl = ofbi->overlays[i];
259 DBG("detaching %d\n", ofbi->overlays[i]->id);
261 omapfb_get_mem_region(ofbi->region);
268 omapfb_put_mem_region(ofbi->region);
270 for (t = i + 1; t < ofbi->num_overlays; t++) {
271 ofbi->rotation[t-1] = ofbi->rotation[t];
272 ofbi->overlays[t-1] = ofbi->overlays[t];
275 ofbi->num_overlays--;
286 for (t = 0; t < ofbi->num_overlays; ++t) {
287 if (ovl == ofbi->overlays[t]) {
295 ofbi->rotation[ofbi->num_overlays] = 0;
296 ofbi->overlays[ofbi->num_overlays++] = ovl;
302 omapfb_get_mem_region(ofbi->region);
306 omapfb_put_mem_region(ofbi->region);
324 struct omapfb_info *ofbi = FB2OFB(fbi);
330 for (t = 0; t < ofbi->num_overlays; t++) {
332 t == 0 ? "" : ",", ofbi->rotation[t]);
346 struct omapfb_info *ofbi = FB2OFB(fbi);
364 if (num_ovls == ofbi->num_overlays) {
375 if (ofbi->rotation[num_ovls] != rot)
384 if (num_ovls != ofbi->num_overlays) {
391 ofbi->rotation[i] = rotation[i];
393 omapfb_get_mem_region(ofbi->region);
397 omapfb_put_mem_region(ofbi->region);
416 struct omapfb_info *ofbi = FB2OFB(fbi);
418 return snprintf(buf, PAGE_SIZE, "%lu\n", ofbi->region->size);
425 struct omapfb_info *ofbi = FB2OFB(fbi);
426 struct omapfb2_device *fbdev = ofbi->fbdev;
444 rg = ofbi->region;
471 if (size != ofbi->region->size) {
472 r = omapfb_realloc_fbmem(fbi, size, ofbi->region->type);
493 struct omapfb_info *ofbi = FB2OFB(fbi);
495 return snprintf(buf, PAGE_SIZE, "%0x\n", ofbi->region->paddr);
502 struct omapfb_info *ofbi = FB2OFB(fbi);
504 return snprintf(buf, PAGE_SIZE, "%p\n", ofbi->region->vaddr);