• Home
  • Raw
  • Download

Lines Matching refs:cd

89 static void au1x_pcm_queue_tx(struct au1xpsc_audio_dmadata *cd)  in au1x_pcm_queue_tx()  argument
91 au1xxx_dbdma_put_source(cd->ddma_chan, cd->dma_area, in au1x_pcm_queue_tx()
92 cd->period_bytes, DDMA_FLAGS_IE); in au1x_pcm_queue_tx()
95 ++cd->q_period; in au1x_pcm_queue_tx()
96 cd->dma_area += cd->period_bytes; in au1x_pcm_queue_tx()
97 if (cd->q_period >= cd->periods) { in au1x_pcm_queue_tx()
98 cd->q_period = 0; in au1x_pcm_queue_tx()
99 cd->dma_area = cd->dma_area_s; in au1x_pcm_queue_tx()
103 static void au1x_pcm_queue_rx(struct au1xpsc_audio_dmadata *cd) in au1x_pcm_queue_rx() argument
105 au1xxx_dbdma_put_dest(cd->ddma_chan, cd->dma_area, in au1x_pcm_queue_rx()
106 cd->period_bytes, DDMA_FLAGS_IE); in au1x_pcm_queue_rx()
109 ++cd->q_period; in au1x_pcm_queue_rx()
110 cd->dma_area += cd->period_bytes; in au1x_pcm_queue_rx()
111 if (cd->q_period >= cd->periods) { in au1x_pcm_queue_rx()
112 cd->q_period = 0; in au1x_pcm_queue_rx()
113 cd->dma_area = cd->dma_area_s; in au1x_pcm_queue_rx()
119 struct au1xpsc_audio_dmadata *cd = dev_id; in au1x_pcm_dmatx_cb() local
121 cd->pos += cd->period_bytes; in au1x_pcm_dmatx_cb()
122 if (++cd->curr_period >= cd->periods) { in au1x_pcm_dmatx_cb()
123 cd->pos = 0; in au1x_pcm_dmatx_cb()
124 cd->curr_period = 0; in au1x_pcm_dmatx_cb()
126 snd_pcm_period_elapsed(cd->substream); in au1x_pcm_dmatx_cb()
127 au1x_pcm_queue_tx(cd); in au1x_pcm_dmatx_cb()
132 struct au1xpsc_audio_dmadata *cd = dev_id; in au1x_pcm_dmarx_cb() local
134 cd->pos += cd->period_bytes; in au1x_pcm_dmarx_cb()
135 if (++cd->curr_period >= cd->periods) { in au1x_pcm_dmarx_cb()
136 cd->pos = 0; in au1x_pcm_dmarx_cb()
137 cd->curr_period = 0; in au1x_pcm_dmarx_cb()
139 snd_pcm_period_elapsed(cd->substream); in au1x_pcm_dmarx_cb()
140 au1x_pcm_queue_rx(cd); in au1x_pcm_dmarx_cb()