• Home
  • Raw
  • Download

Lines Matching refs:xa_node

1162 struct xa_node {  struct
1167 struct xa_node __rcu *parent; /* NULL at top of tree */ argument
1181 void xa_dump_node(const struct xa_node *); argument
1217 const struct xa_node *node, unsigned int offset) in xa_entry()
1226 const struct xa_node *node, unsigned int offset) in xa_entry_locked()
1234 static inline struct xa_node *xa_parent(const struct xarray *xa, in xa_parent()
1235 const struct xa_node *node) in xa_parent()
1242 static inline struct xa_node *xa_parent_locked(const struct xarray *xa, in xa_parent_locked()
1243 const struct xa_node *node) in xa_parent_locked()
1250 static inline void *xa_mk_node(const struct xa_node *node) in xa_mk_node()
1256 static inline struct xa_node *xa_to_node(const void *entry) in xa_to_node()
1258 return (struct xa_node *)((unsigned long)entry - 2); in xa_to_node()
1327 typedef void (*xa_update_node_t)(struct xa_node *node);
1329 void xa_delete_node(struct xa_node *, xa_update_node_t);
1355 struct xa_node *xa_node; member
1356 struct xa_node *xa_alloc;
1365 #define XA_ERROR(errno) ((struct xa_node *)(((unsigned long)errno << 2) | 2UL))
1366 #define XAS_BOUNDS ((struct xa_node *)1UL)
1367 #define XAS_RESTART ((struct xa_node *)3UL)
1376 .xa_node = XAS_RESTART, \
1431 return xa_err(xas->xa_node); in xas_error()
1445 xas->xa_node = XA_ERROR(err); in xas_set_err()
1456 return (unsigned long)xas->xa_node & 3; in xas_invalid()
1478 return xas_valid(xas) && xas->xa_node; in xas_is_node()
1482 static inline bool xas_not_node(struct xa_node *node) in xas_not_node()
1488 static inline bool xas_frozen(struct xa_node *node) in xas_frozen()
1494 static inline bool xas_top(struct xa_node *node) in xas_top()
1511 xas->xa_node = XAS_RESTART; in xas_reset()
1597 struct xa_node *node = xas->xa_node; in xas_reload()
1627 xas->xa_node = XAS_RESTART; in xas_set()
1642 unsigned char shift = xas_is_node(xas) ? xas->xa_node->shift : 0; in xas_advance()
1661 xas->xa_node = XAS_RESTART; in xas_set_order()
1700 struct xa_node *node = xas->xa_node; in xas_next_entry()
1726 unsigned long *addr = xas->xa_node->marks[(__force unsigned)mark]; in xas_find_chunk()
1758 struct xa_node *node = xas->xa_node; in xas_next_marked()
1856 struct xa_node *node = xas->xa_node; in xas_prev()
1885 struct xa_node *node = xas->xa_node; in xas_next()