Home
last modified time | relevance | path

Searched refs:buffer_bytes (Results 1 – 22 of 22) sorted by relevance

/linux-6.6.21/sound/soc/google/
Dchv3-i2s.c205 unsigned int buffer_bytes, period_bytes, period_size; in chv3_dma_prepare() local
207 buffer_bytes = snd_pcm_lib_buffer_bytes(substream); in chv3_dma_prepare()
214 chv3_i2s_wr(i2s, I2S_RX_BUFFER_SIZE, buffer_bytes); in chv3_dma_prepare()
220 chv3_i2s_wr(i2s, I2S_TX_BUFFER_SIZE, buffer_bytes); in chv3_dma_prepare()
234 u32 frame_bytes, buffer_bytes; in chv3_dma_pointer() local
238 buffer_bytes = snd_pcm_lib_buffer_bytes(substream); in chv3_dma_pointer()
245 idx_bytes = (idx_bytes - frame_bytes) & (buffer_bytes - 1); in chv3_dma_pointer()
/linux-6.6.21/sound/drivers/pcsp/
Dpcsp_lib.c91 size_t period_bytes, buffer_bytes; in pcsp_pointer_update() local
101 buffer_bytes = snd_pcm_lib_buffer_bytes(substream); in pcsp_pointer_update()
110 chip->playback_ptr, period_bytes, buffer_bytes); in pcsp_pointer_update()
112 periods_elapsed += buffer_bytes; in pcsp_pointer_update()
117 chip->playback_ptr %= buffer_bytes; in pcsp_pointer_update()
121 chip->period_ptr %= buffer_bytes; in pcsp_pointer_update()
/linux-6.6.21/sound/virtio/
Dvirtio_pcm_ops.c154 unsigned int buffer_bytes, in virtsnd_pcm_dev_set_params() argument
189 request->buffer_bytes = cpu_to_le32(buffer_bytes); in virtsnd_pcm_dev_set_params()
283 vss->buffer_bytes = snd_pcm_lib_buffer_bytes(substream); in virtsnd_pcm_prepare()
288 unsigned int buffer_bytes = snd_pcm_lib_buffer_bytes(substream); in virtsnd_pcm_prepare() local
292 rc = virtsnd_pcm_dev_set_params(vss, buffer_bytes, period_bytes, in virtsnd_pcm_prepare()
Dvirtio_pcm.h52 size_t buffer_bytes; member
Dvirtio_pcm_msg.c309 if (vss->hw_ptr >= vss->buffer_bytes) in virtsnd_pcm_msg_complete()
310 vss->hw_ptr -= vss->buffer_bytes; in virtsnd_pcm_msg_complete()
/linux-6.6.21/kernel/
Dprofile.c102 int buffer_bytes; in profile_init() local
115 buffer_bytes = prof_len*sizeof(atomic_t); in profile_init()
122 prof_buffer = kzalloc(buffer_bytes, GFP_KERNEL|__GFP_NOWARN); in profile_init()
126 prof_buffer = alloc_pages_exact(buffer_bytes, in profile_init()
131 prof_buffer = vzalloc(buffer_bytes); in profile_init()
/linux-6.6.21/drivers/scsi/
Dst.c693 STbuffer->buffer_bytes -= STbuffer->writing; in write_behind_check()
781 transfer = STp->buffer->buffer_bytes; in st_flush_write_buffer()
809 (STp->buffer)->buffer_bytes = 0; in st_flush_write_buffer()
822 (STp->buffer)->buffer_bytes = 0; in st_flush_write_buffer()
854 backspace = ((STp->buffer)->buffer_bytes + in flush_buffer()
858 (STp->buffer)->buffer_bytes = 0; in flush_buffer()
1192 (STp->buffer)->buffer_bytes = (STp->buffer)->read_pointer = 0; in check_tape()
1562 STbp->buffer_bytes = 0; /* can be used as transfer counter */ in setup_buffering()
1735 STbp->buffer_bytes; in st_write()
1754 STbp->buffer_bytes < STbp->buffer_size) { in st_write()
[all …]
Dst.h42 int buffer_bytes; member
/linux-6.6.21/sound/pci/
Dals300.c403 unsigned short buffer_bytes = snd_pcm_lib_buffer_bytes(substream); in snd_als300_playback_prepare() local
410 period_bytes, buffer_bytes); in snd_als300_playback_prepare()
421 runtime->dma_addr + buffer_bytes - 1); in snd_als300_playback_prepare()
432 unsigned short buffer_bytes = snd_pcm_lib_buffer_bytes(substream); in snd_als300_capture_prepare() local
439 buffer_bytes); in snd_als300_capture_prepare()
450 runtime->dma_addr + buffer_bytes - 1); in snd_als300_capture_prepare()
Dazt3328.c1368 unsigned int buffer_bytes in snd_azf3328_codec_setdmaa() argument
1372 WARN_ONCE(buffer_bytes != 2 * period_bytes, in snd_azf3328_codec_setdmaa()
1374 buffer_bytes, period_bytes); in snd_azf3328_codec_setdmaa()
1388 area_length = buffer_bytes/2; in snd_azf3328_codec_setdmaa()
1397 period_bytes, buffer_bytes); in snd_azf3328_codec_setdmaa()
/linux-6.6.21/sound/pcmcia/vx/
Dvxp_ops.c361 if (offset + count >= pipe->buffer_bytes) { in vxp_dma_write()
362 int length = pipe->buffer_bytes - offset; in vxp_dma_write()
403 if (offset + count >= pipe->buffer_bytes) { in vxp_dma_read()
404 int length = pipe->buffer_bytes - offset; in vxp_dma_read()
/linux-6.6.21/sound/usb/
Dpcm.c672 subs->buffer_bytes = frames_to_bytes(runtime, runtime->buffer_size); in snd_usb_pcm_prepare()
1309 if (subs->hwptr_done >= subs->buffer_bytes) in retire_capture_urb()
1310 subs->hwptr_done -= subs->buffer_bytes; in retire_capture_urb()
1323 if (oldptr + bytes > subs->buffer_bytes) { in retire_capture_urb()
1324 unsigned int bytes1 = subs->buffer_bytes - oldptr; in retire_capture_urb()
1345 if (subs->hwptr_done >= subs->buffer_bytes) in urb_ctx_queue_advance()
1346 subs->hwptr_done -= subs->buffer_bytes; in urb_ctx_queue_advance()
1355 unsigned int wrap = subs->buffer_bytes; in fill_playback_urb_dsd_dop()
1416 if (++ofs >= subs->buffer_bytes) in fill_playback_urb_dsd_bitrev()
1428 if (subs->hwptr_done + bytes > subs->buffer_bytes) { in copy_to_urb()
[all …]
Dcard.h170 unsigned int buffer_bytes; /* buffer size in bytes */ member
/linux-6.6.21/include/sound/
Dpcm_oss.h39 size_t buffer_bytes; /* requested buffer size */ member
Dvx_core.h60 int buffer_bytes; /* the ALSA pcm buffer size in bytes */ member
/linux-6.6.21/sound/pci/vx222/
Dvx222_ops.c259 if (offset + count >= pipe->buffer_bytes) { in vx2_dma_write()
260 int length = pipe->buffer_bytes - offset; in vx2_dma_write()
297 if (offset + count >= pipe->buffer_bytes) { in vx2_dma_read()
298 int length = pipe->buffer_bytes - offset; in vx2_dma_read()
/linux-6.6.21/include/uapi/linux/
Dvirtio_snd.h236 __le32 buffer_bytes; member
/linux-6.6.21/sound/drivers/vx/
Dvx_pcm.c51 if (++offset >= pipe->buffer_bytes) { in vx_pcm_read_per_bytes()
56 if (++offset >= pipe->buffer_bytes) { in vx_pcm_read_per_bytes()
61 if (++offset >= pipe->buffer_bytes) { in vx_pcm_read_per_bytes()
831 pipe->buffer_bytes = frames_to_bytes(runtime, runtime->buffer_size); in vx_pcm_prepare()
/linux-6.6.21/sound/pci/asihpi/
Dasihpi.c141 unsigned int buffer_bytes; member
485 dpcm->buffer_bytes = params_buffer_bytes(params); in snd_card_asihpi_pcm_hw_params()
783 newdata = (pcm_buf_dma_ofs - ds->pcm_buf_elapsed_dma_ofs) % ds->buffer_bytes; in snd_card_asihpi_timer_function()
789 (pcm_buf_dma_ofs - ds->pcm_buf_elapsed_dma_ofs) % ds->buffer_bytes, in snd_card_asihpi_timer_function()
844 unsigned int buf_ofs = ds->pcm_buf_host_rw_ofs % ds->buffer_bytes; in snd_card_asihpi_timer_function()
852 xfer1 = min(xfercount, ds->buffer_bytes - buf_ofs); in snd_card_asihpi_timer_function()
940 ptr = bytes_to_frames(runtime, dpcm->pcm_buf_dma_ofs % dpcm->buffer_bytes); in snd_card_asihpi_playback_pointer()
1103 return bytes_to_frames(runtime, dpcm->pcm_buf_dma_ofs % dpcm->buffer_bytes); in snd_card_asihpi_capture_pointer()
/linux-6.6.21/sound/core/oss/
Dpcm_oss.c590 if (buffer_size == runtime->oss.buffer_bytes) in snd_pcm_oss_bytes()
593 return runtime->oss.buffer_bytes * bytes / buffer_size; in snd_pcm_oss_bytes()
596 u64 bsize = (u64)runtime->oss.buffer_bytes * (u64)bytes; in snd_pcm_oss_bytes()
606 if (buffer_size == runtime->oss.buffer_bytes) in snd_pcm_alsa_frames()
608 return bytes_to_frames(runtime, (buffer_size * bytes) / runtime->oss.buffer_bytes); in snd_pcm_alsa_frames()
1065 runtime->oss.buffer_bytes = oss_buffer_size; in snd_pcm_oss_change_params_locked()
1069 runtime->oss.buffer_bytes); in snd_pcm_oss_change_params_locked()
2249 info.blocks = (runtime->oss.buffer_bytes - delay - fixup) / runtime->oss.period_bytes; in snd_pcm_oss_get_ptr()
/linux-6.6.21/sound/soc/intel/atom/
Dsst-mfld-platform-pcm.c129 ssize_t buffer_bytes = snd_pcm_lib_buffer_bytes(substream); in sst_fill_alloc_params() local
136 alloc_param->ring_buf_info[0].size = buffer_bytes; in sst_fill_alloc_params()
/linux-6.6.21/include/uapi/sound/
Dasoc.h325 __le32 buffer_bytes; /* size of buffer in bytes */ member