Home
last modified time | relevance | path

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

/drivers/soc/qcom/
Dmdt_loader.c91 size_t hash_size; in qcom_mdt_read_metadata() local
108 hash_size = phdrs[1].p_filesz; in qcom_mdt_read_metadata()
110 data = kmalloc(ehdr_size + hash_size, GFP_KERNEL); in qcom_mdt_read_metadata()
115 if (ehdr_size + hash_size == fw->size) in qcom_mdt_read_metadata()
121 memcpy(data + ehdr_size, fw->data + hash_offset, hash_size); in qcom_mdt_read_metadata()
123 *data_len = ehdr_size + hash_size; in qcom_mdt_read_metadata()
/drivers/net/ethernet/freescale/fman/
Dfman_keygen.c716 u32 hash_base_fqid, u32 hash_size) in keygen_port_hashing_init() argument
727 if (hash_size == 0 || (hash_size & (hash_size - 1)) != 0) { in keygen_port_hashing_init()
760 scheme->hash_fqid_count = hash_size; in keygen_port_hashing_init()
Dfman_keygen.h44 u32 hash_base_fqid, u32 hash_size);
/drivers/net/
Dgtp.c73 unsigned int hash_size; member
110 head = &gtp->tid_hash[gtp0_hashfn(tid) % gtp->hash_size]; in gtp0_pdp_find()
126 head = &gtp->tid_hash[gtp1u_hashfn(tid) % gtp->hash_size]; in gtp1_pdp_find()
142 head = &gtp->addr_hash[ipv4_hashfn(ms_addr) % gtp->hash_size]; in ipv4_pdp_find()
710 for (i = 0; i < gtp->hash_size; i++) in gtp_dellink()
743 if (nla_put_u32(skb, IFLA_GTP_PDP_HASHSIZE, gtp->hash_size)) in gtp_fill_info()
779 gtp->hash_size = hsize; in gtp_hashtable_new()
945 hash_ms = ipv4_hashfn(ms_addr) % gtp->hash_size; in gtp_pdp_add()
1001 hash_tid = gtp0_hashfn(pctx->u.v0.tid) % gtp->hash_size; in gtp_pdp_add()
1004 hash_tid = gtp1u_hashfn(pctx->u.v1.i_tei) % gtp->hash_size; in gtp_pdp_add()
[all …]
/drivers/md/
Ddm-snap.c879 sector_t hash_size, cow_dev_size, max_buckets; in init_hash_tables() local
888 hash_size = cow_dev_size >> s->store->chunk_shift; in init_hash_tables()
889 hash_size = min(hash_size, max_buckets); in init_hash_tables()
891 if (hash_size < 64) in init_hash_tables()
892 hash_size = 64; in init_hash_tables()
893 hash_size = rounddown_pow_of_two(hash_size); in init_hash_tables()
894 if (dm_exception_table_init(&s->complete, hash_size, in init_hash_tables()
902 hash_size >>= 3; in init_hash_tables()
903 if (hash_size < 64) in init_hash_tables()
904 hash_size = 64; in init_hash_tables()
[all …]
/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()
/drivers/crypto/
Datmel-sha.c104 size_t hash_size; member
1765 ctx->hash_size = SHA1_DIGEST_SIZE; in atmel_sha_hmac_setup()
1770 ctx->hash_size = SHA256_DIGEST_SIZE; in atmel_sha_hmac_setup()
1775 ctx->hash_size = SHA256_DIGEST_SIZE; in atmel_sha_hmac_setup()
1780 ctx->hash_size = SHA512_DIGEST_SIZE; in atmel_sha_hmac_setup()
1785 ctx->hash_size = SHA512_DIGEST_SIZE; in atmel_sha_hmac_setup()
1856 size_t hs = ctx->hash_size; in atmel_sha_hmac_compute_opad_hash()
1871 size_t hs = ctx->hash_size; in atmel_sha_hmac_setup_done()
1947 size_t hs = ctx->hash_size; in atmel_sha_hmac_init_done()
1966 size_t hs = ctx->hash_size; in atmel_sha_hmac_final()
[all …]
/drivers/net/bonding/
Dbond_alb.c66 static inline u8 _simple_hash(const u8 *hash_start, int hash_size) in _simple_hash() argument
71 for (i = 0; i < hash_size; i++) in _simple_hash()
1382 int hash_size = 0; in bond_alb_xmit() local
1402 hash_size = sizeof(iph->daddr); in bond_alb_xmit()
1433 hash_size = sizeof(ipv6_hdr(skb)->daddr); in bond_alb_xmit()
1452 hash_size = ETH_ALEN; in bond_alb_xmit()
1466 hash_index = _simple_hash(hash_start, hash_size); in bond_alb_xmit()
/drivers/crypto/chelsio/
Dchcr_algo.h285 unsigned int hash_size; member
Dchcr_algo.c1574 param->hash_size, transhdr_len, in create_hash_wr()
1643 params.hash_size = params.alg_prm.result_size; in chcr_ahash_update()
1730 params.hash_size = crypto_ahash_digestsize(rtfm); in chcr_ahash_final()
1798 params.hash_size = params.alg_prm.result_size; in chcr_ahash_finup()
1804 params.hash_size = crypto_ahash_digestsize(rtfm); in chcr_ahash_finup()
1891 params.hash_size = params.alg_prm.result_size; in chcr_ahash_digest()
1894 params.hash_size = crypto_ahash_digestsize(rtfm); in chcr_ahash_digest()
1963 params.hash_size = params.alg_prm.result_size; in chcr_ahash_continue()
1968 params.hash_size = crypto_ahash_digestsize(rtfm); in chcr_ahash_continue()
/drivers/block/drbd/
Ddrbd_receiver.c3743 int hash_size; in receive_protocol() local
3762 hash_size = crypto_shash_digestsize(peer_integrity_tfm); in receive_protocol()
3763 int_dig_in = kmalloc(hash_size, GFP_KERNEL); in receive_protocol()
3764 int_dig_vv = kmalloc(hash_size, GFP_KERNEL); in receive_protocol()