Lines Matching refs:head

14 static inline void BTREE_FN(init_mempool)(BTREE_TYPE_HEAD *head,  in BTREE_FN()
17 btree_init_mempool(&head->h, mempool); in BTREE_FN()
20 static inline int BTREE_FN(init)(BTREE_TYPE_HEAD *head) in BTREE_FN()
22 return btree_init(&head->h); in BTREE_FN()
25 static inline void BTREE_FN(destroy)(BTREE_TYPE_HEAD *head) in BTREE_FN()
27 btree_destroy(&head->h); in BTREE_FN()
38 static inline void *BTREE_FN(lookup)(BTREE_TYPE_HEAD *head, BTREE_KEYTYPE key) in BTREE_FN()
41 return btree_lookup(&head->h, BTREE_TYPE_GEO, &_key); in BTREE_FN()
44 static inline int BTREE_FN(insert)(BTREE_TYPE_HEAD *head, BTREE_KEYTYPE key, in BTREE_FN()
48 return btree_insert(&head->h, BTREE_TYPE_GEO, &_key, val, gfp); in BTREE_FN()
51 static inline int BTREE_FN(update)(BTREE_TYPE_HEAD *head, BTREE_KEYTYPE key, in BTREE_FN()
55 return btree_update(&head->h, BTREE_TYPE_GEO, &_key, val); in BTREE_FN()
58 static inline void *BTREE_FN(remove)(BTREE_TYPE_HEAD *head, BTREE_KEYTYPE key) in BTREE_FN()
61 return btree_remove(&head->h, BTREE_TYPE_GEO, &_key); in BTREE_FN()
64 static inline void *BTREE_FN(last)(BTREE_TYPE_HEAD *head, BTREE_KEYTYPE *key) in BTREE_FN()
67 void *val = btree_last(&head->h, BTREE_TYPE_GEO, &_key); in BTREE_FN()
73 static inline void *BTREE_FN(get_prev)(BTREE_TYPE_HEAD *head, BTREE_KEYTYPE *key) in BTREE_FN()
76 void *val = btree_get_prev(&head->h, BTREE_TYPE_GEO, &_key); in BTREE_FN()
82 static inline void *BTREE_FN(lookup)(BTREE_TYPE_HEAD *head, BTREE_KEYTYPE key) in BTREE_FN()
84 return btree_lookup(&head->h, BTREE_TYPE_GEO, (unsigned long *)&key); in BTREE_FN()
87 static inline int BTREE_FN(insert)(BTREE_TYPE_HEAD *head, BTREE_KEYTYPE key, in BTREE_FN()
90 return btree_insert(&head->h, BTREE_TYPE_GEO, (unsigned long *)&key, in BTREE_FN()
94 static inline int BTREE_FN(update)(BTREE_TYPE_HEAD *head, BTREE_KEYTYPE key, in BTREE_FN()
97 return btree_update(&head->h, BTREE_TYPE_GEO, (unsigned long *)&key, val); in BTREE_FN()
100 static inline void *BTREE_FN(remove)(BTREE_TYPE_HEAD *head, BTREE_KEYTYPE key) in BTREE_FN()
102 return btree_remove(&head->h, BTREE_TYPE_GEO, (unsigned long *)&key); in BTREE_FN()
105 static inline void *BTREE_FN(last)(BTREE_TYPE_HEAD *head, BTREE_KEYTYPE *key) in BTREE_FN()
107 return btree_last(&head->h, BTREE_TYPE_GEO, (unsigned long *)key); in BTREE_FN()
110 static inline void *BTREE_FN(get_prev)(BTREE_TYPE_HEAD *head, BTREE_KEYTYPE *key) in BTREE_FN()
112 return btree_get_prev(&head->h, BTREE_TYPE_GEO, (unsigned long *)key); in BTREE_FN()
122 static inline size_t BTREE_FN(visitor)(BTREE_TYPE_HEAD *head, in BTREE_FN()
126 return btree_visitor(&head->h, BTREE_TYPE_GEO, opaque, in BTREE_FN()
130 static inline size_t BTREE_FN(grim_visitor)(BTREE_TYPE_HEAD *head, in BTREE_FN()
134 return btree_grim_visitor(&head->h, BTREE_TYPE_GEO, opaque, in BTREE_FN()