Lines Matching defs:sdev
27 int acp_dsp_stream_config(struct snd_sof_dev *sdev, struct acp_dsp_stream *stream)
29 const struct sof_amd_acp_desc *desc = get_chip_info(sdev->pdata);
86 dev_err(sdev->dev, "Invalid stream tag %d\n", stream_tag);
92 phy_addr_offset = sdev->debug_box.offset +
97 snd_sof_dsp_write(sdev, ACP_DSP_BAR, ACP_SCRATCH_REG_0 +
101 offset = offset + sdev->debug_box.offset;
103 snd_sof_dsp_write(sdev, ACP_DSP_BAR, pte_reg, reg_val | BIT(31));
104 snd_sof_dsp_write(sdev, ACP_DSP_BAR, pte_size, PAGE_SIZE_4K_ENABLE);
113 snd_sof_dsp_write(sdev, ACP_DSP_BAR, ACP_SCRATCH_REG_0 + offset, low);
116 snd_sof_dsp_write(sdev, ACP_DSP_BAR, ACP_SCRATCH_REG_0 + offset + 4, high);
122 snd_sof_dsp_write(sdev, ACP_DSP_BAR, ACPAXI2AXI_ATU_CTRL, ACP_ATU_CACHE_INVALID);
127 struct acp_dsp_stream *acp_dsp_stream_get(struct snd_sof_dev *sdev, int tag)
129 struct acp_dev_data *adata = sdev->pdata->hw_pdata;
150 dev_err(sdev->dev, "stream %d active or no inactive stream\n", tag);
155 int acp_dsp_stream_put(struct snd_sof_dev *sdev,
158 struct acp_dev_data *adata = sdev->pdata->hw_pdata;
170 dev_err(sdev->dev, "Cannot find active stream tag %d\n", acp_stream->stream_tag);
175 int acp_dsp_stream_init(struct snd_sof_dev *sdev)
177 struct acp_dev_data *adata = sdev->pdata->hw_pdata;
181 adata->stream_buf[i].sdev = sdev;