Lines Matching refs:rg
207 struct omapfb2_mem_region *rg; in omapfb_setup_mem() local
219 rg = ofbi->region; in omapfb_setup_mem()
221 down_write_nested(&rg->lock, rg->id); in omapfb_setup_mem()
222 atomic_inc(&rg->lock_count); in omapfb_setup_mem()
224 if (rg->size == size && rg->type == mi->type) in omapfb_setup_mem()
227 if (atomic_read(&rg->map_count)) { in omapfb_setup_mem()
236 if (ofbi2->region != rg) in omapfb_setup_mem()
256 atomic_dec(&rg->lock_count); in omapfb_setup_mem()
257 up_write(&rg->lock); in omapfb_setup_mem()
265 struct omapfb2_mem_region *rg; in omapfb_query_mem() local
267 rg = omapfb_get_mem_region(ofbi->region); in omapfb_query_mem()
270 mi->size = rg->size; in omapfb_query_mem()
271 mi->type = rg->type; in omapfb_query_mem()
273 omapfb_put_mem_region(rg); in omapfb_query_mem()