Home
last modified time | relevance | path

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

/drivers/crypto/nx/
Dnx-aes-gcm.c53 csbcpb->cpb.hdr.mode = NX_MODE_AES_GCM; in gcm_aes_nx_set_key()
54 memcpy(csbcpb->cpb.aes_gcm.key, in_key, key_len); in gcm_aes_nx_set_key()
56 csbcpb_aead->cpb.hdr.mode = NX_MODE_AES_GCA; in gcm_aes_nx_set_key()
57 memcpy(csbcpb_aead->cpb.aes_gca.key, in_key, key_len); in gcm_aes_nx_set_key()
153 memcpy(csbcpb_aead->cpb.aes_gca.in_pat, in nx_gca()
154 csbcpb_aead->cpb.aes_gca.out_pat, in nx_gca()
164 memcpy(out, csbcpb_aead->cpb.aes_gca.out_pat, AES_BLOCK_SIZE); in nx_gca()
181 csbcpb->cpb.hdr.mode = NX_MODE_AES_GMAC; in gmac()
192 memcpy(csbcpb->cpb.aes_gcm.iv_or_cnt, iv, AES_BLOCK_SIZE); in gmac()
215 csbcpb->cpb.aes_gcm.bit_length_data = 0; in gmac()
[all …]
Dnx-aes-ccm.c43 csbcpb->cpb.hdr.mode = NX_MODE_AES_CCM; in ccm_aes_nx_set_key()
44 memcpy(csbcpb->cpb.aes_ccm.key, in_key, key_len); in ccm_aes_nx_set_key()
46 csbcpb_aead->cpb.hdr.mode = NX_MODE_AES_CCA; in ccm_aes_nx_set_key()
47 memcpy(csbcpb_aead->cpb.aes_cca.key, in_key, key_len); in ccm_aes_nx_set_key()
186 b0 = nx_ctx->csbcpb->cpb.aes_ccm.in_pat_or_b0; in generate_pat()
191 b0 = nx_ctx->csbcpb->cpb.aes_ccm.in_pat_or_b0; in generate_pat()
198 b0 = nx_ctx->csbcpb_aead->cpb.aes_cca.b0; in generate_pat()
199 b1 = nx_ctx->csbcpb_aead->cpb.aes_cca.b1; in generate_pat()
202 b0 = nx_ctx->csbcpb_aead->cpb.aes_cca.b0; in generate_pat()
203 b1 = nx_ctx->csbcpb_aead->cpb.aes_cca.b1; in generate_pat()
[all …]
Dnx-aes-xcbc.c43 memcpy(csbcpb->cpb.aes_xcbc.key, in_key, key_len); in nx_xcbc_set_key()
70 csbcpb->cpb.hdr.mode = NX_MODE_AES_ECB; in nx_xcbc_empty()
71 memcpy(key, csbcpb->cpb.aes_xcbc.key, AES_BLOCK_SIZE); in nx_xcbc_empty()
72 memcpy(csbcpb->cpb.aes_ecb.key, key, AES_BLOCK_SIZE); in nx_xcbc_empty()
107 memcpy(csbcpb->cpb.aes_ecb.key, keys[0], AES_BLOCK_SIZE); in nx_xcbc_empty()
131 csbcpb->cpb.hdr.mode = NX_MODE_AES_XCBC_MAC; in nx_xcbc_empty()
132 memcpy(csbcpb->cpb.aes_xcbc.key, key, AES_BLOCK_SIZE); in nx_xcbc_empty()
151 csbcpb->cpb.hdr.mode = NX_MODE_AES_XCBC_MAC; in nx_crypto_ctx_aes_xcbc_init2()
257 memcpy(csbcpb->cpb.aes_xcbc.cv, in nx_xcbc_update()
258 csbcpb->cpb.aes_xcbc.out_cv_mac, in nx_xcbc_update()
[all …]
Dnx-sha256.c88 memcpy(csbcpb->cpb.sha256.message_digest, sctx->state, SHA256_DIGEST_SIZE); in nx_sha256_update()
149 memcpy(csbcpb->cpb.sha256.input_partial_digest, in nx_sha256_update()
150 csbcpb->cpb.sha256.message_digest, in nx_sha256_update()
175 memcpy(sctx->state, csbcpb->cpb.sha256.message_digest, SHA256_DIGEST_SIZE); in nx_sha256_update()
204 memcpy(csbcpb->cpb.sha256.input_partial_digest, sctx->state, SHA256_DIGEST_SIZE); in nx_sha256_final()
212 csbcpb->cpb.sha256.message_bit_length = (u64) (sctx->count * 8); in nx_sha256_final()
245 memcpy(out, csbcpb->cpb.sha256.message_digest, SHA256_DIGEST_SIZE); in nx_sha256_final()
Dnx-sha512.c88 memcpy(csbcpb->cpb.sha512.message_digest, sctx->state, SHA512_DIGEST_SIZE); in nx_sha512_update()
153 memcpy(csbcpb->cpb.sha512.input_partial_digest, in nx_sha512_update()
154 csbcpb->cpb.sha512.message_digest, in nx_sha512_update()
178 memcpy(sctx->state, csbcpb->cpb.sha512.message_digest, SHA512_DIGEST_SIZE); in nx_sha512_update()
208 memcpy(csbcpb->cpb.sha512.input_partial_digest, sctx->state, in nx_sha512_final()
221 csbcpb->cpb.sha512.message_bit_length_lo = count0; in nx_sha512_final()
251 memcpy(out, csbcpb->cpb.sha512.message_digest, SHA512_DIGEST_SIZE); in nx_sha512_final()
Dnx-aes-cbc.c47 csbcpb->cpb.hdr.mode = NX_MODE_AES_CBC; in cbc_aes_nx_set_key()
48 memcpy(csbcpb->cpb.aes_cbc.key, in_key, key_len); in cbc_aes_nx_set_key()
75 csbcpb->cpb.aes_cbc.iv); in cbc_aes_nx_crypt()
89 memcpy(req->iv, csbcpb->cpb.aes_cbc.cv, AES_BLOCK_SIZE); in cbc_aes_nx_crypt()
Dnx-aes-ctr.c48 csbcpb->cpb.hdr.mode = NX_MODE_AES_CTR; in ctr_aes_nx_set_key()
49 memcpy(csbcpb->cpb.aes_ctr.key, in_key, key_len); in ctr_aes_nx_set_key()
88 csbcpb->cpb.aes_ctr.iv); in ctr_aes_nx_crypt()
102 memcpy(iv, csbcpb->cpb.aes_cbc.cv, AES_BLOCK_SIZE); in ctr_aes_nx_crypt()
Dnx_csbcpb.h104 #define NX_CPB_FDM(c) ((c)->cpb.hdr.fdm)
105 #define NX_CPB_KS_DS(c) ((c)->cpb.hdr.ks_ds)
151 struct cop_parameter_block cpb; member
Dnx-aes-ecb.c47 csbcpb->cpb.hdr.mode = NX_MODE_AES_ECB; in ecb_aes_nx_set_key()
48 memcpy(csbcpb->cpb.aes_ecb.key, in_key, key_len); in ecb_aes_nx_set_key()
/drivers/ata/
Dsata_inic162x.c228 struct inic_cpb cpb; member
330 struct inic_cpb *cpb = &pp->pkt->cpb; in inic_host_err_intr() local
353 if (cpb->resp_flags & CPB_RESP_IGNORED) { in inic_host_err_intr()
359 if (cpb->resp_flags & CPB_RESP_ATA_ERR) in inic_host_err_intr()
362 if (cpb->resp_flags & CPB_RESP_SPURIOUS) { in inic_host_err_intr()
368 if (cpb->resp_flags & in inic_host_err_intr()
485 struct inic_cpb *cpb = &pkt->cpb; in inic_qc_prep() local
497 cpb->ctl_flags = CPB_CTL_VALID | CPB_CTL_IEN; in inic_qc_prep()
499 cpb->ctl_flags |= CPB_CTL_DATA; in inic_qc_prep()
501 cpb->len = cpu_to_le32(qc->nbytes + cdb_len); in inic_qc_prep()
[all …]
Dsata_nv.c228 struct nv_adma_cpb *cpb; member
775 static unsigned int nv_adma_tf_to_cpb(struct ata_taskfile *tf, __le16 *cpb) in nv_adma_tf_to_cpb() argument
781 cpb[idx++] = cpu_to_le16((ATA_REG_ERR << 8) | tf->hob_feature | WNB); in nv_adma_tf_to_cpb()
782 cpb[idx++] = cpu_to_le16((ATA_REG_NSECT << 8) | tf->hob_nsect); in nv_adma_tf_to_cpb()
783 cpb[idx++] = cpu_to_le16((ATA_REG_LBAL << 8) | tf->hob_lbal); in nv_adma_tf_to_cpb()
784 cpb[idx++] = cpu_to_le16((ATA_REG_LBAM << 8) | tf->hob_lbam); in nv_adma_tf_to_cpb()
785 cpb[idx++] = cpu_to_le16((ATA_REG_LBAH << 8) | tf->hob_lbah); in nv_adma_tf_to_cpb()
786 cpb[idx++] = cpu_to_le16((ATA_REG_ERR << 8) | tf->feature); in nv_adma_tf_to_cpb()
788 cpb[idx++] = cpu_to_le16((ATA_REG_ERR << 8) | tf->feature | WNB); in nv_adma_tf_to_cpb()
790 cpb[idx++] = cpu_to_le16((ATA_REG_NSECT << 8) | tf->nsect); in nv_adma_tf_to_cpb()
[all …]
/drivers/cpufreq/
Dacpi-cpufreq.c184 cpufreq_freq_attr_rw(cpb);
943 &cpb,
1001 if (*attr == &cpb) { in acpi_cpufreq_probe()
DKconfig.x86104 bool "Legacy cpb sysfs knob support for AMD CPUs"
107 The powernow-k8 driver used to provide a sysfs knob called "cpb"
/drivers/media/platform/samsung/s5p-mfc/
Ds5p_mfc.c1528 .cpb = MAX_CPB_SIZE,
1553 .cpb = MAX_CPB_SIZE_V6,
1582 .cpb = MAX_CPB_SIZE_V7,
1616 .cpb = MAX_CPB_SIZE_V8,
1651 .cpb = MAX_CPB_SIZE_V10,
Ds5p_mfc_common.h221 unsigned int cpb; member
Ds5p_mfc_dec.c456 else if (pix_mp->plane_fmt[0].sizeimage > buf_size->cpb) in vidioc_s_fmt()
457 ctx->dec_src_buf_size = buf_size->cpb; in vidioc_s_fmt()
Ds5p_mfc_opr_v6.c504 writel(buf_size->cpb, mfc_regs->d_cpb_buffer_size); in s5p_mfc_set_dec_stream_buffer_v6()