/kernel/linux/linux-5.10/include/linux/ |
H A D | hashtable.h | 27 #define HASH_SIZE(name) (ARRAY_SIZE(name)) macro 28 #define HASH_BITS(name) ilog2(HASH_SIZE(name)) 52 #define hash_init(hashtable) __hash_init(hashtable, HASH_SIZE(hashtable)) 99 #define hash_empty(hashtable) __hash_empty(hashtable, HASH_SIZE(hashtable)) 127 for ((bkt) = 0, obj = NULL; obj == NULL && (bkt) < HASH_SIZE(name);\ 139 for ((bkt) = 0, obj = NULL; obj == NULL && (bkt) < HASH_SIZE(name);\ 153 for ((bkt) = 0, obj = NULL; obj == NULL && (bkt) < HASH_SIZE(name);\
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | hashtable.h | 27 #define HASH_SIZE(name) (ARRAY_SIZE(name)) macro 28 #define HASH_BITS(name) ilog2(HASH_SIZE(name)) 52 #define hash_init(hashtable) __hash_init(hashtable, HASH_SIZE(hashtable)) 99 #define hash_empty(hashtable) __hash_empty(hashtable, HASH_SIZE(hashtable)) 127 for ((bkt) = 0, obj = NULL; obj == NULL && (bkt) < HASH_SIZE(name);\ 139 for ((bkt) = 0, obj = NULL; obj == NULL && (bkt) < HASH_SIZE(name);\ 153 for ((bkt) = 0, obj = NULL; obj == NULL && (bkt) < HASH_SIZE(name);\
|
/kernel/linux/linux-5.10/tools/include/linux/ |
H A D | hashtable.h | 24 #define HASH_SIZE(name) (ARRAY_SIZE(name)) macro 25 #define HASH_BITS(name) ilog2(HASH_SIZE(name)) 49 #define hash_init(hashtable) __hash_init(hashtable, HASH_SIZE(hashtable)) 87 #define hash_empty(hashtable) __hash_empty(hashtable, HASH_SIZE(hashtable)) 106 for ((bkt) = 0, obj = NULL; obj == NULL && (bkt) < HASH_SIZE(name);\ 120 for ((bkt) = 0, obj = NULL; obj == NULL && (bkt) < HASH_SIZE(name);\
|
/kernel/linux/linux-6.6/tools/include/linux/ |
H A D | hashtable.h | 24 #define HASH_SIZE(name) (ARRAY_SIZE(name)) macro 25 #define HASH_BITS(name) ilog2(HASH_SIZE(name)) 49 #define hash_init(hashtable) __hash_init(hashtable, HASH_SIZE(hashtable)) 87 #define hash_empty(hashtable) __hash_empty(hashtable, HASH_SIZE(hashtable)) 106 for ((bkt) = 0, obj = NULL; obj == NULL && (bkt) < HASH_SIZE(name);\ 120 for ((bkt) = 0, obj = NULL; obj == NULL && (bkt) < HASH_SIZE(name);\
|
/kernel/linux/linux-5.10/security/keys/encrypted-keys/ |
H A D | encrypted.c | 52 #define HASH_SIZE SHA256_DIGEST_SIZE macro 357 if (derived_buf_len < HASH_SIZE) in get_derived_key() 358 derived_buf_len = HASH_SIZE; in get_derived_key() 491 u8 derived_key[HASH_SIZE]; in datablob_hmac_append() 503 dump_hmac(NULL, digest, HASH_SIZE); in datablob_hmac_append() 514 u8 derived_key[HASH_SIZE]; in datablob_hmac_verify() 515 u8 digest[HASH_SIZE]; in datablob_hmac_verify() 540 HASH_SIZE); in datablob_hmac_verify() 541 dump_hmac("calc", digest, HASH_SIZE); in datablob_hmac_verify() 640 + HASH_SIZE in encrypted_key_alloc() [all...] |
/kernel/linux/linux-6.6/security/keys/encrypted-keys/ |
H A D | encrypted.c | 52 #define HASH_SIZE SHA256_DIGEST_SIZE macro 363 if (derived_buf_len < HASH_SIZE) in get_derived_key() 364 derived_buf_len = HASH_SIZE; in get_derived_key() 497 u8 derived_key[HASH_SIZE]; in datablob_hmac_append() 509 dump_hmac(NULL, digest, HASH_SIZE); in datablob_hmac_append() 520 u8 derived_key[HASH_SIZE]; in datablob_hmac_verify() 521 u8 digest[HASH_SIZE]; in datablob_hmac_verify() 546 HASH_SIZE); in datablob_hmac_verify() 547 dump_hmac("calc", digest, HASH_SIZE); in datablob_hmac_verify() 666 + HASH_SIZE in encrypted_key_alloc() [all...] |
/kernel/linux/linux-5.10/drivers/net/wireguard/ |
H A D | peerlookup.c | 19 return &table->hashtable[hash & (HASH_SIZE(table->hashtable) - 1)]; in pubkey_bucket() 80 (HASH_SIZE(table->hashtable) - 1)]; in index_bucket()
|
/kernel/linux/linux-6.6/drivers/net/wireguard/ |
H A D | peerlookup.c | 19 return &table->hashtable[hash & (HASH_SIZE(table->hashtable) - 1)]; in pubkey_bucket() 80 (HASH_SIZE(table->hashtable) - 1)]; in index_bucket()
|
/kernel/linux/linux-6.6/kernel/dma/ |
H A D | debug.c | 29 #define HASH_SIZE 16384ULL macro 31 #define HASH_FN_MASK (HASH_SIZE - 1) 93 static struct hash_bucket dma_entry_hash[HASH_SIZE]; 355 int limit = min(HASH_SIZE, (index.dev_addr >> HASH_FN_SHIFT) + 1); in bucket_find_contain() 527 for (idx = 0; idx < HASH_SIZE; idx++) { in debug_dma_dump_mappings() 559 for (idx = 0; idx < HASH_SIZE; idx++) { in dump_show() 835 for (i = 0; i < HASH_SIZE; ++i) { in device_dma_allocations() 907 for (i = 0; i < HASH_SIZE; ++i) { in dma_debug_init()
|
/kernel/linux/linux-5.10/kernel/dma/ |
H A D | debug.c | 29 #define HASH_SIZE 16384ULL macro 31 #define HASH_FN_MASK (HASH_SIZE - 1) 92 static struct hash_bucket dma_entry_hash[HASH_SIZE]; 407 for (idx = 0; idx < HASH_SIZE; idx++) { in debug_dma_dump_mappings() 784 for (idx = 0; idx < HASH_SIZE; idx++) { in dump_show() 831 for (i = 0; i < HASH_SIZE; ++i) { in device_dma_allocations() 903 for (i = 0; i < HASH_SIZE; ++i) { in dma_debug_init()
|
/kernel/linux/linux-5.10/net/rxrpc/ |
H A D | proc.c | 268 if (bucket >= HASH_SIZE(rxnet->peer_hash)) { in __acquires() 309 if (bucket >= HASH_SIZE(rxnet->peer_hash)) { in rxrpc_peer_seq_next()
|
H A D | peer_object.c | 479 for (i = 0; i < HASH_SIZE(rxnet->peer_hash); i++) { in rxrpc_destroy_all_peers()
|
/kernel/linux/linux-6.6/drivers/ptp/ |
H A D | ptp_vclock.c | 27 &vclock_hash[vclock->clock->index % HASH_SIZE(vclock_hash)]); in ptp_vclock_hash_add() 270 unsigned int hash = vclock_index % HASH_SIZE(vclock_hash); in ptp_convert_timestamp()
|
/kernel/linux/linux-5.10/tools/vm/ |
H A D | page-types.c | 198 #define HASH_SIZE (1 << HASH_SHIFT) macro 199 #define HASH_MASK (HASH_SIZE - 1) 203 static unsigned long nr_pages[HASH_SIZE]; 204 static uint64_t page_flags[HASH_SIZE]; 617 /* search through the remaining (HASH_SIZE-1) slots */ in hash_slot()
|
/kernel/linux/linux-5.10/kernel/ |
H A D | audit_tree.c | 208 enum {HASH_SIZE = 128}; enumerator 209 static struct list_head chunk_hash_heads[HASH_SIZE]; 222 return chunk_hash_heads + n % HASH_SIZE; in chunk_hash() 1084 for (i = 0; i < HASH_SIZE; i++) in audit_tree_init()
|
/kernel/linux/linux-6.6/kernel/ |
H A D | audit_tree.c | 208 enum {HASH_SIZE = 128}; enumerator 209 static struct list_head chunk_hash_heads[HASH_SIZE]; 222 return chunk_hash_heads + n % HASH_SIZE; in chunk_hash() 1081 for (i = 0; i < HASH_SIZE; i++) in audit_tree_init()
|
/kernel/linux/linux-6.6/tools/mm/ |
H A D | page-types.c | 198 #define HASH_SIZE (1 << HASH_SHIFT) macro 199 #define HASH_MASK (HASH_SIZE - 1) 203 static unsigned long nr_pages[HASH_SIZE]; 204 static uint64_t page_flags[HASH_SIZE]; 619 /* search through the remaining (HASH_SIZE-1) slots */ in hash_slot()
|
/kernel/linux/linux-6.6/net/rxrpc/ |
H A D | proc.c | 257 if (bucket >= HASH_SIZE(rxnet->peer_hash)) { in __acquires() 298 if (bucket >= HASH_SIZE(rxnet->peer_hash)) { in rxrpc_peer_seq_next()
|
H A D | peer_object.c | 446 for (i = 0; i < HASH_SIZE(rxnet->peer_hash); i++) { in rxrpc_destroy_all_peers()
|
/kernel/linux/linux-5.10/fs/afs/ |
H A D | security.c | 484 for (i = 0; i < HASH_SIZE(afs_permits_cache); i++) in afs_clean_up_permit_cache()
|
/kernel/linux/linux-6.6/fs/afs/ |
H A D | security.c | 484 for (i = 0; i < HASH_SIZE(afs_permits_cache); i++) in afs_clean_up_permit_cache()
|
/kernel/linux/linux-5.10/net/core/ |
H A D | dev.c | 6570 unsigned int hash = napi_id % HASH_SIZE(napi_hash); in napi_by_id() 6710 &napi_hash[napi->napi_id % HASH_SIZE(napi_hash)]); in napi_hash_add()
|
/kernel/linux/linux-6.6/net/core/ |
H A D | dev.c | 6170 unsigned int hash = napi_id % HASH_SIZE(napi_hash); in napi_by_id() 6343 &napi_hash[napi->napi_id % HASH_SIZE(napi_hash)]); in napi_hash_add()
|