Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/gpu/drm/vmwgfx/
Dvmwgfx_gmrid_manager.c57 struct vmwgfx_gmrid_man *gman = to_gmrid_manager(man); in vmw_gmrid_man_get_node() local
66 id = ida_alloc_max(&gman->gmr_ida, gman->max_gmr_ids - 1, GFP_KERNEL); in vmw_gmrid_man_get_node()
70 spin_lock(&gman->lock); in vmw_gmrid_man_get_node()
72 if (gman->max_gmr_pages > 0) { in vmw_gmrid_man_get_node()
73 gman->used_gmr_pages += PFN_UP((*res)->size); in vmw_gmrid_man_get_node()
81 if (unlikely(gman->used_gmr_pages > gman->max_gmr_pages)) { in vmw_gmrid_man_get_node()
88 if (gman->max_gmr_pages > (max_graphics_pages / 2)) { in vmw_gmrid_man_get_node()
92 new_max_pages = gman->max_gmr_pages * 2; in vmw_gmrid_man_get_node()
93 if (new_max_pages > gman->max_gmr_pages && new_max_pages >= gman->used_gmr_pages) { in vmw_gmrid_man_get_node()
97 gman->max_gmr_pages = new_max_pages; in vmw_gmrid_man_get_node()
[all …]