/drivers/staging/lustre/lustre/ptlrpc/ |
H A D | connection.c | 170 conn_keycmp(const void *key, struct hlist_node *hnode) argument 177 conn = hlist_entry(hnode, struct ptlrpc_connection, c_hash); 184 conn_key(struct hlist_node *hnode) argument 187 conn = hlist_entry(hnode, struct ptlrpc_connection, c_hash); 192 conn_object(struct hlist_node *hnode) argument 194 return hlist_entry(hnode, struct ptlrpc_connection, c_hash); 198 conn_get(struct cfs_hash *hs, struct hlist_node *hnode) argument 202 conn = hlist_entry(hnode, struct ptlrpc_connection, c_hash); 207 conn_put_locked(struct cfs_hash *hs, struct hlist_node *hnode) argument 211 conn = hlist_entry(hnode, struc 216 conn_exit(struct cfs_hash *hs, struct hlist_node *hnode) argument [all...] |
/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); 466 cfs_hash_key(struct cfs_hash *hs, struct hlist_node *hnode) argument 472 cfs_hash_keycpy(struct cfs_hash *hs, struct hlist_node *hnode, void *key) argument 482 cfs_hash_keycmp(struct cfs_hash *hs, const void *key, struct hlist_node *hnode) argument 488 cfs_hash_object(struct cfs_hash *hs, struct hlist_node *hnode) argument 494 cfs_hash_get(struct cfs_hash *hs, struct hlist_node *hnode) argument 500 cfs_hash_put_locked(struct cfs_hash *hs, struct hlist_node *hnode) argument 508 cfs_hash_put(struct cfs_hash *hs, struct hlist_node *hnode) argument 516 cfs_hash_exit(struct cfs_hash *hs, struct hlist_node *hnode) argument 732 cfs_hash_key_validate(struct cfs_hash *hs, const void *key, struct hlist_node *hnode) argument 740 cfs_hash_bucket_validate(struct cfs_hash *hs, struct cfs_hash_bd *bd, struct hlist_node *hnode) argument 753 cfs_hash_key_validate(struct cfs_hash *hs, const void *key, struct hlist_node *hnode) argument 757 cfs_hash_bucket_validate(struct cfs_hash *hs, struct cfs_hash_bd *bd, struct hlist_node *hnode) argument [all...] |
/drivers/staging/lustre/lustre/libcfs/ |
H A D | hash.c | 258 struct hlist_node *hnode) 260 hlist_add_head(hnode, cfs_hash_hh_hhead(hs, bd)); 266 struct hlist_node *hnode) 268 hlist_del_init(hnode); 298 struct hlist_node *hnode) 302 hlist_add_head(hnode, &hh->hd_head); 308 struct hlist_node *hnode) 312 hlist_del_init(hnode); 342 struct hlist_node *hnode) 348 hlist_add_behind(hnode, d 257 cfs_hash_hh_hnode_add(struct cfs_hash *hs, struct cfs_hash_bd *bd, struct hlist_node *hnode) argument 265 cfs_hash_hh_hnode_del(struct cfs_hash *hs, struct cfs_hash_bd *bd, struct hlist_node *hnode) argument 297 cfs_hash_hd_hnode_add(struct cfs_hash *hs, struct cfs_hash_bd *bd, struct hlist_node *hnode) argument 307 cfs_hash_hd_hnode_del(struct cfs_hash *hs, struct cfs_hash_bd *bd, struct hlist_node *hnode) argument 341 cfs_hash_dh_hnode_add(struct cfs_hash *hs, struct cfs_hash_bd *bd, struct hlist_node *hnode) argument 396 cfs_hash_dd_hnode_add(struct cfs_hash *hs, struct cfs_hash_bd *bd, struct hlist_node *hnode) argument 516 cfs_hash_bd_add_locked(struct cfs_hash *hs, struct cfs_hash_bd *bd, struct hlist_node *hnode) argument 536 cfs_hash_bd_del_locked(struct cfs_hash *hs, struct cfs_hash_bd *bd, struct hlist_node *hnode) argument 557 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) argument 614 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) argument 671 cfs_hash_bd_findadd_locked(struct cfs_hash *hs, struct cfs_hash_bd *bd, const void *key, struct hlist_node *hnode, int noref) argument 682 cfs_hash_bd_finddel_locked(struct cfs_hash *hs, struct cfs_hash_bd *bd, const void *key, struct hlist_node *hnode) argument 746 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) argument 777 cfs_hash_multi_bd_finddel_locked(struct cfs_hash *hs, struct cfs_hash_bd *bds, unsigned n, const void *key, struct hlist_node *hnode) argument 863 cfs_hash_dual_bd_findadd_locked(struct cfs_hash *hs, struct cfs_hash_bd *bds, const void *key, struct hlist_node *hnode, int noref) argument 873 cfs_hash_dual_bd_finddel_locked(struct cfs_hash *hs, struct cfs_hash_bd *bds, const void *key, struct hlist_node *hnode) argument 1092 struct hlist_node *hnode; local 1212 cfs_hash_add(struct cfs_hash *hs, const void *key, struct hlist_node *hnode) argument 1235 cfs_hash_find_or_add(struct cfs_hash *hs, const void *key, struct hlist_node *hnode, int noref) argument 1267 cfs_hash_add_unique(struct cfs_hash *hs, const void *key, struct hlist_node *hnode) argument 1281 cfs_hash_findadd_unique(struct cfs_hash *hs, const void *key, struct hlist_node *hnode) argument 1298 cfs_hash_del(struct cfs_hash *hs, const void *key, struct hlist_node *hnode) argument 1356 struct hlist_node *hnode; local 1434 struct hlist_node *hnode; local 1489 cfs_hash_cond_del_locked(struct cfs_hash *hs, struct cfs_hash_bd *bd, struct hlist_node *hnode, void *data) argument 1533 cfs_hash_peek(struct cfs_hash *hs, struct cfs_hash_bd *bd, struct hlist_node *hnode, void *data) argument 1577 struct hlist_node *hnode; local 1697 struct hlist_node *hnode; local 1731 struct hlist_node *hnode; local 1841 struct hlist_node *hnode; local 1977 cfs_hash_rehash_key(struct cfs_hash *hs, const void *old_key, void *new_key, struct hlist_node *hnode) argument [all...] |
/drivers/staging/lustre/lustre/osc/ |
H A D | osc_quota.c | 145 oqi_keycmp(const void *key, struct hlist_node *hnode) argument 152 oqi = hlist_entry(hnode, struct osc_quota_info, oqi_hash); 158 oqi_key(struct hlist_node *hnode) argument 161 oqi = hlist_entry(hnode, struct osc_quota_info, oqi_hash); 166 oqi_object(struct hlist_node *hnode) argument 168 return hlist_entry(hnode, struct osc_quota_info, oqi_hash); 172 oqi_get(struct cfs_hash *hs, struct hlist_node *hnode) argument 177 oqi_put_locked(struct cfs_hash *hs, struct hlist_node *hnode) argument 182 oqi_exit(struct cfs_hash *hs, struct hlist_node *hnode) argument 186 oqi = hlist_entry(hnode, struc [all...] |
/drivers/staging/lustre/lustre/ldlm/ |
H A D | ldlm_resource.c | 435 static void *ldlm_res_hop_key(struct hlist_node *hnode) argument 439 res = hlist_entry(hnode, struct ldlm_resource, lr_hash); 443 static int ldlm_res_hop_keycmp(const void *key, struct hlist_node *hnode) argument 447 res = hlist_entry(hnode, struct ldlm_resource, lr_hash); 452 static void *ldlm_res_hop_object(struct hlist_node *hnode) argument 454 return hlist_entry(hnode, struct ldlm_resource, lr_hash); 457 static void ldlm_res_hop_get_locked(struct cfs_hash *hs, struct hlist_node *hnode) argument 461 res = hlist_entry(hnode, struct ldlm_resource, lr_hash); 465 static void ldlm_res_hop_put_locked(struct cfs_hash *hs, struct hlist_node *hnode) argument 469 res = hlist_entry(hnode, struc 474 ldlm_res_hop_put(struct cfs_hash *hs, struct hlist_node *hnode) argument 746 ldlm_resource_clean(struct cfs_hash *hs, struct cfs_hash_bd *bd, struct hlist_node *hnode, void *arg) argument 759 ldlm_resource_complain(struct cfs_hash *hs, struct cfs_hash_bd *bd, struct hlist_node *hnode, void *arg) argument 1052 struct hlist_node *hnode; local 1346 ldlm_res_hash_dump(struct cfs_hash *hs, struct cfs_hash_bd *bd, struct hlist_node *hnode, void *arg) argument [all...] |
H A D | ldlm_flock.c | 767 ldlm_export_flock_key(struct hlist_node *hnode) argument 771 lock = hlist_entry(hnode, struct ldlm_lock, l_exp_flock_hash); 776 ldlm_export_flock_keycmp(const void *key, struct hlist_node *hnode) argument 778 return !memcmp(ldlm_export_flock_key(hnode), key, sizeof(__u64)); 782 ldlm_export_flock_object(struct hlist_node *hnode) argument 784 return hlist_entry(hnode, struct ldlm_lock, l_exp_flock_hash); 788 ldlm_export_flock_get(struct cfs_hash *hs, struct hlist_node *hnode) argument 793 lock = hlist_entry(hnode, struct ldlm_lock, l_exp_flock_hash); 803 ldlm_export_flock_put(struct cfs_hash *hs, struct hlist_node *hnode) argument 808 lock = hlist_entry(hnode, struc [all...] |
H A D | ldlm_lockd.c | 911 ldlm_export_lock_key(struct hlist_node *hnode) argument 915 lock = hlist_entry(hnode, struct ldlm_lock, l_exp_hash); 920 ldlm_export_lock_keycpy(struct hlist_node *hnode, void *key) argument 924 lock = hlist_entry(hnode, struct ldlm_lock, l_exp_hash); 929 ldlm_export_lock_keycmp(const void *key, struct hlist_node *hnode) argument 931 return lustre_handle_equal(ldlm_export_lock_key(hnode), key); 935 ldlm_export_lock_object(struct hlist_node *hnode) argument 937 return hlist_entry(hnode, struct ldlm_lock, l_exp_hash); 941 ldlm_export_lock_get(struct cfs_hash *hs, struct hlist_node *hnode) argument 945 lock = hlist_entry(hnode, struc 950 ldlm_export_lock_put(struct cfs_hash *hs, struct hlist_node *hnode) argument [all...] |
H A D | ldlm_lock.c | 1871 struct hlist_node *hnode, void *arg) 1873 struct ldlm_resource *res = cfs_hash_object(hs, hnode); 2020 struct hlist_node *hnode, void *data) 2025 struct ldlm_lock *lock = cfs_hash_object(hs, hnode); 1870 ldlm_reprocess_res(struct cfs_hash *hs, struct cfs_hash_bd *bd, struct hlist_node *hnode, void *arg) argument 2019 ldlm_cancel_locks_for_export_cb(struct cfs_hash *hs, struct cfs_hash_bd *bd, struct hlist_node *hnode, void *data) argument
|
H A D | ldlm_request.c | 1922 struct hlist_node *hnode, void *arg) 1924 struct ldlm_resource *res = cfs_hash_object(hs, hnode); 2021 struct hlist_node *hnode, void *arg) 2024 struct ldlm_resource *res = cfs_hash_object(hs, hnode); 1921 ldlm_cli_hash_cancel_unused(struct cfs_hash *hs, struct cfs_hash_bd *bd, struct hlist_node *hnode, void *arg) argument 2020 ldlm_res_iter_helper(struct cfs_hash *hs, struct cfs_hash_bd *bd, struct hlist_node *hnode, void *arg) argument
|
/drivers/staging/lustre/lustre/obdclass/ |
H A D | obd_config.c | 1776 uuid_key(struct hlist_node *hnode) argument 1780 exp = hlist_entry(hnode, struct obd_export, exp_uuid_hash); 1790 uuid_keycmp(const void *key, struct hlist_node *hnode) argument 1795 exp = hlist_entry(hnode, struct obd_export, exp_uuid_hash); 1802 uuid_export_object(struct hlist_node *hnode) argument 1804 return hlist_entry(hnode, struct obd_export, exp_uuid_hash); 1808 uuid_export_get(struct cfs_hash *hs, struct hlist_node *hnode) argument 1812 exp = hlist_entry(hnode, struct obd_export, exp_uuid_hash); 1817 uuid_export_put_locked(struct cfs_hash *hs, struct hlist_node *hnode) argument 1821 exp = hlist_entry(hnode, struc 1846 nid_key(struct hlist_node *hnode) argument 1860 nid_kepcmp(const void *key, struct hlist_node *hnode) argument 1872 nid_export_object(struct hlist_node *hnode) argument 1878 nid_export_get(struct cfs_hash *hs, struct hlist_node *hnode) argument 1887 nid_export_put_locked(struct cfs_hash *hs, struct hlist_node *hnode) argument 1910 nidstats_key(struct hlist_node *hnode) argument 1920 nidstats_keycmp(const void *key, struct hlist_node *hnode) argument 1926 nidstats_object(struct hlist_node *hnode) argument 1932 nidstats_get(struct cfs_hash *hs, struct hlist_node *hnode) argument 1941 nidstats_put_locked(struct cfs_hash *hs, struct hlist_node *hnode) argument [all...] |
H A D | lu_object.c | 544 struct hlist_node *hnode; local 554 hnode = cfs_hash_bd_peek_locked(s->ls_obj_hash, bd, (void *)f); 555 if (hnode == NULL) { 560 h = container_of0(hnode, struct lu_object_header, loh_hash); 562 cfs_hash_get(s->ls_obj_hash, hnode); 800 struct hlist_node *hnode, void *data) 805 h = hlist_entry(hnode, struct lu_object_header, loh_hash); 904 static void *lu_obj_hop_object(struct hlist_node *hnode) argument 906 return hlist_entry(hnode, struct lu_object_header, loh_hash); 909 static void *lu_obj_hop_key(struct hlist_node *hnode) argument 799 lu_site_obj_print(struct cfs_hash *hs, struct cfs_hash_bd *bd, struct hlist_node *hnode, void *data) argument 917 lu_obj_hop_keycmp(const void *key, struct hlist_node *hnode) argument 925 lu_obj_hop_get(struct cfs_hash *hs, struct hlist_node *hnode) argument 940 lu_obj_hop_put_locked(struct cfs_hash *hs, struct hlist_node *hnode) argument [all...] |
H A D | lprocfs_status.c | 1542 struct hlist_node *hnode, void *data) 1545 struct obd_export *exp = cfs_hash_object(hs, hnode); 1573 struct hlist_node *hnode, void *cb_data) 1577 struct obd_export *exp = cfs_hash_object(hs, hnode); 1541 lprocfs_exp_print_uuid(struct cfs_hash *hs, struct cfs_hash_bd *bd, struct hlist_node *hnode, void *data) argument 1572 lprocfs_exp_print_hash(struct cfs_hash *hs, struct cfs_hash_bd *bd, struct hlist_node *hnode, void *cb_data) argument
|
/drivers/staging/lustre/lustre/include/ |
H A D | lustre_capa.h | 241 struct hlist_node *hnode; local 243 hnode = &ocapa->u.tgt.c_hash; 244 LASSERT(!hnode->next && !hnode->pprev);
|
/drivers/staging/lustre/lustre/lov/ |
H A D | lov_pool.c | 105 static void *pool_key(struct hlist_node *hnode) argument 109 pool = hlist_entry(hnode, struct pool_desc, pool_hash); 123 static void *pool_hashobject(struct hlist_node *hnode) argument 125 return hlist_entry(hnode, struct pool_desc, pool_hash); 128 static void pool_hashrefcount_get(struct cfs_hash *hs, struct hlist_node *hnode) argument 132 pool = hlist_entry(hnode, struct pool_desc, pool_hash); 137 struct hlist_node *hnode) 141 pool = hlist_entry(hnode, struct pool_desc, pool_hash); 136 pool_hashrefcount_put_locked(struct cfs_hash *hs, struct hlist_node *hnode) argument
|
/drivers/staging/lustre/lustre/llite/ |
H A D | vvp_dev.c | 301 struct hlist_node *hnode, void *data) 304 struct lu_object_header *hdr = cfs_hash_object(hs, hnode); 312 cfs_hash_get(hs, hnode); 300 vvp_pgcache_obj_get(struct cfs_hash *hs, struct cfs_hash_bd *bd, struct hlist_node *hnode, void *data) argument
|