Lines Matching refs:head
5 static inline void btree_init_mempool128(struct btree_head128 *head, in btree_init_mempool128() argument
8 btree_init_mempool(&head->h, mempool); in btree_init_mempool128()
11 static inline int btree_init128(struct btree_head128 *head) in btree_init128() argument
13 return btree_init(&head->h); in btree_init128()
16 static inline void btree_destroy128(struct btree_head128 *head) in btree_destroy128() argument
18 btree_destroy(&head->h); in btree_destroy128()
21 static inline void *btree_lookup128(struct btree_head128 *head, u64 k1, u64 k2) in btree_lookup128() argument
24 return btree_lookup(&head->h, &btree_geo128, (unsigned long *)&key); in btree_lookup128()
27 static inline void *btree_get_prev128(struct btree_head128 *head, in btree_get_prev128() argument
33 val = btree_get_prev(&head->h, &btree_geo128, in btree_get_prev128()
40 static inline int btree_insert128(struct btree_head128 *head, u64 k1, u64 k2, in btree_insert128() argument
44 return btree_insert(&head->h, &btree_geo128, in btree_insert128()
48 static inline int btree_update128(struct btree_head128 *head, u64 k1, u64 k2, in btree_update128() argument
52 return btree_update(&head->h, &btree_geo128, in btree_update128()
56 static inline void *btree_remove128(struct btree_head128 *head, u64 k1, u64 k2) in btree_remove128() argument
59 return btree_remove(&head->h, &btree_geo128, (unsigned long *)&key); in btree_remove128()
62 static inline void *btree_last128(struct btree_head128 *head, u64 *k1, u64 *k2) in btree_last128() argument
67 val = btree_last(&head->h, &btree_geo128, (unsigned long *)&key[0]); in btree_last128()
89 static inline size_t btree_visitor128(struct btree_head128 *head, in btree_visitor128() argument
93 return btree_visitor(&head->h, &btree_geo128, opaque, in btree_visitor128()
97 static inline size_t btree_grim_visitor128(struct btree_head128 *head, in btree_grim_visitor128() argument
101 return btree_grim_visitor(&head->h, &btree_geo128, opaque, in btree_grim_visitor128()
105 #define btree_for_each_safe128(head, k1, k2, val) \ argument
106 for (val = btree_last128(head, &k1, &k2); \
108 val = btree_get_prev128(head, &k1, &k2))