Home
last modified time | relevance | path

Searched refs:cpb (Results 1 – 16 of 16) sorted by relevance

/drivers/crypto/nx/
Dnx-sha512.c64 memcpy(csbcpb->cpb.sha512.input_partial_digest, in nx_sha512_update()
65 csbcpb->cpb.sha512.message_digest, SHA512_DIGEST_SIZE); in nx_sha512_update()
117 spbc_bits = csbcpb->cpb.sha512.spbc * 8; in nx_sha512_update()
118 csbcpb->cpb.sha512.message_bit_length_lo += spbc_bits; in nx_sha512_update()
119 if (csbcpb->cpb.sha512.message_bit_length_lo < spbc_bits) in nx_sha512_update()
120 csbcpb->cpb.sha512.message_bit_length_hi++; in nx_sha512_update()
140 memcpy(csbcpb->cpb.sha512.input_partial_digest, in nx_sha512_final()
141 csbcpb->cpb.sha512.message_digest, SHA512_DIGEST_SIZE); in nx_sha512_final()
150 csbcpb->cpb.sha512.message_bit_length_lo += count0; in nx_sha512_final()
151 if (csbcpb->cpb.sha512.message_bit_length_lo < count0) in nx_sha512_final()
[all …]
Dnx-sha256.c64 memcpy(csbcpb->cpb.sha256.input_partial_digest, in nx_sha256_update()
65 csbcpb->cpb.sha256.message_digest, SHA256_DIGEST_SIZE); in nx_sha256_update()
117 csbcpb->cpb.sha256.message_bit_length += (u64) in nx_sha256_update()
118 (csbcpb->cpb.sha256.spbc * 8); in nx_sha256_update()
138 memcpy(csbcpb->cpb.sha256.input_partial_digest, in nx_sha256_final()
139 csbcpb->cpb.sha256.message_digest, SHA256_DIGEST_SIZE); in nx_sha256_final()
146 csbcpb->cpb.sha256.message_bit_length += (u64)(sctx->count * 8); in nx_sha256_final()
167 atomic64_add(csbcpb->cpb.sha256.message_bit_length / 8, in nx_sha256_final()
169 memcpy(out, csbcpb->cpb.sha256.message_digest, SHA256_DIGEST_SIZE); in nx_sha256_final()
182 (csbcpb->cpb.sha256.message_bit_length / 8); in nx_sha256_export()
[all …]
Dnx-aes-ccm.c55 csbcpb->cpb.hdr.mode = NX_MODE_AES_CCM; in ccm_aes_nx_set_key()
56 memcpy(csbcpb->cpb.aes_ccm.key, in_key, key_len); in ccm_aes_nx_set_key()
58 csbcpb_aead->cpb.hdr.mode = NX_MODE_AES_CCA; in ccm_aes_nx_set_key()
59 memcpy(csbcpb_aead->cpb.aes_cca.key, in_key, key_len); in ccm_aes_nx_set_key()
190 b0 = nx_ctx->csbcpb->cpb.aes_ccm.in_pat_or_b0; in generate_pat()
195 b0 = nx_ctx->csbcpb->cpb.aes_ccm.in_pat_or_b0; in generate_pat()
214 result = nx_ctx->csbcpb->cpb.aes_ccm.out_pat_or_mac; in generate_pat()
219 b0 = nx_ctx->csbcpb_aead->cpb.aes_cca.b0; in generate_pat()
220 b1 = nx_ctx->csbcpb_aead->cpb.aes_cca.b1; in generate_pat()
231 result = nx_ctx->csbcpb_aead->cpb.aes_cca.out_pat_or_b0; in generate_pat()
[all …]
Dnx-aes-gcm.c65 csbcpb->cpb.hdr.mode = NX_MODE_AES_GCM; in gcm_aes_nx_set_key()
66 memcpy(csbcpb->cpb.aes_gcm.key, in_key, key_len); in gcm_aes_nx_set_key()
68 csbcpb_aead->cpb.hdr.mode = NX_MODE_AES_GCA; in gcm_aes_nx_set_key()
69 memcpy(csbcpb_aead->cpb.aes_gca.key, in_key, key_len); in gcm_aes_nx_set_key()
158 memcpy(out, csbcpb_aead->cpb.aes_gca.out_pat, AES_BLOCK_SIZE); in nx_gca()
192 crypto_blkcipher_setkey(desc.tfm, csbcpb->cpb.aes_gcm.key, in gcm_aes_nx_crypt()
211 csbcpb->cpb.aes_gcm.bit_length_aad = req->assoclen * 8; in gcm_aes_nx_crypt()
214 rc = nx_gca(nx_ctx, req, csbcpb->cpb.aes_gcm.in_pat_or_aad); in gcm_aes_nx_crypt()
224 csbcpb->cpb.aes_gcm.bit_length_data = nbytes * 8; in gcm_aes_nx_crypt()
227 csbcpb->cpb.aes_gcm.iv_or_cnt); in gcm_aes_nx_crypt()
[all …]
Dnx-aes-xcbc.c71 csbcpb->cpb.hdr.mode = NX_MODE_AES_XCBC_MAC; in nx_xcbc_init()
73 memcpy(csbcpb->cpb.aes_xcbc.key, nx_ctx->priv.xcbc.key, AES_BLOCK_SIZE); in nx_xcbc_init()
97 memcpy(csbcpb->cpb.aes_xcbc.cv, in nx_xcbc_update()
98 csbcpb->cpb.aes_xcbc.out_cv_mac, AES_BLOCK_SIZE); in nx_xcbc_update()
175 memcpy(csbcpb->cpb.aes_xcbc.cv, in nx_xcbc_final()
176 csbcpb->cpb.aes_xcbc.out_cv_mac, AES_BLOCK_SIZE); in nx_xcbc_final()
212 memcpy(out, csbcpb->cpb.aes_xcbc.out_cv_mac, AES_BLOCK_SIZE); in nx_xcbc_final()
Dnx-aes-cbc.c59 csbcpb->cpb.hdr.mode = NX_MODE_AES_CBC; in cbc_aes_nx_set_key()
60 memcpy(csbcpb->cpb.aes_cbc.key, in_key, key_len); in cbc_aes_nx_set_key()
84 csbcpb->cpb.aes_cbc.iv); in cbc_aes_nx_crypt()
Dnx-aes-ctr.c60 csbcpb->cpb.hdr.mode = NX_MODE_AES_CTR; in ctr_aes_nx_set_key()
61 memcpy(csbcpb->cpb.aes_ctr.key, in_key, key_len); in ctr_aes_nx_set_key()
97 csbcpb->cpb.aes_ctr.iv); in ctr_aes_nx_crypt()
Dnx_csbcpb.h103 #define NX_CPB_FDM(c) ((c)->cpb.hdr.fdm)
104 #define NX_CPB_KS_DS(c) ((c)->cpb.hdr.ks_ds)
150 struct cop_parameter_block cpb; member
Dnx-aes-ecb.c59 csbcpb->cpb.hdr.mode = NX_MODE_AES_ECB; in ecb_aes_nx_set_key()
60 memcpy(csbcpb->cpb.aes_ecb.key, in_key, key_len); in ecb_aes_nx_set_key()
/drivers/ata/
Dsata_inic162x.c217 struct inic_cpb cpb; member
312 struct inic_cpb *cpb = &pp->pkt->cpb; in inic_host_err_intr() local
335 if (cpb->resp_flags & CPB_RESP_IGNORED) { in inic_host_err_intr()
341 if (cpb->resp_flags & CPB_RESP_ATA_ERR) in inic_host_err_intr()
344 if (cpb->resp_flags & CPB_RESP_SPURIOUS) { in inic_host_err_intr()
350 if (cpb->resp_flags & in inic_host_err_intr()
467 struct inic_cpb *cpb = &pkt->cpb; in inic_qc_prep() local
481 cpb->ctl_flags = CPB_CTL_VALID | CPB_CTL_IEN; in inic_qc_prep()
483 cpb->ctl_flags |= CPB_CTL_DATA; in inic_qc_prep()
485 cpb->len = cpu_to_le32(qc->nbytes + cdb_len); in inic_qc_prep()
[all …]
Dsata_nv.c244 struct nv_adma_cpb *cpb; member
804 static unsigned int nv_adma_tf_to_cpb(struct ata_taskfile *tf, __le16 *cpb) in nv_adma_tf_to_cpb() argument
810 cpb[idx++] = cpu_to_le16((ATA_REG_ERR << 8) | tf->hob_feature | WNB); in nv_adma_tf_to_cpb()
811 cpb[idx++] = cpu_to_le16((ATA_REG_NSECT << 8) | tf->hob_nsect); in nv_adma_tf_to_cpb()
812 cpb[idx++] = cpu_to_le16((ATA_REG_LBAL << 8) | tf->hob_lbal); in nv_adma_tf_to_cpb()
813 cpb[idx++] = cpu_to_le16((ATA_REG_LBAM << 8) | tf->hob_lbam); in nv_adma_tf_to_cpb()
814 cpb[idx++] = cpu_to_le16((ATA_REG_LBAH << 8) | tf->hob_lbah); in nv_adma_tf_to_cpb()
815 cpb[idx++] = cpu_to_le16((ATA_REG_ERR << 8) | tf->feature); in nv_adma_tf_to_cpb()
817 cpb[idx++] = cpu_to_le16((ATA_REG_ERR << 8) | tf->feature | WNB); in nv_adma_tf_to_cpb()
819 cpb[idx++] = cpu_to_le16((ATA_REG_NSECT << 8) | tf->nsect); in nv_adma_tf_to_cpb()
[all …]
/drivers/cpufreq/
Dacpi-cpufreq.c191 static struct freq_attr cpb = __ATTR(cpb, 0644, show_cpb, store_cpb); variable
998 *iter = &cpb; in acpi_cpufreq_init()
DKconfig.x8651 bool "Legacy cpb sysfs knob support for AMD CPUs"
54 The powernow-k8 driver used to provide a sysfs knob called "cpb"
/drivers/media/platform/s5p-mfc/
Ds5p_mfc_common.h222 unsigned int cpb; member
Ds5p_mfc.c1352 .cpb = MAX_CPB_SIZE,
1378 .cpb = MAX_CPB_SIZE_V6,
Ds5p_mfc_opr_v6.c348 WRITEL(buf_size->cpb, S5P_FIMV_D_CPB_BUFFER_SIZE_V6); in s5p_mfc_set_dec_stream_buffer_v6()