Lines Matching refs:period_bytes
82 size_t period_bytes, truncated_bytes = 0; in rt5514_spi_copy_work() local
93 period_bytes = snd_pcm_lib_period_bytes(rt5514_dsp->substream); in rt5514_spi_copy_work()
108 if (remain_data < period_bytes) { in rt5514_spi_copy_work()
114 if (rt5514_dsp->buf_rp + period_bytes <= rt5514_dsp->buf_limit) { in rt5514_spi_copy_work()
117 period_bytes); in rt5514_spi_copy_work()
119 if (rt5514_dsp->buf_rp + period_bytes == rt5514_dsp->buf_limit) in rt5514_spi_copy_work()
122 rt5514_dsp->buf_rp += period_bytes; in rt5514_spi_copy_work()
131 truncated_bytes, period_bytes - truncated_bytes); in rt5514_spi_copy_work()
133 rt5514_dsp->buf_rp = rt5514_dsp->buf_base + period_bytes - in rt5514_spi_copy_work()
137 rt5514_dsp->get_size += period_bytes; in rt5514_spi_copy_work()
138 rt5514_dsp->dma_offset += period_bytes; in rt5514_spi_copy_work()
152 size_t period_bytes; in rt5514_schedule_copy() local
158 period_bytes = snd_pcm_lib_period_bytes(rt5514_dsp->substream); in rt5514_schedule_copy()
186 if (rt5514_dsp->buf_size % period_bytes) in rt5514_schedule_copy()
187 rt5514_dsp->buf_size = (rt5514_dsp->buf_size / period_bytes) * in rt5514_schedule_copy()
188 period_bytes; in rt5514_schedule_copy()