Lines Matching defs:idr
19 struct idr { struct
20 struct radix_tree_root idr_rt; argument
21 unsigned int idr_base; argument
22 unsigned int idr_next; argument
66 static inline unsigned int idr_get_cursor(const struct idr *idr) in idr_get_cursor()
79 static inline void idr_set_cursor(struct idr *idr, unsigned int val) in idr_set_cursor()
101 #define idr_lock(idr) xa_lock(&(idr)->idr_rt) argument
102 #define idr_unlock(idr) xa_unlock(&(idr)->idr_rt) argument
103 #define idr_lock_bh(idr) xa_lock_bh(&(idr)->idr_rt) argument
104 #define idr_unlock_bh(idr) xa_unlock_bh(&(idr)->idr_rt) argument
105 #define idr_lock_irq(idr) xa_lock_irq(&(idr)->idr_rt) argument
106 #define idr_unlock_irq(idr) xa_unlock_irq(&(idr)->idr_rt) argument
107 #define idr_lock_irqsave(idr, flags) \ argument
109 #define idr_unlock_irqrestore(idr, flags) \ argument
135 static inline void idr_init_base(struct idr *idr, int base) in idr_init_base()
149 static inline void idr_init(struct idr *idr) in idr_init()
160 static inline bool idr_is_empty(const struct idr *idr) in idr_is_empty()
187 #define idr_for_each_entry(idr, entry, id) \ argument
201 #define idr_for_each_entry_ul(idr, entry, tmp, id) \ argument
214 #define idr_for_each_entry_continue(idr, entry, id) \ argument
230 #define idr_for_each_entry_continue_ul(idr, entry, tmp, id) \ argument