Lines Matching full: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
183 cam->rx_period_size = params_period_bytes(hw_params); in camelot_hw_params()
184 cam->rx_period = 0; in camelot_hw_params()
186 cam->tx_period_size = params_period_bytes(hw_params); in camelot_hw_params()
187 cam->tx_period = 0; in camelot_hw_params()
197 struct camelot_pcm *cam = &cam_pcm_data[asoc_rtd_to_cpu(rtd, 0)->id]; in camelot_prepare() local
213 static inline void dmabrg_play_dma_start(struct camelot_pcm *cam) in dmabrg_play_dma_start() argument
220 static inline void dmabrg_play_dma_stop(struct camelot_pcm *cam) in dmabrg_play_dma_stop() argument
227 static inline void dmabrg_rec_dma_start(struct camelot_pcm *cam) in dmabrg_rec_dma_start() argument
234 static inline void dmabrg_rec_dma_stop(struct camelot_pcm *cam) in dmabrg_rec_dma_stop() argument
245 struct camelot_pcm *cam = &cam_pcm_data[asoc_rtd_to_cpu(rtd, 0)->id]; in camelot_trigger() local
251 dmabrg_rec_dma_start(cam); in camelot_trigger()
253 dmabrg_play_dma_start(cam); in camelot_trigger()
257 dmabrg_rec_dma_stop(cam); in camelot_trigger()
259 dmabrg_play_dma_stop(cam); in camelot_trigger()
273 struct camelot_pcm *cam = &cam_pcm_data[asoc_rtd_to_cpu(rtd, 0)->id]; in camelot_pos() local
284 pos = cam->rx_period ? cam->rx_period_size : 0; in camelot_pos()
286 pos = cam->tx_period ? cam->tx_period_size : 0; in camelot_pos()