Home
last modified time | relevance | path

Searched refs:glob (Results 1 – 11 of 11) sorted by relevance

/drivers/gpu/drm/ttm/
Dttm_memory.c44 struct ttm_mem_global *glob; member
92 spin_lock(&zone->glob->lock); in ttm_mem_zone_show()
103 spin_unlock(&zone->glob->lock); in ttm_mem_zone_show()
109 static void ttm_check_swapping(struct ttm_mem_global *glob);
129 spin_lock(&zone->glob->lock); in ttm_mem_zone_store()
142 spin_unlock(&zone->glob->lock); in ttm_mem_zone_store()
144 ttm_check_swapping(zone->glob); in ttm_mem_zone_store()
171 struct ttm_mem_global *glob = in ttm_mem_global_kobj_release() local
174 kfree(glob); in ttm_mem_global_kobj_release()
181 static bool ttm_zones_above_swap_target(struct ttm_mem_global *glob, in ttm_zones_above_swap_target() argument
[all …]
Dttm_bo.c108 struct ttm_bo_global *glob = in ttm_bo_global_show() local
112 (unsigned long) atomic_read(&glob->bo_count)); in ttm_bo_global_show()
152 atomic_dec(&bo->glob->bo_count); in ttm_bo_release_list()
161 ttm_mem_global_free(bdev->glob->mem_glob, acc_size); in ttm_bo_release_list()
180 list_add_tail(&bo->swap, &bo->glob->swap_lru); in ttm_bo_add_to_lru()
224 spin_lock(&bo->glob->lru_lock); in ttm_bo_del_sub_from_lru()
226 spin_unlock(&bo->glob->lru_lock); in ttm_bo_del_sub_from_lru()
237 struct ttm_bo_global *glob = bo->glob; in ttm_bo_add_ttm() local
253 page_flags, glob->dummy_read_page); in ttm_bo_add_ttm()
260 glob->dummy_read_page); in ttm_bo_add_ttm()
[all …]
Dttm_execbuf_util.c61 struct ttm_bo_global *glob; in ttm_eu_backoff_reservation() local
67 glob = entry->bo->glob; in ttm_eu_backoff_reservation()
69 spin_lock(&glob->lru_lock); in ttm_eu_backoff_reservation()
76 spin_unlock(&glob->lru_lock); in ttm_eu_backoff_reservation()
98 struct ttm_bo_global *glob; in ttm_eu_reserve_buffers() local
106 glob = entry->bo->glob; in ttm_eu_reserve_buffers()
167 spin_lock(&glob->lru_lock); in ttm_eu_reserve_buffers()
169 spin_unlock(&glob->lru_lock); in ttm_eu_reserve_buffers()
179 struct ttm_bo_global *glob; in ttm_eu_fence_buffer_objects() local
189 glob = bo->glob; in ttm_eu_fence_buffer_objects()
[all …]
Dttm_tt.c192 ttm->glob = bdev->glob; in ttm_tt_init()
224 ttm->glob = bdev->glob; in ttm_dma_tt_init()
Dttm_page_alloc.c812 int ttm_page_alloc_init(struct ttm_mem_global *glob, unsigned max_pages) in ttm_page_alloc_init() argument
837 &glob->kobj, "pool"); in ttm_page_alloc_init()
866 struct ttm_mem_global *mem_glob = ttm->glob->mem_glob; in ttm_pool_populate()
909 ttm_mem_global_free_page(ttm->glob->mem_glob, in ttm_pool_unpopulate()
Dttm_page_alloc_dma.c876 struct ttm_mem_global *mem_glob = ttm->glob->mem_glob; in ttm_dma_populate()
976 ttm_mem_global_free_page(ttm->glob->mem_glob, in ttm_dma_unpopulate()
982 ttm_mem_global_free_page(ttm->glob->mem_glob, in ttm_dma_unpopulate()
1078 int ttm_dma_page_alloc_init(struct ttm_mem_global *glob, unsigned max_pages) in ttm_dma_page_alloc_init() argument
1099 &glob->kobj, "dma_pool"); in ttm_dma_page_alloc_init()
/drivers/gpu/drm/
Ddrm_global.c42 static struct drm_global_item glob[DRM_GLOBAL_NUM]; variable
49 struct drm_global_item *item = &glob[i]; in drm_global_init()
60 struct drm_global_item *item = &glob[i]; in drm_global_release()
69 struct drm_global_item *item = &glob[ref->global_type]; in drm_global_item_ref()
98 struct drm_global_item *item = &glob[ref->global_type]; in drm_global_item_unref()
/drivers/gpu/drm/vmwgfx/
Dvmwgfx_buffer.c382 struct ttm_mem_global *glob = vmw_mem_glob(dev_priv); in vmw_ttm_map_dma() local
407 ret = ttm_mem_global_alloc(glob, vmw_tt->sg_alloc_size, false, in vmw_ttm_map_dma()
425 ttm_mem_global_free(glob, over_alloc); in vmw_ttm_map_dma()
455 ttm_mem_global_free(glob, vmw_tt->sg_alloc_size); in vmw_ttm_map_dma()
627 struct ttm_mem_global *glob = vmw_mem_glob(dev_priv); in vmw_ttm_populate() local
636 ret = ttm_mem_global_alloc(glob, size, false, true); in vmw_ttm_populate()
642 ttm_mem_global_free(glob, size); in vmw_ttm_populate()
654 struct ttm_mem_global *glob = vmw_mem_glob(dev_priv); in vmw_ttm_unpopulate() local
668 ttm_mem_global_free(glob, size); in vmw_ttm_unpopulate()
/drivers/gpu/drm/qxl/
Dqxl_release.c435 struct ttm_bo_global *glob; in qxl_release_fence_buffer_objects() local
460 glob = bo->glob; in qxl_release_fence_buffer_objects()
462 spin_lock(&glob->lru_lock); in qxl_release_fence_buffer_objects()
472 spin_unlock(&glob->lru_lock); in qxl_release_fence_buffer_objects()
Dqxl_ttm.c455 struct ttm_bo_global *glob = rdev->mman.bdev.glob; in qxl_mm_dump_table() local
457 spin_lock(&glob->lru_lock); in qxl_mm_dump_table()
459 spin_unlock(&glob->lru_lock); in qxl_mm_dump_table()
/drivers/gpu/drm/radeon/
Dradeon_ttm.c1001 struct ttm_bo_global *glob = rdev->mman.bdev.glob; in radeon_mm_dump_table() local
1003 spin_lock(&glob->lru_lock); in radeon_mm_dump_table()
1005 spin_unlock(&glob->lru_lock); in radeon_mm_dump_table()