Searched refs:global_ref (Results 1 - 9 of 9) sorted by relevance

/linux-4.1.27/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_ttm_glue.c59 struct drm_global_reference *global_ref; vmw_ttm_global_init() local
62 global_ref = &dev_priv->mem_global_ref; vmw_ttm_global_init()
63 global_ref->global_type = DRM_GLOBAL_TTM_MEM; vmw_ttm_global_init()
64 global_ref->size = sizeof(struct ttm_mem_global); vmw_ttm_global_init()
65 global_ref->init = &vmw_ttm_mem_global_init; vmw_ttm_global_init()
66 global_ref->release = &vmw_ttm_mem_global_release; vmw_ttm_global_init()
68 ret = drm_global_item_ref(global_ref); vmw_ttm_global_init()
76 global_ref = &dev_priv->bo_global_ref.ref; vmw_ttm_global_init()
77 global_ref->global_type = DRM_GLOBAL_TTM_BO; vmw_ttm_global_init()
78 global_ref->size = sizeof(struct ttm_bo_global); vmw_ttm_global_init()
79 global_ref->init = &ttm_bo_global_init; vmw_ttm_global_init()
80 global_ref->release = &ttm_bo_global_release; vmw_ttm_global_init()
81 ret = drm_global_item_ref(global_ref); vmw_ttm_global_init()
/linux-4.1.27/drivers/gpu/drm/nouveau/
H A Dnouveau_ttm.c308 struct drm_global_reference *global_ref; nouveau_ttm_global_init() local
311 global_ref = &drm->ttm.mem_global_ref; nouveau_ttm_global_init()
312 global_ref->global_type = DRM_GLOBAL_TTM_MEM; nouveau_ttm_global_init()
313 global_ref->size = sizeof(struct ttm_mem_global); nouveau_ttm_global_init()
314 global_ref->init = &nouveau_ttm_mem_global_init; nouveau_ttm_global_init()
315 global_ref->release = &nouveau_ttm_mem_global_release; nouveau_ttm_global_init()
317 ret = drm_global_item_ref(global_ref); nouveau_ttm_global_init()
324 drm->ttm.bo_global_ref.mem_glob = global_ref->object; nouveau_ttm_global_init()
325 global_ref = &drm->ttm.bo_global_ref.ref; nouveau_ttm_global_init()
326 global_ref->global_type = DRM_GLOBAL_TTM_BO; nouveau_ttm_global_init()
327 global_ref->size = sizeof(struct ttm_bo_global); nouveau_ttm_global_init()
328 global_ref->init = &ttm_bo_global_init; nouveau_ttm_global_init()
329 global_ref->release = &ttm_bo_global_release; nouveau_ttm_global_init()
331 ret = drm_global_item_ref(global_ref); nouveau_ttm_global_init()
/linux-4.1.27/drivers/gpu/drm/ast/
H A Dast_ttm.c52 struct drm_global_reference *global_ref; ast_ttm_global_init() local
55 global_ref = &ast->ttm.mem_global_ref; ast_ttm_global_init()
56 global_ref->global_type = DRM_GLOBAL_TTM_MEM; ast_ttm_global_init()
57 global_ref->size = sizeof(struct ttm_mem_global); ast_ttm_global_init()
58 global_ref->init = &ast_ttm_mem_global_init; ast_ttm_global_init()
59 global_ref->release = &ast_ttm_mem_global_release; ast_ttm_global_init()
60 r = drm_global_item_ref(global_ref); ast_ttm_global_init()
69 global_ref = &ast->ttm.bo_global_ref.ref; ast_ttm_global_init()
70 global_ref->global_type = DRM_GLOBAL_TTM_BO; ast_ttm_global_init()
71 global_ref->size = sizeof(struct ttm_bo_global); ast_ttm_global_init()
72 global_ref->init = &ttm_bo_global_init; ast_ttm_global_init()
73 global_ref->release = &ttm_bo_global_release; ast_ttm_global_init()
74 r = drm_global_item_ref(global_ref); ast_ttm_global_init()
/linux-4.1.27/drivers/gpu/drm/bochs/
H A Dbochs_mm.c31 struct drm_global_reference *global_ref; bochs_ttm_global_init() local
34 global_ref = &bochs->ttm.mem_global_ref; bochs_ttm_global_init()
35 global_ref->global_type = DRM_GLOBAL_TTM_MEM; bochs_ttm_global_init()
36 global_ref->size = sizeof(struct ttm_mem_global); bochs_ttm_global_init()
37 global_ref->init = &bochs_ttm_mem_global_init; bochs_ttm_global_init()
38 global_ref->release = &bochs_ttm_mem_global_release; bochs_ttm_global_init()
39 r = drm_global_item_ref(global_ref); bochs_ttm_global_init()
48 global_ref = &bochs->ttm.bo_global_ref.ref; bochs_ttm_global_init()
49 global_ref->global_type = DRM_GLOBAL_TTM_BO; bochs_ttm_global_init()
50 global_ref->size = sizeof(struct ttm_bo_global); bochs_ttm_global_init()
51 global_ref->init = &ttm_bo_global_init; bochs_ttm_global_init()
52 global_ref->release = &ttm_bo_global_release; bochs_ttm_global_init()
53 r = drm_global_item_ref(global_ref); bochs_ttm_global_init()
/linux-4.1.27/drivers/gpu/drm/cirrus/
H A Dcirrus_ttm.c52 struct drm_global_reference *global_ref; cirrus_ttm_global_init() local
55 global_ref = &cirrus->ttm.mem_global_ref; cirrus_ttm_global_init()
56 global_ref->global_type = DRM_GLOBAL_TTM_MEM; cirrus_ttm_global_init()
57 global_ref->size = sizeof(struct ttm_mem_global); cirrus_ttm_global_init()
58 global_ref->init = &cirrus_ttm_mem_global_init; cirrus_ttm_global_init()
59 global_ref->release = &cirrus_ttm_mem_global_release; cirrus_ttm_global_init()
60 r = drm_global_item_ref(global_ref); cirrus_ttm_global_init()
69 global_ref = &cirrus->ttm.bo_global_ref.ref; cirrus_ttm_global_init()
70 global_ref->global_type = DRM_GLOBAL_TTM_BO; cirrus_ttm_global_init()
71 global_ref->size = sizeof(struct ttm_bo_global); cirrus_ttm_global_init()
72 global_ref->init = &ttm_bo_global_init; cirrus_ttm_global_init()
73 global_ref->release = &ttm_bo_global_release; cirrus_ttm_global_init()
74 r = drm_global_item_ref(global_ref); cirrus_ttm_global_init()
/linux-4.1.27/drivers/gpu/drm/mgag200/
H A Dmgag200_ttm.c52 struct drm_global_reference *global_ref; mgag200_ttm_global_init() local
55 global_ref = &ast->ttm.mem_global_ref; mgag200_ttm_global_init()
56 global_ref->global_type = DRM_GLOBAL_TTM_MEM; mgag200_ttm_global_init()
57 global_ref->size = sizeof(struct ttm_mem_global); mgag200_ttm_global_init()
58 global_ref->init = &mgag200_ttm_mem_global_init; mgag200_ttm_global_init()
59 global_ref->release = &mgag200_ttm_mem_global_release; mgag200_ttm_global_init()
60 r = drm_global_item_ref(global_ref); mgag200_ttm_global_init()
69 global_ref = &ast->ttm.bo_global_ref.ref; mgag200_ttm_global_init()
70 global_ref->global_type = DRM_GLOBAL_TTM_BO; mgag200_ttm_global_init()
71 global_ref->size = sizeof(struct ttm_bo_global); mgag200_ttm_global_init()
72 global_ref->init = &ttm_bo_global_init; mgag200_ttm_global_init()
73 global_ref->release = &ttm_bo_global_release; mgag200_ttm_global_init()
74 r = drm_global_item_ref(global_ref); mgag200_ttm_global_init()
/linux-4.1.27/drivers/gpu/drm/qxl/
H A Dqxl_ttm.c62 struct drm_global_reference *global_ref; qxl_ttm_global_init() local
66 global_ref = &qdev->mman.mem_global_ref; qxl_ttm_global_init()
67 global_ref->global_type = DRM_GLOBAL_TTM_MEM; qxl_ttm_global_init()
68 global_ref->size = sizeof(struct ttm_mem_global); qxl_ttm_global_init()
69 global_ref->init = &qxl_ttm_mem_global_init; qxl_ttm_global_init()
70 global_ref->release = &qxl_ttm_mem_global_release; qxl_ttm_global_init()
72 r = drm_global_item_ref(global_ref); qxl_ttm_global_init()
81 global_ref = &qdev->mman.bo_global_ref.ref; qxl_ttm_global_init()
82 global_ref->global_type = DRM_GLOBAL_TTM_BO; qxl_ttm_global_init()
83 global_ref->size = sizeof(struct ttm_bo_global); qxl_ttm_global_init()
84 global_ref->init = &ttm_bo_global_init; qxl_ttm_global_init()
85 global_ref->release = &ttm_bo_global_release; qxl_ttm_global_init()
86 r = drm_global_item_ref(global_ref); qxl_ttm_global_init()
/linux-4.1.27/drivers/gpu/drm/radeon/
H A Dradeon_ttm.c79 struct drm_global_reference *global_ref; radeon_ttm_global_init() local
83 global_ref = &rdev->mman.mem_global_ref; radeon_ttm_global_init()
84 global_ref->global_type = DRM_GLOBAL_TTM_MEM; radeon_ttm_global_init()
85 global_ref->size = sizeof(struct ttm_mem_global); radeon_ttm_global_init()
86 global_ref->init = &radeon_ttm_mem_global_init; radeon_ttm_global_init()
87 global_ref->release = &radeon_ttm_mem_global_release; radeon_ttm_global_init()
88 r = drm_global_item_ref(global_ref); radeon_ttm_global_init()
97 global_ref = &rdev->mman.bo_global_ref.ref; radeon_ttm_global_init()
98 global_ref->global_type = DRM_GLOBAL_TTM_BO; radeon_ttm_global_init()
99 global_ref->size = sizeof(struct ttm_bo_global); radeon_ttm_global_init()
100 global_ref->init = &ttm_bo_global_init; radeon_ttm_global_init()
101 global_ref->release = &ttm_bo_global_release; radeon_ttm_global_init()
102 r = drm_global_item_ref(global_ref); radeon_ttm_global_init()
/linux-4.1.27/drivers/crypto/
H A Dn2_core.c1907 static int global_ref; variable
1915 if (global_ref++) grab_global_resources()
1941 global_ref--; grab_global_resources()
1960 if (!--global_ref) { release_global_resources()

Completed in 224 milliseconds