Lines Matching full:hd
155 struct hash_data *hd = arg; in hash_find_list_cb() local
159 if (hd->hd_hash->h_cmp(hd->hd_key, node) == 0) { in hash_find_list_cb()
160 if ((cbrc = hd->hd_fun(node, hd->hd_private)) < 0) in hash_find_list_cb()
173 struct hash_data hd; in hash_find_iter() local
175 hd.hd_hash = hash; in hash_find_iter()
176 hd.hd_fun = fun; in hash_find_iter()
177 hd.hd_key = key; in hash_find_iter()
178 hd.hd_private = private; in hash_find_iter()
181 &hd)); in hash_find_iter()
188 struct hash_data *hd = arg; in hash_find_first_cb() local
189 if (hd->hd_hash->h_cmp(hd->hd_key, node) == 0) { in hash_find_first_cb()
190 hd->hd_ret = node; in hash_find_first_cb()
201 struct hash_data hd; in hash_find() local
203 hd.hd_hash = hash; in hash_find()
204 hd.hd_fun = hash_find_first_cb; in hash_find()
205 hd.hd_key = key; in hash_find()
207 ret = hash_match(hash, key, hash_find_first_cb, &hd); in hash_find()
209 *value = hd.hd_ret; in hash_find()