Lines Matching refs:ids
76 suballocator->ids = skc_runtime_host_perm_alloc(runtime, in skc_suballocator_create()
78 sizeof(*suballocator->ids) * subbufs); in skc_suballocator_create()
80 suballocator->ids[ii] = ii; in skc_suballocator_create()
98 skc_runtime_host_perm_free(runtime,suballocator->ids); in skc_suballocator_dispose()
139 skc_subbuf_id_t * const ids = suballocator->ids; in skc_suballocator_subbuf_alloc() local
148 skc_subbuf_id_t const avail_id = ids[avail_idx]; in skc_suballocator_subbuf_alloc()
173 skc_subbuf_id_t const last_id = ids[avail_rem]; in skc_suballocator_subbuf_alloc()
176 ids[avail_idx] = last_id; // move id in skc_suballocator_subbuf_alloc()
190 skc_subbuf_id_t const spare_id = ids[spare_idx]; in skc_suballocator_subbuf_alloc()
290 skc_subbuf_id_t const last_id = suballocator->ids[last_idx]; in skc_suballocator_subbuf_free()
293 suballocator->ids[next_idx] = last_id; in skc_suballocator_subbuf_free()
303 suballocator->ids[spare_idx + 0] = subbuf_id; in skc_suballocator_subbuf_free()
304 suballocator->ids[spare_idx + 1] = next_id; in skc_suballocator_subbuf_free()
319 suballocator->ids[suballocator->count - ++suballocator->rem.spare] = subbuf_id; in skc_suballocator_subbuf_free()
340 suballocator->ids[suballocator->count - ++suballocator->rem.spare] = subbuf_id; in skc_suballocator_subbuf_free()
353 suballocator->ids[avail_idx] = subbuf_id; in skc_suballocator_subbuf_free()