Lines Matching refs:cam

73 #define BRGREG(x)	(*(unsigned long *)(cam->mmio + (x)))
106 struct camelot_pcm *cam = data; in camelot_txdma() local
107 cam->tx_period ^= 1; in camelot_txdma()
108 snd_pcm_period_elapsed(cam->tx_ss); in camelot_txdma()
113 struct camelot_pcm *cam = data; in camelot_rxdma() local
114 cam->rx_period ^= 1; in camelot_rxdma()
115 snd_pcm_period_elapsed(cam->rx_ss); in camelot_rxdma()
122 struct camelot_pcm *cam = &cam_pcm_data[asoc_rtd_to_cpu(rtd, 0)->id]; in camelot_pcm_open() local
129 dmairq = (recv) ? cam->txid + 2 : cam->txid; in camelot_pcm_open()
131 cam->rx_ss = substream; in camelot_pcm_open()
132 ret = dmabrg_request_irq(dmairq, camelot_rxdma, cam); in camelot_pcm_open()
138 (void)dmabrg_request_irq(dmairq + 1,camelot_rxdma, cam); in camelot_pcm_open()
140 cam->tx_ss = substream; in camelot_pcm_open()
141 ret = dmabrg_request_irq(dmairq, camelot_txdma, cam); in camelot_pcm_open()
147 (void)dmabrg_request_irq(dmairq + 1, camelot_txdma, cam); in camelot_pcm_open()
156 struct camelot_pcm *cam = &cam_pcm_data[asoc_rtd_to_cpu(rtd, 0)->id]; in camelot_pcm_close() local
160 dmairq = (recv) ? cam->txid + 2 : cam->txid; in camelot_pcm_close()
163 cam->rx_ss = NULL; in camelot_pcm_close()
165 cam->tx_ss = NULL; in camelot_pcm_close()
178 struct camelot_pcm *cam = &cam_pcm_data[asoc_rtd_to_cpu(rtd, 0)->id]; in camelot_hw_params() local
182 cam->rx_period_size = params_period_bytes(hw_params); in camelot_hw_params()
183 cam->rx_period = 0; in camelot_hw_params()
185 cam->tx_period_size = params_period_bytes(hw_params); in camelot_hw_params()
186 cam->tx_period = 0; in camelot_hw_params()
196 struct camelot_pcm *cam = &cam_pcm_data[asoc_rtd_to_cpu(rtd, 0)->id]; in camelot_prepare() local
212 static inline void dmabrg_play_dma_start(struct camelot_pcm *cam) in dmabrg_play_dma_start() argument
219 static inline void dmabrg_play_dma_stop(struct camelot_pcm *cam) in dmabrg_play_dma_stop() argument
226 static inline void dmabrg_rec_dma_start(struct camelot_pcm *cam) in dmabrg_rec_dma_start() argument
233 static inline void dmabrg_rec_dma_stop(struct camelot_pcm *cam) in dmabrg_rec_dma_stop() argument
244 struct camelot_pcm *cam = &cam_pcm_data[asoc_rtd_to_cpu(rtd, 0)->id]; in camelot_trigger() local
250 dmabrg_rec_dma_start(cam); in camelot_trigger()
252 dmabrg_play_dma_start(cam); in camelot_trigger()
256 dmabrg_rec_dma_stop(cam); in camelot_trigger()
258 dmabrg_play_dma_stop(cam); in camelot_trigger()
272 struct camelot_pcm *cam = &cam_pcm_data[asoc_rtd_to_cpu(rtd, 0)->id]; in camelot_pos() local
283 pos = cam->rx_period ? cam->rx_period_size : 0; in camelot_pos()
285 pos = cam->tx_period ? cam->tx_period_size : 0; in camelot_pos()