Searched refs:gman (Results 1 – 1 of 1) sorted by relevance
58 struct vmwgfx_gmrid_man *gman = to_gmrid_manager(man); in vmw_gmrid_man_get_node() local67 id = ida_alloc_max(&gman->gmr_ida, gman->max_gmr_ids - 1, GFP_KERNEL); in vmw_gmrid_man_get_node()71 spin_lock(&gman->lock); in vmw_gmrid_man_get_node()73 if (gman->max_gmr_pages > 0) { in vmw_gmrid_man_get_node()74 gman->used_gmr_pages += (*res)->num_pages; in vmw_gmrid_man_get_node()82 if (unlikely(gman->used_gmr_pages > gman->max_gmr_pages)) { in vmw_gmrid_man_get_node()89 if (gman->max_gmr_pages > (max_graphics_pages / 2)) { in vmw_gmrid_man_get_node()93 new_max_pages = gman->max_gmr_pages * 2; in vmw_gmrid_man_get_node()94 if (new_max_pages > gman->max_gmr_pages && new_max_pages >= gman->used_gmr_pages) { in vmw_gmrid_man_get_node()98 gman->max_gmr_pages = new_max_pages; in vmw_gmrid_man_get_node()[all …]