Home
last modified time | relevance | path

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

123

/linux-6.1.9/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 …]
/linux-6.1.9/sound/soc/amd/acp/
Dacp-platform.c70 int acp_machine_select(struct acp_dev_data *adata) in acp_machine_select() argument
75 size = sizeof(*adata->machines); in acp_machine_select()
76 mach = snd_soc_acpi_find_machine(adata->machines); in acp_machine_select()
78 dev_err(adata->dev, "warning: No matching ASoC machine driver found\n"); in acp_machine_select()
82 adata->mach_dev = platform_device_register_data(adata->dev, mach->drv_name, in acp_machine_select()
84 if (IS_ERR(adata->mach_dev)) in acp_machine_select()
85 dev_warn(adata->dev, "Unable to register Machine device\n"); in acp_machine_select()
93 struct acp_dev_data *adata = data; in i2s_irq_handler() local
94 struct acp_resource *rsrc = adata->rsrc; in i2s_irq_handler()
99 if (!adata) in i2s_irq_handler()
[all …]
Dacp-i2s.c31 struct acp_dev_data *adata = snd_soc_dai_get_drvdata(cpu_dai); in acp_i2s_set_fmt() local
37 adata->tdm_mode = TDM_DISABLE; in acp_i2s_set_fmt()
40 adata->tdm_mode = TDM_ENABLE; in acp_i2s_set_fmt()
52 struct acp_dev_data *adata = snd_soc_dai_get_drvdata(dai); in acp_i2s_set_tdm_slot() local
74 spin_lock_irq(&adata->acp_lock); in acp_i2s_set_tdm_slot()
75 list_for_each_entry(stream, &adata->stream_list, list) { in acp_i2s_set_tdm_slot()
77 adata->tdm_tx_fmt[stream->dai_id - 1] = in acp_i2s_set_tdm_slot()
80 adata->tdm_rx_fmt[stream->dai_id - 1] = in acp_i2s_set_tdm_slot()
83 spin_unlock_irq(&adata->acp_lock); in acp_i2s_set_tdm_slot()
91 struct acp_dev_data *adata; in acp_i2s_hwparams() local
[all …]
Dacp-pdm.c45 struct acp_dev_data *adata = dev_get_drvdata(dev); in acp_dmic_prepare() local
50 writel(PDM_CLK_FREQ_MASK, adata->acp_base + ACP_WOV_CLK_CTRL); in acp_dmic_prepare()
51 dmic_ctrl = readl(adata->acp_base + ACP_WOV_MISC_CTRL); in acp_dmic_prepare()
53 writel(dmic_ctrl, adata->acp_base + ACP_WOV_MISC_CTRL); in acp_dmic_prepare()
63 writel(physical_addr, adata->acp_base + ACP_WOV_RX_RINGBUFADDR); in acp_dmic_prepare()
64 writel(size_dmic, adata->acp_base + ACP_WOV_RX_RINGBUFSIZE); in acp_dmic_prepare()
65 writel(period_bytes, adata->acp_base + ACP_WOV_RX_INTR_WATERMARK_SIZE); in acp_dmic_prepare()
66 writel(0x01, adata->acp_base + ACPAXI2AXI_ATU_CTRL); in acp_dmic_prepare()
75 struct acp_dev_data *adata = dev_get_drvdata(dev); in acp_dmic_dai_trigger() local
83 dma_enable = readl(adata->acp_base + ACP_WOV_PDM_DMA_ENABLE); in acp_dmic_dai_trigger()
[all …]
Damd.h169 int acp_machine_select(struct acp_dev_data *adata);
174 static inline u64 acp_get_byte_count(struct acp_dev_data *adata, int dai_id, int direction) in acp_get_byte_count() argument
181 high = readl(adata->acp_base + ACP_BT_TX_LINEARPOSITIONCNTR_HIGH); in acp_get_byte_count()
182 low = readl(adata->acp_base + ACP_BT_TX_LINEARPOSITIONCNTR_LOW); in acp_get_byte_count()
185 high = readl(adata->acp_base + ACP_I2S_TX_LINEARPOSITIONCNTR_HIGH); in acp_get_byte_count()
186 low = readl(adata->acp_base + ACP_I2S_TX_LINEARPOSITIONCNTR_LOW); in acp_get_byte_count()
189 high = readl(adata->acp_base + ACP_HS_TX_LINEARPOSITIONCNTR_HIGH); in acp_get_byte_count()
190 low = readl(adata->acp_base + ACP_HS_TX_LINEARPOSITIONCNTR_LOW); in acp_get_byte_count()
193 dev_err(adata->dev, "Invalid dai id %x\n", dai_id); in acp_get_byte_count()
199 high = readl(adata->acp_base + ACP_BT_RX_LINEARPOSITIONCNTR_HIGH); in acp_get_byte_count()
[all …]
Dacp-renoir.c200 static void acp3x_enable_interrupts(struct acp_dev_data *adata) in acp3x_enable_interrupts() argument
202 struct acp_resource *rsrc = adata->rsrc; in acp3x_enable_interrupts()
205 writel(0x01, ACP_EXTERNAL_INTR_ENB(adata)); in acp3x_enable_interrupts()
206 ext_intr_ctrl = readl(ACP_EXTERNAL_INTR_CNTL(adata, rsrc->irqp_used)); in acp3x_enable_interrupts()
208 writel(ext_intr_ctrl, ACP_EXTERNAL_INTR_CNTL(adata, rsrc->irqp_used)); in acp3x_enable_interrupts()
211 static void acp3x_disable_interrupts(struct acp_dev_data *adata) in acp3x_disable_interrupts() argument
213 struct acp_resource *rsrc = adata->rsrc; in acp3x_disable_interrupts()
216 ACP_EXTERNAL_INTR_STAT(adata, rsrc->irqp_used)); in acp3x_disable_interrupts()
217 writel(0x00, ACP_EXTERNAL_INTR_ENB(adata)); in acp3x_disable_interrupts()
261 struct acp_dev_data *adata; in renoir_audio_probe() local
[all …]
Dacp-rembrandt.c248 static void acp6x_enable_interrupts(struct acp_dev_data *adata) in acp6x_enable_interrupts() argument
250 struct acp_resource *rsrc = adata->rsrc; in acp6x_enable_interrupts()
253 writel(0x01, ACP_EXTERNAL_INTR_ENB(adata)); in acp6x_enable_interrupts()
254 ext_intr_ctrl = readl(ACP_EXTERNAL_INTR_CNTL(adata, rsrc->irqp_used)); in acp6x_enable_interrupts()
256 writel(ext_intr_ctrl, ACP_EXTERNAL_INTR_CNTL(adata, rsrc->irqp_used)); in acp6x_enable_interrupts()
259 static void acp6x_disable_interrupts(struct acp_dev_data *adata) in acp6x_disable_interrupts() argument
261 struct acp_resource *rsrc = adata->rsrc; in acp6x_disable_interrupts()
264 ACP_EXTERNAL_INTR_STAT(adata, rsrc->irqp_used)); in acp6x_disable_interrupts()
265 writel(0x00, ACP_EXTERNAL_INTR_ENB(adata)); in acp6x_disable_interrupts()
317 struct acp_dev_data *adata; in rembrandt_audio_probe() local
[all …]
Dchip_offset_byte.h23 #define ACP_EXTERNAL_INTR_REG_ADDR(adata, offset, ctrl) \ argument
24 (adata->acp_base + adata->rsrc->irq_reg_offset + offset + (ctrl * 0x04))
26 #define ACP_EXTERNAL_INTR_ENB(adata) ACP_EXTERNAL_INTR_REG_ADDR(adata, 0x0, 0x0) argument
27 #define ACP_EXTERNAL_INTR_CNTL(adata, ctrl) ACP_EXTERNAL_INTR_REG_ADDR(adata, 0x4, ctrl) argument
28 #define ACP_EXTERNAL_INTR_STAT(adata, ctrl) ACP_EXTERNAL_INTR_REG_ADDR(adata, \ argument
29 (0x4 + (adata->rsrc->no_of_ctrls * 0x04)), ctrl)
/linux-6.1.9/sound/soc/amd/vangogh/
Dpci-acp5x.c126 struct acp5x_dev_data *adata; in snd_acp5x_probe() local
147 adata = devm_kzalloc(&pci->dev, sizeof(struct acp5x_dev_data), in snd_acp5x_probe()
149 if (!adata) { in snd_acp5x_probe()
154 adata->acp5x_base = devm_ioremap(&pci->dev, addr, in snd_acp5x_probe()
156 if (!adata->acp5x_base) { in snd_acp5x_probe()
161 pci_set_drvdata(pci, adata); in snd_acp5x_probe()
162 ret = acp5x_init(adata->acp5x_base); in snd_acp5x_probe()
166 val = acp_readl(adata->acp5x_base + ACP_PIN_CONFIG); in snd_acp5x_probe()
169 adata->res = devm_kzalloc(&pci->dev, in snd_acp5x_probe()
172 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-6.1.9/sound/soc/sof/amd/
Dacp-loader.c54 struct acp_dev_data *adata; in acp_dsp_block_write() local
59 adata = sdev->pdata->hw_pdata; in acp_dsp_block_write()
63 if (!adata->bin_buf) { in acp_dsp_block_write()
67 adata->bin_buf = dma_alloc_coherent(&pci->dev, dma_size, in acp_dsp_block_write()
68 &adata->sha_dma_addr, in acp_dsp_block_write()
70 if (!adata->bin_buf) in acp_dsp_block_write()
73 adata->fw_bin_size = size + offset; in acp_dsp_block_write()
74 dest = adata->bin_buf + offset; in acp_dsp_block_write()
77 if (!adata->data_buf) { in acp_dsp_block_write()
78 adata->data_buf = dma_alloc_coherent(&pci->dev, in acp_dsp_block_write()
[all …]
Dacp.c39 static void init_dma_descriptor(struct acp_dev_data *adata) in init_dma_descriptor() argument
41 struct snd_sof_dev *sdev = adata->dev; in init_dma_descriptor()
52 static void configure_dma_descriptor(struct acp_dev_data *adata, unsigned short idx, in configure_dma_descriptor() argument
55 struct snd_sof_dev *sdev = adata->dev; in configure_dma_descriptor()
67 static int config_dma_channel(struct acp_dev_data *adata, unsigned int ch, in config_dma_channel() argument
70 struct snd_sof_dev *sdev = adata->dev; in config_dma_channel()
97 static int acpbus_dma_start(struct acp_dev_data *adata, unsigned int ch, in acpbus_dma_start() argument
100 struct snd_sof_dev *sdev = adata->dev; in acpbus_dma_start()
108 configure_dma_descriptor(adata, dscr, dscr_info++); in acpbus_dma_start()
110 ret = config_dma_channel(adata, ch, 0, dscr_count); in acpbus_dma_start()
[all …]
/linux-6.1.9/sound/soc/amd/yc/
Dpci-acp6x.c125 struct acp6x_dev_data *adata; in acp6x_irq_handler() local
129 adata = dev_id; in acp6x_irq_handler()
130 if (!adata) in acp6x_irq_handler()
133 val = acp6x_readl(adata->acp6x_base + ACP_EXTERNAL_INTR_STAT); in acp6x_irq_handler()
135 yc_pdm_data = dev_get_drvdata(&adata->pdev[0]->dev); in acp6x_irq_handler()
136 acp6x_writel(BIT(PDM_DMA_STAT), adata->acp6x_base + ACP_EXTERNAL_INTR_STAT); in acp6x_irq_handler()
147 struct acp6x_dev_data *adata; in snd_acp6x_probe() local
176 adata = devm_kzalloc(&pci->dev, sizeof(struct acp6x_dev_data), in snd_acp6x_probe()
178 if (!adata) { in snd_acp6x_probe()
184 adata->acp6x_base = devm_ioremap(&pci->dev, addr, in snd_acp6x_probe()
[all …]
Dacp6x-pdm-dma.c178 struct pdm_dev_data *adata; in acp6x_pdm_dma_open() local
183 adata = dev_get_drvdata(component->dev); in acp6x_pdm_dma_open()
199 acp6x_enable_pdm_interrupts(adata->acp6x_base); in acp6x_pdm_dma_open()
202 adata->capture_stream = substream; in acp6x_pdm_dma_open()
204 pdm_data->acp6x_base = adata->acp6x_base; in acp6x_pdm_dma_open()
271 struct pdm_dev_data *adata = dev_get_drvdata(component->dev); in acp6x_pdm_dma_close() local
273 acp6x_disable_pdm_interrupts(adata->acp6x_base); in acp6x_pdm_dma_close()
274 adata->capture_stream = NULL; in acp6x_pdm_dma_close()
350 struct pdm_dev_data *adata; in acp6x_pdm_audio_probe() local
359 adata = devm_kzalloc(&pdev->dev, sizeof(*adata), GFP_KERNEL); in acp6x_pdm_audio_probe()
[all …]
/linux-6.1.9/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()
/linux-6.1.9/sound/soc/amd/ps/
Dpci-ps.c123 struct acp62_dev_data *adata; in acp62_irq_handler() local
127 adata = dev_id; in acp62_irq_handler()
128 if (!adata) in acp62_irq_handler()
131 val = acp62_readl(adata->acp62_base + ACP_EXTERNAL_INTR_STAT); in acp62_irq_handler()
133 ps_pdm_data = dev_get_drvdata(&adata->pdev[0]->dev); in acp62_irq_handler()
134 acp62_writel(BIT(PDM_DMA_STAT), adata->acp62_base + ACP_EXTERNAL_INTR_STAT); in acp62_irq_handler()
145 struct acp62_dev_data *adata; in snd_acp62_probe() local
173 adata = devm_kzalloc(&pci->dev, sizeof(struct acp62_dev_data), in snd_acp62_probe()
175 if (!adata) { in snd_acp62_probe()
181 adata->acp62_base = devm_ioremap(&pci->dev, addr, in snd_acp62_probe()
[all …]
Dps-pdm-dma.c178 struct pdm_dev_data *adata; in acp62_pdm_dma_open() local
183 adata = dev_get_drvdata(component->dev); in acp62_pdm_dma_open()
199 acp62_enable_pdm_interrupts(adata->acp62_base); in acp62_pdm_dma_open()
202 adata->capture_stream = substream; in acp62_pdm_dma_open()
204 pdm_data->acp62_base = adata->acp62_base; in acp62_pdm_dma_open()
272 struct pdm_dev_data *adata = dev_get_drvdata(component->dev); in acp62_pdm_dma_close() local
275 acp62_disable_pdm_interrupts(adata->acp62_base); in acp62_pdm_dma_close()
276 adata->capture_stream = NULL; in acp62_pdm_dma_close()
353 struct pdm_dev_data *adata; in acp62_pdm_audio_probe() local
362 adata = devm_kzalloc(&pdev->dev, sizeof(*adata), GFP_KERNEL); in acp62_pdm_audio_probe()
[all …]
/linux-6.1.9/sound/soc/amd/renoir/
Drn-pci-acp3x.c208 struct acp_dev_data *adata; in snd_rn_acp_probe() local
239 adata = devm_kzalloc(&pci->dev, sizeof(struct acp_dev_data), in snd_rn_acp_probe()
241 if (!adata) { in snd_rn_acp_probe()
256 adata->acp_base = devm_ioremap(&pci->dev, addr, in snd_rn_acp_probe()
258 if (!adata->acp_base) { in snd_rn_acp_probe()
263 pci_set_drvdata(pci, adata); in snd_rn_acp_probe()
264 ret = rn_acp_init(adata->acp_base); in snd_rn_acp_probe()
292 adata->res = devm_kzalloc(&pci->dev, in snd_rn_acp_probe()
295 if (!adata->res) { in snd_rn_acp_probe()
300 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()
378 struct pdm_dev_data *adata; in acp_pdm_audio_probe() local
394 adata = devm_kzalloc(&pdev->dev, sizeof(*adata), GFP_KERNEL); in acp_pdm_audio_probe()
[all …]
/linux-6.1.9/sound/soc/amd/
Dacp-pcm-dma.c777 struct audio_substream_data *adata = in acp_dma_open() local
779 if (!adata) in acp_dma_open()
804 kfree(adata); in acp_dma_open()
808 adata->acp_mmio = intr_data->acp_mmio; in acp_dma_open()
809 runtime->private_data = adata; in acp_dma_open()
820 acp_reg_write(1, adata->acp_mmio, mmACP_EXTERNAL_INTR_ENB); in acp_dma_open()
853 struct audio_drv_data *adata = dev_get_drvdata(component->dev); in acp_dma_hw_params() local
871 if (adata->asic_type == CHIP_STONEY) { in acp_dma_hw_params()
872 val = acp_reg_read(adata->acp_mmio, in acp_dma_hw_params()
897 acp_reg_write(val, adata->acp_mmio, in acp_dma_hw_params()
[all …]
/linux-6.1.9/drivers/acpi/arm64/
Dagdi.c29 struct agdi_data *adata) in agdi_sdei_probe() argument
33 err = sdei_event_register(adata->sdei_event, agdi_sdei_handler, pdev); in agdi_sdei_probe()
36 adata->sdei_event); in agdi_sdei_probe()
40 err = sdei_event_enable(adata->sdei_event); in agdi_sdei_probe()
42 sdei_event_unregister(adata->sdei_event); in agdi_sdei_probe()
44 adata->sdei_event); in agdi_sdei_probe()
53 struct agdi_data *adata = dev_get_platdata(&pdev->dev); in agdi_probe() local
55 if (!adata) in agdi_probe()
58 return agdi_sdei_probe(pdev, adata); in agdi_probe()
63 struct agdi_data *adata = dev_get_platdata(&pdev->dev); in agdi_remove() local
[all …]
/linux-6.1.9/sound/soc/amd/rpl/
Drpl-pci-acp6x.c106 struct rpl_dev_data *adata; in snd_rpl_probe() local
129 adata = devm_kzalloc(&pci->dev, sizeof(struct rpl_dev_data), in snd_rpl_probe()
131 if (!adata) { in snd_rpl_probe()
137 adata->acp6x_base = devm_ioremap(&pci->dev, addr, in snd_rpl_probe()
139 if (!adata->acp6x_base) { in snd_rpl_probe()
144 pci_set_drvdata(pci, adata); in snd_rpl_probe()
145 ret = rpl_init(adata->acp6x_base); in snd_rpl_probe()
164 struct rpl_dev_data *adata; in snd_rpl_suspend() local
167 adata = dev_get_drvdata(dev); in snd_rpl_suspend()
168 ret = rpl_deinit(adata->acp6x_base); in snd_rpl_suspend()
[all …]

123