Lines Matching refs:rg
42 struct omapfb2_mem_region *rg; in store_rotate_type() local
59 rg = omapfb_get_mem_region(ofbi->region); in store_rotate_type()
61 if (rg->size) { in store_rotate_type()
73 omapfb_put_mem_region(rg); in store_rotate_type()
429 struct omapfb2_mem_region *rg; in store_size() local
445 rg = ofbi->region; in store_size()
447 down_write_nested(&rg->lock, rg->id); in store_size()
448 atomic_inc(&rg->lock_count); in store_size()
450 if (atomic_read(&rg->map_count)) { in store_size()
459 if (ofbi2->region != rg) in store_size()
482 atomic_dec(&rg->lock_count); in store_size()
483 up_write(&rg->lock); in store_size()