Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/scsi/
Dst.c692 STbuffer->buffer_bytes -= STbuffer->writing; in write_behind_check()
780 transfer = STp->buffer->buffer_bytes; in st_flush_write_buffer()
808 (STp->buffer)->buffer_bytes = 0; in st_flush_write_buffer()
821 (STp->buffer)->buffer_bytes = 0; in st_flush_write_buffer()
853 backspace = ((STp->buffer)->buffer_bytes + in flush_buffer()
857 (STp->buffer)->buffer_bytes = 0; in flush_buffer()
1191 (STp->buffer)->buffer_bytes = (STp->buffer)->read_pointer = 0; in check_tape()
1561 STbp->buffer_bytes = 0; /* can be used as transfer counter */ in setup_buffering()
1734 STbp->buffer_bytes; in st_write()
1753 STbp->buffer_bytes < STbp->buffer_size) { in st_write()
[all …]
Dst.h43 int buffer_bytes; member
/kernel/linux/linux-5.10/kernel/
Dprofile.c106 int buffer_bytes; in profile_init() local
119 buffer_bytes = prof_len*sizeof(atomic_t); in profile_init()
126 prof_buffer = kzalloc(buffer_bytes, GFP_KERNEL|__GFP_NOWARN); in profile_init()
130 prof_buffer = alloc_pages_exact(buffer_bytes, in profile_init()
135 prof_buffer = vzalloc(buffer_bytes); in profile_init()
/kernel/linux/linux-5.10/sound/pci/
Dals300.c418 unsigned short buffer_bytes = snd_pcm_lib_buffer_bytes(substream); in snd_als300_playback_prepare() local
425 period_bytes, buffer_bytes); in snd_als300_playback_prepare()
436 runtime->dma_addr + buffer_bytes - 1); in snd_als300_playback_prepare()
447 unsigned short buffer_bytes = snd_pcm_lib_buffer_bytes(substream); in snd_als300_capture_prepare() local
454 buffer_bytes); in snd_als300_capture_prepare()
465 runtime->dma_addr + buffer_bytes - 1); in snd_als300_capture_prepare()
Dazt3328.c1377 unsigned int buffer_bytes in snd_azf3328_codec_setdmaa() argument
1381 WARN_ONCE(buffer_bytes != 2 * period_bytes, in snd_azf3328_codec_setdmaa()
1383 buffer_bytes, period_bytes); in snd_azf3328_codec_setdmaa()
1397 area_length = buffer_bytes/2; in snd_azf3328_codec_setdmaa()
1406 period_bytes, buffer_bytes); in snd_azf3328_codec_setdmaa()
/kernel/linux/linux-5.10/sound/soc/txx9/
Dtxx9aclc.c80 dmadata->buffer_bytes = snd_pcm_lib_buffer_bytes(substream); in txx9aclc_pcm_prepare()
83 if (dmadata->buffer_bytes == dmadata->period_bytes) { in txx9aclc_pcm_prepare()
88 dmadata->frags = dmadata->buffer_bytes / dmadata->period_bytes; in txx9aclc_pcm_prepare()
189 dmadata->pos %= dmadata->buffer_bytes; in txx9aclc_dma_work()
Dtxx9aclc.h52 unsigned long buffer_bytes; member
/kernel/linux/linux-5.10/sound/pcmcia/vx/
Dvxp_ops.c359 if (offset + count >= pipe->buffer_bytes) { in vxp_dma_write()
360 int length = pipe->buffer_bytes - offset; in vxp_dma_write()
401 if (offset + count >= pipe->buffer_bytes) { in vxp_dma_read()
402 int length = pipe->buffer_bytes - offset; in vxp_dma_read()
/kernel/linux/linux-5.10/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
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
822 pipe->buffer_bytes = frames_to_bytes(runtime, runtime->buffer_size); in vx_pcm_prepare()
/kernel/linux/linux-5.10/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()
784 newdata = (pcm_buf_dma_ofs - ds->pcm_buf_elapsed_dma_ofs) % ds->buffer_bytes; in snd_card_asihpi_timer_function()
790 (pcm_buf_dma_ofs - ds->pcm_buf_elapsed_dma_ofs) % ds->buffer_bytes, in snd_card_asihpi_timer_function()
846 unsigned int buf_ofs = ds->pcm_buf_host_rw_ofs % ds->buffer_bytes; in snd_card_asihpi_timer_function()
854 xfer1 = min(xfercount, ds->buffer_bytes - buf_ofs); in snd_card_asihpi_timer_function()
942 ptr = bytes_to_frames(runtime, dpcm->pcm_buf_dma_ofs % dpcm->buffer_bytes); in snd_card_asihpi_playback_pointer()
1105 return bytes_to_frames(runtime, dpcm->pcm_buf_dma_ofs % dpcm->buffer_bytes); in snd_card_asihpi_capture_pointer()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
1058 runtime->oss.buffer_bytes = oss_buffer_size; in snd_pcm_oss_change_params_locked()
1062 runtime->oss.buffer_bytes); in snd_pcm_oss_change_params_locked()
2229 info.blocks = (runtime->oss.buffer_bytes - delay - fixup) / runtime->oss.period_bytes; in snd_pcm_oss_get_ptr()
/kernel/linux/linux-5.10/include/uapi/sound/
Dasoc.h323 __le32 buffer_bytes; /* size of buffer in bytes */ member
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/sound/
Dasoc.h202 __le32 buffer_bytes; member
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/sound/
Dasoc.h215 __le32 buffer_bytes; member
/kernel/linux/patches/linux-5.10/imx8mm_patch/patches/
D0009_linux_sound.patch10535 + * @buffer_bytes: buffer size in bytes
10545 + int buffer_bytes;
10655 + buf_size = mix->buffer_bytes;
10669 + avail = mix->buffer_bytes - mix->buffer_write_offset + mix->buffer_read_offset;
10671 + avail += mix->buffer_bytes;
10672 + else if (avail > mix->buffer_bytes)
10673 + avail -= mix->buffer_bytes;
10684 + avail = mix->buffer_bytes - mix->buffer_read_offset + mix->buffer_write_offset;
10686 + avail += mix->buffer_bytes;
10687 + else if (avail > mix->buffer_bytes)
[all …]