Lines Matching refs:xa_node

1087 struct xa_node {  struct
1092 struct xa_node __rcu *parent; /* NULL at top of tree */ argument
1106 void xa_dump_node(const struct xa_node *); argument
1142 const struct xa_node *node, unsigned int offset) in xa_entry()
1151 const struct xa_node *node, unsigned int offset) in xa_entry_locked()
1159 static inline struct xa_node *xa_parent(const struct xarray *xa, in xa_parent()
1160 const struct xa_node *node) in xa_parent()
1167 static inline struct xa_node *xa_parent_locked(const struct xarray *xa, in xa_parent_locked()
1168 const struct xa_node *node) in xa_parent_locked()
1175 static inline void *xa_mk_node(const struct xa_node *node) in xa_mk_node()
1181 static inline struct xa_node *xa_to_node(const void *entry) in xa_to_node()
1183 return (struct xa_node *)((unsigned long)entry - 2); in xa_to_node()
1252 typedef void (*xa_update_node_t)(struct xa_node *node);
1278 struct xa_node *xa_node; member
1279 struct xa_node *xa_alloc;
1287 #define XA_ERROR(errno) ((struct xa_node *)(((unsigned long)errno << 2) | 2UL))
1288 #define XAS_BOUNDS ((struct xa_node *)1UL)
1289 #define XAS_RESTART ((struct xa_node *)3UL)
1298 .xa_node = XAS_RESTART, \
1352 return xa_err(xas->xa_node); in xas_error()
1366 xas->xa_node = XA_ERROR(err); in xas_set_err()
1377 return (unsigned long)xas->xa_node & 3; in xas_invalid()
1399 return xas_valid(xas) && xas->xa_node; in xas_is_node()
1403 static inline bool xas_not_node(struct xa_node *node) in xas_not_node()
1409 static inline bool xas_frozen(struct xa_node *node) in xas_frozen()
1415 static inline bool xas_top(struct xa_node *node) in xas_top()
1432 xas->xa_node = XAS_RESTART; in xas_reset()
1489 struct xa_node *node = xas->xa_node; in xas_reload()
1508 xas->xa_node = XAS_RESTART; in xas_set()
1524 xas->xa_node = XAS_RESTART; in xas_set_order()
1557 struct xa_node *node = xas->xa_node; in xas_next_entry()
1583 unsigned long *addr = xas->xa_node->marks[(__force unsigned)mark]; in xas_find_chunk()
1615 struct xa_node *node = xas->xa_node; in xas_next_marked()
1710 struct xa_node *node = xas->xa_node; in xas_prev()
1739 struct xa_node *node = xas->xa_node; in xas_next()