Home
last modified time | relevance | path

Searched refs:sha (Results 1 – 25 of 47) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/crypto/mediatek/
Dmtk-sha.c321 struct mtk_sha_rec *sha, in mtk_sha_info_update() argument
324 struct mtk_sha_reqctx *ctx = ahash_request_ctx(sha->req); in mtk_sha_info_update()
421 static int mtk_sha_xmit(struct mtk_cryp *cryp, struct mtk_sha_rec *sha, in mtk_sha_xmit() argument
425 struct mtk_sha_reqctx *ctx = ahash_request_ctx(sha->req); in mtk_sha_xmit()
426 struct mtk_ring *ring = cryp->ring[sha->id]; in mtk_sha_xmit()
430 err = mtk_sha_info_update(cryp, sha, len1, len2); in mtk_sha_xmit()
462 mtk_sha_write(cryp, RDR_PREP_COUNT(sha->id), MTK_DESC_CNT(count)); in mtk_sha_xmit()
463 mtk_sha_write(cryp, CDR_PREP_COUNT(sha->id), MTK_DESC_CNT(count)); in mtk_sha_xmit()
469 struct mtk_sha_rec *sha, in mtk_sha_dma_map() argument
482 return mtk_sha_xmit(cryp, sha, ctx->dma_addr, count, 0, 0); in mtk_sha_dma_map()
[all …]
DMakefile3 mtk-crypto-objs:= mtk-platform.o mtk-aes.o mtk-sha.o
Dmtk-platform.h218 struct mtk_sha_rec *sha[MTK_REC_NUM]; member
/kernel/linux/linux-5.10/drivers/crypto/ccp/
Dccp-crypto-sha.c135 rctx->cmd.u.sha.type = rctx->type; in ccp_do_sha_update()
136 rctx->cmd.u.sha.ctx = &rctx->ctx_sg; in ccp_do_sha_update()
140 rctx->cmd.u.sha.ctx_len = SHA1_DIGEST_SIZE; in ccp_do_sha_update()
143 rctx->cmd.u.sha.ctx_len = SHA224_DIGEST_SIZE; in ccp_do_sha_update()
146 rctx->cmd.u.sha.ctx_len = SHA256_DIGEST_SIZE; in ccp_do_sha_update()
149 rctx->cmd.u.sha.ctx_len = SHA384_DIGEST_SIZE; in ccp_do_sha_update()
152 rctx->cmd.u.sha.ctx_len = SHA512_DIGEST_SIZE; in ccp_do_sha_update()
159 rctx->cmd.u.sha.src = sg; in ccp_do_sha_update()
160 rctx->cmd.u.sha.src_len = rctx->hash_cnt; in ccp_do_sha_update()
161 rctx->cmd.u.sha.opad = ctx->u.sha.key_len ? in ccp_do_sha_update()
[all …]
Dccp-ops.c1488 struct ccp_sha_engine *sha = &cmd->u.sha; in ccp_run_sha_cmd() local
1500 switch (sha->type) { in ccp_run_sha_cmd()
1502 if (sha->ctx_len < SHA1_DIGEST_SIZE) in ccp_run_sha_cmd()
1507 if (sha->ctx_len < SHA224_DIGEST_SIZE) in ccp_run_sha_cmd()
1512 if (sha->ctx_len < SHA256_DIGEST_SIZE) in ccp_run_sha_cmd()
1518 || sha->ctx_len < SHA384_DIGEST_SIZE) in ccp_run_sha_cmd()
1524 || sha->ctx_len < SHA512_DIGEST_SIZE) in ccp_run_sha_cmd()
1532 if (!sha->ctx) in ccp_run_sha_cmd()
1535 if (!sha->final && (sha->src_len & (block_size - 1))) in ccp_run_sha_cmd()
1541 if (!sha->src_len) { in ccp_run_sha_cmd()
[all …]
DMakefile23 ccp-crypto-sha.o
Dccp-dev-v3.c212 | (op->u.sha.type << REQ1_SHA_TYPE_SHIFT) in ccp_perform_sha()
222 cr[4] = lower_32_bits(op->u.sha.msg_bits); in ccp_perform_sha()
223 cr[5] = upper_32_bits(op->u.sha.msg_bits); in ccp_perform_sha()
572 .sha = ccp_perform_sha,
Dccp-dev-v5.c115 } sha; member
148 #define CCP_SHA_TYPE(p) ((p)->sha.type)
384 CCP_SHA_TYPE(&function) = op->u.sha.type; in ccp5_perform_sha()
396 CCP5_CMD_SHA_LO(&desc) = lower_32_bits(op->u.sha.msg_bits); in ccp5_perform_sha()
397 CCP5_CMD_SHA_HI(&desc) = upper_32_bits(op->u.sha.msg_bits); in ccp5_perform_sha()
1102 .sha = ccp5_perform_sha,
Dccp-dev.h550 struct ccp_sha_op sha; member
656 int (*sha)(struct ccp_op *); member
/kernel/linux/linux-5.10/drivers/scsi/mvsas/
Dmv_init.c157 struct sas_ha_struct *sha = (struct sas_ha_struct *)opaque; in mvs_tasklet() local
159 core_nr = ((struct mvs_prv_info *)sha->lldd_ha)->n_host; in mvs_tasklet()
160 mvi = ((struct mvs_prv_info *)sha->lldd_ha)->mvi[0]; in mvs_tasklet()
170 mvi = ((struct mvs_prv_info *)sha->lldd_ha)->mvi[i]; in mvs_tasklet()
183 struct sas_ha_struct *sha = opaque; in mvs_interrupt() local
188 core_nr = ((struct mvs_prv_info *)sha->lldd_ha)->n_host; in mvs_interrupt()
191 mvi = ((struct mvs_prv_info *)sha->lldd_ha)->mvi[0]; in mvs_interrupt()
208 tasklet_schedule(&((struct mvs_prv_info *)sha->lldd_ha)->mv_tasklet); in mvs_interrupt()
211 mvi = ((struct mvs_prv_info *)sha->lldd_ha)->mvi[i]; in mvs_interrupt()
352 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in mvs_pci_alloc() local
[all …]
Dmv_sas.c64 struct sas_ha_struct *sha = dev->port->ha; in mvs_find_dev_mvi() local
68 while (sha->sas_port[i]) { in mvs_find_dev_mvi()
69 if (sha->sas_port[i] == dev->port) { in mvs_find_dev_mvi()
70 phy = container_of(sha->sas_port[i]->phy_list.next, in mvs_find_dev_mvi()
73 while (sha->sas_phy[j]) { in mvs_find_dev_mvi()
74 if (sha->sas_phy[j] == phy) in mvs_find_dev_mvi()
82 hi = j/((struct mvs_prv_info *)sha->lldd_ha)->n_phy; in mvs_find_dev_mvi()
83 mvi = ((struct mvs_prv_info *)sha->lldd_ha)->mvi[hi]; in mvs_find_dev_mvi()
94 struct sas_ha_struct *sha = dev->port->ha; in mvs_find_dev_phyno() local
96 while (sha->sas_port[i]) { in mvs_find_dev_phyno()
[all …]
/kernel/linux/linux-5.10/drivers/scsi/pm8001/
Dpm8001_ctl.c59 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in pm8001_ctl_mpi_interface_rev_show() local
60 struct pm8001_hba_info *pm8001_ha = sha->lldd_ha; in pm8001_ctl_mpi_interface_rev_show()
85 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in controller_fatal_error_show() local
86 struct pm8001_hba_info *pm8001_ha = sha->lldd_ha; in controller_fatal_error_show()
105 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in pm8001_ctl_fw_version_show() local
106 struct pm8001_hba_info *pm8001_ha = sha->lldd_ha; in pm8001_ctl_fw_version_show()
136 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in pm8001_ctl_ila_version_show() local
137 struct pm8001_hba_info *pm8001_ha = sha->lldd_ha; in pm8001_ctl_ila_version_show()
162 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in pm8001_ctl_inactive_fw_version_show() local
163 struct pm8001_hba_info *pm8001_ha = sha->lldd_ha; in pm8001_ctl_inactive_fw_version_show()
[all …]
Dpm8001_init.c243 struct sas_ha_struct *sha = dev_id; in pm8001_interrupt_handler_intx() local
244 pm8001_ha = sha->lldd_ha; in pm8001_interrupt_handler_intx()
499 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in pm8001_pci_alloc() local
502 pm8001_ha = sha->lldd_ha; in pm8001_pci_alloc()
511 pm8001_ha->sas = sha; in pm8001_pci_alloc()
578 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in pm8001_prep_sas_ha_init() local
582 memset(sha, 0x00, sizeof(*sha)); in pm8001_prep_sas_ha_init()
590 sha->sas_phy = arr_phy; in pm8001_prep_sas_ha_init()
591 sha->sas_port = arr_port; in pm8001_prep_sas_ha_init()
592 sha->lldd_ha = kzalloc(sizeof(struct pm8001_hba_info), GFP_KERNEL); in pm8001_prep_sas_ha_init()
[all …]
/kernel/linux/linux-5.10/net/ipv4/
Darp.c650 unsigned char *sha, unsigned char *tha) in arp_is_garp() argument
663 !memcmp(tha, sha, dev->addr_len); in arp_is_garp()
684 unsigned char *sha; in arp_process() local
747 sha = arp_ptr; in arp_process()
781 sha = dev->broadcast; in arp_process()
811 sha, dev->dev_addr, sha, reply_dst); in arp_process()
828 n = neigh_event_ns(&arp_tbl, sha, &sip, dev); in arp_process()
831 sip, dev, tip, sha, in arp_process()
832 dev->dev_addr, sha, in arp_process()
844 n = neigh_event_ns(&arp_tbl, sha, &sip, dev); in arp_process()
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/crypto/
Datmel-crypto.txt51 - compatible : Should be "atmel,at91sam9g46-sha".
62 sha@f8034000 {
63 compatible = "atmel,at91sam9g46-sha";
/kernel/linux/linux-5.10/net/bridge/
Dbr_arp_nd_proxy.c132 u8 *arpptr, *sha; in br_do_proxy_suppress_arp() local
149 sha = arpptr; in br_do_proxy_suppress_arp()
209 sha, n->ha, sha, 0, 0); in br_do_proxy_suppress_arp()
212 sha, n->ha, sha, in br_do_proxy_suppress_arp()
/kernel/linux/linux-5.10/drivers/scsi/hisi_sas/
Dhisi_sas_v3_hw.c3195 SHOST_TO_SAS_HA(shost) = &hisi_hba->sha; in hisi_sas_shost_alloc_pci()
3226 struct sas_ha_struct *sha; in hisi_sas_v3_probe() local
3254 sha = SHOST_TO_SAS_HA(shost); in hisi_sas_v3_probe()
3256 dev_set_drvdata(dev, sha); in hisi_sas_v3_probe()
3274 sha->sas_phy = arr_phy; in hisi_sas_v3_probe()
3275 sha->sas_port = arr_port; in hisi_sas_v3_probe()
3276 sha->core.shost = shost; in hisi_sas_v3_probe()
3277 sha->lldd_ha = hisi_hba; in hisi_sas_v3_probe()
3287 sha->sas_ha_name = DRV_NAME; in hisi_sas_v3_probe()
3288 sha->dev = dev; in hisi_sas_v3_probe()
[all …]
Dhisi_sas_main.c848 struct sas_ha_struct *sha = &hisi_hba->sha; in hisi_sas_scan_finished() local
854 sas_drain_work(sha); in hisi_sas_scan_finished()
1757 struct sas_ha_struct *sas_ha = &hisi_hba->sha; in hisi_sas_debug_I_T_nexus_reset()
2166 static int hisi_sas_write_gpio(struct sas_ha_struct *sha, u8 reg_type, in hisi_sas_write_gpio() argument
2169 struct hisi_hba *hisi_hba = sha->lldd_ha; in hisi_sas_write_gpio()
2580 SHOST_TO_SAS_HA(shost) = &hisi_hba->sha; in hisi_sas_shost_alloc()
2627 struct sas_ha_struct *sha; in hisi_sas_probe() local
2634 sha = SHOST_TO_SAS_HA(shost); in hisi_sas_probe()
2636 platform_set_drvdata(pdev, sha); in hisi_sas_probe()
2647 sha->sas_phy = arr_phy; in hisi_sas_probe()
[all …]
/kernel/linux/linux-5.10/drivers/crypto/
DMakefile4 obj-$(CONFIG_CRYPTO_DEV_ATMEL_SHA) += atmel-sha.o
33 obj-$(CONFIG_CRYPTO_DEV_PADLOCK_SHA) += padlock-sha.o
/kernel/linux/linux-5.10/drivers/scsi/libsas/
Dsas_init.c542 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in phy_event_threshold_show() local
544 return scnprintf(buf, PAGE_SIZE, "%u\n", sha->event_thres); in phy_event_threshold_show()
552 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in phy_event_threshold_store() local
554 sha->event_thres = simple_strtol(buf, NULL, 10); in phy_event_threshold_store()
557 if (sha->event_thres < 32) in phy_event_threshold_store()
558 sha->event_thres = 32; in phy_event_threshold_store()
/kernel/linux/linux-5.10/drivers/crypto/qce/
DMakefile7 qcrypto-$(CONFIG_CRYPTO_DEV_QCE_SHA) += sha.o
/kernel/linux/linux-5.10/net/appletalk/
Daarp.c154 struct atalk_addr *them, unsigned char *sha) in aarp_send_reply() argument
185 if (!sha) in aarp_send_reply()
188 ether_addr_copy(eah->hw_dst, sha); in aarp_send_reply()
195 aarp_dl->request(aarp_dl, skb, sha); in aarp_send_reply()
/kernel/linux/linux-5.10/include/net/
Dflow_dissector.h159 unsigned char sha[ETH_ALEN]; member
/kernel/linux/linux-5.10/drivers/crypto/qat/qat_common/
Dicp_qat_hw.h156 struct icp_qat_hw_auth_sha512 sha; member
Dqat_algs.c151 hash_state_out = (__be32 *)hash->sha.state1; in qat_alg_do_precomputes()
187 hash_state_out = (__be32 *)(hash->sha.state1 + offset); in qat_alg_do_precomputes()
274 hash->sha.inner_setup.auth_config.config = in qat_alg_aead_init_enc_session()
277 hash->sha.inner_setup.auth_counter.counter = in qat_alg_aead_init_enc_session()
360 hash->sha.inner_setup.auth_config.config = in qat_alg_aead_init_dec_session()
364 hash->sha.inner_setup.auth_counter.counter = in qat_alg_aead_init_dec_session()

12