Home
last modified time | relevance | path

Searched refs:adata (Results 1 – 25 of 36) sorted by relevance

12

/Linux-v5.15/sound/soc/amd/raven/
Dpci-acp3x.c25 static int acp3x_power_on(struct acp3x_dev_data *adata) in acp3x_power_on() argument
27 void __iomem *acp3x_base = adata->acp3x_base; in acp3x_power_on()
47 rv_writel(adata->pme_en, acp3x_base + mmACP_PME_EN); in acp3x_power_on()
92 static int acp3x_init(struct acp3x_dev_data *adata) in acp3x_init() argument
94 void __iomem *acp3x_base = adata->acp3x_base; in acp3x_init()
98 ret = acp3x_power_on(adata); in acp3x_init()
130 struct acp3x_dev_data *adata; in snd_acp3x_probe() local
151 adata = devm_kzalloc(&pci->dev, sizeof(struct acp3x_dev_data), in snd_acp3x_probe()
153 if (!adata) { in snd_acp3x_probe()
161 adata->acp3x_base = devm_ioremap(&pci->dev, addr, in snd_acp3x_probe()
[all …]
Dacp3x-pcm-dma.c213 struct i2s_dev_data *adata; in acp3x_dma_open() local
220 adata = dev_get_drvdata(component->dev); in acp3x_dma_open()
238 i2s_data->acp3x_base = adata->acp3x_base; in acp3x_dma_open()
252 struct i2s_dev_data *adata; in acp3x_dma_hw_params() local
258 adata = dev_get_drvdata(component->dev); in acp3x_dma_hw_params()
268 adata->play_stream = substream; in acp3x_dma_hw_params()
272 adata->i2ssp_play_stream = substream; in acp3x_dma_hw_params()
278 adata->capture_stream = substream; in acp3x_dma_hw_params()
282 adata->i2ssp_capture_stream = substream; in acp3x_dma_hw_params()
327 struct i2s_dev_data *adata; in acp3x_dma_close() local
[all …]
Dacp3x-i2s.c23 struct i2s_dev_data *adata; in acp3x_i2s_set_fmt() local
26 adata = snd_soc_dai_get_drvdata(cpu_dai); in acp3x_i2s_set_fmt()
30 adata->tdm_mode = TDM_DISABLE; in acp3x_i2s_set_fmt()
33 adata->tdm_mode = TDM_ENABLE; in acp3x_i2s_set_fmt()
44 struct i2s_dev_data *adata; in acp3x_i2s_set_tdm_slot() local
48 adata = snd_soc_dai_get_drvdata(cpu_dai); in acp3x_i2s_set_tdm_slot()
68 adata->tdm_fmt = frm_len; in acp3x_i2s_set_tdm_slot()
79 struct i2s_dev_data *adata; in acp3x_i2s_hwparams() local
86 adata = snd_soc_dai_get_drvdata(dai); in acp3x_i2s_hwparams()
136 if (adata->tdm_mode) { in acp3x_i2s_hwparams()
[all …]
/Linux-v5.15/sound/soc/amd/vangogh/
Dpci-acp5x.c122 struct acp5x_dev_data *adata; in snd_acp5x_probe() local
143 adata = devm_kzalloc(&pci->dev, sizeof(struct acp5x_dev_data), in snd_acp5x_probe()
145 if (!adata) { in snd_acp5x_probe()
150 adata->acp5x_base = devm_ioremap(&pci->dev, addr, in snd_acp5x_probe()
152 if (!adata->acp5x_base) { in snd_acp5x_probe()
157 pci_set_drvdata(pci, adata); in snd_acp5x_probe()
158 ret = acp5x_init(adata->acp5x_base); in snd_acp5x_probe()
162 val = acp_readl(adata->acp5x_base + ACP_PIN_CONFIG); in snd_acp5x_probe()
165 adata->res = devm_kzalloc(&pci->dev, in snd_acp5x_probe()
168 if (!adata->res) { in snd_acp5x_probe()
[all …]
Dacp5x-pcm-dma.c207 struct i2s_dev_data *adata; in acp5x_dma_open() local
214 adata = dev_get_drvdata(component->dev); in acp5x_dma_open()
232 i2s_data->acp5x_base = adata->acp5x_base; in acp5x_dma_open()
245 struct i2s_dev_data *adata; in acp5x_dma_hw_params() local
251 adata = dev_get_drvdata(component->dev); in acp5x_dma_hw_params()
262 adata->play_stream = substream; in acp5x_dma_hw_params()
266 adata->i2ssp_play_stream = substream; in acp5x_dma_hw_params()
272 adata->capture_stream = substream; in acp5x_dma_hw_params()
276 adata->i2ssp_capture_stream = substream; in acp5x_dma_hw_params()
322 struct i2s_dev_data *adata; in acp5x_dma_close() local
[all …]
Dacp5x-i2s.c23 struct i2s_dev_data *adata; in acp5x_i2s_set_fmt() local
26 adata = snd_soc_dai_get_drvdata(cpu_dai); in acp5x_i2s_set_fmt()
30 adata->tdm_mode = TDM_DISABLE; in acp5x_i2s_set_fmt()
33 adata->tdm_mode = TDM_ENABLE; in acp5x_i2s_set_fmt()
41 adata->master_mode = I2S_MASTER_MODE_ENABLE; in acp5x_i2s_set_fmt()
44 adata->master_mode = I2S_MASTER_MODE_DISABLE; in acp5x_i2s_set_fmt()
54 struct i2s_dev_data *adata; in acp5x_i2s_set_tdm_slot() local
58 adata = snd_soc_dai_get_drvdata(cpu_dai); in acp5x_i2s_set_tdm_slot()
78 adata->tdm_fmt = frm_len; in acp5x_i2s_set_tdm_slot()
90 struct i2s_dev_data *adata; in acp5x_i2s_hwparams() local
[all …]
/Linux-v5.15/drivers/crypto/caam/
Dcaamhash_desc.c28 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 …]
Dkey_gen.c45 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()
Dcaamalg_desc.c56 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 …]
Dcaamalg_desc.h51 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,
Dcaamhash.c104 struct alginfo adata; member
208 ctx->adata.key_virt = ctx->key; in ahash_set_sh_desc()
212 cnstr_shdsc_ahash(desc, &ctx->adata, OP_ALG_AS_UPDATE, ctx->ctx_len, in ahash_set_sh_desc()
223 cnstr_shdsc_ahash(desc, &ctx->adata, OP_ALG_AS_INIT, ctx->ctx_len, in ahash_set_sh_desc()
233 cnstr_shdsc_ahash(desc, &ctx->adata, OP_ALG_AS_FINALIZE, digestsize, in ahash_set_sh_desc()
244 cnstr_shdsc_ahash(desc, &ctx->adata, OP_ALG_AS_INITFINAL, digestsize, in ahash_set_sh_desc()
265 cnstr_shdsc_sk_hash(desc, &ctx->adata, OP_ALG_AS_UPDATE, in axcbc_set_sh_desc()
275 cnstr_shdsc_sk_hash(desc, &ctx->adata, OP_ALG_AS_FINALIZE, in axcbc_set_sh_desc()
284 ctx->adata.key_virt = ctx->key; in axcbc_set_sh_desc()
288 cnstr_shdsc_sk_hash(desc, &ctx->adata, OP_ALG_AS_INIT, ctx->ctx_len, in axcbc_set_sh_desc()
[all …]
Ddesc_constr.h561 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 …]
Dcaamhash_desc.h24 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,
Dcaamalg.c116 struct alginfo adata; member
139 ctx->adata.keylen_pad; in aead_null_set_sh_desc()
146 ctx->adata.key_inline = true; in aead_null_set_sh_desc()
147 ctx->adata.key_virt = ctx->key; in aead_null_set_sh_desc()
149 ctx->adata.key_inline = false; in aead_null_set_sh_desc()
150 ctx->adata.key_dma = ctx->key_dma; in aead_null_set_sh_desc()
155 cnstr_shdsc_aead_null_encap(desc, &ctx->adata, ctx->authsize, in aead_null_set_sh_desc()
165 ctx->adata.key_inline = true; in aead_null_set_sh_desc()
166 ctx->adata.key_virt = ctx->key; in aead_null_set_sh_desc()
168 ctx->adata.key_inline = false; in aead_null_set_sh_desc()
[all …]
Dcaamalg_qi.c66 struct alginfo adata; member
112 nonce = (u32 *)((void *)ctx->key + ctx->adata.keylen_pad + in aead_set_sh_desc()
122 ctx->adata.key_virt = ctx->key; in aead_set_sh_desc()
123 ctx->adata.key_dma = ctx->key_dma; in aead_set_sh_desc()
125 ctx->cdata.key_virt = ctx->key + ctx->adata.keylen_pad; in aead_set_sh_desc()
126 ctx->cdata.key_dma = ctx->key_dma + ctx->adata.keylen_pad; in aead_set_sh_desc()
128 data_len[0] = ctx->adata.keylen_pad; in aead_set_sh_desc()
141 ctx->adata.key_inline = !!(inl_mask & 1); in aead_set_sh_desc()
144 cnstr_shdsc_aead_encap(ctx->sh_desc_enc, &ctx->cdata, &ctx->adata, in aead_set_sh_desc()
156 ctx->adata.key_inline = !!(inl_mask & 1); in aead_set_sh_desc()
[all …]
/Linux-v5.15/sound/soc/amd/renoir/
Drn-pci-acp3x.c208 struct acp_dev_data *adata; in snd_rn_acp_probe() local
234 adata = devm_kzalloc(&pci->dev, sizeof(struct acp_dev_data), in snd_rn_acp_probe()
236 if (!adata) { in snd_rn_acp_probe()
251 adata->acp_base = devm_ioremap(&pci->dev, addr, in snd_rn_acp_probe()
253 if (!adata->acp_base) { in snd_rn_acp_probe()
258 pci_set_drvdata(pci, adata); in snd_rn_acp_probe()
259 ret = rn_acp_init(adata->acp_base); in snd_rn_acp_probe()
287 adata->res = devm_kzalloc(&pci->dev, in snd_rn_acp_probe()
290 if (!adata->res) { in snd_rn_acp_probe()
295 adata->res[0].name = "acp_pdm_iomem"; in snd_rn_acp_probe()
[all …]
Dacp3x-pdm-dma.c202 struct pdm_dev_data *adata; in acp_pdm_dma_open() local
207 adata = dev_get_drvdata(component->dev); in acp_pdm_dma_open()
223 enable_pdm_interrupts(adata->acp_base); in acp_pdm_dma_open()
226 adata->capture_stream = substream; in acp_pdm_dma_open()
228 pdm_data->acp_base = adata->acp_base; in acp_pdm_dma_open()
297 struct pdm_dev_data *adata = dev_get_drvdata(component->dev); in acp_pdm_dma_close() local
299 disable_pdm_interrupts(adata->acp_base); in acp_pdm_dma_close()
300 adata->capture_stream = NULL; in acp_pdm_dma_close()
377 struct pdm_dev_data *adata; in acp_pdm_audio_probe() local
393 adata = devm_kzalloc(&pdev->dev, sizeof(*adata), GFP_KERNEL); in acp_pdm_audio_probe()
[all …]
/Linux-v5.15/sound/soc/amd/
Dacp-pcm-dma.c769 struct audio_substream_data *adata = in acp_dma_open() local
771 if (!adata) in acp_dma_open()
796 kfree(adata); in acp_dma_open()
800 adata->acp_mmio = intr_data->acp_mmio; in acp_dma_open()
801 runtime->private_data = adata; in acp_dma_open()
811 acp_reg_write(1, adata->acp_mmio, mmACP_EXTERNAL_INTR_ENB); in acp_dma_open()
844 struct audio_drv_data *adata = dev_get_drvdata(component->dev); in acp_dma_hw_params() local
862 if (adata->asic_type == CHIP_STONEY) { in acp_dma_hw_params()
863 val = acp_reg_read(adata->acp_mmio, in acp_dma_hw_params()
884 acp_reg_write(val, adata->acp_mmio, in acp_dma_hw_params()
[all …]
/Linux-v5.15/sound/soc/xilinx/
Dxlnx_formatter_pcm.c283 struct xlnx_pcm_drv_data *adata = dev_get_drvdata(dev); in xlnx_mm2s_irq_handler() local
285 reg = adata->mmio + XLNX_MM2S_OFFSET + XLNX_AUD_STS; in xlnx_mm2s_irq_handler()
289 if (adata->play_stream) in xlnx_mm2s_irq_handler()
290 snd_pcm_period_elapsed(adata->play_stream); in xlnx_mm2s_irq_handler()
302 struct xlnx_pcm_drv_data *adata = dev_get_drvdata(dev); in xlnx_s2mm_irq_handler() local
304 reg = adata->mmio + XLNX_S2MM_OFFSET + XLNX_AUD_STS; in xlnx_s2mm_irq_handler()
308 if (adata->capture_stream) in xlnx_s2mm_irq_handler()
309 snd_pcm_period_elapsed(adata->capture_stream); in xlnx_s2mm_irq_handler()
324 struct xlnx_pcm_drv_data *adata = dev_get_drvdata(component->dev); in xlnx_formatter_pcm_open() local
327 !adata->mm2s_presence) in xlnx_formatter_pcm_open()
[all …]
/Linux-v5.15/drivers/iio/accel/
Dst_accel_core.c44 struct st_sensor_data *adata = iio_priv(indio_dev); in st_accel_get_mount_matrix() local
46 return &adata->mount_matrix; in st_accel_get_mount_matrix()
1102 struct st_sensor_data *adata = iio_priv(indio_dev); in st_accel_read_raw() local
1112 *val = adata->current_fullscale->gain / 1000000; in st_accel_read_raw()
1113 *val2 = adata->current_fullscale->gain % 1000000; in st_accel_read_raw()
1116 *val = adata->odr; in st_accel_read_raw()
1189 struct st_sensor_data *adata = iio_priv(indio_dev); in apply_acpi_orientation() local
1213 adev = ACPI_COMPANION(adata->dev); in apply_acpi_orientation()
1294 adata->mount_matrix.rotation[i * 3 + j] = str_value; in apply_acpi_orientation()
1336 struct st_sensor_data *adata = iio_priv(indio_dev); in st_accel_common_probe() local
[all …]
Dst_accel_spi.c102 struct st_sensor_data *adata; in st_accel_spi_probe() local
115 indio_dev = devm_iio_device_alloc(&spi->dev, sizeof(*adata)); in st_accel_spi_probe()
119 adata = iio_priv(indio_dev); in st_accel_spi_probe()
120 adata->sensor_settings = (struct st_sensor_settings *)settings; in st_accel_spi_probe()
Dst_accel_i2c.c152 struct st_sensor_data *adata; in st_accel_i2c_probe() local
165 indio_dev = devm_iio_device_alloc(&client->dev, sizeof(*adata)); in st_accel_i2c_probe()
169 adata = iio_priv(indio_dev); in st_accel_i2c_probe()
170 adata->sensor_settings = (struct st_sensor_settings *)settings; in st_accel_i2c_probe()
/Linux-v5.15/sound/soc/generic/
Daudio-graph-card.c174 struct asoc_simple_data *adata) in graph_parse_convert() argument
181 asoc_simple_parse_convert(top, NULL, adata); in graph_parse_convert()
183 asoc_simple_parse_convert(ports, NULL, adata); in graph_parse_convert()
184 asoc_simple_parse_convert(port, NULL, adata); in graph_parse_convert()
185 asoc_simple_parse_convert(ep, NULL, adata); in graph_parse_convert()
351 graph_parse_convert(dev, ep, &dai_props->adata); in graph_dai_link_of_dpcm()
402 struct asoc_simple_data *adata) in parse_as_dpcm_link() argument
416 (adata->convert_rate || adata->convert_channels)) in parse_as_dpcm_link()
441 struct asoc_simple_data adata; in __graph_for_each_link() local
460 memset(&adata, 0, sizeof(adata)); in __graph_for_each_link()
[all …]
Dsimple-card.c82 struct asoc_simple_data *adata) in simple_parse_convert() argument
87 asoc_simple_parse_convert(top, PREFIX, adata); in simple_parse_convert()
88 asoc_simple_parse_convert(node, PREFIX, adata); in simple_parse_convert()
89 asoc_simple_parse_convert(node, NULL, adata); in simple_parse_convert()
90 asoc_simple_parse_convert(np, NULL, adata); in simple_parse_convert()
240 simple_parse_convert(dev, np, &dai_props->adata); in simple_dai_link_of_dpcm()
340 struct asoc_simple_data adata; in __simple_for_each_link() local
358 memset(&adata, 0, sizeof(adata)); in __simple_for_each_link()
360 simple_parse_convert(dev, np, &adata); in __simple_for_each_link()
373 adata.convert_rate || adata.convert_channels)) { in __simple_for_each_link()
/Linux-v5.15/include/sound/
Dsimple_card_utils.h55 struct asoc_simple_data adata; member
247 if (props->adata.convert_rate) in asoc_simple_debug_info()
248 dev_dbg(dev, "convert_rate = %d\n", props->adata.convert_rate); in asoc_simple_debug_info()
249 if (props->adata.convert_channels) in asoc_simple_debug_info()
250 dev_dbg(dev, "convert_channels = %d\n", props->adata.convert_channels); in asoc_simple_debug_info()

12