Lines Matching refs:curr_node
342 struct mlx4_zone_entry *curr_node; in __mlx4_alloc_from_zone() local
353 list_for_each_entry(curr_node, &zone_alloc->prios, prio_list) { in __mlx4_alloc_from_zone()
354 if (unlikely(curr_node->priority == zone->priority)) in __mlx4_alloc_from_zone()
359 struct mlx4_zone_entry *it = curr_node; in __mlx4_alloc_from_zone()
373 struct mlx4_zone_entry *it = curr_node; in __mlx4_alloc_from_zone()
379 if (unlikely(it->priority != curr_node->priority)) in __mlx4_alloc_from_zone()
393 if (list_is_last(&curr_node->prio_list, &zone_alloc->prios)) in __mlx4_alloc_from_zone()
396 curr_node = list_first_entry(&curr_node->prio_list, in __mlx4_alloc_from_zone()
397 typeof(*curr_node), in __mlx4_alloc_from_zone()
400 list_for_each_entry_from(curr_node, &zone_alloc->entries, list) { in __mlx4_alloc_from_zone()
401 res = mlx4_bitmap_alloc_range(curr_node->bitmap, count, in __mlx4_alloc_from_zone()
404 res += curr_node->offset; in __mlx4_alloc_from_zone()
405 uid = curr_node->uid; in __mlx4_alloc_from_zone()