Home
last modified time | relevance | path

Searched refs:hash_size (Results 1 – 25 of 29) sorted by relevance

12

/linux-6.1.9/fs/jbd2/
Drevoke.c115 int hash_size; member
218 static struct jbd2_revoke_table_s *jbd2_journal_init_revoke_table(int hash_size) in jbd2_journal_init_revoke_table() argument
221 int tmp = hash_size; in jbd2_journal_init_revoke_table()
231 table->hash_size = hash_size; in jbd2_journal_init_revoke_table()
234 kmalloc_array(hash_size, sizeof(struct list_head), GFP_KERNEL); in jbd2_journal_init_revoke_table()
241 for (tmp = 0; tmp < hash_size; tmp++) in jbd2_journal_init_revoke_table()
253 for (i = 0; i < table->hash_size; i++) { in jbd2_journal_destroy_revoke_table()
263 int jbd2_journal_init_revoke(journal_t *journal, int hash_size) in jbd2_journal_init_revoke() argument
266 J_ASSERT(is_power_of_2(hash_size)); in jbd2_journal_init_revoke()
268 journal->j_revoke_table[0] = jbd2_journal_init_revoke_table(hash_size); in jbd2_journal_init_revoke()
[all …]
/linux-6.1.9/drivers/soc/qcom/
Dmdt_loader.c133 size_t hash_size; in qcom_mdt_read_metadata() local
161 hash_size = phdrs[hash_segment].p_filesz; in qcom_mdt_read_metadata()
163 data = kmalloc(ehdr_size + hash_size, GFP_KERNEL); in qcom_mdt_read_metadata()
170 if (ehdr_size + hash_size == fw->size) { in qcom_mdt_read_metadata()
173 memcpy(data + ehdr_size, fw->data + hash_offset, hash_size); in qcom_mdt_read_metadata()
174 } else if (phdrs[hash_segment].p_offset + hash_size <= fw->size) { in qcom_mdt_read_metadata()
177 memcpy(data + ehdr_size, fw->data + hash_offset, hash_size); in qcom_mdt_read_metadata()
187 *data_len = ehdr_size + hash_size; in qcom_mdt_read_metadata()
/linux-6.1.9/drivers/net/ipa/
Dipa_table.c429 u16 hash_size; in ipa_table_init_add() local
450 hash_size = hash_count * sizeof(__le64); in ipa_table_init_add()
456 hash_size, hash_mem->offset, hash_addr); in ipa_table_init_add()
465 if (!hash_size) in ipa_table_init_add()
469 zero_offset = hash_mem->offset + hash_size; in ipa_table_init_add()
470 zero_size = hash_mem->size - hash_size; in ipa_table_init_add()
Dipa_cmd.c391 dma_addr_t addr, u16 hash_size, u32 hash_offset, in ipa_cmd_table_init_add() argument
406 if (hash_size) { in ipa_cmd_table_init_add()
411 val |= u64_encode_bits(hash_size, in ipa_cmd_table_init_add()
419 if (hash_size) in ipa_cmd_table_init_add()
Dipa_cmd.h98 u16 hash_size, u32 hash_offset,
/linux-6.1.9/drivers/net/ethernet/freescale/fman/
Dfman_keygen.c689 u32 hash_base_fqid, u32 hash_size) in keygen_port_hashing_init() argument
700 if (hash_size == 0 || (hash_size & (hash_size - 1)) != 0) { in keygen_port_hashing_init()
733 scheme->hash_fqid_count = hash_size; in keygen_port_hashing_init()
Dfman_keygen.h17 u32 hash_base_fqid, u32 hash_size);
/linux-6.1.9/net/sunrpc/
Dcache.c435 current_index >= current_detail->hash_size) { in cache_clean()
447 current_index = current_detail->hash_size; in cache_clean()
456 current_index < current_detail->hash_size && in cache_clean()
462 if (current_detail && current_index < current_detail->hash_size) { in cache_clean()
544 for (i = 0; i < detail->hash_size; i++) { in cache_purge()
1360 } while(hash < cd->hash_size && in __cache_seq_start()
1362 if (hash >= cd->hash_size) in __cache_seq_start()
1388 while (hash < cd->hash_size && in cache_seq_next()
1393 if (hash >= cd->hash_size) in cache_seq_next()
1749 cd->hash_table = kcalloc(cd->hash_size, sizeof(struct hlist_head), in cache_create_net()
[all …]
Dsvcauth_unix.c577 .hash_size = GID_HASHMAX,
938 .hash_size = IP_HASHMAX,
/linux-6.1.9/drivers/net/
Dgtp.c75 unsigned int hash_size; member
130 head = &gtp->tid_hash[gtp0_hashfn(tid) % gtp->hash_size]; in gtp0_pdp_find()
146 head = &gtp->tid_hash[gtp1u_hashfn(tid) % gtp->hash_size]; in gtp1_pdp_find()
162 head = &gtp->addr_hash[ipv4_hashfn(ms_addr) % gtp->hash_size]; in ipv4_pdp_find()
1113 for (i = 0; i < gtp->hash_size; i++) in gtp_dellink()
1150 if (nla_put_u32(skb, IFLA_GTP_PDP_HASHSIZE, gtp->hash_size)) in gtp_fill_info()
1190 gtp->hash_size = hsize; in gtp_hashtable_new()
1345 hash_ms = ipv4_hashfn(ms_addr) % gtp->hash_size; in gtp_pdp_add()
1401 hash_tid = gtp0_hashfn(pctx->u.v0.tid) % gtp->hash_size; in gtp_pdp_add()
1404 hash_tid = gtp1u_hashfn(pctx->u.v1.i_tei) % gtp->hash_size; in gtp_pdp_add()
[all …]
/linux-6.1.9/drivers/md/
Ddm-snap.c880 sector_t hash_size, cow_dev_size, max_buckets; in init_hash_tables() local
889 hash_size = cow_dev_size >> s->store->chunk_shift; in init_hash_tables()
890 hash_size = min(hash_size, max_buckets); in init_hash_tables()
892 if (hash_size < 64) in init_hash_tables()
893 hash_size = 64; in init_hash_tables()
894 hash_size = rounddown_pow_of_two(hash_size); in init_hash_tables()
895 if (dm_exception_table_init(&s->complete, hash_size, in init_hash_tables()
903 hash_size >>= 3; in init_hash_tables()
904 if (hash_size < 64) in init_hash_tables()
905 hash_size = 64; in init_hash_tables()
[all …]
/linux-6.1.9/drivers/nfc/s3fwrn5/
Dfirmware.c110 const void *hash_data, u16 hash_size, in s3fwrn5_fw_enter_update_mode() argument
120 args.hashcode_size = hash_size; in s3fwrn5_fw_enter_update_mode()
144 hash_data, hash_size); in s3fwrn5_fw_enter_update_mode()
/linux-6.1.9/drivers/crypto/
Dsa2ul.c134 u8 hash_size; member
689 u8 hash_size, u32 *swinfo) in sa_set_swinfo() argument
701 swinfo[2] |= FIELD_PREP(SA_SW2_EGRESS_LENGTH, hash_size); in sa_set_swinfo()
737 if (!ad->hash_size) in sa_init_sc()
739 ad->hash_size = roundup(ad->hash_size, 8); in sa_init_sc()
745 ad->hash_size = ad->iv_out_size; in sa_init_sc()
775 SA_SW_INFO_FLAG_EVICT, ad->hash_size, swinfo); in sa_init_sc()
1634 ad.hash_size = SHA1_DIGEST_SIZE; in sa_sha1_cra_init()
1650 ad.hash_size = SHA256_DIGEST_SIZE; in sa_sha256_cra_init()
1666 ad.hash_size = SHA512_DIGEST_SIZE; in sa_sha512_cra_init()
[all …]
Datmel-sha.c106 size_t hash_size; member
1699 ctx->hash_size = SHA1_DIGEST_SIZE; in atmel_sha_hmac_setup()
1704 ctx->hash_size = SHA256_DIGEST_SIZE; in atmel_sha_hmac_setup()
1709 ctx->hash_size = SHA256_DIGEST_SIZE; in atmel_sha_hmac_setup()
1714 ctx->hash_size = SHA512_DIGEST_SIZE; in atmel_sha_hmac_setup()
1719 ctx->hash_size = SHA512_DIGEST_SIZE; in atmel_sha_hmac_setup()
1790 size_t hs = ctx->hash_size; in atmel_sha_hmac_compute_opad_hash()
1805 size_t hs = ctx->hash_size; in atmel_sha_hmac_setup_done()
1876 size_t hs = ctx->hash_size; in atmel_sha_hmac_init_done()
1895 size_t hs = ctx->hash_size; in atmel_sha_hmac_final()
[all …]
/linux-6.1.9/lib/zlib_deflate/
Ddeflate.c184 s->head[s->hash_size-1] = NIL; \
185 memset((char *)s->head, 0, (unsigned)(s->hash_size-1)*sizeof(*s->head));
257 s->hash_size = 1 << s->hash_bits; in zlib_deflateInit2()
258 s->hash_mask = s->hash_size - 1; in zlib_deflateInit2()
776 n = s->hash_size; in fill_window()
Ddefutil.h115 uInt hash_size; /* number of elements in hash table */ member
/linux-6.1.9/net/dccp/
Dproto.c1146 unsigned long hash_size = (1UL << ehash_order) * PAGE_SIZE / in dccp_init() local
1149 while (hash_size & (hash_size - 1)) in dccp_init()
1150 hash_size--; in dccp_init()
1151 dccp_hashinfo.ehash_mask = hash_size - 1; in dccp_init()
/linux-6.1.9/fs/affs/
Damigaffs.h54 __be32 hash_size; member
/linux-6.1.9/drivers/net/bonding/
Dbond_alb.c61 static inline u8 _simple_hash(const u8 *hash_start, int hash_size) in _simple_hash() argument
66 for (i = 0; i < hash_size; i++) in _simple_hash()
1428 int hash_size = 0; in bond_xmit_alb_slave_get() local
1448 hash_size = sizeof(iph->daddr); in bond_xmit_alb_slave_get()
1487 hash_size = sizeof(ip6hdr->daddr); in bond_xmit_alb_slave_get()
1502 hash_index = _simple_hash(hash_start, hash_size); in bond_xmit_alb_slave_get()
/linux-6.1.9/include/linux/sunrpc/
Dcache.h68 int hash_size; member
/linux-6.1.9/fs/nfsd/
Dnfs4idmap.c190 .hash_size = ENT_HASHMAX,
360 .hash_size = ENT_HASHMAX,
Dexport.c259 .hash_size = EXPKEY_HASHMAX,
845 .hash_size = EXPORT_HASHMAX,
/linux-6.1.9/drivers/crypto/chelsio/
Dchcr_algo.h252 unsigned int hash_size; member
Dchcr_algo.c1647 param->hash_size, transhdr_len, in create_hash_wr()
1720 params.hash_size = params.alg_prm.result_size; in chcr_ahash_update()
1812 params.hash_size = crypto_ahash_digestsize(rtfm); in chcr_ahash_final()
1884 params.hash_size = params.alg_prm.result_size; in chcr_ahash_finup()
1890 params.hash_size = crypto_ahash_digestsize(rtfm); in chcr_ahash_finup()
1980 params.hash_size = params.alg_prm.result_size; in chcr_ahash_digest()
1983 params.hash_size = crypto_ahash_digestsize(rtfm); in chcr_ahash_digest()
2058 params.hash_size = params.alg_prm.result_size; in chcr_ahash_continue()
2063 params.hash_size = crypto_ahash_digestsize(rtfm); in chcr_ahash_continue()
/linux-6.1.9/fs/nfs/
Ddns_resolve.c370 .hash_size = NFS_DNS_HASHTBL_SIZE,

12