/drivers/crypto/mediatek/ |
D | mtk-sha.c | 324 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 …]
|
D | Makefile | 2 mtk-crypto-objs:= mtk-platform.o mtk-aes.o mtk-sha.o
|
D | mtk-platform.h | 222 struct mtk_sha_rec *sha[MTK_REC_NUM]; member
|
/drivers/crypto/ccp/ |
D | ccp-crypto-sha.c | 137 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 …]
|
D | ccp-ops.c | 1478 struct ccp_sha_engine *sha = &cmd->u.sha; in ccp_run_sha_cmd() local 1490 switch (sha->type) { in ccp_run_sha_cmd() 1492 if (sha->ctx_len < SHA1_DIGEST_SIZE) in ccp_run_sha_cmd() 1497 if (sha->ctx_len < SHA224_DIGEST_SIZE) in ccp_run_sha_cmd() 1502 if (sha->ctx_len < SHA256_DIGEST_SIZE) in ccp_run_sha_cmd() 1508 || sha->ctx_len < SHA384_DIGEST_SIZE) in ccp_run_sha_cmd() 1514 || sha->ctx_len < SHA512_DIGEST_SIZE) in ccp_run_sha_cmd() 1522 if (!sha->ctx) in ccp_run_sha_cmd() 1525 if (!sha->final && (sha->src_len & (block_size - 1))) in ccp_run_sha_cmd() 1531 if (!sha->src_len) { in ccp_run_sha_cmd() [all …]
|
D | ccp-dev-v3.c | 216 | (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,
|
D | Makefile | 20 ccp-crypto-sha.o
|
D | ccp-dev-v5.c | 121 } 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() 1100 .sha = ccp5_perform_sha,
|
D | ccp-dev.h | 551 struct ccp_sha_op sha; member 657 int (*sha)(struct ccp_op *); member
|
D | ccp-crypto.h | 267 struct ccp_sha_ctx sha; member
|
/drivers/scsi/mvsas/ |
D | mv_init.c | 169 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() 369 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in mvs_pci_alloc() local [all …]
|
D | mv_sas.c | 80 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 …]
|
/drivers/scsi/pm8001/ |
D | pm8001_ctl.c | 58 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() 112 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in pm8001_ctl_max_out_io_show() local 113 struct pm8001_hba_info *pm8001_ha = sha->lldd_ha; in pm8001_ctl_max_out_io_show() 135 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in pm8001_ctl_max_devices_show() local 136 struct pm8001_hba_info *pm8001_ha = sha->lldd_ha; in pm8001_ctl_max_devices_show() 161 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in pm8001_ctl_max_sg_list_show() local 162 struct pm8001_hba_info *pm8001_ha = sha->lldd_ha; in pm8001_ctl_max_sg_list_show() [all …]
|
D | pm8001_init.c | 224 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 …]
|
D | pm8001_sas.c | 140 struct sas_ha_struct *sha = dev->port->ha; in pm8001_find_ha_by_dev() local 141 struct pm8001_hba_info *pm8001_ha = sha->lldd_ha; in pm8001_find_ha_by_dev() 245 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in pm8001_scan_start() local 246 pm8001_ha = sha->lldd_ha; in pm8001_scan_start()
|
/drivers/scsi/hisi_sas/ |
D | hisi_sas_main.c | 476 sas_ha = &hisi_hba->sha; in hisi_sas_bytes_dmaed() 605 struct sas_ha_struct *sha = &hisi_hba->sha; in hisi_sas_scan_finished() local 611 sas_drain_work(sha); in hisi_sas_scan_finished() 1014 struct sas_ha_struct *sas_ha = &hisi_hba->sha; in hisi_sas_rescan_topology() 1053 struct sas_ha_struct *sas_ha = &hisi_hba->sha; in hisi_sas_controller_reset() 1530 struct sas_ha_struct *sas_ha = &hisi_hba->sha; in hisi_sas_phy_down() 1891 SHOST_TO_SAS_HA(shost) = &hisi_hba->sha; in hisi_sas_shost_alloc() 1940 struct sas_ha_struct *sha; in hisi_sas_probe() local 1947 sha = SHOST_TO_SAS_HA(shost); in hisi_sas_probe() 1949 platform_set_drvdata(pdev, sha); in hisi_sas_probe() [all …]
|
D | hisi_sas_v3_hw.c | 1231 struct sas_ha_struct *sas_ha = &hisi_hba->sha; in phy_bcast_v3_hw() 1825 SHOST_TO_SAS_HA(shost) = &hisi_hba->sha; in hisi_sas_shost_alloc_pci() 1852 struct sas_ha_struct *sha; in hisi_sas_v3_probe() local 1881 sha = SHOST_TO_SAS_HA(shost); in hisi_sas_v3_probe() 1883 dev_set_drvdata(dev, sha); in hisi_sas_v3_probe() 1901 sha->sas_phy = arr_phy; in hisi_sas_v3_probe() 1902 sha->sas_port = arr_port; in hisi_sas_v3_probe() 1903 sha->core.shost = shost; in hisi_sas_v3_probe() 1904 sha->lldd_ha = hisi_hba; in hisi_sas_v3_probe() 1915 sha->sas_ha_name = DRV_NAME; in hisi_sas_v3_probe() [all …]
|
D | hisi_sas.h | 246 struct sas_ha_struct sha; member
|
D | hisi_sas_v1_hw.c | 1507 struct sas_ha_struct *sha = &hisi_hba->sha; in int_bcast_v1_hw() local 1522 sha->notify_port_event(sas_phy, PORTE_BROADCAST_RCVD); in int_bcast_v1_hw()
|
/drivers/crypto/ |
D | Makefile | 3 obj-$(CONFIG_CRYPTO_DEV_ATMEL_SHA) += atmel-sha.o 32 obj-$(CONFIG_CRYPTO_DEV_PADLOCK_SHA) += padlock-sha.o
|
/drivers/crypto/qce/ |
D | Makefile | 6 sha.o \
|
/drivers/crypto/qat/qat_common/ |
D | qat_algs.c | 192 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()
|
D | icp_qat_hw.h | 200 struct icp_qat_hw_auth_sha512 sha; member
|
/drivers/scsi/ |
D | eata.c | 839 static char sha[MAX_BOARDS]; variable 1220 driver_name, (void *)&sha[j])) { in port_detect() 1429 free_irq(irq, &sha[j]); in port_detect() 2531 if ((j = (unsigned int)((char *)shap - sha)) >= num_boards) in do_interrupt_handler() 2557 free_irq(shost->irq, &sha[ha->board_number]); in eata2x_release()
|
/drivers/net/ethernet/chelsio/cxgb3/ |
D | sge.c | 1956 unsigned char *sha; in cxgb3_arp_process() local 1969 sha = arp_ptr; in cxgb3_arp_process() 1979 arp_send(ARPOP_REPLY, ETH_P_ARP, sip, dev, tip, sha, in cxgb3_arp_process() 1980 pi->iscsic.mac_addr, sha); in cxgb3_arp_process()
|