Searched refs:HASH_SIZE (Results 1 - 13 of 13) sorted by relevance

/linux-master/scripts/kconfig/
H A Dhashtable.h8 #define HASH_SIZE(name) (ARRAY_SIZE(name)) macro
16 #define hash_head(table, key) (&(table)[(key) % HASH_SIZE(table)])
34 for (int _bkt = 0; _bkt < HASH_SIZE(table); _bkt++) \
/linux-master/tools/include/linux/
H A 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-master/include/linux/
H A 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-master/security/keys/encrypted-keys/
H A Dencrypted.c52 #define HASH_SIZE SHA256_DIGEST_SIZE macro
363 if (derived_buf_len < HASH_SIZE)
364 derived_buf_len = HASH_SIZE;
497 u8 derived_key[HASH_SIZE];
509 dump_hmac(NULL, digest, HASH_SIZE);
520 u8 derived_key[HASH_SIZE];
521 u8 digest[HASH_SIZE];
546 HASH_SIZE);
547 dump_hmac("calc", digest, HASH_SIZE);
666 + HASH_SIZE
[all...]
/linux-master/drivers/net/wireguard/
H A Dpeerlookup.c19 return &table->hashtable[hash & (HASH_SIZE(table->hashtable) - 1)];
80 (HASH_SIZE(table->hashtable) - 1)];
/linux-master/drivers/ptp/
H A Dptp_vclock.c27 &vclock_hash[vclock->clock->index % HASH_SIZE(vclock_hash)]);
270 unsigned int hash = vclock_index % HASH_SIZE(vclock_hash);
/linux-master/kernel/dma/
H A Ddebug.c29 #define HASH_SIZE 16384ULL macro
31 #define HASH_FN_MASK (HASH_SIZE - 1)
94 static struct hash_bucket dma_entry_hash[HASH_SIZE];
356 int limit = min(HASH_SIZE, (index.dev_addr >> HASH_FN_SHIFT) + 1);
528 for (idx = 0; idx < HASH_SIZE; idx++) {
560 for (idx = 0; idx < HASH_SIZE; idx++) {
836 for (i = 0; i < HASH_SIZE; ++i) {
908 for (i = 0; i < HASH_SIZE; ++i) {
/linux-master/tools/mm/
H A Dpage-types.c198 #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 */
/linux-master/kernel/
H A Daudit_tree.c208 enum {HASH_SIZE = 128}; enumerator in enum:__anon2197
209 static struct list_head chunk_hash_heads[HASH_SIZE];
222 return chunk_hash_heads + n % HASH_SIZE;
1081 for (i = 0; i < HASH_SIZE; i++)
/linux-master/net/rxrpc/
H A Dproc.c331 if (bucket >= HASH_SIZE(rxnet->peer_hash)) {
372 if (bucket >= HASH_SIZE(rxnet->peer_hash)) {
H A Dpeer_object.c448 for (i = 0; i < HASH_SIZE(rxnet->peer_hash); i++) {
/linux-master/fs/afs/
H A Dsecurity.c484 for (i = 0; i < HASH_SIZE(afs_permits_cache); i++)
/linux-master/net/core/
H A Ddev.c6160 unsigned int hash = napi_id % HASH_SIZE(napi_hash);
6384 &napi_hash[napi->napi_id % HASH_SIZE(napi_hash)]);

Completed in 404 milliseconds