Home
last modified time | relevance | path

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

/Linux-v5.4/include/linux/
Dxarray.h1271 struct xa_state { struct
1312 struct xa_state name = __XA_STATE(array, index, 0, 0)
1326 struct xa_state name = __XA_STATE(array, \
1350 static inline int xas_error(const struct xa_state *xas) in xas_error()
1364 static inline void xas_set_err(struct xa_state *xas, long err) in xas_set_err()
1375 static inline bool xas_invalid(const struct xa_state *xas) in xas_invalid()
1386 static inline bool xas_valid(const struct xa_state *xas) in xas_valid()
1397 static inline bool xas_is_node(const struct xa_state *xas) in xas_is_node()
1430 static inline void xas_reset(struct xa_state *xas) in xas_reset()
1447 static inline bool xas_retry(struct xa_state *xas, const void *entry) in xas_retry()
[all …]
/Linux-v5.4/lib/
Dxarray.c35 static inline void xas_lock_type(struct xa_state *xas, unsigned int lock_type) in xas_lock_type()
45 static inline void xas_unlock_type(struct xa_state *xas, unsigned int lock_type) in xas_unlock_type()
123 static void xas_squash_marks(const struct xa_state *xas) in xas_squash_marks()
146 static void xas_set_offset(struct xa_state *xas) in xas_set_offset()
152 static void xas_move_index(struct xa_state *xas, unsigned long offset) in xas_move_index()
159 static void xas_advance(struct xa_state *xas) in xas_advance()
165 static void *set_bounds(struct xa_state *xas) in set_bounds()
178 static void *xas_start(struct xa_state *xas) in xas_start()
200 static void *xas_descend(struct xa_state *xas, struct xa_node *node) in xas_descend()
230 void *xas_load(struct xa_state *xas) in xas_load()
[all …]
/Linux-v5.4/Documentation/core-api/
Dxarray.rst302 The advanced API is based around the xa_state. This is an opaque data
304 macro. This macro initialises the xa_state ready to start walking
309 The xa_state is also used to store errors. You can call
311 the xa_state is in an error state before proceeding, so there's no need
318 If the xa_state is holding an ``ENOMEM`` error, calling xas_nomem()
320 cache it in the xa_state for the next attempt. The idea is that you take
347 - An XArray node. May be visible when using a multi-index xa_state.
375 to store every entry in a range. It will set ENOMEM in the xa_state if
385 The xas_load() will walk the xa_state as close to the entry
386 as it can. If you know the xa_state has already been walked to the
[all …]
/Linux-v5.4/fs/
Ddax.c147 static wait_queue_head_t *dax_entry_waitqueue(struct xa_state *xas, in dax_entry_waitqueue()
185 static void dax_wake_entry(struct xa_state *xas, void *entry, bool wake_all) in dax_wake_entry()
212 static void *get_unlocked_entry(struct xa_state *xas, unsigned int order) in get_unlocked_entry()
246 static void wait_entry_unlocked(struct xa_state *xas, void *entry) in wait_entry_unlocked()
267 static void put_unlocked_entry(struct xa_state *xas, void *entry) in put_unlocked_entry()
279 static void dax_unlock_entry(struct xa_state *xas, void *entry) in dax_unlock_entry()
295 static void *dax_lock_entry(struct xa_state *xas, void *entry) in dax_lock_entry()
476 static void *grab_mapping_entry(struct xa_state *xas, in grab_mapping_entry()
716 static void *dax_insert_entry(struct xa_state *xas, in dax_insert_entry()
849 static int dax_writeback_one(struct xa_state *xas, struct dax_device *dax_dev, in dax_writeback_one()
[all …]
/Linux-v5.4/mm/
Dmemfd.c31 static void memfd_tag_pins(struct xa_state *xas) in memfd_tag_pins()