Home
last modified time | relevance | path

Searched refs:pnext_index (Results 1 – 1 of 1) sorted by relevance

/freebsd/sys/compat/linuxkpi/common/src/
H A Dlinux_xarray.c179 uint32_t *pnext_index, gfp_t gfp) in __xa_alloc_cyclic() argument
192 *pnext_index = (xa->flags & XA_FLAGS_ALLOC1) != 0 ? 1 : 0; in __xa_alloc_cyclic()
196 retval = radix_tree_insert(&xa->root, *pnext_index, ptr); in __xa_alloc_cyclic()
200 if (unlikely(*pnext_index == mask) && !timeout--) { in __xa_alloc_cyclic()
204 (*pnext_index)++; in __xa_alloc_cyclic()
205 (*pnext_index) &= mask; in __xa_alloc_cyclic()
206 if (*pnext_index == 0 && (xa->flags & XA_FLAGS_ALLOC1) != 0) in __xa_alloc_cyclic()
207 (*pnext_index)++; in __xa_alloc_cyclic()
218 *pindex = *pnext_index; in __xa_alloc_cyclic()
225 uint32_t *pnext_index, gfp_t gfp) in xa_alloc_cyclic() argument
[all …]