Lines Matching refs:fbdefio

43 	struct fb_deferred_io *fbdefio = info->fbdefio;  in fb_deferred_io_pageref_get()  local
44 struct list_head *pos = &fbdefio->pagereflist; in fb_deferred_io_pageref_get()
66 if (unlikely(fbdefio->sort_pagereflist)) { in fb_deferred_io_pageref_get()
74 list_for_each_entry(cur, &fbdefio->pagereflist, list) { in fb_deferred_io_pageref_get()
131 if (!info->fbdefio) in fb_deferred_io_fsync()
149 struct fb_deferred_io *fbdefio = info->fbdefio; in fb_deferred_io_track_page() local
154 mutex_lock(&fbdefio->lock); in fb_deferred_io_track_page()
172 mutex_unlock(&fbdefio->lock); in fb_deferred_io_track_page()
175 schedule_delayed_work(&info->deferred_work, fbdefio->delay); in fb_deferred_io_track_page()
179 mutex_unlock(&fbdefio->lock); in fb_deferred_io_track_page()
240 struct fb_deferred_io *fbdefio = info->fbdefio; in fb_deferred_io_work() local
243 mutex_lock(&fbdefio->lock); in fb_deferred_io_work()
244 list_for_each_entry(pageref, &fbdefio->pagereflist, list) { in fb_deferred_io_work()
252 fbdefio->deferred_io(info, &fbdefio->pagereflist); in fb_deferred_io_work()
255 list_for_each_entry_safe(pageref, next, &fbdefio->pagereflist, list) in fb_deferred_io_work()
258 mutex_unlock(&fbdefio->lock); in fb_deferred_io_work()
263 struct fb_deferred_io *fbdefio = info->fbdefio; in fb_deferred_io_init() local
268 BUG_ON(!fbdefio); in fb_deferred_io_init()
273 mutex_init(&fbdefio->lock); in fb_deferred_io_init()
275 INIT_LIST_HEAD(&fbdefio->pagereflist); in fb_deferred_io_init()
276 if (fbdefio->delay == 0) /* set a default of 1 s */ in fb_deferred_io_init()
277 fbdefio->delay = HZ; in fb_deferred_io_init()
295 mutex_destroy(&fbdefio->lock); in fb_deferred_io_init()
304 struct fb_deferred_io *fbdefio = info->fbdefio; in fb_deferred_io_open() local
307 fbdefio->open_count++; in fb_deferred_io_open()
327 struct fb_deferred_io *fbdefio = info->fbdefio; in fb_deferred_io_release() local
329 if (!--fbdefio->open_count) in fb_deferred_io_release()
336 struct fb_deferred_io *fbdefio = info->fbdefio; in fb_deferred_io_cleanup() local
341 mutex_destroy(&fbdefio->lock); in fb_deferred_io_cleanup()