Lines Matching refs:glob

119 	struct ttm_bo_global *glob =  in ttm_bo_global_show()  local
123 atomic_read(&glob->bo_count)); in ttm_bo_global_show()
161 atomic_dec(&bo->bdev->glob->bo_count); in ttm_bo_release_list()
167 ttm_mem_global_free(bdev->glob->mem_glob, acc_size); in ttm_bo_release_list()
191 list_add_tail(&bo->swap, &bdev->glob->swap_lru[bo->priority]); in ttm_bo_add_mem_to_lru()
229 struct ttm_bo_global *glob = bo->bdev->glob; in ttm_bo_del_sub_from_lru() local
231 spin_lock(&glob->lru_lock); in ttm_bo_del_sub_from_lru()
233 spin_unlock(&glob->lru_lock); in ttm_bo_del_sub_from_lru()
314 lru = &pos->first->bdev->glob->swap_lru[i]; in ttm_bo_bulk_move_lru_tail()
478 struct ttm_bo_global *glob = bdev->glob; in ttm_bo_cleanup_refs_or_queue() local
488 spin_lock(&glob->lru_lock); in ttm_bo_cleanup_refs_or_queue()
492 spin_lock(&glob->lru_lock); in ttm_bo_cleanup_refs_or_queue()
497 spin_unlock(&glob->lru_lock); in ttm_bo_cleanup_refs_or_queue()
526 spin_unlock(&glob->lru_lock); in ttm_bo_cleanup_refs_or_queue()
549 struct ttm_bo_global *glob = bo->bdev->glob; in ttm_bo_cleanup_refs() local
568 spin_unlock(&glob->lru_lock); in ttm_bo_cleanup_refs()
579 spin_lock(&glob->lru_lock); in ttm_bo_cleanup_refs()
589 spin_unlock(&glob->lru_lock); in ttm_bo_cleanup_refs()
598 spin_unlock(&glob->lru_lock); in ttm_bo_cleanup_refs()
606 spin_unlock(&glob->lru_lock); in ttm_bo_cleanup_refs()
621 struct ttm_bo_global *glob = bdev->glob; in ttm_bo_delayed_delete() local
627 spin_lock(&glob->lru_lock); in ttm_bo_delayed_delete()
637 spin_unlock(&glob->lru_lock); in ttm_bo_delayed_delete()
640 spin_lock(&glob->lru_lock); in ttm_bo_delayed_delete()
646 spin_unlock(&glob->lru_lock); in ttm_bo_delayed_delete()
650 spin_lock(&glob->lru_lock); in ttm_bo_delayed_delete()
654 spin_unlock(&glob->lru_lock); in ttm_bo_delayed_delete()
845 struct ttm_bo_global *glob = bdev->glob; in ttm_mem_evict_first() local
851 spin_lock(&glob->lru_lock); in ttm_mem_evict_first()
883 spin_unlock(&glob->lru_lock); in ttm_mem_evict_first()
900 spin_unlock(&glob->lru_lock); in ttm_mem_evict_first()
906 spin_lock(&glob->lru_lock); in ttm_mem_evict_first()
908 spin_unlock(&glob->lru_lock); in ttm_mem_evict_first()
1072 spin_lock(&bo->bdev->glob->lru_lock); in ttm_bo_mem_placement()
1075 spin_unlock(&bo->bdev->glob->lru_lock); in ttm_bo_mem_placement()
1163 spin_lock(&bo->bdev->glob->lru_lock); in ttm_bo_mem_space()
1165 spin_unlock(&bo->bdev->glob->lru_lock); in ttm_bo_mem_space()
1291 struct ttm_mem_global *mem_glob = bdev->glob->mem_glob; in ttm_bo_init_reserved()
1352 atomic_inc(&bo->bdev->glob->bo_count); in ttm_bo_init_reserved()
1383 spin_lock(&bdev->glob->lru_lock); in ttm_bo_init_reserved()
1385 spin_unlock(&bdev->glob->lru_lock); in ttm_bo_init_reserved()
1484 struct ttm_bo_global *glob = bdev->glob; in ttm_bo_force_list_clean() local
1493 spin_lock(&glob->lru_lock); in ttm_bo_force_list_clean()
1496 spin_unlock(&glob->lru_lock); in ttm_bo_force_list_clean()
1501 spin_lock(&glob->lru_lock); in ttm_bo_force_list_clean()
1504 spin_unlock(&glob->lru_lock); in ttm_bo_force_list_clean()
1616 struct ttm_bo_global *glob = in ttm_bo_global_kobj_release() local
1619 __free_page(glob->dummy_read_page); in ttm_bo_global_kobj_release()
1624 struct ttm_bo_global *glob = &ttm_bo_glob; in ttm_bo_global_release() local
1630 kobject_del(&glob->kobj); in ttm_bo_global_release()
1631 kobject_put(&glob->kobj); in ttm_bo_global_release()
1633 memset(glob, 0, sizeof(*glob)); in ttm_bo_global_release()
1640 struct ttm_bo_global *glob = &ttm_bo_glob; in ttm_bo_global_init() local
1652 spin_lock_init(&glob->lru_lock); in ttm_bo_global_init()
1653 glob->mem_glob = &ttm_mem_glob; in ttm_bo_global_init()
1654 glob->mem_glob->bo_glob = glob; in ttm_bo_global_init()
1655 glob->dummy_read_page = alloc_page(__GFP_ZERO | GFP_DMA32); in ttm_bo_global_init()
1657 if (unlikely(glob->dummy_read_page == NULL)) { in ttm_bo_global_init()
1663 INIT_LIST_HEAD(&glob->swap_lru[i]); in ttm_bo_global_init()
1664 INIT_LIST_HEAD(&glob->device_list); in ttm_bo_global_init()
1665 atomic_set(&glob->bo_count, 0); in ttm_bo_global_init()
1668 &glob->kobj, &ttm_bo_glob_kobj_type, ttm_get_kobj(), "buffer_objects"); in ttm_bo_global_init()
1670 kobject_put(&glob->kobj); in ttm_bo_global_init()
1681 struct ttm_bo_global *glob = bdev->glob; in ttm_bo_device_release() local
1705 spin_lock(&glob->lru_lock); in ttm_bo_device_release()
1709 spin_unlock(&glob->lru_lock); in ttm_bo_device_release()
1725 struct ttm_bo_global *glob = &ttm_bo_glob; in ttm_bo_device_init() local
1750 bdev->glob = glob; in ttm_bo_device_init()
1753 list_add_tail(&bdev->device_list, &glob->device_list); in ttm_bo_device_init()
1859 int ttm_bo_swapout(struct ttm_bo_global *glob, struct ttm_operation_ctx *ctx) in ttm_bo_swapout() argument
1866 spin_lock(&glob->lru_lock); in ttm_bo_swapout()
1868 list_for_each_entry(bo, &glob->swap_lru[i], swap) { in ttm_bo_swapout()
1880 spin_unlock(&glob->lru_lock); in ttm_bo_swapout()
1893 spin_unlock(&glob->lru_lock); in ttm_bo_swapout()
1954 while (ttm_bo_swapout(bdev->glob, &ctx) == 0) in ttm_bo_swapout_all()