/linux/drivers/crypto/ccp/ |
A D | ccp-crypto-sha.c | 160 rctx->cmd.u.sha.src = sg; in ccp_do_sha_update() 162 rctx->cmd.u.sha.opad = ctx->u.sha.key_len ? in ccp_do_sha_update() 164 rctx->cmd.u.sha.opad_len = ctx->u.sha.key_len ? in ccp_do_sha_update() 197 if (ctx->u.sha.key_len) { in ccp_sha_init() 282 ctx->u.sha.key_len = 0; in ccp_sha_setkey() 287 memset(ctx->u.sha.key, 0, sizeof(ctx->u.sha.key)); in ccp_sha_setkey() 302 ctx->u.sha.ipad[i] = ctx->u.sha.key[i] ^ HMAC_IPAD_VALUE; in ccp_sha_setkey() 303 ctx->u.sha.opad[i] = ctx->u.sha.key[i] ^ HMAC_OPAD_VALUE; in ccp_sha_setkey() 306 sg_init_one(&ctx->u.sha.opad_sg, ctx->u.sha.opad, block_size); in ccp_sha_setkey() 320 ctx->u.sha.key_len = 0; in ccp_sha_cra_init() [all …]
|
A D | ccp-ops.c | 1488 struct ccp_sha_engine *sha = &cmd->u.sha; in ccp_run_sha_cmd() local 1535 if (!sha->final && (sha->src_len & (block_size - 1))) in ccp_run_sha_cmd() 1638 if (sha->src_len && !sha->src) in ccp_run_sha_cmd() 1645 op.u.sha.type = sha->type; in ccp_run_sha_cmd() 1646 op.u.sha.msg_bits = sha->msg_bits; in ccp_run_sha_cmd() 1692 ret = ccp_init_data(&src, cmd_q, sha->src, sha->src_len, in ccp_run_sha_cmd() 1758 if (sha->final && sha->opad) { in ccp_run_sha_cmd() 1803 hmac_cmd.u.sha.type = sha->type; in ccp_run_sha_cmd() 1804 hmac_cmd.u.sha.ctx = sha->ctx; in ccp_run_sha_cmd() 1805 hmac_cmd.u.sha.ctx_len = sha->ctx_len; in ccp_run_sha_cmd() [all …]
|
A D | ccp-dev-v3.c | 212 | (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() 571 .sha = ccp_perform_sha,
|
A D | Makefile | 23 ccp-crypto-sha.o
|
A D | ccp-dev-v5.c | 115 } 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() 1101 .sha = ccp5_perform_sha,
|
A D | ccp-dev.h | 550 struct ccp_sha_op sha; member 656 int (*sha)(struct ccp_op *); member
|
A D | ccp-crypto.h | 268 struct ccp_sha_ctx sha; member
|
/linux/drivers/scsi/pm8001/ |
A D | pm8001_ctl.c | 60 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in pm8001_ctl_mpi_interface_rev_show() local 61 struct pm8001_hba_info *pm8001_ha = sha->lldd_ha; in pm8001_ctl_mpi_interface_rev_show() 86 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in controller_fatal_error_show() local 87 struct pm8001_hba_info *pm8001_ha = sha->lldd_ha; in controller_fatal_error_show() 107 struct pm8001_hba_info *pm8001_ha = sha->lldd_ha; in pm8001_ctl_fw_version_show() 138 struct pm8001_hba_info *pm8001_ha = sha->lldd_ha; in pm8001_ctl_ila_version_show() 164 struct pm8001_hba_info *pm8001_ha = sha->lldd_ha; in pm8001_ctl_inactive_fw_version_show() 191 struct pm8001_hba_info *pm8001_ha = sha->lldd_ha; in pm8001_ctl_max_out_io_show() 215 struct pm8001_hba_info *pm8001_ha = sha->lldd_ha; in pm8001_ctl_max_devices_show() 242 struct pm8001_hba_info *pm8001_ha = sha->lldd_ha; in pm8001_ctl_max_sg_list_show() [all …]
|
A D | pm8001_init.c | 518 pm8001_ha->sas = sha; in pm8001_pci_alloc() 591 memset(sha, 0x00, sizeof(*sha)); in pm8001_prep_sas_ha_init() 599 sha->sas_phy = arr_phy; in pm8001_prep_sas_ha_init() 602 if (!sha->lldd_ha) in pm8001_prep_sas_ha_init() 1097 if (!sha) { in pm8001_pci_probe() 1163 kfree(sha); in pm8001_pci_probe() 1273 kfree(sha->sas_phy); in pm8001_pci_remove() 1274 kfree(sha->sas_port); in pm8001_pci_remove() 1275 kfree(sha); in pm8001_pci_remove() 1292 sas_suspend_ha(sha); in pm8001_pci_suspend() [all …]
|
A D | pm8001_sas.c | 141 struct sas_ha_struct *sha = dev->port->ha; in pm8001_find_ha_by_dev() local 142 struct pm8001_hba_info *pm8001_ha = sha->lldd_ha; in pm8001_find_ha_by_dev() 266 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in pm8001_scan_start() local 268 pm8001_ha = sha->lldd_ha; in pm8001_scan_start()
|
/linux/drivers/scsi/mvsas/ |
A D | mv_init.c | 370 mvi->sas = sha; in mvs_pci_alloc() 421 sha->sas_phy = arr_phy; in mvs_prep_sas_ha_init() 422 sha->sas_port = arr_port; in mvs_prep_sas_ha_init() 423 sha->core.shost = shost; in mvs_prep_sas_ha_init() 426 if (!sha->lldd_ha) in mvs_prep_sas_ha_init() 463 sha->sas_ha_name = DRV_NAME; in mvs_post_sas_ha_init() 464 sha->dev = mvi->dev; in mvs_post_sas_ha_init() 613 sas_unregister_ha(sha); in mvs_pci_remove() 622 kfree(sha->sas_phy); in mvs_pci_remove() 623 kfree(sha->sas_port); in mvs_pci_remove() [all …]
|
A D | mv_sas.c | 68 while (sha->sas_port[i]) { in mvs_find_dev_mvi() 69 if (sha->sas_port[i] == dev->port) { 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() 96 while (sha->sas_port[i]) { in mvs_find_dev_phyno() 97 if (sha->sas_port[i] == dev->port) { in mvs_find_dev_phyno() 102 while (sha->sas_phy[j]) { in mvs_find_dev_phyno() 103 if (sha->sas_phy[j] == phy) in mvs_find_dev_phyno() 171 while (sha->sas_phy[i]) { in mvs_phy_control() 172 if (sha->sas_phy[i] == sas_phy) in mvs_phy_control() [all …]
|
/linux/net/ipv4/ |
A D | arp.c | 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() 831 sip, dev, tip, sha, in arp_process() 832 dev->dev_addr, sha, in arp_process() 852 sip, dev, tip, sha, in arp_process() 853 dev->dev_addr, sha, in arp_process() 872 sip, tip, sha, tha); in arp_process() [all …]
|
/linux/Documentation/devicetree/bindings/crypto/ |
A D | atmel-crypto.txt | 51 - compatible : Should be "atmel,at91sam9g46-sha". 62 sha@f8034000 { 63 compatible = "atmel,at91sam9g46-sha";
|
/linux/net/bridge/ |
A D | br_arp_nd_proxy.c | 132 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()
|
/linux/drivers/scsi/hisi_sas/ |
A D | hisi_sas_main.c | 852 struct sas_ha_struct *sha = &hisi_hba->sha; in hisi_sas_scan_finished() local 858 sas_drain_work(sha); in hisi_sas_scan_finished() 2736 struct sas_ha_struct *sha; in hisi_sas_probe() local 2756 sha->sas_phy = arr_phy; in hisi_sas_probe() 2757 sha->sas_port = arr_port; in hisi_sas_probe() 2758 sha->lldd_ha = hisi_hba; in hisi_sas_probe() 2773 sha->sas_ha_name = DRV_NAME; in hisi_sas_probe() 2774 sha->dev = hisi_hba->dev; in hisi_sas_probe() 2793 rc = sas_register_ha(sha); in hisi_sas_probe() 2806 sas_unregister_ha(sha); in hisi_sas_probe() [all …]
|
A D | hisi_sas_v3_hw.c | 4676 struct sas_ha_struct *sha; in hisi_sas_v3_probe() local 4724 sha->sas_phy = arr_phy; in hisi_sas_v3_probe() 4725 sha->sas_port = arr_port; in hisi_sas_v3_probe() 4726 sha->core.shost = shost; in hisi_sas_v3_probe() 4727 sha->lldd_ha = hisi_hba; in hisi_sas_v3_probe() 4738 sha->dev = dev; in hisi_sas_v3_probe() 4792 sas_unregister_ha(sha); in hisi_sas_v3_probe() 4833 sas_unregister_ha(sha); in hisi_sas_v3_remove() 4919 sas_suspend_ha(sha); in _suspend_v3_hw() 4939 sas_prep_resume_ha(sha); in _resume_v3_hw() [all …]
|
/linux/drivers/scsi/libsas/ |
A D | sas_init.c | 547 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in phy_event_threshold_show() local 549 return scnprintf(buf, PAGE_SIZE, "%u\n", sha->event_thres); in phy_event_threshold_show() 557 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in phy_event_threshold_store() local 559 sha->event_thres = simple_strtol(buf, NULL, 10); in phy_event_threshold_store() 562 if (sha->event_thres < 32) in phy_event_threshold_store() 563 sha->event_thres = 32; in phy_event_threshold_store()
|
/linux/drivers/crypto/ |
A D | Makefile | 4 obj-$(CONFIG_CRYPTO_DEV_ATMEL_SHA) += atmel-sha.o 32 obj-$(CONFIG_CRYPTO_DEV_PADLOCK_SHA) += padlock-sha.o
|
A D | sa2ul.c | 444 } sha; in sa_prepare_iopads() local 448 prepare_kipad(sha.k_pad, key, key_sz); in sa_prepare_iopads() 451 crypto_shash_update(shash, sha.k_pad, block_size); in sa_prepare_iopads() 452 sa_export_shash(&sha, shash, digest_size, ipad); in sa_prepare_iopads() 454 prepare_kopad(sha.k_pad, key, key_sz); in sa_prepare_iopads() 457 crypto_shash_update(shash, sha.k_pad, block_size); in sa_prepare_iopads() 459 sa_export_shash(&sha, shash, digest_size, opad); in sa_prepare_iopads() 461 memzero_explicit(&sha, sizeof(sha)); in sa_prepare_iopads()
|
/linux/drivers/crypto/qce/ |
A D | Makefile | 7 qcrypto-$(CONFIG_CRYPTO_DEV_QCE_SHA) += sha.o
|
/linux/net/appletalk/ |
A D | aarp.c | 154 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()
|
/linux/drivers/crypto/qat/qat_common/ |
A D | qat_algs.c | 165 hash_state_out = (__be32 *)hash->sha.state1; in qat_alg_do_precomputes() 201 hash_state_out = (__be32 *)(hash->sha.state1 + offset); in qat_alg_do_precomputes() 271 hash->sha.inner_setup.auth_config.config = in qat_alg_aead_init_enc_session() 274 hash->sha.inner_setup.auth_counter.counter = in qat_alg_aead_init_enc_session() 357 hash->sha.inner_setup.auth_config.config = in qat_alg_aead_init_dec_session() 361 hash->sha.inner_setup.auth_counter.counter = in qat_alg_aead_init_dec_session()
|
A D | icp_qat_hw.h | 186 struct icp_qat_hw_auth_sha512 sha; member
|
/linux/lib/zstd/common/ |
A D | cpu.h | 183 B(sha, 29)
|