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()
1330 struct ttm_bo_global *glob = in ttm_bo_global_kobj_release() local
1333 __free_page(glob->dummy_read_page); in ttm_bo_global_kobj_release()
1338 struct ttm_bo_global *glob = &ttm_bo_glob; in ttm_bo_global_release() local
1344 kobject_del(&glob->kobj); in ttm_bo_global_release()
1345 kobject_put(&glob->kobj); in ttm_bo_global_release()
1347 memset(glob, 0, sizeof(*glob)); in ttm_bo_global_release()
1354 struct ttm_bo_global *glob = &ttm_bo_glob; in ttm_bo_global_init() local
1366 spin_lock_init(&glob->lru_lock); in ttm_bo_global_init()
1367 glob->dummy_read_page = alloc_page(__GFP_ZERO | GFP_DMA32); in ttm_bo_global_init()
1369 if (unlikely(glob->dummy_read_page == NULL)) { in ttm_bo_global_init()
1375 INIT_LIST_HEAD(&glob->swap_lru[i]); in ttm_bo_global_init()
1376 INIT_LIST_HEAD(&glob->device_list); in ttm_bo_global_init()
1377 atomic_set(&glob->bo_count, 0); in ttm_bo_global_init()
1380 &glob->kobj, &ttm_bo_glob_kobj_type, ttm_get_kobj(), "buffer_objects"); in ttm_bo_global_init()
1382 kobject_put(&glob->kobj); in ttm_bo_global_init()
1390 struct ttm_bo_global *glob = &ttm_bo_glob; in ttm_bo_device_release() local
1408 spin_lock(&glob->lru_lock); in ttm_bo_device_release()
1412 spin_unlock(&glob->lru_lock); in ttm_bo_device_release()
1442 struct ttm_bo_global *glob = &ttm_bo_glob; in ttm_bo_device_init() local
1462 list_add_tail(&bdev->device_list, &glob->device_list); in ttm_bo_device_init()
1511 int ttm_bo_swapout(struct ttm_bo_global *glob, struct ttm_operation_ctx *ctx) in ttm_bo_swapout() argument
1518 spin_lock(&glob->lru_lock); in ttm_bo_swapout()
1520 list_for_each_entry(bo, &glob->swap_lru[i], swap) { in ttm_bo_swapout()
1539 spin_unlock(&glob->lru_lock); in ttm_bo_swapout()
1550 spin_unlock(&glob->lru_lock); in ttm_bo_swapout()