Home
last modified time | relevance | path

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

12

/Linux-v4.19/drivers/crypto/mediatek/
Dmtk-sha.c324 struct mtk_sha_rec *sha, in mtk_sha_info_update() argument
327 struct mtk_sha_reqctx *ctx = ahash_request_ctx(sha->req); in mtk_sha_info_update()
425 static int mtk_sha_xmit(struct mtk_cryp *cryp, struct mtk_sha_rec *sha, in mtk_sha_xmit() argument
429 struct mtk_sha_reqctx *ctx = ahash_request_ctx(sha->req); in mtk_sha_xmit()
430 struct mtk_ring *ring = cryp->ring[sha->id]; in mtk_sha_xmit()
434 err = mtk_sha_info_update(cryp, sha, len1, len2); in mtk_sha_xmit()
466 mtk_sha_write(cryp, RDR_PREP_COUNT(sha->id), MTK_DESC_CNT(count)); in mtk_sha_xmit()
467 mtk_sha_write(cryp, CDR_PREP_COUNT(sha->id), MTK_DESC_CNT(count)); in mtk_sha_xmit()
473 struct mtk_sha_rec *sha, in mtk_sha_dma_map() argument
486 return mtk_sha_xmit(cryp, sha, ctx->dma_addr, count, 0, 0); in mtk_sha_dma_map()
[all …]
DMakefile2 mtk-crypto-objs:= mtk-platform.o mtk-aes.o mtk-sha.o
Dmtk-platform.h222 struct mtk_sha_rec *sha[MTK_REC_NUM]; member
/Linux-v4.19/drivers/crypto/ccp/
Dccp-crypto-sha.c137 rctx->cmd.u.sha.type = rctx->type; in ccp_do_sha_update()
138 rctx->cmd.u.sha.ctx = &rctx->ctx_sg; in ccp_do_sha_update()
142 rctx->cmd.u.sha.ctx_len = SHA1_DIGEST_SIZE; in ccp_do_sha_update()
145 rctx->cmd.u.sha.ctx_len = SHA224_DIGEST_SIZE; in ccp_do_sha_update()
148 rctx->cmd.u.sha.ctx_len = SHA256_DIGEST_SIZE; in ccp_do_sha_update()
151 rctx->cmd.u.sha.ctx_len = SHA384_DIGEST_SIZE; in ccp_do_sha_update()
154 rctx->cmd.u.sha.ctx_len = SHA512_DIGEST_SIZE; in ccp_do_sha_update()
161 rctx->cmd.u.sha.src = sg; in ccp_do_sha_update()
162 rctx->cmd.u.sha.src_len = rctx->hash_cnt; in ccp_do_sha_update()
163 rctx->cmd.u.sha.opad = ctx->u.sha.key_len ? in ccp_do_sha_update()
[all …]
Dccp-ops.c1462 struct ccp_sha_engine *sha = &cmd->u.sha; in ccp_run_sha_cmd() local
1474 switch (sha->type) { in ccp_run_sha_cmd()
1476 if (sha->ctx_len < SHA1_DIGEST_SIZE) in ccp_run_sha_cmd()
1481 if (sha->ctx_len < SHA224_DIGEST_SIZE) in ccp_run_sha_cmd()
1486 if (sha->ctx_len < SHA256_DIGEST_SIZE) in ccp_run_sha_cmd()
1492 || sha->ctx_len < SHA384_DIGEST_SIZE) in ccp_run_sha_cmd()
1498 || sha->ctx_len < SHA512_DIGEST_SIZE) in ccp_run_sha_cmd()
1506 if (!sha->ctx) in ccp_run_sha_cmd()
1509 if (!sha->final && (sha->src_len & (block_size - 1))) in ccp_run_sha_cmd()
1515 if (!sha->src_len) { in ccp_run_sha_cmd()
[all …]
DMakefile21 ccp-crypto-sha.o
Dccp-dev-v3.c216 | (op->u.sha.type << REQ1_SHA_TYPE_SHIFT) in ccp_perform_sha()
226 cr[4] = lower_32_bits(op->u.sha.msg_bits); in ccp_perform_sha()
227 cr[5] = upper_32_bits(op->u.sha.msg_bits); in ccp_perform_sha()
576 .sha = ccp_perform_sha,
Dccp-dev-v5.c121 } sha; member
154 #define CCP_SHA_TYPE(p) ((p)->sha.type)
390 CCP_SHA_TYPE(&function) = op->u.sha.type; in ccp5_perform_sha()
402 CCP5_CMD_SHA_LO(&desc) = lower_32_bits(op->u.sha.msg_bits); in ccp5_perform_sha()
403 CCP5_CMD_SHA_HI(&desc) = upper_32_bits(op->u.sha.msg_bits); in ccp5_perform_sha()
1099 .sha = ccp5_perform_sha,
Dccp-dev.h551 struct ccp_sha_op sha; member
657 int (*sha)(struct ccp_op *); member
Dccp-crypto.h267 struct ccp_sha_ctx sha; member
/Linux-v4.19/drivers/scsi/mvsas/
Dmv_init.c169 struct sas_ha_struct *sha = (struct sas_ha_struct *)opaque; in mvs_tasklet() local
171 core_nr = ((struct mvs_prv_info *)sha->lldd_ha)->n_host; in mvs_tasklet()
172 mvi = ((struct mvs_prv_info *)sha->lldd_ha)->mvi[0]; in mvs_tasklet()
182 mvi = ((struct mvs_prv_info *)sha->lldd_ha)->mvi[i]; in mvs_tasklet()
196 struct sas_ha_struct *sha = opaque; in mvs_interrupt() local
201 core_nr = ((struct mvs_prv_info *)sha->lldd_ha)->n_host; in mvs_interrupt()
202 mvi = ((struct mvs_prv_info *)sha->lldd_ha)->mvi[0]; in mvs_interrupt()
219 tasklet_schedule(&((struct mvs_prv_info *)sha->lldd_ha)->mv_tasklet); in mvs_interrupt()
222 mvi = ((struct mvs_prv_info *)sha->lldd_ha)->mvi[i]; in mvs_interrupt()
368 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in mvs_pci_alloc() local
[all …]
Dmv_sas.c80 struct sas_ha_struct *sha = dev->port->ha; in mvs_find_dev_mvi() local
84 while (sha->sas_port[i]) { in mvs_find_dev_mvi()
85 if (sha->sas_port[i] == dev->port) { in mvs_find_dev_mvi()
86 phy = container_of(sha->sas_port[i]->phy_list.next, in mvs_find_dev_mvi()
89 while (sha->sas_phy[j]) { in mvs_find_dev_mvi()
90 if (sha->sas_phy[j] == phy) in mvs_find_dev_mvi()
98 hi = j/((struct mvs_prv_info *)sha->lldd_ha)->n_phy; in mvs_find_dev_mvi()
99 mvi = ((struct mvs_prv_info *)sha->lldd_ha)->mvi[hi]; in mvs_find_dev_mvi()
110 struct sas_ha_struct *sha = dev->port->ha; in mvs_find_dev_phyno() local
112 while (sha->sas_port[i]) { in mvs_find_dev_phyno()
[all …]
/Linux-v4.19/drivers/scsi/pm8001/
Dpm8001_ctl.c58 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in pm8001_ctl_mpi_interface_rev_show() local
59 struct pm8001_hba_info *pm8001_ha = sha->lldd_ha; in pm8001_ctl_mpi_interface_rev_show()
83 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in pm8001_ctl_fw_version_show() local
84 struct pm8001_hba_info *pm8001_ha = sha->lldd_ha; in pm8001_ctl_fw_version_show()
113 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in pm8001_ctl_ila_version_show() local
114 struct pm8001_hba_info *pm8001_ha = sha->lldd_ha; in pm8001_ctl_ila_version_show()
138 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in pm8001_ctl_inactive_fw_version_show() local
139 struct pm8001_hba_info *pm8001_ha = sha->lldd_ha; in pm8001_ctl_inactive_fw_version_show()
164 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in pm8001_ctl_max_out_io_show() local
165 struct pm8001_hba_info *pm8001_ha = sha->lldd_ha; in pm8001_ctl_max_out_io_show()
[all …]
Dpm8001_init.c224 struct sas_ha_struct *sha = dev_id; in pm8001_interrupt_handler_intx() local
225 pm8001_ha = sha->lldd_ha; in pm8001_interrupt_handler_intx()
455 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in pm8001_pci_alloc() local
458 pm8001_ha = sha->lldd_ha; in pm8001_pci_alloc()
467 pm8001_ha->sas = sha; in pm8001_pci_alloc()
543 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in pm8001_prep_sas_ha_init() local
547 memset(sha, 0x00, sizeof(*sha)); in pm8001_prep_sas_ha_init()
555 sha->sas_phy = arr_phy; in pm8001_prep_sas_ha_init()
556 sha->sas_port = arr_port; in pm8001_prep_sas_ha_init()
557 sha->lldd_ha = kzalloc(sizeof(struct pm8001_hba_info), GFP_KERNEL); in pm8001_prep_sas_ha_init()
[all …]
/Linux-v4.19/drivers/scsi/hisi_sas/
Dhisi_sas_v3_hw.c1289 struct sas_ha_struct *sas_ha = &hisi_hba->sha; in phy_bcast_v3_hw()
2161 SHOST_TO_SAS_HA(shost) = &hisi_hba->sha; in hisi_sas_shost_alloc_pci()
2188 struct sas_ha_struct *sha; in hisi_sas_v3_probe() local
2217 sha = SHOST_TO_SAS_HA(shost); in hisi_sas_v3_probe()
2219 dev_set_drvdata(dev, sha); in hisi_sas_v3_probe()
2237 sha->sas_phy = arr_phy; in hisi_sas_v3_probe()
2238 sha->sas_port = arr_port; in hisi_sas_v3_probe()
2239 sha->core.shost = shost; in hisi_sas_v3_probe()
2240 sha->lldd_ha = hisi_hba; in hisi_sas_v3_probe()
2251 sha->sas_ha_name = DRV_NAME; in hisi_sas_v3_probe()
[all …]
Dhisi_sas_main.c517 sas_ha = &hisi_hba->sha; in hisi_sas_bytes_dmaed()
699 struct sas_ha_struct *sha = &hisi_hba->sha; in hisi_sas_scan_finished() local
705 sas_drain_work(sha); in hisi_sas_scan_finished()
1186 struct sas_ha_struct *sas_ha = &hisi_hba->sha; in hisi_sas_rescan_topology()
1509 struct sas_ha_struct *sas_ha = &hisi_hba->sha; in hisi_sas_debug_I_T_nexus_reset()
1868 static int hisi_sas_write_gpio(struct sas_ha_struct *sha, u8 reg_type, in hisi_sas_write_gpio() argument
1871 struct hisi_hba *hisi_hba = sha->lldd_ha; in hisi_sas_write_gpio()
1891 struct sas_ha_struct *sas_ha = &hisi_hba->sha; in hisi_sas_phy_down()
2251 SHOST_TO_SAS_HA(shost) = &hisi_hba->sha; in hisi_sas_shost_alloc()
2296 struct sas_ha_struct *sha; in hisi_sas_probe() local
[all …]
/Linux-v4.19/net/ipv4/
Darp.c652 unsigned char *sha, unsigned char *tha) in arp_is_garp() argument
665 !memcmp(tha, sha, dev->addr_len); in arp_is_garp()
686 unsigned char *sha; in arp_process() local
749 sha = arp_ptr; in arp_process()
783 sha = dev->broadcast; in arp_process()
813 sha, dev->dev_addr, sha, reply_dst); in arp_process()
830 n = neigh_event_ns(&arp_tbl, sha, &sip, dev); in arp_process()
833 sip, dev, tip, sha, in arp_process()
834 dev->dev_addr, sha, in arp_process()
846 n = neigh_event_ns(&arp_tbl, sha, &sip, dev); in arp_process()
[all …]
/Linux-v4.19/net/bridge/
Dbr_arp_nd_proxy.c130 u8 *arpptr, *sha; in br_do_proxy_suppress_arp() local
147 sha = arpptr; in br_do_proxy_suppress_arp()
204 sha, n->ha, sha, 0, 0); in br_do_proxy_suppress_arp()
207 sha, n->ha, sha, in br_do_proxy_suppress_arp()
/Linux-v4.19/Documentation/devicetree/bindings/crypto/
Datmel-crypto.txt51 - compatible : Should be "atmel,at91sam9g46-sha".
62 sha@f8034000 {
63 compatible = "atmel,at91sam9g46-sha";
/Linux-v4.19/drivers/crypto/
DMakefile3 obj-$(CONFIG_CRYPTO_DEV_ATMEL_SHA) += atmel-sha.o
31 obj-$(CONFIG_CRYPTO_DEV_PADLOCK_SHA) += padlock-sha.o
/Linux-v4.19/drivers/scsi/libsas/
Dsas_init.c563 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in phy_event_threshold_show() local
565 return scnprintf(buf, PAGE_SIZE, "%u\n", sha->event_thres); in phy_event_threshold_show()
573 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in phy_event_threshold_store() local
575 sha->event_thres = simple_strtol(buf, NULL, 10); in phy_event_threshold_store()
578 if (sha->event_thres < 32) in phy_event_threshold_store()
579 sha->event_thres = 32; in phy_event_threshold_store()
/Linux-v4.19/drivers/crypto/qce/
DMakefile6 sha.o \
/Linux-v4.19/net/appletalk/
Daarp.c160 struct atalk_addr *them, unsigned char *sha) in aarp_send_reply() argument
191 if (!sha) in aarp_send_reply()
194 ether_addr_copy(eah->hw_dst, sha); in aarp_send_reply()
201 aarp_dl->request(aarp_dl, skb, sha); in aarp_send_reply()
/Linux-v4.19/include/net/
Dflow_dissector.h136 unsigned char sha[ETH_ALEN]; member
/Linux-v4.19/drivers/crypto/qat/qat_common/
Dqat_algs.c192 hash_state_out = (__be32 *)hash->sha.state1; in qat_alg_do_precomputes()
225 hash_state_out = (__be32 *)(hash->sha.state1 + offset); in qat_alg_do_precomputes()
295 hash->sha.inner_setup.auth_config.config = in qat_alg_aead_init_enc_session()
298 hash->sha.inner_setup.auth_counter.counter = in qat_alg_aead_init_enc_session()
381 hash->sha.inner_setup.auth_config.config = in qat_alg_aead_init_dec_session()
385 hash->sha.inner_setup.auth_counter.counter = in qat_alg_aead_init_dec_session()

12