Lines Matching refs:rman

55 	struct ttm_range_manager *rman = (struct ttm_range_manager *) man->priv;  in ttm_bo_man_get_node()  local
56 struct drm_mm *mm = &rman->mm; in ttm_bo_man_get_node()
69 spin_lock(&rman->lock); in ttm_bo_man_get_node()
74 spin_unlock(&rman->lock); in ttm_bo_man_get_node()
81 spin_unlock(&rman->lock); in ttm_bo_man_get_node()
92 struct ttm_range_manager *rman = (struct ttm_range_manager *) man->priv; in ttm_bo_man_put_node() local
95 spin_lock(&rman->lock); in ttm_bo_man_put_node()
97 spin_unlock(&rman->lock); in ttm_bo_man_put_node()
105 struct ttm_range_manager *rman; in ttm_bo_man_init() local
108 rman = kzalloc(sizeof(*rman), GFP_KERNEL); in ttm_bo_man_init()
109 if (!rman) in ttm_bo_man_init()
112 ret = drm_mm_init(&rman->mm, 0, p_size); in ttm_bo_man_init()
114 kfree(rman); in ttm_bo_man_init()
118 spin_lock_init(&rman->lock); in ttm_bo_man_init()
119 man->priv = rman; in ttm_bo_man_init()
125 struct ttm_range_manager *rman = (struct ttm_range_manager *) man->priv; in ttm_bo_man_takedown() local
126 struct drm_mm *mm = &rman->mm; in ttm_bo_man_takedown()
128 spin_lock(&rman->lock); in ttm_bo_man_takedown()
131 spin_unlock(&rman->lock); in ttm_bo_man_takedown()
132 kfree(rman); in ttm_bo_man_takedown()
136 spin_unlock(&rman->lock); in ttm_bo_man_takedown()
143 struct ttm_range_manager *rman = (struct ttm_range_manager *) man->priv; in ttm_bo_man_debug() local
145 spin_lock(&rman->lock); in ttm_bo_man_debug()
146 drm_mm_debug_table(&rman->mm, prefix); in ttm_bo_man_debug()
147 spin_unlock(&rman->lock); in ttm_bo_man_debug()