Searched refs:HASH_SIZE (Results 1 – 14 of 14) sorted by relevance
| /linux/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);\
|
| /linux/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);\
|
| /linux/scripts/include/ |
| H A D | hashtable.h | 8 #define HASH_SIZE(name) (ARRAY_SIZE(name)) macro 16 #define hash_head(table, key) (&(table)[(key) % HASH_SIZE(table)]) 33 #define hash_init(table) __hash_init(table, HASH_SIZE(table)) 60 for (int _bkt = 0; _bkt < HASH_SIZE(table); _bkt++) \ 72 for (int _bkt = 0; _bkt < HASH_SIZE(table); _bkt++) \
|
| /linux/security/keys/encrypted-keys/ |
| H A D | encrypted.c | 51 #define HASH_SIZE SHA256_DIGEST_SIZE macro 339 if (derived_buf_len < HASH_SIZE) in get_derived_key() 340 derived_buf_len = HASH_SIZE; in get_derived_key() 347 strscpy(derived_buf, "AUTH_KEY", HASH_SIZE); in get_derived_key() 349 strscpy(derived_buf, "ENC_KEY", HASH_SIZE); in get_derived_key() 472 u8 derived_key[HASH_SIZE]; in datablob_hmac_append() 484 dump_hmac(NULL, digest, HASH_SIZE); in datablob_hmac_append() 495 u8 derived_key[HASH_SIZE]; in datablob_hmac_verify() 496 u8 digest[HASH_SIZE]; in datablob_hmac_verify() 520 HASH_SIZE); in datablob_hmac_verify() [all …]
|
| /linux/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()
|
| /linux/drivers/ptp/ |
| H A D | ptp_vclock.c | 29 &vclock_hash[vclock->clock->index % HASH_SIZE(vclock_hash)]); in ptp_vclock_hash_add() 279 unsigned int hash = vclock_index % HASH_SIZE(vclock_hash); in ptp_convert_timestamp()
|
| /linux/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()
|
| /linux/Documentation/security/ |
| H A D | siphash.rst | 66 …return &table->hashtable[siphash(input, sizeof(*input), &table->key) & (HASH_SIZE(table->hashtable… 188 …return &table->hashtable[hsiphash(input, sizeof(*input), &table->key) & (HASH_SIZE(table->hashtabl…
|
| /linux/net/rxrpc/ |
| H A D | proc.c | 332 if (bucket >= HASH_SIZE(rxnet->peer_hash)) { in rxrpc_peer_seq_start() 373 if (bucket >= HASH_SIZE(rxnet->peer_hash)) { in rxrpc_peer_seq_next()
|
| H A D | peer_object.c | 457 for (i = 0; i < HASH_SIZE(rxnet->peer_hash); i++) { in rxrpc_destroy_all_peers()
|
| /linux/scripts/genksyms/ |
| H A D | genksyms.c | 842 nsyms, HASH_SIZE(symbol_hashtable), in main() 843 (double)nsyms / HASH_SIZE(symbol_hashtable)); in main()
|
| /linux/fs/afs/ |
| H A D | security.c | 517 for (i = 0; i < HASH_SIZE(afs_permits_cache); i++) in afs_clean_up_permit_cache()
|
| /linux/drivers/net/ovpn/ |
| H A D | peer.c | 185 jhash(_key, _key_len, 0) % HASH_SIZE(*__tbl2); \
|
| /linux/net/core/ |
| H A D | dev.c | 818 unsigned int hash = napi_id % HASH_SIZE(napi_hash); in napi_by_id() 7186 &napi_hash[napi->napi_id % HASH_SIZE(napi_hash)]); in napi_hash_add()
|