Home
last modified time | relevance | path

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

/linux/sound/drivers/pcsp/
A 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/sound/virtio/
A 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()
A 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()
A Dvirtio_pcm.h52 size_t buffer_bytes; member
/linux/drivers/scsi/
A Dst.c1730 STbp->buffer_bytes; in st_write()
1865 STbp->buffer_bytes = 0; in st_write()
1992 STbp->buffer_bytes = 0; in read_tape()
2027 STbp->buffer_bytes = 0; in read_tape()
2029 STbp->buffer_bytes = in read_tape()
2042 STbp->buffer_bytes = in read_tape()
2065 STbp->buffer_bytes = 0; in read_tape()
2075 STbp->buffer_bytes = bytes; in read_tape()
2230 STbp->buffer_bytes = 0; in st_read()
4001 st_bp->buffer_bytes += cnt; in append_to_buffer()
[all …]
A Dst.h42 int buffer_bytes; member
/linux/kernel/
A Dprofile.c106 int buffer_bytes; in profile_init() local
112 buffer_bytes = prof_len*sizeof(atomic_t); in profile_init()
119 prof_buffer = kzalloc(buffer_bytes, GFP_KERNEL|__GFP_NOWARN); in profile_init()
123 prof_buffer = alloc_pages_exact(buffer_bytes, in profile_init()
128 prof_buffer = vzalloc(buffer_bytes); in profile_init()
/linux/sound/pci/
A 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()
A 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()
/linux/sound/pcmcia/vx/
A 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/sound/usb/
A Dpcm.c634 subs->buffer_bytes = frames_to_bytes(runtime, runtime->buffer_size); in snd_usb_pcm_prepare()
1203 if (subs->hwptr_done >= subs->buffer_bytes) in retire_capture_urb()
1204 subs->hwptr_done -= subs->buffer_bytes; in retire_capture_urb()
1217 if (oldptr + bytes > subs->buffer_bytes) { in retire_capture_urb()
1218 unsigned int bytes1 = subs->buffer_bytes - oldptr; in retire_capture_urb()
1239 if (subs->hwptr_done >= subs->buffer_bytes) in urb_ctx_queue_advance()
1240 subs->hwptr_done -= subs->buffer_bytes; in urb_ctx_queue_advance()
1249 unsigned int wrap = subs->buffer_bytes; in fill_playback_urb_dsd_dop()
1310 if (++ofs >= subs->buffer_bytes) in fill_playback_urb_dsd_bitrev()
1322 if (subs->hwptr_done + bytes > subs->buffer_bytes) { in copy_to_urb()
[all …]
A Dcard.h167 unsigned int buffer_bytes; /* buffer size in bytes */ member
/linux/include/sound/
A Dpcm_oss.h39 size_t buffer_bytes; /* requested buffer size */ member
A Dvx_core.h60 int buffer_bytes; /* the ALSA pcm buffer size in bytes */ member
/linux/sound/pci/vx222/
A 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/sound/drivers/vx/
A 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/include/uapi/linux/
A Dvirtio_snd.h236 __le32 buffer_bytes; member
/linux/sound/pci/asihpi/
A 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()
/linux/sound/soc/intel/atom/
A 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/sound/core/oss/
A 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()
1055 runtime->oss.buffer_bytes = oss_buffer_size; in snd_pcm_oss_change_params_locked()
1059 runtime->oss.buffer_bytes); in snd_pcm_oss_change_params_locked()
2237 info.blocks = (runtime->oss.buffer_bytes - delay - fixup) / runtime->oss.period_bytes; in snd_pcm_oss_get_ptr()
/linux/include/uapi/sound/
A Dasoc.h329 __le32 buffer_bytes; /* size of buffer in bytes */ member

Completed in 69 milliseconds