Lines Matching refs:dai_id
147 #define LPAIF_INTFDMA_REG(v, chan, reg, dai_id) \ argument
148 ((dai_id == LPASS_DP_RX) ? \
152 #define __LPAIF_DMA_REG(v, chan, dir, reg, dai_id) \ argument
154 (LPAIF_INTFDMA_REG(v, chan, reg, dai_id)) : \
157 #define LPAIF_DMACTL_REG(v, chan, dir, dai_id) \ argument
158 (is_cdc_dma_port(dai_id) ? \
159 __LPAIF_CDC_DMA_REG(v, chan, dir, CTL, dai_id) : \
160 __LPAIF_DMA_REG(v, chan, dir, CTL, dai_id))
161 #define LPAIF_DMABASE_REG(v, chan, dir, dai_id) \ argument
162 (is_cdc_dma_port(dai_id) ? \
163 __LPAIF_CDC_DMA_REG(v, chan, dir, BASE, dai_id) : \
164 __LPAIF_DMA_REG(v, chan, dir, BASE, dai_id))
165 #define LPAIF_DMABUFF_REG(v, chan, dir, dai_id) \ argument
166 (is_cdc_dma_port(dai_id) ? \
167 __LPAIF_CDC_DMA_REG(v, chan, dir, BUFF, dai_id) : \
168 __LPAIF_DMA_REG(v, chan, dir, BUFF, dai_id))
169 #define LPAIF_DMACURR_REG(v, chan, dir, dai_id) \ argument
170 (is_cdc_dma_port(dai_id) ? \
171 __LPAIF_CDC_DMA_REG(v, chan, dir, CURR, dai_id) : \
172 __LPAIF_DMA_REG(v, chan, dir, CURR, dai_id))
173 #define LPAIF_DMAPER_REG(v, chan, dir, dai_id) \ argument
174 (is_cdc_dma_port(dai_id) ? \
175 __LPAIF_CDC_DMA_REG(v, chan, dir, PER, dai_id) : \
176 __LPAIF_DMA_REG(v, chan, dir, PER, dai_id))
177 #define LPAIF_DMAPERCNT_REG(v, chan, dir, dai_id) \ argument
178 (is_cdc_dma_port(dai_id) ? \
179 __LPAIF_CDC_DMA_REG(v, chan, dir, PERCNT, dai_id) : \
180 __LPAIF_DMA_REG(v, chan, dir, PERCNT, dai_id))
182 #define LPAIF_CDC_RDMA_REG_ADDR(v, addr, chan, dai_id) \ argument
183 (is_rxtx_cdc_dma_port(dai_id) ? \
187 #define LPAIF_CDC_RXTX_RDMACTL_REG(v, chan, dai_id) \ argument
188 LPAIF_CDC_RDMA_REG_ADDR(v, 0x00, (chan), dai_id)
189 #define LPAIF_CDC_RXTX_RDMABASE_REG(v, chan, dai_id) \ argument
190 LPAIF_CDC_RDMA_REG_ADDR(v, 0x04, (chan), dai_id)
191 #define LPAIF_CDC_RXTX_RDMABUFF_REG(v, chan, dai_id) \ argument
192 LPAIF_CDC_RDMA_REG_ADDR(v, 0x08, (chan), dai_id)
193 #define LPAIF_CDC_RXTX_RDMACURR_REG(v, chan, dai_id) \ argument
194 LPAIF_CDC_RDMA_REG_ADDR(v, 0x0C, (chan), dai_id)
195 #define LPAIF_CDC_RXTX_RDMAPER_REG(v, chan, dai_id) \ argument
196 LPAIF_CDC_RDMA_REG_ADDR(v, 0x10, (chan), dai_id)
197 #define LPAIF_CDC_RXTX_RDMA_INTF_REG(v, chan, dai_id) \ argument
198 LPAIF_CDC_RDMA_REG_ADDR(v, 0x50, (chan), dai_id)
200 #define LPAIF_CDC_VA_RDMACTL_REG(v, chan, dai_id) LPAIF_CDC_RDMA_REG_ADDR(v, 0x00, (chan), dai_id) argument
201 #define LPAIF_CDC_VA_RDMABASE_REG(v, chan, dai_id) LPAIF_CDC_RDMA_REG_ADDR(v, 0x04, (chan), dai_id) argument
202 #define LPAIF_CDC_VA_RDMABUFF_REG(v, chan, dai_id) LPAIF_CDC_RDMA_REG_ADDR(v, 0x08, (chan), dai_id) argument
203 #define LPAIF_CDC_VA_RDMACURR_REG(v, chan, dai_id) LPAIF_CDC_RDMA_REG_ADDR(v, 0x0C, (chan), dai_id) argument
204 #define LPAIF_CDC_VA_RDMAPER_REG(v, chan, dai_id) LPAIF_CDC_RDMA_REG_ADDR(v, 0x10, (chan), dai_id) argument
205 #define LPAIF_CDC_VA_RDMA_INTF_REG(v, chan, dai_id) \ argument
206 LPAIF_CDC_RDMA_REG_ADDR(v, 0x50, (chan), dai_id)
208 #define LPAIF_CDC_WRDMA_REG_ADDR(v, addr, chan, dai_id) \ argument
209 (is_rxtx_cdc_dma_port(dai_id) ? \
215 #define LPAIF_CDC_RXTX_WRDMACTL_REG(v, chan, dai_id) \ argument
216 LPAIF_CDC_WRDMA_REG_ADDR(v, 0x00, (chan), dai_id)
217 #define LPAIF_CDC_RXTX_WRDMABASE_REG(v, chan, dai_id) \ argument
218 LPAIF_CDC_WRDMA_REG_ADDR(v, 0x04, (chan), dai_id)
219 #define LPAIF_CDC_RXTX_WRDMABUFF_REG(v, chan, dai_id) \ argument
220 LPAIF_CDC_WRDMA_REG_ADDR(v, 0x08, (chan), dai_id)
221 #define LPAIF_CDC_RXTX_WRDMACURR_REG(v, chan, dai_id) \ argument
222 LPAIF_CDC_WRDMA_REG_ADDR(v, 0x0C, (chan), dai_id)
223 #define LPAIF_CDC_RXTX_WRDMAPER_REG(v, chan, dai_id) \ argument
224 LPAIF_CDC_WRDMA_REG_ADDR(v, 0x10, (chan), dai_id)
225 #define LPAIF_CDC_RXTX_WRDMA_INTF_REG(v, chan, dai_id) \ argument
226 LPAIF_CDC_WRDMA_REG_ADDR(v, 0x50, (chan), dai_id)
228 #define LPAIF_CDC_VA_WRDMACTL_REG(v, chan, dai_id) \ argument
229 LPAIF_CDC_WRDMA_REG_ADDR(v, 0x00, (chan), dai_id)
230 #define LPAIF_CDC_VA_WRDMABASE_REG(v, chan, dai_id) \ argument
231 LPAIF_CDC_WRDMA_REG_ADDR(v, 0x04, (chan), dai_id)
232 #define LPAIF_CDC_VA_WRDMABUFF_REG(v, chan, dai_id) \ argument
233 LPAIF_CDC_WRDMA_REG_ADDR(v, 0x08, (chan), dai_id)
234 #define LPAIF_CDC_VA_WRDMACURR_REG(v, chan, dai_id) \ argument
235 LPAIF_CDC_WRDMA_REG_ADDR(v, 0x0C, (chan), dai_id)
236 #define LPAIF_CDC_VA_WRDMAPER_REG(v, chan, dai_id) \ argument
237 LPAIF_CDC_WRDMA_REG_ADDR(v, 0x10, (chan), dai_id)
238 #define LPAIF_CDC_VA_WRDMA_INTF_REG(v, chan, dai_id) \ argument
239 LPAIF_CDC_WRDMA_REG_ADDR(v, 0x50, (chan), dai_id)
241 #define __LPAIF_CDC_RDDMA_REG(v, chan, dir, reg, dai_id) \ argument
242 (is_rxtx_cdc_dma_port(dai_id) ? LPAIF_CDC_RXTX_RDMA##reg##_REG(v, chan, dai_id) : \
243 LPAIF_CDC_VA_RDMA##reg##_REG(v, chan, dai_id))
245 #define __LPAIF_CDC_WRDMA_REG(v, chan, dir, reg, dai_id) \ argument
246 (is_rxtx_cdc_dma_port(dai_id) ? LPAIF_CDC_RXTX_WRDMA##reg##_REG(v, chan, dai_id) : \
247 LPAIF_CDC_VA_WRDMA##reg##_REG(v, chan, dai_id))
249 #define __LPAIF_CDC_DMA_REG(v, chan, dir, reg, dai_id) \ argument
251 __LPAIF_CDC_RDDMA_REG(v, chan, dir, reg, dai_id) : \
252 __LPAIF_CDC_WRDMA_REG(v, chan, dir, reg, dai_id))
254 #define LPAIF_CDC_INTF_REG(v, chan, dir, dai_id) \ argument
256 LPAIF_CDC_RDMA_INTF_REG(v, chan, dai_id) : \
257 LPAIF_CDC_WRDMA_INTF_REG(v, chan, dai_id))
259 #define LPAIF_INTF_REG(v, chan, dir, dai_id) \ argument
260 (is_cdc_dma_port(dai_id) ? \
261 LPAIF_CDC_INTF_REG(v, chan, dir, dai_id) : \
262 LPAIF_DMACTL_REG(v, chan, dir, dai_id))