Lines Matching full:an
52 * xa_mk_value() - Create an XArray entry from an integer.
56 * Return: An entry suitable for storing in the XArray.
65 * xa_to_value() - Get value stored in an XArray entry.
77 * xa_is_value() - Determine if an entry is a value.
89 * xa_tag_pointer() - Create an XArray entry for a tagged pointer.
99 * Return: An XArray entry.
107 * xa_untag_pointer() - Turn an XArray entry into a plain pointer.
122 * xa_pointer_tag() - Get the tag stored in an XArray entry.
137 * xa_mk_internal() - Create an internal entry.
138 * @v: Value to turn into an internal entry.
147 * Return: An XArray internal entry corresponding to this value.
155 * xa_to_internal() - Extract the value from an internal entry.
167 * xa_is_internal() - Is the entry an internal entry?
171 * Return: %true if the entry is an internal entry.
195 * xa_is_err() - Report whether an XArray operation returned an error
196 * @entry: Result from calling an XArray function
198 * If an XArray operation cannot complete an operation, it will return
199 * a special value indicating an error. This function tells you
200 * whether an error occurred; xa_err() tells you which error occurred.
203 * Return: %true if the entry indicates an error.
212 * xa_err() - Turn an XArray result into an errno.
213 * @entry: Result from calling an XArray function.
215 * If an XArray operation cannot complete an operation, it will return
216 * a special pointer value which encodes an errno. This function extracts
218 * represent an errno.
280 /* ALLOC is for a normal 0-based alloc. ALLOC1 is for an 1-based alloc */
298 * to an @xa_node.
314 * DEFINE_XARRAY_FLAGS() - Define an XArray with custom flags.
319 * and initialises an empty XArray with the chosen name and flags. It is
327 * DEFINE_XARRAY() - Define an XArray.
331 * and initialises an empty XArray with the chosen name. It is equivalent
338 * DEFINE_XARRAY_ALLOC() - Define an XArray which allocates IDs starting at 0.
347 * DEFINE_XARRAY_ALLOC1() - Define an XArray which allocates IDs starting at 1.
372 * xa_init_flags() - Initialise an empty XArray with flags.
376 * If you need to initialise an XArray with special flags (eg you need
390 * xa_init() - Initialise an empty XArray.
393 * An empty XArray is full of NULL entries.
403 * xa_empty() - Determine if an array has any present entries.
428 * xa_for_each_range() - Iterate over a portion of an XArray.
458 * xa_for_each_start() - Iterate over a portion of an XArray.
484 * xa_for_each() - Iterate over present entries in an XArray.
508 * xa_for_each_marked() - Iterate over marked entries in an XArray.
587 * Return: The old entry at this index or xa_err() if an error happened.
614 * Return: The old entry at this index or xa_err() if an error happened.
678 * xa_cmpxchg() - Conditionally replace an entry in the XArray.
690 * Return: The old value at this index or xa_err() if an error happened.
706 * xa_cmpxchg_bh() - Conditionally replace an entry in the XArray.
718 * Return: The old value at this index or xa_err() if an error happened.
734 * xa_cmpxchg_irq() - Conditionally replace an entry in the XArray.
746 * Return: The old value at this index or xa_err() if an error happened.
859 * Finds an empty entry in @xa between @limit.min and @limit.max,
861 * that index. A concurrent lookup will not see an uninitialised @id.
863 * Must only be operated on an xarray initialized with flag XA_FLAGS_ALLOC set
892 * Finds an empty entry in @xa between @limit.min and @limit.max,
894 * that index. A concurrent lookup will not see an uninitialised @id.
896 * Must only be operated on an xarray initialized with flag XA_FLAGS_ALLOC set
925 * Finds an empty entry in @xa between @limit.min and @limit.max,
927 * that index. A concurrent lookup will not see an uninitialised @id.
929 * Must only be operated on an xarray initialized with flag XA_FLAGS_ALLOC set
959 * Finds an empty entry in @xa between @limit.min and @limit.max,
961 * that index. A concurrent lookup will not see an uninitialised @id.
962 * The search for an empty entry will start at @next and will wrap
965 * Must only be operated on an xarray initialized with flag XA_FLAGS_ALLOC set
996 * Finds an empty entry in @xa between @limit.min and @limit.max,
998 * that index. A concurrent lookup will not see an uninitialised @id.
999 * The search for an empty entry will start at @next and will wrap
1002 * Must only be operated on an xarray initialized with flag XA_FLAGS_ALLOC set
1033 * Finds an empty entry in @xa between @limit.min and @limit.max,
1035 * that index. A concurrent lookup will not see an uninitialised @id.
1036 * The search for an empty entry will start at @next and will wrap
1039 * Must only be operated on an xarray initialized with flag XA_FLAGS_ALLOC set
1067 * Ensures there is somewhere to store an entry at @index in the array.
1109 * An interrupt-disabling version of xa_reserve().
1344 * position in the tree of nodes for this operation. If an error occurs
1345 * during an operation, it is set to an %XAS_ERROR value. If we run off the
1362 * We encode errnos in the xas->xa_node. If an error has happened, we need to
1383 * XA_STATE() - Declare an XArray operation state.
1388 * Declare and initialise an xa_state on the stack.
1394 * XA_STATE_ORDER() - Declare an XArray operation state.
1400 * Declare and initialise an xa_state on the stack. This variant of
1424 * xas_error() - Return an errno stored in the xa_state.
1435 * xas_set_err() - Note an error in the xa_state.
1441 * to clear the error from an xa_state, use xas_reset().
1487 /* True if the node represents RESTART or an error */
1500 * xas_reset() - Reset an XArray operation state.
1519 * The advanced functions may sometimes return an internal entry, such as
1582 * xas_reload() - Refetch an entry from the xarray.
1590 * The caller guarantees that @xas is still valid. If it may be in an
1622 * to move to an adjacent index.
1638 * want to move to an index which is not part of this entry.
1673 * The XArray can notify a caller after it has updated an xa_node.
1692 * xas_next_entry() is an inline function to optimise xarray traversal for
1749 * xas_next_marked() is an inline function to optimise xarray traversal for
1786 * xas_for_each() - Iterate over a range of an XArray.
1803 * xas_for_each_marked() - Iterate over a range of an XArray.
1821 * xas_for_each_conflict() - Iterate over a range of an XArray.
1829 * may also call xa_set_err() to exit the loop while setting an error
1842 * If the @xas was in an error state, it will remain in an error state
1851 * Return: The entry at the new index. This may be %NULL or an internal
1871 * If the @xas was in an error state, it will remain in an error state
1880 * Return: The entry at the new index. This may be %NULL or an internal