Lines Matching refs:chan_size
169 int chan_size = sample_width / 8; in i2s_copy_from_fifo() local
172 for (size_t i = 0; i < size / chan_size; i += 4) { in i2s_copy_from_fifo()
179 for (size_t i = 0; i < size / chan_size; i += 2) { in i2s_copy_from_fifo()
185 int max_off = chan_size - 1; in i2s_copy_from_fifo()
187 for (size_t i = 0; i < size / chan_size; ++i) { in i2s_copy_from_fifo()
191 *(dst + i * chan_size + (max_off - off)) = in i2s_copy_from_fifo()
194 *(dst + i * chan_size + off) = data >> 8 * off; in i2s_copy_from_fifo()
221 int chan_size = sample_width / 8; in i2s_copy_to_fifo() local
224 for (size_t i = 0; i < size / chan_size; i += 4) { in i2s_copy_to_fifo()
231 for (size_t i = 0; i < size / chan_size; i += 2) { in i2s_copy_to_fifo()
236 int max_off = chan_size - 1; in i2s_copy_to_fifo()
240 for (size_t i = 0; i < size / chan_size; ++i) { in i2s_copy_to_fifo()
244 *(src + i * chan_size + (max_off - off)); in i2s_copy_to_fifo()
246 *(d_ptr + off) = *(src + i * chan_size + off); in i2s_copy_to_fifo()