Lines Matching refs:hd
151 hash_find_list_cb(void *node, struct hash_data *hd) in hash_find_list_cb() argument
156 if (hd->hd_hash->h_cmp(hd->hd_key, node) == 0) { in hash_find_list_cb()
157 if ((cbrc = hd->hd_fun(node, hd->hd_private)) < 0) in hash_find_list_cb()
170 struct hash_data hd; in hash_find_iter() local
172 hd.hd_hash = hash; in hash_find_iter()
173 hd.hd_fun = fun; in hash_find_iter()
174 hd.hd_key = key; in hash_find_iter()
175 hd.hd_private = private; in hash_find_iter()
178 &hd)); in hash_find_iter()
183 hash_find_first_cb(void *node, struct hash_data *hd) in hash_find_first_cb() argument
185 if (hd->hd_hash->h_cmp(hd->hd_key, node) == 0) { in hash_find_first_cb()
186 hd->hd_ret = node; in hash_find_first_cb()
197 struct hash_data hd; in hash_find() local
199 hd.hd_hash = hash; in hash_find()
200 hd.hd_fun = hash_find_first_cb; in hash_find()
201 hd.hd_key = key; in hash_find()
203 ret = hash_match(hash, key, (int (*)())hash_find_first_cb, &hd); in hash_find()
205 *value = hd.hd_ret; in hash_find()