Lines Matching refs:id
65 util_idalloc_free(struct util_idalloc *buf, unsigned id);
68 util_idalloc_reserve(struct util_idalloc *buf, unsigned id);
71 util_idalloc_exists(struct util_idalloc *buf, unsigned id)
73 return id / 32 < buf->num_elements &&
74 buf->data[id / 32] & BITFIELD_BIT(id % 32);
77 #define util_idalloc_foreach(buf, id) \
78 for (uint32_t i = 0, mask = (buf)->num_elements ? (buf)->data[0] : 0, id, \
82 if ((id = i * 32 + u_bit_scan(&mask)), true)
106 util_idalloc_mt_free(struct util_idalloc_mt *buf, unsigned id);