/linux-4.1.27/drivers/staging/lustre/lustre/libcfs/ |
H A D | hash.c | 262 struct hlist_node *hnode) cfs_hash_hh_hnode_add() 264 hlist_add_head(hnode, cfs_hash_hh_hhead(hs, bd)); cfs_hash_hh_hnode_add() 270 struct hlist_node *hnode) cfs_hash_hh_hnode_del() 272 hlist_del_init(hnode); cfs_hash_hh_hnode_del() 302 struct hlist_node *hnode) cfs_hash_hd_hnode_add() 306 hlist_add_head(hnode, &hh->hd_head); cfs_hash_hd_hnode_add() 312 struct hlist_node *hnode) cfs_hash_hd_hnode_del() 316 hlist_del_init(hnode); cfs_hash_hd_hnode_del() 346 struct hlist_node *hnode) cfs_hash_dh_hnode_add() 352 hlist_add_behind(hnode, dh->dh_tail); cfs_hash_dh_hnode_add() 354 hlist_add_head(hnode, &dh->dh_head); cfs_hash_dh_hnode_add() 355 dh->dh_tail = hnode; cfs_hash_dh_hnode_add() 401 struct hlist_node *hnode) cfs_hash_dd_hnode_add() 407 hlist_add_behind(hnode, dh->dd_tail); cfs_hash_dd_hnode_add() 409 hlist_add_head(hnode, &dh->dd_head); cfs_hash_dd_hnode_add() 410 dh->dd_tail = hnode; cfs_hash_dd_hnode_add() 521 struct hlist_node *hnode) cfs_hash_bd_add_locked() 525 rc = hs->hs_hops->hop_hnode_add(hs, bd, hnode); cfs_hash_bd_add_locked() 535 cfs_hash_get(hs, hnode); cfs_hash_bd_add_locked() 541 struct hlist_node *hnode) cfs_hash_bd_del_locked() 543 hs->hs_hops->hop_hnode_del(hs, bd, hnode); cfs_hash_bd_del_locked() 556 cfs_hash_put_locked(hs, hnode); cfs_hash_bd_del_locked() 562 struct cfs_hash_bd *bd_new, struct hlist_node *hnode) cfs_hash_bd_move_locked() 573 hs->hs_hops->hop_hnode_del(hs, bd_old, hnode); cfs_hash_bd_move_locked() 574 rc = hs->hs_hops->hop_hnode_add(hs, bd_new, hnode); cfs_hash_bd_move_locked() 619 const void *key, struct hlist_node *hnode, cfs_hash_bd_lookup_intent() 630 match = intent_add ? NULL : hnode; hlist_for_each() 653 LASSERT(hnode != NULL); 654 cfs_hash_bd_add_locked(hs, bd, hnode); 655 return hnode; 676 const void *key, struct hlist_node *hnode, cfs_hash_bd_findadd_locked() 679 return cfs_hash_bd_lookup_intent(hs, bd, key, hnode, cfs_hash_bd_findadd_locked() 687 const void *key, struct hlist_node *hnode) cfs_hash_bd_finddel_locked() 689 /* hnode can be NULL, we find the first item with @key */ cfs_hash_bd_finddel_locked() 690 return cfs_hash_bd_lookup_intent(hs, bd, key, hnode, cfs_hash_bd_finddel_locked() 752 struct hlist_node *hnode, int noref) cfs_hash_multi_bd_findadd_locked() 758 LASSERT(hnode != NULL); cfs_hash_multi_bd_findadd_locked() 769 cfs_hash_bd_add_locked(hs, &bds[0], hnode); 774 cfs_hash_bd_add_locked(hs, &mybd, hnode); 777 return hnode; 783 struct hlist_node *hnode) cfs_hash_multi_bd_finddel_locked() 789 ehnode = cfs_hash_bd_lookup_intent(hs, &bds[i], key, hnode, cfs_hash_for_each_bd() 868 const void *key, struct hlist_node *hnode, cfs_hash_dual_bd_findadd_locked() 872 hnode, noref); cfs_hash_dual_bd_findadd_locked() 878 const void *key, struct hlist_node *hnode) cfs_hash_dual_bd_finddel_locked() 880 return cfs_hash_multi_bd_finddel_locked(hs, bds, 2, key, hnode); cfs_hash_dual_bd_finddel_locked() 1096 struct hlist_node *hnode; cfs_hash_destroy() local 1126 hlist_for_each_safe(hnode, pos, hhead) { hlist_for_each_safe() 1133 cfs_hash_bd_del_locked(hs, &bd, hnode); hlist_for_each_safe() 1134 cfs_hash_exit(hs, hnode); hlist_for_each_safe() 1211 * Add item @hnode to libcfs hash @hs using @key. The registered 1215 cfs_hash_add(struct cfs_hash *hs, const void *key, struct hlist_node *hnode) cfs_hash_add() argument 1220 LASSERT(hlist_unhashed(hnode)); cfs_hash_add() 1225 cfs_hash_key_validate(hs, key, hnode); cfs_hash_add() 1226 cfs_hash_bd_add_locked(hs, &bd, hnode); cfs_hash_add() 1239 struct hlist_node *hnode, int noref) cfs_hash_find_or_add() 1245 LASSERT(hlist_unhashed(hnode)); cfs_hash_find_or_add() 1250 cfs_hash_key_validate(hs, key, hnode); cfs_hash_find_or_add() 1252 hnode, noref); cfs_hash_find_or_add() 1255 if (ehnode == hnode) /* new item added */ cfs_hash_find_or_add() 1265 * Add item @hnode to libcfs hash @hs using @key. The registered 1270 cfs_hash_add_unique(struct cfs_hash *hs, const void *key, struct hlist_node *hnode) cfs_hash_add_unique() argument 1272 return cfs_hash_find_or_add(hs, key, hnode, 1) != hnode ? cfs_hash_add_unique() 1278 * Add item @hnode to libcfs hash @hs using @key. If this @key 1285 struct hlist_node *hnode) cfs_hash_findadd_unique() 1287 hnode = cfs_hash_find_or_add(hs, key, hnode, 0); cfs_hash_findadd_unique() 1289 return cfs_hash_object(hs, hnode); cfs_hash_findadd_unique() 1294 * Delete item @hnode from the libcfs hash @hs using @key. The @key 1301 cfs_hash_del(struct cfs_hash *hs, const void *key, struct hlist_node *hnode) cfs_hash_del() argument 1310 /* NB: do nothing if @hnode is not in hash table */ cfs_hash_del() 1311 if (hnode == NULL || !hlist_unhashed(hnode)) { cfs_hash_del() 1312 if (bds[1].bd_bucket == NULL && hnode != NULL) { cfs_hash_del() 1313 cfs_hash_bd_del_locked(hs, &bds[0], hnode); cfs_hash_del() 1315 hnode = cfs_hash_dual_bd_finddel_locked(hs, bds, cfs_hash_del() 1316 key, hnode); cfs_hash_del() 1320 if (hnode != NULL) { cfs_hash_del() 1321 obj = cfs_hash_object(hs, hnode); cfs_hash_del() 1359 struct hlist_node *hnode; cfs_hash_lookup() local 1365 hnode = cfs_hash_dual_bd_lookup_locked(hs, bds, key); cfs_hash_lookup() 1366 if (hnode != NULL) cfs_hash_lookup() 1367 obj = cfs_hash_object(hs, hnode); cfs_hash_lookup() 1434 struct hlist_node *hnode; cfs_hash_for_each_tight() local 1458 hlist_for_each_safe(hnode, pos, hhead) { hlist_for_each_safe() 1459 cfs_hash_bucket_validate(hs, &bd, hnode); hlist_for_each_safe() 1462 if (func(hs, &bd, hnode, data)) { hlist_for_each_safe() 1490 struct hlist_node *hnode, void *data) cfs_hash_cond_del_locked() 1494 if (cond->func(cfs_hash_object(hs, hnode), cond->arg)) cfs_hash_cond_del_locked() 1495 cfs_hash_bd_del_locked(hs, bd, hnode); cfs_hash_cond_del_locked() 1533 struct hlist_node *hnode, void *data) cfs_hash_peek() 1576 struct hlist_node *hnode; cfs_hash_for_each_relax() local 1598 for (hnode = hhead->first; hnode != NULL;) { cfs_hash_for_each_relax() 1599 cfs_hash_bucket_validate(hs, &bd, hnode); cfs_hash_for_each_relax() 1600 cfs_hash_get(hs, hnode); cfs_hash_for_each_relax() 1604 rc = func(hs, &bd, hnode, data); cfs_hash_for_each_relax() 1606 cfs_hash_put(hs, hnode); cfs_hash_for_each_relax() 1613 tmp = hnode->next; cfs_hash_for_each_relax() 1614 cfs_hash_put_locked(hs, hnode); cfs_hash_for_each_relax() 1615 hnode = tmp; cfs_hash_for_each_relax() 1621 hnode = hnode->next; cfs_hash_for_each_relax() 1694 struct hlist_node *hnode; cfs_hash_hlist_for_each() local 1706 hlist_for_each(hnode, hhead) { hlist_for_each() 1707 if (func(hs, &bd, hnode, data)) hlist_for_each() 1727 struct hlist_node *hnode; cfs_hash_for_each_key() local 1738 hlist_for_each(hnode, hlist) { hlist_for_each() 1739 cfs_hash_bucket_validate(hs, &bds[i], hnode); hlist_for_each() 1741 if (cfs_hash_keycmp(hs, key, hnode)) { hlist_for_each() 1742 if (func(hs, &bds[i], hnode, data)) hlist_for_each() 1837 struct hlist_node *hnode; cfs_hash_rehash_bd() local 1844 hlist_for_each_safe(hnode, pos, hhead) { hlist_for_each_safe() 1845 key = cfs_hash_key(hs, hnode); hlist_for_each_safe() 1847 /* Validate hnode is in the correct bucket. */ hlist_for_each_safe() 1848 cfs_hash_bucket_validate(hs, old, hnode); hlist_for_each_safe() 1855 cfs_hash_bd_move_locked(hs, old, &new, hnode); hlist_for_each_safe() 1964 * Rehash the object referenced by @hnode in the libcfs hash @hs. The 1974 void *new_key, struct hlist_node *hnode) cfs_hash_rehash_key() 1980 LASSERT(!hlist_unhashed(hnode)); cfs_hash_rehash_key() 1997 cfs_hash_bd_move_locked(hs, &old_bds[0], &new_bd, hnode); cfs_hash_rehash_key() 1999 cfs_hash_dual_bd_finddel_locked(hs, old_bds, old_key, hnode); cfs_hash_rehash_key() 2000 cfs_hash_bd_add_locked(hs, &new_bd, hnode); cfs_hash_rehash_key() 2004 cfs_hash_keycpy(hs, new_key, hnode); cfs_hash_rehash_key() 261 cfs_hash_hh_hnode_add(struct cfs_hash *hs, struct cfs_hash_bd *bd, struct hlist_node *hnode) cfs_hash_hh_hnode_add() argument 269 cfs_hash_hh_hnode_del(struct cfs_hash *hs, struct cfs_hash_bd *bd, struct hlist_node *hnode) cfs_hash_hh_hnode_del() argument 301 cfs_hash_hd_hnode_add(struct cfs_hash *hs, struct cfs_hash_bd *bd, struct hlist_node *hnode) cfs_hash_hd_hnode_add() argument 311 cfs_hash_hd_hnode_del(struct cfs_hash *hs, struct cfs_hash_bd *bd, struct hlist_node *hnode) cfs_hash_hd_hnode_del() argument 345 cfs_hash_dh_hnode_add(struct cfs_hash *hs, struct cfs_hash_bd *bd, struct hlist_node *hnode) cfs_hash_dh_hnode_add() argument 400 cfs_hash_dd_hnode_add(struct cfs_hash *hs, struct cfs_hash_bd *bd, struct hlist_node *hnode) cfs_hash_dd_hnode_add() argument 520 cfs_hash_bd_add_locked(struct cfs_hash *hs, struct cfs_hash_bd *bd, struct hlist_node *hnode) cfs_hash_bd_add_locked() argument 540 cfs_hash_bd_del_locked(struct cfs_hash *hs, struct cfs_hash_bd *bd, struct hlist_node *hnode) cfs_hash_bd_del_locked() argument 561 cfs_hash_bd_move_locked(struct cfs_hash *hs, struct cfs_hash_bd *bd_old, struct cfs_hash_bd *bd_new, struct hlist_node *hnode) cfs_hash_bd_move_locked() argument 618 cfs_hash_bd_lookup_intent(struct cfs_hash *hs, struct cfs_hash_bd *bd, const void *key, struct hlist_node *hnode, cfs_hash_lookup_intent_t intent) cfs_hash_bd_lookup_intent() argument 675 cfs_hash_bd_findadd_locked(struct cfs_hash *hs, struct cfs_hash_bd *bd, const void *key, struct hlist_node *hnode, int noref) cfs_hash_bd_findadd_locked() argument 686 cfs_hash_bd_finddel_locked(struct cfs_hash *hs, struct cfs_hash_bd *bd, const void *key, struct hlist_node *hnode) cfs_hash_bd_finddel_locked() argument 750 cfs_hash_multi_bd_findadd_locked(struct cfs_hash *hs, struct cfs_hash_bd *bds, unsigned n, const void *key, struct hlist_node *hnode, int noref) cfs_hash_multi_bd_findadd_locked() argument 781 cfs_hash_multi_bd_finddel_locked(struct cfs_hash *hs, struct cfs_hash_bd *bds, unsigned n, const void *key, struct hlist_node *hnode) cfs_hash_multi_bd_finddel_locked() argument 867 cfs_hash_dual_bd_findadd_locked(struct cfs_hash *hs, struct cfs_hash_bd *bds, const void *key, struct hlist_node *hnode, int noref) cfs_hash_dual_bd_findadd_locked() argument 877 cfs_hash_dual_bd_finddel_locked(struct cfs_hash *hs, struct cfs_hash_bd *bds, const void *key, struct hlist_node *hnode) cfs_hash_dual_bd_finddel_locked() argument 1238 cfs_hash_find_or_add(struct cfs_hash *hs, const void *key, struct hlist_node *hnode, int noref) cfs_hash_find_or_add() argument 1284 cfs_hash_findadd_unique(struct cfs_hash *hs, const void *key, struct hlist_node *hnode) cfs_hash_findadd_unique() argument 1489 cfs_hash_cond_del_locked(struct cfs_hash *hs, struct cfs_hash_bd *bd, struct hlist_node *hnode, void *data) cfs_hash_cond_del_locked() argument 1532 cfs_hash_peek(struct cfs_hash *hs, struct cfs_hash_bd *bd, struct hlist_node *hnode, void *data) cfs_hash_peek() argument 1973 cfs_hash_rehash_key(struct cfs_hash *hs, const void *old_key, void *new_key, struct hlist_node *hnode) cfs_hash_rehash_key() argument
|
/linux-4.1.27/drivers/staging/lustre/include/linux/libcfs/ |
H A D | libcfs_hash.h | 291 /** add @hnode to hash-head of @bd */ 293 struct cfs_hash_bd *bd, struct hlist_node *hnode); 294 /** remove @hnode from hash-head of @bd */ 296 struct cfs_hash_bd *bd, struct hlist_node *hnode); 302 /** return key address of @hnode */ 303 void * (*hs_key)(struct hlist_node *hnode); 304 /** copy key from @hnode to @key */ 305 void (*hs_keycpy)(struct hlist_node *hnode, void *key); 307 * compare @key with key of @hnode 310 int (*hs_keycmp)(const void *key, struct hlist_node *hnode); 311 /** return object address of @hnode, i.e: container_of(...hnode) */ 312 void * (*hs_object)(struct hlist_node *hnode); 314 void (*hs_get)(struct cfs_hash *hs, struct hlist_node *hnode); 316 void (*hs_put)(struct cfs_hash *hs, struct hlist_node *hnode); 318 void (*hs_put_locked)(struct cfs_hash *hs, struct hlist_node *hnode); 319 /** it's called before removing of @hnode */ 320 void (*hs_exit)(struct cfs_hash *hs, struct hlist_node *hnode); 464 cfs_hash_key(struct cfs_hash *hs, struct hlist_node *hnode) cfs_hash_key() argument 466 return hs->hs_ops->hs_key(hnode); cfs_hash_key() 470 cfs_hash_keycpy(struct cfs_hash *hs, struct hlist_node *hnode, void *key) cfs_hash_keycpy() argument 473 hs->hs_ops->hs_keycpy(hnode, key); cfs_hash_keycpy() 480 cfs_hash_keycmp(struct cfs_hash *hs, const void *key, struct hlist_node *hnode) cfs_hash_keycmp() argument 482 return hs->hs_ops->hs_keycmp(key, hnode); cfs_hash_keycmp() 486 cfs_hash_object(struct cfs_hash *hs, struct hlist_node *hnode) cfs_hash_object() argument 488 return hs->hs_ops->hs_object(hnode); cfs_hash_object() 492 cfs_hash_get(struct cfs_hash *hs, struct hlist_node *hnode) cfs_hash_get() argument 494 return hs->hs_ops->hs_get(hs, hnode); cfs_hash_get() 498 cfs_hash_put_locked(struct cfs_hash *hs, struct hlist_node *hnode) cfs_hash_put_locked() argument 500 return hs->hs_ops->hs_put_locked(hs, hnode); cfs_hash_put_locked() 504 cfs_hash_put(struct cfs_hash *hs, struct hlist_node *hnode) cfs_hash_put() argument 506 return hs->hs_ops->hs_put(hs, hnode); cfs_hash_put() 510 cfs_hash_exit(struct cfs_hash *hs, struct hlist_node *hnode) cfs_hash_exit() argument 513 hs->hs_ops->hs_exit(hs, hnode); cfs_hash_exit() 610 struct hlist_node *hnode); 612 struct hlist_node *hnode); 614 struct cfs_hash_bd *bd_new, struct hlist_node *hnode); 636 struct hlist_node *hnode, 640 struct hlist_node *hnode); 663 struct hlist_node *hnode, 668 struct hlist_node *hnode); 681 struct hlist_node *hnode); 683 struct hlist_node *hnode); 685 struct hlist_node *hnode); 688 void *cfs_hash_del(struct cfs_hash *hs, const void *key, struct hlist_node *hnode); 721 void *new_key, struct hlist_node *hnode); 724 /* Validate hnode references the correct key */ 727 struct hlist_node *hnode) cfs_hash_key_validate() 729 LASSERT(cfs_hash_keycmp(hs, key, hnode)); cfs_hash_key_validate() 732 /* Validate hnode is in the correct bucket */ 735 struct hlist_node *hnode) cfs_hash_bucket_validate() 739 cfs_hash_dual_bd_get(hs, cfs_hash_key(hs, hnode), bds); cfs_hash_bucket_validate() 748 struct hlist_node *hnode) {} 752 struct hlist_node *hnode) {} 726 cfs_hash_key_validate(struct cfs_hash *hs, const void *key, struct hlist_node *hnode) cfs_hash_key_validate() argument 734 cfs_hash_bucket_validate(struct cfs_hash *hs, struct cfs_hash_bd *bd, struct hlist_node *hnode) cfs_hash_bucket_validate() argument 747 cfs_hash_key_validate(struct cfs_hash *hs, const void *key, struct hlist_node *hnode) cfs_hash_key_validate() argument 751 cfs_hash_bucket_validate(struct cfs_hash *hs, struct cfs_hash_bd *bd, struct hlist_node *hnode) cfs_hash_bucket_validate() argument
|
/linux-4.1.27/drivers/staging/lustre/lustre/ptlrpc/ |
H A D | connection.c | 170 conn_keycmp(const void *key, struct hlist_node *hnode) conn_keycmp() argument 177 conn = hlist_entry(hnode, struct ptlrpc_connection, c_hash); conn_keycmp() 184 conn_key(struct hlist_node *hnode) conn_key() argument 188 conn = hlist_entry(hnode, struct ptlrpc_connection, c_hash); conn_key() 193 conn_object(struct hlist_node *hnode) conn_object() argument 195 return hlist_entry(hnode, struct ptlrpc_connection, c_hash); conn_object() 199 conn_get(struct cfs_hash *hs, struct hlist_node *hnode) conn_get() argument 203 conn = hlist_entry(hnode, struct ptlrpc_connection, c_hash); conn_get() 208 conn_put_locked(struct cfs_hash *hs, struct hlist_node *hnode) conn_put_locked() argument 212 conn = hlist_entry(hnode, struct ptlrpc_connection, c_hash); conn_put_locked() 217 conn_exit(struct cfs_hash *hs, struct hlist_node *hnode) conn_exit() argument 221 conn = hlist_entry(hnode, struct ptlrpc_connection, c_hash); conn_exit()
|
/linux-4.1.27/drivers/staging/lustre/lustre/osc/ |
H A D | osc_quota.c | 145 oqi_keycmp(const void *key, struct hlist_node *hnode) oqi_keycmp() argument 152 oqi = hlist_entry(hnode, struct osc_quota_info, oqi_hash); oqi_keycmp() 158 oqi_key(struct hlist_node *hnode) oqi_key() argument 161 oqi = hlist_entry(hnode, struct osc_quota_info, oqi_hash); oqi_key() 166 oqi_object(struct hlist_node *hnode) oqi_object() argument 168 return hlist_entry(hnode, struct osc_quota_info, oqi_hash); oqi_object() 172 oqi_get(struct cfs_hash *hs, struct hlist_node *hnode) oqi_get() argument 177 oqi_put_locked(struct cfs_hash *hs, struct hlist_node *hnode) oqi_put_locked() argument 182 oqi_exit(struct cfs_hash *hs, struct hlist_node *hnode) oqi_exit() argument 186 oqi = hlist_entry(hnode, struct osc_quota_info, oqi_hash); oqi_exit()
|
/linux-4.1.27/drivers/staging/lustre/lustre/ldlm/ |
H A D | ldlm_resource.c | 436 static void *ldlm_res_hop_key(struct hlist_node *hnode) ldlm_res_hop_key() argument 440 res = hlist_entry(hnode, struct ldlm_resource, lr_hash); ldlm_res_hop_key() 444 static int ldlm_res_hop_keycmp(const void *key, struct hlist_node *hnode) ldlm_res_hop_keycmp() argument 448 res = hlist_entry(hnode, struct ldlm_resource, lr_hash); ldlm_res_hop_keycmp() 453 static void *ldlm_res_hop_object(struct hlist_node *hnode) ldlm_res_hop_object() argument 455 return hlist_entry(hnode, struct ldlm_resource, lr_hash); ldlm_res_hop_object() 459 struct hlist_node *hnode) ldlm_res_hop_get_locked() 463 res = hlist_entry(hnode, struct ldlm_resource, lr_hash); ldlm_res_hop_get_locked() 468 struct hlist_node *hnode) ldlm_res_hop_put_locked() 472 res = hlist_entry(hnode, struct ldlm_resource, lr_hash); ldlm_res_hop_put_locked() 477 static void ldlm_res_hop_put(struct cfs_hash *hs, struct hlist_node *hnode) ldlm_res_hop_put() argument 481 res = hlist_entry(hnode, struct ldlm_resource, lr_hash); ldlm_res_hop_put() 749 struct hlist_node *hnode, void *arg) ldlm_resource_clean() 751 struct ldlm_resource *res = cfs_hash_object(hs, hnode); ldlm_resource_clean() 762 struct hlist_node *hnode, void *arg) ldlm_resource_complain() 764 struct ldlm_resource *res = cfs_hash_object(hs, hnode); ldlm_resource_complain() 1053 struct hlist_node *hnode; ldlm_resource_get() local 1065 hnode = cfs_hash_bd_lookup_locked(ns->ns_rs_hash, &bd, (void *)name); ldlm_resource_get() 1066 if (hnode != NULL) { ldlm_resource_get() 1068 res = hlist_entry(hnode, struct ldlm_resource, lr_hash); ldlm_resource_get() 1100 hnode = (version == cfs_hash_bd_version_get(&bd)) ? NULL : ldlm_resource_get() 1103 if (hnode != NULL) { ldlm_resource_get() 1112 res = hlist_entry(hnode, struct ldlm_resource, lr_hash); ldlm_resource_get() 1349 struct hlist_node *hnode, void *arg) ldlm_res_hash_dump() 1351 struct ldlm_resource *res = cfs_hash_object(hs, hnode); ldlm_res_hash_dump() 458 ldlm_res_hop_get_locked(struct cfs_hash *hs, struct hlist_node *hnode) ldlm_res_hop_get_locked() argument 467 ldlm_res_hop_put_locked(struct cfs_hash *hs, struct hlist_node *hnode) ldlm_res_hop_put_locked() argument 748 ldlm_resource_clean(struct cfs_hash *hs, struct cfs_hash_bd *bd, struct hlist_node *hnode, void *arg) ldlm_resource_clean() argument 761 ldlm_resource_complain(struct cfs_hash *hs, struct cfs_hash_bd *bd, struct hlist_node *hnode, void *arg) ldlm_resource_complain() argument 1348 ldlm_res_hash_dump(struct cfs_hash *hs, struct cfs_hash_bd *bd, struct hlist_node *hnode, void *arg) ldlm_res_hash_dump() argument
|
H A D | ldlm_lockd.c | 910 ldlm_export_lock_key(struct hlist_node *hnode) ldlm_export_lock_key() argument 914 lock = hlist_entry(hnode, struct ldlm_lock, l_exp_hash); ldlm_export_lock_key() 919 ldlm_export_lock_keycpy(struct hlist_node *hnode, void *key) ldlm_export_lock_keycpy() argument 923 lock = hlist_entry(hnode, struct ldlm_lock, l_exp_hash); ldlm_export_lock_keycpy() 928 ldlm_export_lock_keycmp(const void *key, struct hlist_node *hnode) ldlm_export_lock_keycmp() argument 930 return lustre_handle_equal(ldlm_export_lock_key(hnode), key); ldlm_export_lock_keycmp() 934 ldlm_export_lock_object(struct hlist_node *hnode) ldlm_export_lock_object() argument 936 return hlist_entry(hnode, struct ldlm_lock, l_exp_hash); ldlm_export_lock_object() 940 ldlm_export_lock_get(struct cfs_hash *hs, struct hlist_node *hnode) ldlm_export_lock_get() argument 944 lock = hlist_entry(hnode, struct ldlm_lock, l_exp_hash); ldlm_export_lock_get() 949 ldlm_export_lock_put(struct cfs_hash *hs, struct hlist_node *hnode) ldlm_export_lock_put() argument 953 lock = hlist_entry(hnode, struct ldlm_lock, l_exp_hash); ldlm_export_lock_put()
|
H A D | ldlm_flock.c | 769 ldlm_export_flock_key(struct hlist_node *hnode) ldlm_export_flock_key() argument 773 lock = hlist_entry(hnode, struct ldlm_lock, l_exp_flock_hash); ldlm_export_flock_key() 778 ldlm_export_flock_keycmp(const void *key, struct hlist_node *hnode) ldlm_export_flock_keycmp() argument 780 return !memcmp(ldlm_export_flock_key(hnode), key, sizeof(__u64)); ldlm_export_flock_keycmp() 784 ldlm_export_flock_object(struct hlist_node *hnode) ldlm_export_flock_object() argument 786 return hlist_entry(hnode, struct ldlm_lock, l_exp_flock_hash); ldlm_export_flock_object() 790 ldlm_export_flock_get(struct cfs_hash *hs, struct hlist_node *hnode) ldlm_export_flock_get() argument 795 lock = hlist_entry(hnode, struct ldlm_lock, l_exp_flock_hash); ldlm_export_flock_get() 805 ldlm_export_flock_put(struct cfs_hash *hs, struct hlist_node *hnode) ldlm_export_flock_put() argument 810 lock = hlist_entry(hnode, struct ldlm_lock, l_exp_flock_hash); ldlm_export_flock_put()
|
H A D | ldlm_lock.c | 1871 struct hlist_node *hnode, void *arg) ldlm_reprocess_res() 1873 struct ldlm_resource *res = cfs_hash_object(hs, hnode); ldlm_reprocess_res() 2019 struct hlist_node *hnode, void *data) ldlm_cancel_locks_for_export_cb() 2024 struct ldlm_lock *lock = cfs_hash_object(hs, hnode); ldlm_cancel_locks_for_export_cb() 1870 ldlm_reprocess_res(struct cfs_hash *hs, struct cfs_hash_bd *bd, struct hlist_node *hnode, void *arg) ldlm_reprocess_res() argument 2018 ldlm_cancel_locks_for_export_cb(struct cfs_hash *hs, struct cfs_hash_bd *bd, struct hlist_node *hnode, void *data) ldlm_cancel_locks_for_export_cb() argument
|
H A D | ldlm_request.c | 1921 struct hlist_node *hnode, void *arg) ldlm_cli_hash_cancel_unused() 1923 struct ldlm_resource *res = cfs_hash_object(hs, hnode); ldlm_cli_hash_cancel_unused() 2021 struct hlist_node *hnode, void *arg) ldlm_res_iter_helper() 2024 struct ldlm_resource *res = cfs_hash_object(hs, hnode); ldlm_res_iter_helper() 1919 ldlm_cli_hash_cancel_unused(struct cfs_hash *hs, struct cfs_hash_bd *bd, struct hlist_node *hnode, void *arg) ldlm_cli_hash_cancel_unused() argument 2020 ldlm_res_iter_helper(struct cfs_hash *hs, struct cfs_hash_bd *bd, struct hlist_node *hnode, void *arg) ldlm_res_iter_helper() argument
|
/linux-4.1.27/drivers/staging/lustre/lustre/obdclass/ |
H A D | obd_config.c | 1773 uuid_key(struct hlist_node *hnode) uuid_key() argument 1777 exp = hlist_entry(hnode, struct obd_export, exp_uuid_hash); uuid_key() 1787 uuid_keycmp(const void *key, struct hlist_node *hnode) uuid_keycmp() argument 1792 exp = hlist_entry(hnode, struct obd_export, exp_uuid_hash); uuid_keycmp() 1799 uuid_export_object(struct hlist_node *hnode) uuid_export_object() argument 1801 return hlist_entry(hnode, struct obd_export, exp_uuid_hash); uuid_export_object() 1805 uuid_export_get(struct cfs_hash *hs, struct hlist_node *hnode) uuid_export_get() argument 1809 exp = hlist_entry(hnode, struct obd_export, exp_uuid_hash); uuid_export_get() 1814 uuid_export_put_locked(struct cfs_hash *hs, struct hlist_node *hnode) uuid_export_put_locked() argument 1818 exp = hlist_entry(hnode, struct obd_export, exp_uuid_hash); uuid_export_put_locked() 1843 nid_key(struct hlist_node *hnode) nid_key() argument 1847 exp = hlist_entry(hnode, struct obd_export, exp_nid_hash); nid_key() 1857 nid_kepcmp(const void *key, struct hlist_node *hnode) nid_kepcmp() argument 1862 exp = hlist_entry(hnode, struct obd_export, exp_nid_hash); nid_kepcmp() 1869 nid_export_object(struct hlist_node *hnode) nid_export_object() argument 1871 return hlist_entry(hnode, struct obd_export, exp_nid_hash); nid_export_object() 1875 nid_export_get(struct cfs_hash *hs, struct hlist_node *hnode) nid_export_get() argument 1879 exp = hlist_entry(hnode, struct obd_export, exp_nid_hash); nid_export_get() 1884 nid_export_put_locked(struct cfs_hash *hs, struct hlist_node *hnode) nid_export_put_locked() argument 1888 exp = hlist_entry(hnode, struct obd_export, exp_nid_hash); nid_export_put_locked() 1907 nidstats_key(struct hlist_node *hnode) nidstats_key() argument 1911 ns = hlist_entry(hnode, struct nid_stat, nid_hash); nidstats_key() 1917 nidstats_keycmp(const void *key, struct hlist_node *hnode) nidstats_keycmp() argument 1919 return *(lnet_nid_t *)nidstats_key(hnode) == *(lnet_nid_t *)key; nidstats_keycmp() 1923 nidstats_object(struct hlist_node *hnode) nidstats_object() argument 1925 return hlist_entry(hnode, struct nid_stat, nid_hash); nidstats_object() 1929 nidstats_get(struct cfs_hash *hs, struct hlist_node *hnode) nidstats_get() argument 1933 ns = hlist_entry(hnode, struct nid_stat, nid_hash); nidstats_get() 1938 nidstats_put_locked(struct cfs_hash *hs, struct hlist_node *hnode) nidstats_put_locked() argument 1942 ns = hlist_entry(hnode, struct nid_stat, nid_hash); nidstats_put_locked()
|
H A D | lu_object.c | 544 struct hlist_node *hnode; htable_lookup() local 554 hnode = cfs_hash_bd_peek_locked(s->ls_obj_hash, bd, (void *)f); htable_lookup() 555 if (hnode == NULL) { htable_lookup() 560 h = container_of0(hnode, struct lu_object_header, loh_hash); htable_lookup() 562 cfs_hash_get(s->ls_obj_hash, hnode); htable_lookup() 800 struct hlist_node *hnode, void *data) lu_site_obj_print() 805 h = hlist_entry(hnode, struct lu_object_header, loh_hash); lu_site_obj_print() 903 static void *lu_obj_hop_object(struct hlist_node *hnode) lu_obj_hop_object() argument 905 return hlist_entry(hnode, struct lu_object_header, loh_hash); lu_obj_hop_object() 908 static void *lu_obj_hop_key(struct hlist_node *hnode) lu_obj_hop_key() argument 912 h = hlist_entry(hnode, struct lu_object_header, loh_hash); lu_obj_hop_key() 916 static int lu_obj_hop_keycmp(const void *key, struct hlist_node *hnode) lu_obj_hop_keycmp() argument 920 h = hlist_entry(hnode, struct lu_object_header, loh_hash); lu_obj_hop_keycmp() 924 static void lu_obj_hop_get(struct cfs_hash *hs, struct hlist_node *hnode) lu_obj_hop_get() argument 928 h = hlist_entry(hnode, struct lu_object_header, loh_hash); lu_obj_hop_get() 939 static void lu_obj_hop_put_locked(struct cfs_hash *hs, struct hlist_node *hnode) lu_obj_hop_put_locked() argument 799 lu_site_obj_print(struct cfs_hash *hs, struct cfs_hash_bd *bd, struct hlist_node *hnode, void *data) lu_site_obj_print() argument
|
H A D | lprocfs_status.c | 1547 struct hlist_node *hnode, void *data) lprocfs_exp_print_uuid() 1550 struct obd_export *exp = cfs_hash_object(hs, hnode); lprocfs_exp_print_uuid() 1578 struct hlist_node *hnode, void *cb_data) lprocfs_exp_print_hash() 1582 struct obd_export *exp = cfs_hash_object(hs, hnode); lprocfs_exp_print_hash() 1546 lprocfs_exp_print_uuid(struct cfs_hash *hs, struct cfs_hash_bd *bd, struct hlist_node *hnode, void *data) lprocfs_exp_print_uuid() argument 1577 lprocfs_exp_print_hash(struct cfs_hash *hs, struct cfs_hash_bd *bd, struct hlist_node *hnode, void *cb_data) lprocfs_exp_print_hash() argument
|
/linux-4.1.27/net/netfilter/ |
H A D | nf_conntrack_helper.c | 126 hlist_for_each_entry_rcu(helper, &nf_ct_helper_hash[h], hnode) { __nf_ct_helper_find() 140 hlist_for_each_entry_rcu(h, &nf_ct_helper_hash[i], hnode) { __nf_conntrack_helper_find() 373 hlist_for_each_entry(cur, &nf_ct_helper_hash[h], hnode) { nf_conntrack_helper_register() 381 hlist_add_head_rcu(&me->hnode, &nf_ct_helper_hash[h]); nf_conntrack_helper_register() 403 &net->ct.expect_hash[i], hnode) { __nf_conntrack_helper_unregister() 443 hlist_del_rcu(&me->hnode); nf_conntrack_helper_unregister()
|
H A D | nf_conntrack_expect.c | 52 hlist_del_rcu(&exp->hnode); nf_ct_unlink_expect_report() 101 hlist_for_each_entry_rcu(i, &net->ct.expect_hash[h], hnode) { __nf_ct_expect_find() 140 hlist_for_each_entry(i, &net->ct.expect_hash[h], hnode) { nf_ct_find_expectation() 350 hlist_add_head_rcu(&exp->hnode, &net->ct.expect_hash[h]); nf_ct_expect_insert() 402 hlist_for_each_entry_safe(i, next, &net->ct.expect_hash[h], hnode) { __nf_ct_expect_check() 531 expect = hlist_entry(n, struct nf_conntrack_expect, hnode); exp_seq_show()
|
H A D | nfnetlink_cthelper.c | 309 hlist_for_each_entry_rcu(cur, &nf_ct_helper_hash[i], hnode) { nfnl_cthelper_new() 471 &nf_ct_helper_hash[cb->args[0]], hnode) { nfnl_cthelper_dump_table() 531 hlist_for_each_entry_rcu(cur, &nf_ct_helper_hash[i], hnode) { nfnl_cthelper_get() 597 hnode) { nfnl_cthelper_del() 672 hnode) { nfnl_cthelper_exit()
|
H A D | nf_conntrack_netlink.c | 2526 hnode) { ctnetlink_exp_dump_table() 2782 hnode) { ctnetlink_del_expect() 2800 hnode) { ctnetlink_del_expect()
|
/linux-4.1.27/drivers/staging/lustre/lustre/lov/ |
H A D | lov_pool.c | 105 static void *pool_key(struct hlist_node *hnode) pool_key() argument 109 pool = hlist_entry(hnode, struct pool_desc, pool_hash); pool_key() 123 static void *pool_hashobject(struct hlist_node *hnode) pool_hashobject() argument 125 return hlist_entry(hnode, struct pool_desc, pool_hash); pool_hashobject() 128 static void pool_hashrefcount_get(struct cfs_hash *hs, struct hlist_node *hnode) pool_hashrefcount_get() argument 132 pool = hlist_entry(hnode, struct pool_desc, pool_hash); pool_hashrefcount_get() 137 struct hlist_node *hnode) pool_hashrefcount_put_locked() 141 pool = hlist_entry(hnode, struct pool_desc, pool_hash); pool_hashrefcount_put_locked() 136 pool_hashrefcount_put_locked(struct cfs_hash *hs, struct hlist_node *hnode) pool_hashrefcount_put_locked() argument
|
/linux-4.1.27/drivers/staging/lustre/lustre/include/ |
H A D | lustre_capa.h | 241 struct hlist_node *hnode; capa_put() local 243 hnode = &ocapa->u.tgt.c_hash; capa_put() 244 LASSERT(!hnode->next && !hnode->pprev); capa_put()
|
/linux-4.1.27/include/net/netfilter/ |
H A D | nf_conntrack_expect.h | 17 struct hlist_node hnode; member in struct:nf_conntrack_expect
|
H A D | nf_conntrack_helper.h | 26 struct hlist_node hnode; /* Internal use. */ member in struct:nf_conntrack_helper
|
/linux-4.1.27/net/sched/ |
H A D | sch_drr.c | 303 hlist_for_each_entry(cl, &q->clhash.hash[i], common.hnode) { drr_walk() 461 hlist_for_each_entry(cl, &q->clhash.hash[i], common.hnode) { drr_reset_qdisc() 481 common.hnode) drr_destroy_qdisc()
|
H A D | sch_cbq.c | 1037 hlist_for_each_entry(cl, &q->clhash.hash[h], common.hnode) { cbq_normalize_quanta() 1080 common.hnode) { cbq_sync_defmap() 1215 hlist_for_each_entry(cl, &q->clhash.hash[h], common.hnode) { cbq_reset() 1694 hlist_for_each_entry(cl, &q->clhash.hash[h], common.hnode) cbq_destroy() 1699 common.hnode) cbq_destroy() 2004 hlist_for_each_entry(cl, &q->clhash.hash[h], common.hnode) { cbq_walk()
|
H A D | sch_api.c | 673 hlist_for_each_entry_safe(cl, next, &ohash[i], hnode) { qdisc_class_hash_grow() 675 hlist_add_head(&cl->hnode, &nhash[h]); qdisc_class_hash_grow() 712 INIT_HLIST_NODE(&cl->hnode); qdisc_class_hash_insert() 714 hlist_add_head(&cl->hnode, &clhash->hash[h]); qdisc_class_hash_insert() 722 hlist_del(&cl->hnode); qdisc_class_hash_remove()
|
H A D | sch_hfsc.c | 1401 cl_common.hnode) { hfsc_walk() 1529 hlist_for_each_entry(cl, &q->clhash.hash[i], cl_common.hnode) hfsc_reset_qdisc() 1547 hlist_for_each_entry(cl, &q->clhash.hash[i], cl_common.hnode) hfsc_destroy_qdisc() 1552 cl_common.hnode) hfsc_destroy_qdisc() 1570 hlist_for_each_entry(cl, &q->clhash.hash[i], cl_common.hnode) hfsc_dump_qdisc()
|
H A D | sch_htb.c | 977 hlist_for_each_entry(cl, &q->clhash.hash[i], common.hnode) { htb_reset() 1261 hlist_for_each_entry(cl, &q->clhash.hash[i], common.hnode) htb_destroy() 1266 common.hnode) htb_destroy() 1574 hlist_for_each_entry(cl, &q->clhash.hash[i], common.hnode) { htb_walk()
|
H A D | sch_qfq.c | 690 hlist_for_each_entry(cl, &q->clhash.hash[i], common.hnode) { qfq_walk() 1517 hlist_for_each_entry(cl, &q->clhash.hash[i], common.hnode) { qfq_reset_qdisc() 1538 common.hnode) { qfq_destroy_qdisc()
|
/linux-4.1.27/drivers/staging/lustre/lustre/llite/ |
H A D | vvp_dev.c | 303 struct hlist_node *hnode, void *data) vvp_pgcache_obj_get() 306 struct lu_object_header *hdr = cfs_hash_object(hs, hnode); vvp_pgcache_obj_get() 314 cfs_hash_get(hs, hnode); vvp_pgcache_obj_get() 302 vvp_pgcache_obj_get(struct cfs_hash *hs, struct cfs_hash_bd *bd, struct hlist_node *hnode, void *data) vvp_pgcache_obj_get() argument
|
/linux-4.1.27/include/net/ |
H A D | sch_generic.h | 350 struct hlist_node hnode; member in struct:Qdisc_class_common 374 hlist_for_each_entry(cl, &hash->hash[h], hnode) { hlist_for_each_entry()
|
/linux-4.1.27/net/ipv4/netfilter/ |
H A D | nf_conntrack_l3proto_ipv4_compat.c | 286 exp = hlist_entry(n, struct nf_conntrack_expect, hnode); exp_seq_show()
|
/linux-4.1.27/net/ipv4/ |
H A D | ping.c | 176 struct hlist_nulls_node *hnode; ping_lookup() local 191 ping_portaddr_for_each_entry(sk, hnode, hslot) { ping_portaddr_for_each_entry()
|