/Linux-v4.19/sound/drivers/pcsp/ |
D | pcsp_lib.c | 91 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-v4.19/drivers/scsi/ |
D | st.c | 688 STbuffer->buffer_bytes -= STbuffer->writing; in write_behind_check() 776 transfer = STp->buffer->buffer_bytes; in st_flush_write_buffer() 804 (STp->buffer)->buffer_bytes = 0; in st_flush_write_buffer() 817 (STp->buffer)->buffer_bytes = 0; in st_flush_write_buffer() 849 backspace = ((STp->buffer)->buffer_bytes + in flush_buffer() 853 (STp->buffer)->buffer_bytes = 0; in flush_buffer() 1187 (STp->buffer)->buffer_bytes = (STp->buffer)->read_pointer = 0; in check_tape() 1558 STbp->buffer_bytes = 0; /* can be used as transfer counter */ in setup_buffering() 1731 STbp->buffer_bytes; in st_write() 1750 STbp->buffer_bytes < STbp->buffer_size) { in st_write() [all …]
|
D | osst.c | 538 if (STbuffer->writing < STbuffer->buffer_bytes) in osst_write_behind_check() 542 STbuffer->buffer_bytes -= STbuffer->writing; in osst_write_behind_check() 631 STp->buffer->buffer_bytes = OS_FRAME_SIZE; in osst_verify_frame() 723 STp->buffer->buffer_bytes = blk_cnt * blk_sz; in osst_verify_frame() 1328 STp->buffer->buffer_bytes -= STp->buffer->read_pointer; in osst_seek_logical_blk() 1334 STp->buffer->buffer_bytes, STp->buffer->read_pointer / STp->block_size, in osst_seek_logical_blk() 1390 STp->ps[STp->partition].rw == ST_WRITING?STp->buffer->buffer_bytes: in osst_get_sector() 1398 sector |= (STp->buffer->buffer_bytes >> OSST_SECTOR_SHIFT) & OSST_SECTOR_MASK; in osst_get_sector() 1438 STp->buffer->buffer_bytes -= offset; in osst_seek_sector() 1443 STp->buffer->buffer_bytes = STp->buffer->read_pointer = 0; in osst_seek_sector() [all …]
|
D | st.h | 43 int buffer_bytes; member
|
D | osst.h | 517 int buffer_bytes; member
|
/Linux-v4.19/kernel/ |
D | profile.c | 104 int buffer_bytes; in profile_init() local 110 buffer_bytes = prof_len*sizeof(atomic_t); in profile_init() 117 prof_buffer = kzalloc(buffer_bytes, GFP_KERNEL|__GFP_NOWARN); in profile_init() 121 prof_buffer = alloc_pages_exact(buffer_bytes, in profile_init() 126 prof_buffer = vzalloc(buffer_bytes); in profile_init()
|
/Linux-v4.19/sound/pci/ |
D | als300.c | 445 unsigned short buffer_bytes = snd_pcm_lib_buffer_bytes(substream); in snd_als300_playback_prepare() local 452 period_bytes, buffer_bytes); in snd_als300_playback_prepare() 463 runtime->dma_addr + buffer_bytes - 1); in snd_als300_playback_prepare() 474 unsigned short buffer_bytes = snd_pcm_lib_buffer_bytes(substream); in snd_als300_capture_prepare() local 481 buffer_bytes); in snd_als300_capture_prepare() 492 runtime->dma_addr + buffer_bytes - 1); in snd_als300_capture_prepare()
|
D | azt3328.c | 1405 unsigned int buffer_bytes in snd_azf3328_codec_setdmaa() argument 1409 WARN_ONCE(buffer_bytes != 2 * period_bytes, in snd_azf3328_codec_setdmaa() 1411 buffer_bytes, period_bytes); in snd_azf3328_codec_setdmaa() 1425 area_length = buffer_bytes/2; in snd_azf3328_codec_setdmaa() 1434 period_bytes, buffer_bytes); in snd_azf3328_codec_setdmaa()
|
/Linux-v4.19/sound/soc/txx9/ |
D | txx9aclc.c | 93 dmadata->buffer_bytes = snd_pcm_lib_buffer_bytes(substream); in txx9aclc_pcm_prepare() 96 if (dmadata->buffer_bytes == dmadata->period_bytes) { in txx9aclc_pcm_prepare() 101 dmadata->frags = dmadata->buffer_bytes / dmadata->period_bytes; in txx9aclc_pcm_prepare() 201 dmadata->pos %= dmadata->buffer_bytes; in txx9aclc_dma_tasklet()
|
D | txx9aclc.h | 55 unsigned long buffer_bytes; member
|
/Linux-v4.19/sound/pcmcia/vx/ |
D | vxp_ops.c | 372 if (offset + count >= pipe->buffer_bytes) { in vxp_dma_write() 373 int length = pipe->buffer_bytes - offset; in vxp_dma_write() 414 if (offset + count >= pipe->buffer_bytes) { in vxp_dma_read() 415 int length = pipe->buffer_bytes - offset; in vxp_dma_read()
|
/Linux-v4.19/include/sound/ |
D | pcm_oss.h | 54 size_t buffer_bytes; /* requested buffer size */ member
|
D | vx_core.h | 73 int buffer_bytes; /* the ALSA pcm buffer size in bytes */ member
|
/Linux-v4.19/sound/pci/vx222/ |
D | vx222_ops.c | 272 if (offset + count >= pipe->buffer_bytes) { in vx2_dma_write() 273 int length = pipe->buffer_bytes - offset; in vx2_dma_write() 310 if (offset + count >= pipe->buffer_bytes) { in vx2_dma_read() 311 int length = pipe->buffer_bytes - offset; in vx2_dma_read()
|
/Linux-v4.19/sound/drivers/vx/ |
D | vx_pcm.c | 66 if (++offset >= pipe->buffer_bytes) { in vx_pcm_read_per_bytes() 71 if (++offset >= pipe->buffer_bytes) { in vx_pcm_read_per_bytes() 76 if (++offset >= pipe->buffer_bytes) { in vx_pcm_read_per_bytes() 857 pipe->buffer_bytes = frames_to_bytes(runtime, runtime->buffer_size); in vx_pcm_prepare()
|
/Linux-v4.19/sound/pci/asihpi/ |
D | asihpi.c | 155 unsigned int buffer_bytes; member 511 dpcm->buffer_bytes = params_buffer_bytes(params); in snd_card_asihpi_pcm_hw_params() 819 newdata = (pcm_buf_dma_ofs - ds->pcm_buf_elapsed_dma_ofs) % ds->buffer_bytes; in snd_card_asihpi_timer_function() 825 (pcm_buf_dma_ofs - ds->pcm_buf_elapsed_dma_ofs) % ds->buffer_bytes, in snd_card_asihpi_timer_function() 881 unsigned int buf_ofs = ds->pcm_buf_host_rw_ofs % ds->buffer_bytes; in snd_card_asihpi_timer_function() 889 xfer1 = min(xfercount, ds->buffer_bytes - buf_ofs); in snd_card_asihpi_timer_function() 996 ptr = bytes_to_frames(runtime, dpcm->pcm_buf_dma_ofs % dpcm->buffer_bytes); in snd_card_asihpi_playback_pointer() 1160 return bytes_to_frames(runtime, dpcm->pcm_buf_dma_ofs % dpcm->buffer_bytes); in snd_card_asihpi_capture_pointer()
|
/Linux-v4.19/sound/core/oss/ |
D | pcm_oss.c | 605 if (buffer_size == runtime->oss.buffer_bytes) in snd_pcm_oss_bytes() 608 return runtime->oss.buffer_bytes * bytes / buffer_size; in snd_pcm_oss_bytes() 611 u64 bsize = (u64)runtime->oss.buffer_bytes * (u64)bytes; in snd_pcm_oss_bytes() 621 if (buffer_size == runtime->oss.buffer_bytes) in snd_pcm_alsa_frames() 623 return bytes_to_frames(runtime, (buffer_size * bytes) / runtime->oss.buffer_bytes); in snd_pcm_alsa_frames() 1052 runtime->oss.buffer_bytes = oss_buffer_size; in snd_pcm_oss_change_params_locked() 1056 runtime->oss.buffer_bytes); in snd_pcm_oss_change_params_locked() 2214 info.blocks = (runtime->oss.buffer_bytes - delay - fixup) / runtime->oss.period_bytes; in snd_pcm_oss_get_ptr()
|
/Linux-v4.19/sound/soc/intel/atom/ |
D | sst-mfld-platform-pcm.c | 137 ssize_t buffer_bytes = snd_pcm_lib_buffer_bytes(substream); in sst_fill_alloc_params() local 144 alloc_param->ring_buf_info[0].size = buffer_bytes; in sst_fill_alloc_params()
|
/Linux-v4.19/include/uapi/sound/ |
D | asoc.h | 323 __le32 buffer_bytes; /* size of buffer in bytes */ member
|