/drivers/crypto/caam/ |
D | caamhash_desc.c | 28 void cnstr_shdsc_ahash(u32 * const desc, struct alginfo *adata, u32 state, in cnstr_shdsc_ahash() argument 31 u32 op = adata->algtype; in cnstr_shdsc_ahash() 36 if (state != OP_ALG_AS_UPDATE && adata->keylen) { in cnstr_shdsc_ahash() 44 append_key_as_imm(desc, adata->key_virt, in cnstr_shdsc_ahash() 45 adata->keylen_pad, in cnstr_shdsc_ahash() 46 adata->keylen, CLASS_2 | in cnstr_shdsc_ahash() 49 append_proto_dkp(desc, adata); in cnstr_shdsc_ahash() 87 void cnstr_shdsc_sk_hash(u32 * const desc, struct alginfo *adata, u32 state, in cnstr_shdsc_sk_hash() argument 98 append_key_as_imm(desc, adata->key_virt, adata->keylen, in cnstr_shdsc_sk_hash() 99 adata->keylen, CLASS_1 | KEY_DEST_CLASS_REG); in cnstr_shdsc_sk_hash() [all …]
|
D | key_gen.c | 45 struct alginfo * const adata, const u8 *key_in, u32 keylen, in gen_split_key() argument 54 adata->keylen = split_key_len(adata->algtype & OP_ALG_ALGSEL_MASK); in gen_split_key() 55 adata->keylen_pad = split_key_pad_len(adata->algtype & in gen_split_key() 57 local_max = max(keylen, adata->keylen_pad); in gen_split_key() 60 adata->keylen, adata->keylen_pad); in gen_split_key() 85 append_operation(desc, (adata->algtype & OP_ALG_ALGSEL_MASK) | in gen_split_key() 100 append_fifo_store(desc, dma_addr, adata->keylen, in gen_split_key() 118 adata->keylen_pad, 1); in gen_split_key()
|
D | caamalg_desc.c | 56 void cnstr_shdsc_aead_null_encap(u32 * const desc, struct alginfo *adata, in cnstr_shdsc_aead_null_encap() argument 67 if (adata->key_inline) in cnstr_shdsc_aead_null_encap() 68 append_key_as_imm(desc, adata->key_virt, in cnstr_shdsc_aead_null_encap() 69 adata->keylen_pad, adata->keylen, in cnstr_shdsc_aead_null_encap() 73 append_key(desc, adata->key_dma, adata->keylen, in cnstr_shdsc_aead_null_encap() 76 append_proto_dkp(desc, adata); in cnstr_shdsc_aead_null_encap() 101 append_operation(desc, adata->algtype | OP_ALG_AS_INITFINAL | in cnstr_shdsc_aead_null_encap() 135 void cnstr_shdsc_aead_null_decap(u32 * const desc, struct alginfo *adata, in cnstr_shdsc_aead_null_decap() argument 146 if (adata->key_inline) in cnstr_shdsc_aead_null_decap() 147 append_key_as_imm(desc, adata->key_virt, in cnstr_shdsc_aead_null_decap() [all …]
|
D | caamalg_desc.h | 51 void cnstr_shdsc_aead_null_encap(u32 * const desc, struct alginfo *adata, 54 void cnstr_shdsc_aead_null_decap(u32 * const desc, struct alginfo *adata, 58 struct alginfo *adata, unsigned int ivsize, 64 struct alginfo *adata, unsigned int ivsize, 70 struct alginfo *adata, unsigned int ivsize, 100 struct alginfo *adata, unsigned int ivsize,
|
D | caamhash.c | 102 struct alginfo adata; member 230 ctx->adata.key_virt = ctx->key; in ahash_set_sh_desc() 234 cnstr_shdsc_ahash(desc, &ctx->adata, OP_ALG_AS_UPDATE, ctx->ctx_len, in ahash_set_sh_desc() 245 cnstr_shdsc_ahash(desc, &ctx->adata, OP_ALG_AS_INIT, ctx->ctx_len, in ahash_set_sh_desc() 255 cnstr_shdsc_ahash(desc, &ctx->adata, OP_ALG_AS_FINALIZE, digestsize, in ahash_set_sh_desc() 266 cnstr_shdsc_ahash(desc, &ctx->adata, OP_ALG_AS_INITFINAL, digestsize, in ahash_set_sh_desc() 287 cnstr_shdsc_sk_hash(desc, &ctx->adata, OP_ALG_AS_UPDATE, in axcbc_set_sh_desc() 297 cnstr_shdsc_sk_hash(desc, &ctx->adata, OP_ALG_AS_FINALIZE, in axcbc_set_sh_desc() 306 ctx->adata.key_virt = ctx->key; in axcbc_set_sh_desc() 310 cnstr_shdsc_sk_hash(desc, &ctx->adata, OP_ALG_AS_INIT, ctx->ctx_len, in axcbc_set_sh_desc() [all …]
|
D | desc_constr.h | 561 static inline void append_proto_dkp(u32 * const desc, struct alginfo *adata) in append_proto_dkp() argument 569 protid = (adata->algtype & OP_ALG_ALGSEL_SUBMASK) | in append_proto_dkp() 572 if (adata->key_inline) { in append_proto_dkp() 575 if (adata->keylen > adata->keylen_pad) { in append_proto_dkp() 578 OP_PCL_DKP_DST_IMM | adata->keylen); in append_proto_dkp() 579 append_ptr(desc, adata->key_dma); in append_proto_dkp() 581 words = (ALIGN(adata->keylen_pad, CAAM_CMD_SZ) - in append_proto_dkp() 586 OP_PCL_DKP_DST_IMM | adata->keylen); in append_proto_dkp() 587 append_data(desc, adata->key_virt, adata->keylen); in append_proto_dkp() 589 words = (ALIGN(adata->keylen_pad, CAAM_CMD_SZ) - in append_proto_dkp() [all …]
|
D | caamalg.c | 112 struct alginfo adata; member 124 ctx->adata.keylen_pad; in aead_null_set_sh_desc() 131 ctx->adata.key_inline = true; in aead_null_set_sh_desc() 132 ctx->adata.key_virt = ctx->key; in aead_null_set_sh_desc() 134 ctx->adata.key_inline = false; in aead_null_set_sh_desc() 135 ctx->adata.key_dma = ctx->key_dma; in aead_null_set_sh_desc() 140 cnstr_shdsc_aead_null_encap(desc, &ctx->adata, ctx->authsize, in aead_null_set_sh_desc() 150 ctx->adata.key_inline = true; in aead_null_set_sh_desc() 151 ctx->adata.key_virt = ctx->key; in aead_null_set_sh_desc() 153 ctx->adata.key_inline = false; in aead_null_set_sh_desc() [all …]
|
D | caamhash_desc.h | 24 void cnstr_shdsc_ahash(u32 * const desc, struct alginfo *adata, u32 state, 27 void cnstr_shdsc_sk_hash(u32 * const desc, struct alginfo *adata, u32 state,
|
D | caamalg_qi.c | 64 struct alginfo adata; member 104 nonce = (u32 *)((void *)ctx->key + ctx->adata.keylen_pad + in aead_set_sh_desc() 114 ctx->adata.key_virt = ctx->key; in aead_set_sh_desc() 115 ctx->adata.key_dma = ctx->key_dma; in aead_set_sh_desc() 117 ctx->cdata.key_virt = ctx->key + ctx->adata.keylen_pad; in aead_set_sh_desc() 118 ctx->cdata.key_dma = ctx->key_dma + ctx->adata.keylen_pad; in aead_set_sh_desc() 120 data_len[0] = ctx->adata.keylen_pad; in aead_set_sh_desc() 133 ctx->adata.key_inline = !!(inl_mask & 1); in aead_set_sh_desc() 136 cnstr_shdsc_aead_encap(ctx->sh_desc_enc, &ctx->cdata, &ctx->adata, in aead_set_sh_desc() 148 ctx->adata.key_inline = !!(inl_mask & 1); in aead_set_sh_desc() [all …]
|
D | caamalg_qi2.c | 80 struct alginfo adata; member 198 nonce = (u32 *)((void *)ctx->key + ctx->adata.keylen_pad + in aead_set_sh_desc() 208 ctx->adata.key_virt = ctx->key; in aead_set_sh_desc() 209 ctx->adata.key_dma = ctx->key_dma; in aead_set_sh_desc() 211 ctx->cdata.key_virt = ctx->key + ctx->adata.keylen_pad; in aead_set_sh_desc() 212 ctx->cdata.key_dma = ctx->key_dma + ctx->adata.keylen_pad; in aead_set_sh_desc() 214 data_len[0] = ctx->adata.keylen_pad; in aead_set_sh_desc() 225 ctx->adata.key_inline = !!(inl_mask & 1); in aead_set_sh_desc() 232 cnstr_shdsc_aead_givencap(desc, &ctx->cdata, &ctx->adata, in aead_set_sh_desc() 237 cnstr_shdsc_aead_encap(desc, &ctx->cdata, &ctx->adata, in aead_set_sh_desc() [all …]
|
D | key_gen.h | 47 struct alginfo * const adata, const u8 *key_in, u32 keylen,
|
/drivers/iio/accel/ |
D | st_accel_core.c | 915 struct st_sensor_data *adata = iio_priv(indio_dev); in st_accel_read_raw() local 925 *val = adata->current_fullscale->gain / 1000000; in st_accel_read_raw() 926 *val2 = adata->current_fullscale->gain % 1000000; in st_accel_read_raw() 929 *val = adata->odr; in st_accel_read_raw() 1001 struct st_sensor_data *adata = iio_priv(indio_dev); in get_mount_matrix() local 1003 return adata->mount_matrix; in get_mount_matrix() 1017 struct st_sensor_data *adata = iio_priv(indio_dev); in apply_acpi_orientation() local 1041 adev = ACPI_COMPANION(adata->dev); in apply_acpi_orientation() 1104 adata->mount_matrix = devm_kmalloc(&indio_dev->dev, in apply_acpi_orientation() 1105 sizeof(*adata->mount_matrix), in apply_acpi_orientation() [all …]
|
D | st_accel_spi.c | 106 struct st_sensor_data *adata; in st_accel_spi_probe() local 120 indio_dev = devm_iio_device_alloc(&spi->dev, sizeof(*adata)); in st_accel_spi_probe() 124 adata = iio_priv(indio_dev); in st_accel_spi_probe() 125 adata->sensor_settings = (struct st_sensor_settings *)settings; in st_accel_spi_probe()
|
D | st_accel_i2c.c | 154 struct st_sensor_data *adata; in st_accel_i2c_probe() local 170 indio_dev = devm_iio_device_alloc(&client->dev, sizeof(*adata)); in st_accel_i2c_probe() 174 adata = iio_priv(indio_dev); in st_accel_i2c_probe() 175 adata->sensor_settings = (struct st_sensor_settings *)settings; in st_accel_i2c_probe()
|
/drivers/crypto/bcm/ |
D | spu.c | 1173 u8 adata; in spum_ccm_update_iv() local 1211 adata = (assoclen > 0); /* adata = 1 if any associated data */ in spum_ccm_update_iv() 1213 cipher_parms->iv_buf[0] = (adata << CCM_B0_ADATA_SHIFT) | in spum_ccm_update_iv()
|