Lines Matching refs:drvdata
102 struct lpass_data *drvdata = dev_get_drvdata(dev); in lpass_platform_alloc_rxtx_dmactl_fields() local
103 struct lpass_variant *v = drvdata->variant; in lpass_platform_alloc_rxtx_dmactl_fields()
115 drvdata->rxtx_rd_dmactl = rd_dmactl; in lpass_platform_alloc_rxtx_dmactl_fields()
116 drvdata->rxtx_wr_dmactl = wr_dmactl; in lpass_platform_alloc_rxtx_dmactl_fields()
130 struct lpass_data *drvdata = dev_get_drvdata(dev); in lpass_platform_alloc_va_dmactl_fields() local
131 struct lpass_variant *v = drvdata->variant; in lpass_platform_alloc_va_dmactl_fields()
138 drvdata->va_wr_dmactl = wr_dmactl; in lpass_platform_alloc_va_dmactl_fields()
147 struct lpass_data *drvdata = dev_get_drvdata(dev); in lpass_platform_alloc_dmactl_fields() local
148 struct lpass_variant *v = drvdata->variant; in lpass_platform_alloc_dmactl_fields()
152 drvdata->rd_dmactl = devm_kzalloc(dev, sizeof(struct lpaif_dmactl), in lpass_platform_alloc_dmactl_fields()
154 if (drvdata->rd_dmactl == NULL) in lpass_platform_alloc_dmactl_fields()
157 drvdata->wr_dmactl = devm_kzalloc(dev, sizeof(struct lpaif_dmactl), in lpass_platform_alloc_dmactl_fields()
159 if (drvdata->wr_dmactl == NULL) in lpass_platform_alloc_dmactl_fields()
162 rd_dmactl = drvdata->rd_dmactl; in lpass_platform_alloc_dmactl_fields()
163 wr_dmactl = drvdata->wr_dmactl; in lpass_platform_alloc_dmactl_fields()
177 struct lpass_data *drvdata = dev_get_drvdata(dev); in lpass_platform_alloc_hdmidmactl_fields() local
178 struct lpass_variant *v = drvdata->variant; in lpass_platform_alloc_hdmidmactl_fields()
185 drvdata->hdmi_rd_dmactl = rd_dmactl; in lpass_platform_alloc_hdmidmactl_fields()
197 struct lpass_data *drvdata = snd_soc_component_get_drvdata(component); in lpass_platform_pcmops_open() local
198 struct lpass_variant *v = drvdata->variant; in lpass_platform_pcmops_open()
213 dma_ch = v->alloc_dma_channel(drvdata, dir, dai_id); in lpass_platform_pcmops_open()
224 map = drvdata->lpaif_map; in lpass_platform_pcmops_open()
225 drvdata->substream[dma_ch] = substream; in lpass_platform_pcmops_open()
228 map = drvdata->hdmiif_map; in lpass_platform_pcmops_open()
229 drvdata->hdmi_substream[dma_ch] = substream; in lpass_platform_pcmops_open()
233 map = drvdata->rxtx_lpaif_map; in lpass_platform_pcmops_open()
234 drvdata->rxtx_substream[dma_ch] = substream; in lpass_platform_pcmops_open()
237 map = drvdata->va_lpaif_map; in lpass_platform_pcmops_open()
238 drvdata->va_substream[dma_ch] = substream; in lpass_platform_pcmops_open()
289 struct lpass_data *drvdata = snd_soc_component_get_drvdata(component); in lpass_platform_pcmops_close() local
290 struct lpass_variant *v = drvdata->variant; in lpass_platform_pcmops_close()
298 drvdata->substream[data->dma_ch] = NULL; in lpass_platform_pcmops_close()
301 drvdata->hdmi_substream[data->dma_ch] = NULL; in lpass_platform_pcmops_close()
305 drvdata->rxtx_substream[data->dma_ch] = NULL; in lpass_platform_pcmops_close()
308 drvdata->va_substream[data->dma_ch] = NULL; in lpass_platform_pcmops_close()
315 v->free_dma_channel(drvdata, data->dma_ch, dai_id); in lpass_platform_pcmops_close()
326 struct lpass_data *drvdata = snd_soc_component_get_drvdata(component); in __lpass_get_dmactl_handle() local
332 dmactl = drvdata->rd_dmactl; in __lpass_get_dmactl_handle()
334 dmactl = drvdata->wr_dmactl; in __lpass_get_dmactl_handle()
337 dmactl = drvdata->hdmi_rd_dmactl; in __lpass_get_dmactl_handle()
340 dmactl = drvdata->rxtx_rd_dmactl; in __lpass_get_dmactl_handle()
343 dmactl = drvdata->rxtx_wr_dmactl; in __lpass_get_dmactl_handle()
346 dmactl = drvdata->va_wr_dmactl; in __lpass_get_dmactl_handle()
358 struct lpass_data *drvdata = snd_soc_component_get_drvdata(component); in __lpass_get_id() local
361 struct lpass_variant *v = drvdata->variant; in __lpass_get_id()
393 struct lpass_data *drvdata = snd_soc_component_get_drvdata(component); in __lpass_get_regmap_handle() local
398 map = drvdata->lpaif_map; in __lpass_get_regmap_handle()
401 map = drvdata->hdmiif_map; in __lpass_get_regmap_handle()
405 map = drvdata->rxtx_lpaif_map; in __lpass_get_regmap_handle()
408 map = drvdata->va_lpaif_map; in __lpass_get_regmap_handle()
421 struct lpass_data *drvdata = snd_soc_component_get_drvdata(component); in lpass_platform_pcmops_hw_params() local
424 struct lpass_variant *v = drvdata->variant; in lpass_platform_pcmops_hw_params()
574 struct lpass_data *drvdata = snd_soc_component_get_drvdata(component); in lpass_platform_pcmops_hw_free() local
577 struct lpass_variant *v = drvdata->variant; in lpass_platform_pcmops_hw_free()
602 struct lpass_data *drvdata = snd_soc_component_get_drvdata(component); in lpass_platform_pcmops_prepare() local
605 struct lpass_variant *v = drvdata->variant; in lpass_platform_pcmops_prepare()
665 struct lpass_data *drvdata = snd_soc_component_get_drvdata(component); in lpass_platform_pcmops_trigger() local
668 struct lpass_variant *v = drvdata->variant; in lpass_platform_pcmops_trigger()
864 struct lpass_data *drvdata = snd_soc_component_get_drvdata(component); in lpass_platform_pcmops_pointer() local
867 struct lpass_variant *v = drvdata->variant; in lpass_platform_pcmops_pointer()
926 struct lpass_data *drvdata, in lpass_dma_interrupt_handler() argument
931 struct lpass_variant *v = drvdata->variant; in lpass_dma_interrupt_handler()
941 map = drvdata->hdmiif_map; in lpass_dma_interrupt_handler()
952 map = drvdata->lpaif_map; in lpass_dma_interrupt_handler()
958 map = drvdata->rxtx_lpaif_map; in lpass_dma_interrupt_handler()
963 map = drvdata->va_lpaif_map; in lpass_dma_interrupt_handler()
1022 struct lpass_data *drvdata = data; in lpass_platform_lpaif_irq() local
1023 struct lpass_variant *v = drvdata->variant; in lpass_platform_lpaif_irq()
1027 rv = regmap_read(drvdata->lpaif_map, in lpass_platform_lpaif_irq()
1036 if (irqs & LPAIF_IRQ_ALL(chan) && drvdata->substream[chan]) { in lpass_platform_lpaif_irq()
1038 drvdata->substream[chan], in lpass_platform_lpaif_irq()
1039 drvdata, chan, irqs); in lpass_platform_lpaif_irq()
1050 struct lpass_data *drvdata = data; in lpass_platform_hdmiif_irq() local
1051 struct lpass_variant *v = drvdata->variant; in lpass_platform_hdmiif_irq()
1055 rv = regmap_read(drvdata->hdmiif_map, in lpass_platform_hdmiif_irq()
1067 && drvdata->hdmi_substream[chan]) { in lpass_platform_hdmiif_irq()
1069 drvdata->hdmi_substream[chan], in lpass_platform_hdmiif_irq()
1070 drvdata, chan, irqs); in lpass_platform_hdmiif_irq()
1080 struct lpass_data *drvdata = data; in lpass_platform_rxtxif_irq() local
1081 struct lpass_variant *v = drvdata->variant; in lpass_platform_rxtxif_irq()
1086 rv = regmap_read(drvdata->rxtx_lpaif_map, in lpass_platform_rxtxif_irq()
1091 if (irqs & LPAIF_IRQ_ALL(chan) && drvdata->rxtx_substream[chan]) { in lpass_platform_rxtxif_irq()
1093 drvdata->rxtx_substream[chan], in lpass_platform_rxtxif_irq()
1094 drvdata, chan, irqs); in lpass_platform_rxtxif_irq()
1105 struct lpass_data *drvdata = data; in lpass_platform_vaif_irq() local
1106 struct lpass_variant *v = drvdata->variant; in lpass_platform_vaif_irq()
1111 rv = regmap_read(drvdata->va_lpaif_map, in lpass_platform_vaif_irq()
1116 if (irqs & LPAIF_IRQ_ALL(chan) && drvdata->va_substream[chan]) { in lpass_platform_vaif_irq()
1118 drvdata->va_substream[chan], in lpass_platform_vaif_irq()
1119 drvdata, chan, irqs); in lpass_platform_vaif_irq()
1130 struct lpass_data *drvdata = snd_soc_component_get_drvdata(component); in lpass_platform_prealloc_cdc_dma_buffer() local
1149 buf->addr = drvdata->rxtx_cdc_dma_lpm_buf; in lpass_platform_prealloc_cdc_dma_buffer()
1153 buf->addr = drvdata->rxtx_cdc_dma_lpm_buf + LPASS_RXTX_CDC_DMA_LPM_BUFF_SIZE; in lpass_platform_prealloc_cdc_dma_buffer()
1157 buf->addr = drvdata->va_cdc_dma_lpm_buf; in lpass_platform_prealloc_cdc_dma_buffer()
1190 struct lpass_data *drvdata = snd_soc_component_get_drvdata(component); in lpass_platform_pcmops_suspend() local
1195 map = drvdata->hdmiif_map; in lpass_platform_pcmops_suspend()
1197 map = drvdata->lpaif_map; in lpass_platform_pcmops_suspend()
1207 struct lpass_data *drvdata = snd_soc_component_get_drvdata(component); in lpass_platform_pcmops_resume() local
1212 map = drvdata->hdmiif_map; in lpass_platform_pcmops_resume()
1214 map = drvdata->lpaif_map; in lpass_platform_pcmops_resume()
1269 struct lpass_data *drvdata = platform_get_drvdata(pdev); in asoc_qcom_lpass_platform_register() local
1270 struct lpass_variant *v = drvdata->variant; in asoc_qcom_lpass_platform_register()
1273 drvdata->lpaif_irq = platform_get_irq_byname(pdev, "lpass-irq-lpaif"); in asoc_qcom_lpass_platform_register()
1274 if (drvdata->lpaif_irq < 0) in asoc_qcom_lpass_platform_register()
1278 ret = regmap_write(drvdata->lpaif_map, in asoc_qcom_lpass_platform_register()
1285 ret = devm_request_irq(&pdev->dev, drvdata->lpaif_irq, in asoc_qcom_lpass_platform_register()
1287 "lpass-irq-lpaif", drvdata); in asoc_qcom_lpass_platform_register()
1294 drvdata->lpaif_map); in asoc_qcom_lpass_platform_register()
1301 if (drvdata->codec_dma_enable) { in asoc_qcom_lpass_platform_register()
1302 ret = regmap_write(drvdata->rxtx_lpaif_map, in asoc_qcom_lpass_platform_register()
1308 ret = regmap_write(drvdata->va_lpaif_map, in asoc_qcom_lpass_platform_register()
1314 drvdata->rxtxif_irq = platform_get_irq_byname(pdev, "lpass-irq-rxtxif"); in asoc_qcom_lpass_platform_register()
1315 if (drvdata->rxtxif_irq < 0) in asoc_qcom_lpass_platform_register()
1318 ret = devm_request_irq(&pdev->dev, drvdata->rxtxif_irq, in asoc_qcom_lpass_platform_register()
1319 lpass_platform_rxtxif_irq, 0, "lpass-irq-rxtxif", drvdata); in asoc_qcom_lpass_platform_register()
1326 drvdata->rxtx_lpaif_map); in asoc_qcom_lpass_platform_register()
1333 drvdata->vaif_irq = platform_get_irq_byname(pdev, "lpass-irq-vaif"); in asoc_qcom_lpass_platform_register()
1334 if (drvdata->vaif_irq < 0) in asoc_qcom_lpass_platform_register()
1337 ret = devm_request_irq(&pdev->dev, drvdata->vaif_irq, in asoc_qcom_lpass_platform_register()
1338 lpass_platform_vaif_irq, 0, "lpass-irq-vaif", drvdata); in asoc_qcom_lpass_platform_register()
1345 drvdata->va_lpaif_map); in asoc_qcom_lpass_platform_register()
1353 if (drvdata->hdmi_port_enable) { in asoc_qcom_lpass_platform_register()
1354 drvdata->hdmiif_irq = platform_get_irq_byname(pdev, "lpass-irq-hdmi"); in asoc_qcom_lpass_platform_register()
1355 if (drvdata->hdmiif_irq < 0) in asoc_qcom_lpass_platform_register()
1358 ret = devm_request_irq(&pdev->dev, drvdata->hdmiif_irq, in asoc_qcom_lpass_platform_register()
1359 lpass_platform_hdmiif_irq, 0, "lpass-irq-hdmi", drvdata); in asoc_qcom_lpass_platform_register()
1364 ret = regmap_write(drvdata->hdmiif_map, in asoc_qcom_lpass_platform_register()
1372 drvdata->hdmiif_map); in asoc_qcom_lpass_platform_register()