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