Home
last modified time | relevance | path

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

/linux-4.4.14/sound/drivers/pcsp/
Dpcsp_lib.c90 size_t period_bytes, buffer_bytes; in pcsp_pointer_update() local
100 buffer_bytes = snd_pcm_lib_buffer_bytes(substream); in pcsp_pointer_update()
109 chip->playback_ptr, period_bytes, buffer_bytes); in pcsp_pointer_update()
111 periods_elapsed += buffer_bytes; in pcsp_pointer_update()
116 chip->playback_ptr %= buffer_bytes; in pcsp_pointer_update()
120 chip->period_ptr %= buffer_bytes; in pcsp_pointer_update()
/linux-4.4.14/drivers/scsi/
Dst.c687 STbuffer->buffer_bytes -= STbuffer->writing; in write_behind_check()
775 transfer = STp->buffer->buffer_bytes; in st_flush_write_buffer()
803 (STp->buffer)->buffer_bytes = 0; in st_flush_write_buffer()
816 (STp->buffer)->buffer_bytes = 0; in st_flush_write_buffer()
851 backspace = ((STp->buffer)->buffer_bytes + in flush_buffer()
855 (STp->buffer)->buffer_bytes = 0; in flush_buffer()
1189 (STp->buffer)->buffer_bytes = (STp->buffer)->read_pointer = 0; in check_tape()
1560 STbp->buffer_bytes = 0; /* can be used as transfer counter */ in setup_buffering()
1733 STbp->buffer_bytes; in st_write()
1752 STbp->buffer_bytes < STbp->buffer_size) { in st_write()
[all …]
Dosst.c535 if (STbuffer->writing < STbuffer->buffer_bytes) in osst_write_behind_check()
539 STbuffer->buffer_bytes -= STbuffer->writing; in osst_write_behind_check()
628 STp->buffer->buffer_bytes = OS_FRAME_SIZE; in osst_verify_frame()
720 STp->buffer->buffer_bytes = blk_cnt * blk_sz; in osst_verify_frame()
1325 STp->buffer->buffer_bytes -= STp->buffer->read_pointer; in osst_seek_logical_blk()
1331 STp->buffer->buffer_bytes, STp->buffer->read_pointer / STp->block_size, in osst_seek_logical_blk()
1387 STp->ps[STp->partition].rw == ST_WRITING?STp->buffer->buffer_bytes: in osst_get_sector()
1395 sector |= (STp->buffer->buffer_bytes >> OSST_SECTOR_SHIFT) & OSST_SECTOR_MASK; in osst_get_sector()
1435 STp->buffer->buffer_bytes -= offset; in osst_seek_sector()
1440 STp->buffer->buffer_bytes = STp->buffer->read_pointer = 0; in osst_seek_sector()
[all …]
Dst.h42 int buffer_bytes; member
Dosst.h516 int buffer_bytes; member
/linux-4.4.14/kernel/
Dprofile.c101 int buffer_bytes; in profile_init() local
107 buffer_bytes = prof_len*sizeof(atomic_t); in profile_init()
114 prof_buffer = kzalloc(buffer_bytes, GFP_KERNEL|__GFP_NOWARN); in profile_init()
118 prof_buffer = alloc_pages_exact(buffer_bytes, in profile_init()
123 prof_buffer = vzalloc(buffer_bytes); in profile_init()
/linux-4.4.14/sound/pci/
Dals300.c445 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()
Dazt3328.c1405 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-4.4.14/sound/soc/txx9/
Dtxx9aclc.c90 dmadata->buffer_bytes = snd_pcm_lib_buffer_bytes(substream); in txx9aclc_pcm_prepare()
93 if (dmadata->buffer_bytes == dmadata->period_bytes) { in txx9aclc_pcm_prepare()
98 dmadata->frags = dmadata->buffer_bytes / dmadata->period_bytes; in txx9aclc_pcm_prepare()
198 dmadata->pos %= dmadata->buffer_bytes; in txx9aclc_dma_tasklet()
Dtxx9aclc.h55 unsigned long buffer_bytes; member
/linux-4.4.14/sound/pcmcia/vx/
Dvxp_ops.c372 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-4.4.14/include/sound/
Dpcm_oss.h54 size_t buffer_bytes; /* requested buffer size */ member
Dvx_core.h73 int buffer_bytes; /* the ALSA pcm buffer size in bytes */ member
/linux-4.4.14/sound/pci/vx222/
Dvx222_ops.c272 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-4.4.14/sound/drivers/vx/
Dvx_pcm.c66 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-4.4.14/include/uapi/sound/
Dasoc.h225 __le32 buffer_bytes; /* size of buffer in bytes */ member
/linux-4.4.14/sound/pci/asihpi/
Dasihpi.c155 unsigned int buffer_bytes; member
509 dpcm->buffer_bytes = params_buffer_bytes(params); in snd_card_asihpi_pcm_hw_params()
823 newdata = (pcm_buf_dma_ofs - ds->pcm_buf_elapsed_dma_ofs) % ds->buffer_bytes; in snd_card_asihpi_timer_function()
829 (pcm_buf_dma_ofs - ds->pcm_buf_elapsed_dma_ofs) % ds->buffer_bytes, in snd_card_asihpi_timer_function()
886 unsigned int buf_ofs = ds->pcm_buf_host_rw_ofs % ds->buffer_bytes; in snd_card_asihpi_timer_function()
894 xfer1 = min(xfercount, ds->buffer_bytes - buf_ofs); in snd_card_asihpi_timer_function()
1001 ptr = bytes_to_frames(runtime, dpcm->pcm_buf_dma_ofs % dpcm->buffer_bytes); in snd_card_asihpi_playback_pointer()
1166 return bytes_to_frames(runtime, dpcm->pcm_buf_dma_ofs % dpcm->buffer_bytes); in snd_card_asihpi_capture_pointer()
/linux-4.4.14/sound/core/oss/
Dpcm_oss.c616 if (buffer_size == runtime->oss.buffer_bytes) in snd_pcm_oss_bytes()
619 return runtime->oss.buffer_bytes * bytes / buffer_size; in snd_pcm_oss_bytes()
622 u64 bsize = (u64)runtime->oss.buffer_bytes * (u64)bytes; in snd_pcm_oss_bytes()
632 if (buffer_size == runtime->oss.buffer_bytes) in snd_pcm_alsa_frames()
634 return bytes_to_frames(runtime, (buffer_size * bytes) / runtime->oss.buffer_bytes); in snd_pcm_alsa_frames()
1050 runtime->oss.buffer_bytes = oss_buffer_size; in snd_pcm_oss_change_params()
1054 runtime->oss.buffer_bytes); in snd_pcm_oss_change_params()
2138 info.blocks = (runtime->oss.buffer_bytes - delay - fixup) / runtime->oss.period_bytes; in snd_pcm_oss_get_ptr()
/linux-4.4.14/sound/soc/intel/atom/
Dsst-mfld-platform-pcm.c136 ssize_t buffer_bytes = snd_pcm_lib_buffer_bytes(substream); in sst_fill_alloc_params() local
143 alloc_param->ring_buf_info[0].size = buffer_bytes; in sst_fill_alloc_params()