Searched refs:gman (Results 1 – 1 of 1) sorted by relevance
57 struct vmwgfx_gmrid_man *gman = to_gmrid_manager(man); in vmw_gmrid_man_get_node() local66 id = ida_alloc_max(&gman->gmr_ida, gman->max_gmr_ids - 1, GFP_KERNEL); in vmw_gmrid_man_get_node()73 spin_lock(&gman->lock); in vmw_gmrid_man_get_node()75 if (gman->max_gmr_pages > 0) { in vmw_gmrid_man_get_node()76 gman->used_gmr_pages += PFN_UP((*res)->size); in vmw_gmrid_man_get_node()84 if (unlikely(gman->used_gmr_pages > gman->max_gmr_pages)) { in vmw_gmrid_man_get_node()91 if (gman->max_gmr_pages > (max_graphics_pages / 2)) { in vmw_gmrid_man_get_node()95 new_max_pages = gman->max_gmr_pages * 2; in vmw_gmrid_man_get_node()96 if (new_max_pages > gman->max_gmr_pages && new_max_pages >= gman->used_gmr_pages) { in vmw_gmrid_man_get_node()100 gman->max_gmr_pages = new_max_pages; in vmw_gmrid_man_get_node()[all …]