Home
last modified time | relevance | path

Searched refs:HASH_SIZE (Results 1 – 10 of 10) sorted by relevance

/Linux-v4.19/tools/include/linux/
Dhashtable.h24 #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);\
/Linux-v4.19/include/linux/
Dhashtable.h27 #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);\
/Linux-v4.19/security/keys/encrypted-keys/
Dencrypted.c54 #define HASH_SIZE SHA256_DIGEST_SIZE macro
370 if (derived_buf_len < HASH_SIZE) in get_derived_key()
371 derived_buf_len = HASH_SIZE; in get_derived_key()
503 u8 derived_key[HASH_SIZE]; in datablob_hmac_append()
515 dump_hmac(NULL, digest, HASH_SIZE); in datablob_hmac_append()
526 u8 derived_key[HASH_SIZE]; in datablob_hmac_verify()
527 u8 digest[HASH_SIZE]; in datablob_hmac_verify()
552 HASH_SIZE); in datablob_hmac_verify()
553 dump_hmac("calc", digest, HASH_SIZE); in datablob_hmac_verify()
645 + HASH_SIZE + 1); in encrypted_key_alloc()
[all …]
/Linux-v4.19/kernel/dma/
Ddebug.c40 #define HASH_SIZE 1024ULL macro
42 #define HASH_FN_MASK (HASH_SIZE - 1)
105 static struct hash_bucket dma_entry_hash[HASH_SIZE];
425 for (idx = 0; idx < HASH_SIZE; idx++) { in debug_dma_dump_mappings()
948 for (i = 0; i < HASH_SIZE; ++i) { in device_dma_allocations()
1020 for (i = 0; i < HASH_SIZE; ++i) { in dma_debug_init()
/Linux-v4.19/tools/vm/
Dpage-types.c208 #define HASH_SIZE (1 << HASH_SHIFT) macro
209 #define HASH_MASK (HASH_SIZE - 1)
213 static unsigned long nr_pages[HASH_SIZE];
214 static uint64_t page_flags[HASH_SIZE];
/Linux-v4.19/kernel/
Daudit_tree.c164 enum {HASH_SIZE = 128}; enumerator
165 static struct list_head chunk_hash_heads[HASH_SIZE];
193 return chunk_hash_heads + n % HASH_SIZE; in chunk_hash()
1029 for (i = 0; i < HASH_SIZE; i++) in audit_tree_init()
/Linux-v4.19/Documentation/
Dsiphash.txt66 …return &table->hashtable[siphash(input, sizeof(*input), &table->key) & (HASH_SIZE(table->hashtable…
178 …return &table->hashtable[hsiphash(input, sizeof(*input), &table->key) & (HASH_SIZE(table->hashtabl…
/Linux-v4.19/fs/afs/
Dsecurity.c418 for (i = 0; i < HASH_SIZE(afs_permits_cache); i++) in afs_clean_up_permit_cache()
/Linux-v4.19/net/rxrpc/
Dpeer_object.c451 for (i = 0; i < HASH_SIZE(rxnet->peer_hash); i++) { in rxrpc_destroy_all_peers()
/Linux-v4.19/net/core/
Ddev.c5983 unsigned int hash = napi_id % HASH_SIZE(napi_hash); in napi_by_id()
6114 &napi_hash[napi->napi_id % HASH_SIZE(napi_hash)]); in napi_hash_add()