Lines Matching refs:glob

90 	struct ttm_bo_global *glob =  in ttm_bo_global_show()  local
94 atomic_read(&glob->bo_count)); in ttm_bo_global_show()
460 struct ttm_bo_global *glob = &ttm_bo_glob; in ttm_bo_delayed_delete() local
466 spin_lock(&glob->lru_lock); in ttm_bo_delayed_delete()
477 spin_unlock(&glob->lru_lock); in ttm_bo_delayed_delete()
480 spin_lock(&glob->lru_lock); in ttm_bo_delayed_delete()
486 spin_unlock(&glob->lru_lock); in ttm_bo_delayed_delete()
490 spin_lock(&glob->lru_lock); in ttm_bo_delayed_delete()
494 spin_unlock(&glob->lru_lock); in ttm_bo_delayed_delete()
1328 struct ttm_bo_global *glob = in ttm_bo_global_kobj_release() local
1331 __free_page(glob->dummy_read_page); in ttm_bo_global_kobj_release()
1336 struct ttm_bo_global *glob = &ttm_bo_glob; in ttm_bo_global_release() local
1342 kobject_del(&glob->kobj); in ttm_bo_global_release()
1343 kobject_put(&glob->kobj); in ttm_bo_global_release()
1345 memset(glob, 0, sizeof(*glob)); in ttm_bo_global_release()
1352 struct ttm_bo_global *glob = &ttm_bo_glob; in ttm_bo_global_init() local
1364 spin_lock_init(&glob->lru_lock); in ttm_bo_global_init()
1365 glob->dummy_read_page = alloc_page(__GFP_ZERO | GFP_DMA32); in ttm_bo_global_init()
1367 if (unlikely(glob->dummy_read_page == NULL)) { in ttm_bo_global_init()
1373 INIT_LIST_HEAD(&glob->swap_lru[i]); in ttm_bo_global_init()
1374 INIT_LIST_HEAD(&glob->device_list); in ttm_bo_global_init()
1375 atomic_set(&glob->bo_count, 0); in ttm_bo_global_init()
1378 &glob->kobj, &ttm_bo_glob_kobj_type, ttm_get_kobj(), "buffer_objects"); in ttm_bo_global_init()
1380 kobject_put(&glob->kobj); in ttm_bo_global_init()
1388 struct ttm_bo_global *glob = &ttm_bo_glob; in ttm_bo_device_release() local
1406 spin_lock(&glob->lru_lock); in ttm_bo_device_release()
1410 spin_unlock(&glob->lru_lock); in ttm_bo_device_release()
1440 struct ttm_bo_global *glob = &ttm_bo_glob; in ttm_bo_device_init() local
1460 list_add_tail(&bdev->device_list, &glob->device_list); in ttm_bo_device_init()
1509 int ttm_bo_swapout(struct ttm_bo_global *glob, struct ttm_operation_ctx *ctx) in ttm_bo_swapout() argument
1516 spin_lock(&glob->lru_lock); in ttm_bo_swapout()
1518 list_for_each_entry(bo, &glob->swap_lru[i], swap) { in ttm_bo_swapout()
1537 spin_unlock(&glob->lru_lock); in ttm_bo_swapout()
1548 spin_unlock(&glob->lru_lock); in ttm_bo_swapout()