Searched refs:new_num_elements (Results 1 – 2 of 2) sorted by relevance
40 util_idalloc_resize(struct util_idalloc *buf, unsigned new_num_elements) in util_idalloc_resize() argument42 if (new_num_elements > buf->num_elements) { in util_idalloc_resize()43 buf->data = realloc(buf->data, new_num_elements * sizeof(*buf->data)); in util_idalloc_resize()45 (new_num_elements - buf->num_elements) * sizeof(*buf->data)); in util_idalloc_resize()46 buf->num_elements = new_num_elements; in util_idalloc_resize()
2348 unsigned new_num_elements = desc->num_elements * 2; in si_get_first_free_bindless_slot() local2351 REALLOC(desc->list, desc->num_elements * slot_size, new_num_elements * slot_size); in si_get_first_free_bindless_slot()2352 desc->num_elements = new_num_elements; in si_get_first_free_bindless_slot()2353 desc->num_active_slots = new_num_elements; in si_get_first_free_bindless_slot()