Lines Matching refs:fbdev

136 	struct omapfb2_device *fbdev = ofbi->fbdev;  in show_overlays()  local
141 omapfb_lock(fbdev); in show_overlays()
147 for (ovlnum = 0; ovlnum < fbdev->num_overlays; ++ovlnum) in show_overlays()
148 if (ovl == fbdev->overlays[ovlnum]) in show_overlays()
157 omapfb_unlock(fbdev); in show_overlays()
163 static struct omapfb_info *get_overlay_fb(struct omapfb2_device *fbdev, in get_overlay_fb() argument
168 for (i = 0; i < fbdev->num_fbs; i++) { in get_overlay_fb()
169 struct omapfb_info *ofbi = FB2OFB(fbdev->fbs[i]); in get_overlay_fb()
185 struct omapfb2_device *fbdev = ofbi->fbdev; in store_overlays() local
199 omapfb_lock(fbdev); in store_overlays()
213 if (ovlnum > fbdev->num_overlays) { in store_overlays()
220 if (ovls[i] == fbdev->overlays[ovlnum]) { in store_overlays()
227 ovls[num_ovls++] = fbdev->overlays[ovlnum]; in store_overlays()
234 struct omapfb_info *ofbi2 = get_overlay_fb(fbdev, ovls[i]); in store_overlays()
236 dev_err(fbdev->dev, "overlay already in use\n"); in store_overlays()
315 omapfb_unlock(fbdev); in store_overlays()
427 struct omapfb2_device *fbdev = ofbi->fbdev; in store_size() local
455 for (i = 0; i < fbdev->num_fbs; i++) { in store_size()
456 struct omapfb_info *ofbi2 = FB2OFB(fbdev->fbs[i]); in store_size()
554 int omapfb_create_sysfs(struct omapfb2_device *fbdev) in omapfb_create_sysfs() argument
560 for (i = 0; i < fbdev->num_fbs; i++) { in omapfb_create_sysfs()
563 r = device_create_file(fbdev->fbs[i]->dev, in omapfb_create_sysfs()
567 dev_err(fbdev->dev, "failed to create sysfs " in omapfb_create_sysfs()
577 void omapfb_remove_sysfs(struct omapfb2_device *fbdev) in omapfb_remove_sysfs() argument
582 for (i = 0; i < fbdev->num_fbs; i++) { in omapfb_remove_sysfs()
584 device_remove_file(fbdev->fbs[i]->dev, in omapfb_remove_sysfs()