/linux-4.1.27/sound/drivers/pcsp/ |
H A D | pcsp_lib.c | 90 size_t period_bytes, buffer_bytes; pcsp_pointer_update() local 100 buffer_bytes = snd_pcm_lib_buffer_bytes(substream); pcsp_pointer_update() 107 printk(KERN_INFO "PCSP: buffer_bytes mod period_bytes != 0 ? " pcsp_pointer_update() 109 chip->playback_ptr, period_bytes, buffer_bytes); pcsp_pointer_update() 111 periods_elapsed += buffer_bytes; pcsp_pointer_update() 116 chip->playback_ptr %= buffer_bytes; pcsp_pointer_update() 120 chip->period_ptr %= buffer_bytes; pcsp_pointer_update()
|
/linux-4.1.27/include/sound/ |
H A D | pcm_oss.h | 54 size_t buffer_bytes; /* requested buffer size */ member in struct:snd_pcm_oss_runtime
|
H A D | vx_core.h | 73 int buffer_bytes; /* the ALSA pcm buffer size in bytes */ member in struct:vx_pipe
|
/linux-4.1.27/sound/soc/txx9/ |
H A D | txx9aclc.c | 90 dmadata->buffer_bytes = snd_pcm_lib_buffer_bytes(substream); txx9aclc_pcm_prepare() 93 if (dmadata->buffer_bytes == dmadata->period_bytes) { txx9aclc_pcm_prepare() 98 dmadata->frags = dmadata->buffer_bytes / dmadata->period_bytes; txx9aclc_pcm_prepare() 198 dmadata->pos %= dmadata->buffer_bytes; txx9aclc_dma_tasklet()
|
H A D | txx9aclc.h | 55 unsigned long buffer_bytes; member in struct:txx9aclc_dmadata
|
/linux-4.1.27/drivers/scsi/ |
H A D | st.c | 635 STbuffer->buffer_bytes -= STbuffer->writing; write_behind_check() 723 transfer = STp->buffer->buffer_bytes; st_flush_write_buffer() 751 (STp->buffer)->buffer_bytes = 0; st_flush_write_buffer() 764 (STp->buffer)->buffer_bytes = 0; st_flush_write_buffer() 799 backspace = ((STp->buffer)->buffer_bytes + flush_buffer() 803 (STp->buffer)->buffer_bytes = 0; flush_buffer() 1139 (STp->buffer)->buffer_bytes = (STp->buffer)->read_pointer = 0; check_tape() 1513 STbp->buffer_bytes = 0; /* can be used as transfer counter */ setup_buffering() 1686 STbp->buffer_bytes; st_write() 1705 STbp->buffer_bytes < STbp->buffer_size) { st_write() 1717 blks = STbp->buffer_bytes; st_write() 1737 STbp->buffer_bytes); st_write() 1791 STp->buffer->buffer_bytes); st_write() 1821 STbp->buffer_bytes = 0; st_write() 1946 STbp->buffer_bytes = 0; read_tape() 1949 STbp->buffer_bytes = bytes - transfer; read_tape() 1963 STbp->buffer_bytes = (blks - transfer) * read_tape() 1969 STbp->buffer_bytes); read_tape() 1981 STbp->buffer_bytes = 0; read_tape() 1983 STbp->buffer_bytes = read_tape() 1987 STbp->buffer_bytes); read_tape() 1994 STbp->buffer_bytes = bytes - transfer; read_tape() 1996 STbp->buffer_bytes = read_tape() 2001 STbp->buffer_bytes); read_tape() 2018 if (STbp->buffer_bytes < 0) /* Caused by bogus sense data */ read_tape() 2019 STbp->buffer_bytes = 0; read_tape() 2029 STbp->buffer_bytes = bytes; read_tape() 2031 STbp->buffer_bytes -= STp->buffer->cmdstat.residual; read_tape() 2038 STps->drv_block += STbp->buffer_bytes / STp->block_size; st_read() 2086 STps->eof, STbp->buffer_bytes); st_read() 2094 if (STbp->buffer_bytes == 0 && st_read() 2124 if (STbp->buffer_bytes == 0) { st_read() 2133 if (STbp->buffer_bytes > 0) { st_read() 2138 STps->eof, STbp->buffer_bytes, st_read() 2141 transfer = STbp->buffer_bytes < count - total ? st_read() 2142 STbp->buffer_bytes : count - total; st_read() 2185 STbp->buffer_bytes = 0; 2852 if (STp->dirty || (STp->buffer)->buffer_bytes != 0) st_int_ioctl() 2938 (STp->buffer)->buffer_bytes = (STp->buffer)->read_pointer = 0; st_int_ioctl() 3618 (STp->buffer)->buffer_bytes / STp->block_size; st_ioctl() 3621 ((STp->buffer)->buffer_bytes + st_ioctl() 3859 for (i = 0, offset = st_bp->buffer_bytes; append_to_buffer() 3873 st_bp->buffer_bytes += cnt; from_buffer() 3905 st_bp->buffer_bytes -= cnt; move_buffer_data() 3927 total=st_bp->buffer_bytes - offset; move_buffer_data() 3935 st_bp->buffer_bytes = st_bp->read_pointer = total; move_buffer_data()
|
H A D | osst.c | 536 if (STbuffer->writing < STbuffer->buffer_bytes) osst_write_behind_check() 540 STbuffer->buffer_bytes -= STbuffer->writing; osst_write_behind_check() 630 STp->buffer->buffer_bytes = OS_FRAME_SIZE; osst_verify_frame() 722 STp->buffer->buffer_bytes = blk_cnt * blk_sz; osst_verify_frame() 1327 STp->buffer->buffer_bytes -= STp->buffer->read_pointer; osst_seek_logical_blk() 1333 STp->buffer->buffer_bytes, STp->buffer->read_pointer / STp->block_size, osst_seek_logical_blk() 1389 STp->ps[STp->partition].rw == ST_WRITING?STp->buffer->buffer_bytes: osst_get_sector() 1397 sector |= (STp->buffer->buffer_bytes >> OSST_SECTOR_SHIFT) & OSST_SECTOR_MASK; osst_get_sector() 1437 STp->buffer->buffer_bytes -= offset; osst_seek_sector() 1442 STp->buffer->buffer_bytes = STp->buffer->read_pointer = 0; osst_seek_sector() 1938 STp->buffer->buffer_bytes = 0; osst_space_over_filemarks_backward() 1994 STp->buffer->buffer_bytes = 0; osst_space_over_filemarks_forward_slow() 2143 STp->buffer->buffer_bytes = 0; osst_space_over_filemarks_forward_fast() 2250 STp->buffer->buffer_bytes = 6; osst_write_filler() 2276 STp->buffer->buffer_bytes = sizeof(os_header_t); __osst_write_header() 2652 STp->buffer->buffer_bytes = read_pointer; osst_verify_position() 3095 offset = STp->buffer->buffer_bytes; osst_flush_write_buffer() 3159 (STp->buffer)->buffer_bytes = 0; osst_flush_write_buffer() 3173 (STp->buffer)->buffer_bytes = 0; osst_flush_write_buffer() 3216 backspace = ((STp->buffer)->buffer_bytes + (STp->buffer)->read_pointer) / STp->block_size - osst_flush_buffer() 3218 (STp->buffer)->buffer_bytes = 0; osst_flush_buffer() 3286 blks = STp->buffer->buffer_bytes / STp->block_size; osst_write_frame() 3573 while ((STp->buffer)->buffer_bytes + count > write_threshold) osst_write() 3577 (STp->buffer)->buffer_bytes; osst_write() 3626 STp->buffer->buffer_bytes = 0; osst_write() 3639 STp->buffer->buffer_bytes = 0; osst_write() 3664 if (STm->do_async_writes && ((STp->buffer)->buffer_bytes >= STp->write_threshold)) { osst_write() 3666 (STp->buffer)->writing = ((STp->buffer)->buffer_bytes / osst_write() 3669 (STp->buffer)->buffer_bytes); osst_write() 3766 STps->eof, (STp->buffer)->buffer_bytes); osst_read() 3768 if ((STp->buffer)->buffer_bytes == 0 && osst_read() 3793 if ((STp->buffer)->buffer_bytes == 0) { osst_read() 3805 if ((STp->buffer)->buffer_bytes > 0) { osst_read() 3809 STps->eof, (STp->buffer)->buffer_bytes, (int) (count - total)); osst_read() 3812 transfer = (((STp->buffer)->buffer_bytes < count - total ? osst_read() 3813 (STp->buffer)->buffer_bytes : count - total)/ osst_read() 3836 if ((STp->buffer)->buffer_bytes == 0) { osst_read() 4301 ((STp->buffer)->buffer_bytes == 0) && osst_int_ioctl() 4320 if (STp->dirty || (STp->buffer)->buffer_bytes != 0) osst_int_ioctl() 4653 STp->buffer->buffer_bytes = STp->buffer->read_pointer = 0; __os_scsi_tape_open() 4752 STp->buffer->buffer_bytes = __os_scsi_tape_open() 5197 mt_status.mt_blkno += (STp->buffer)->buffer_bytes / STp->block_size; osst_ioctl() 5199 mt_status.mt_blkno -= ((STp->buffer)->buffer_bytes + osst_ioctl() 5437 for (i=0, offset=st_bp->buffer_bytes; append_to_buffer() 5451 st_bp->buffer_bytes += cnt; append_to_buffer() 5484 st_bp->buffer_bytes -= cnt; from_buffer() 5502 for (i = 0, offset = st_bp->buffer_bytes; osst_zero_buffer_tail() 5509 for (do_count = OS_DATA_SIZE - st_bp->buffer_bytes; osst_zero_buffer_tail()
|
H A D | st.h | 42 int buffer_bytes; member in struct:st_buffer
|
H A D | osst.h | 516 int buffer_bytes; member in struct:osst_buffer
|
/linux-4.1.27/kernel/ |
H A D | profile.c | 101 int buffer_bytes; profile_init() local 107 buffer_bytes = prof_len*sizeof(atomic_t); profile_init() 114 prof_buffer = kzalloc(buffer_bytes, GFP_KERNEL|__GFP_NOWARN); profile_init() 118 prof_buffer = alloc_pages_exact(buffer_bytes, profile_init() 123 prof_buffer = vzalloc(buffer_bytes); profile_init()
|
/linux-4.1.27/sound/pci/ |
H A D | als300.c | 445 unsigned short buffer_bytes = snd_pcm_lib_buffer_bytes(substream); snd_als300_playback_prepare() local 452 period_bytes, buffer_bytes); snd_als300_playback_prepare() 463 runtime->dma_addr + buffer_bytes - 1); snd_als300_playback_prepare() 474 unsigned short buffer_bytes = snd_pcm_lib_buffer_bytes(substream); snd_als300_capture_prepare() local 481 buffer_bytes); snd_als300_capture_prepare() 492 runtime->dma_addr + buffer_bytes - 1); snd_als300_capture_prepare()
|
H A D | azt3328.c | 1405 unsigned int buffer_bytes snd_azf3328_codec_setdmaa() 1409 WARN_ONCE(buffer_bytes != 2 * period_bytes, snd_azf3328_codec_setdmaa() 1411 buffer_bytes, period_bytes); snd_azf3328_codec_setdmaa() 1425 area_length = buffer_bytes/2; snd_azf3328_codec_setdmaa() 1434 period_bytes, buffer_bytes); snd_azf3328_codec_setdmaa()
|
/linux-4.1.27/sound/pcmcia/vx/ |
H A D | vxp_ops.c | 372 if (offset + count > pipe->buffer_bytes) { vxp_dma_write() 373 int length = pipe->buffer_bytes - offset; vxp_dma_write() 414 if (offset + count > pipe->buffer_bytes) { vxp_dma_read() 415 int length = pipe->buffer_bytes - offset; vxp_dma_read()
|
/linux-4.1.27/sound/pci/asihpi/ |
H A D | asihpi.c | 155 unsigned int buffer_bytes; member in struct:snd_card_asihpi_pcm 332 * constraint on buffer_bytes, so disable this format 509 dpcm->buffer_bytes = params_buffer_bytes(params); snd_card_asihpi_pcm_hw_params() 719 min_buf_pos = modulo_min(min_buf_pos, pcm_buf_dma_ofs, buffer_bytes) 727 irq_pos = (irq_pos + period_bytes) % buffer_bytes; 823 newdata = (pcm_buf_dma_ofs - ds->pcm_buf_elapsed_dma_ofs) % ds->buffer_bytes; snd_pcm_group_for_each_entry() 829 (pcm_buf_dma_ofs - ds->pcm_buf_elapsed_dma_ofs) % ds->buffer_bytes, snd_pcm_group_for_each_entry() 886 unsigned int buf_ofs = ds->pcm_buf_host_rw_ofs % ds->buffer_bytes; snd_pcm_group_for_each_entry() 894 xfer1 = min(xfercount, ds->buffer_bytes - buf_ofs); snd_pcm_group_for_each_entry() 1001 ptr = bytes_to_frames(runtime, dpcm->pcm_buf_dma_ofs % dpcm->buffer_bytes); snd_card_asihpi_playback_pointer() 1166 return bytes_to_frames(runtime, dpcm->pcm_buf_dma_ofs % dpcm->buffer_bytes); snd_card_asihpi_capture_pointer()
|
/linux-4.1.27/sound/drivers/vx/ |
H A D | vx_pcm.c | 66 if (++offset >= pipe->buffer_bytes) { vx_pcm_read_per_bytes() 71 if (++offset >= pipe->buffer_bytes) { vx_pcm_read_per_bytes() 76 if (++offset >= pipe->buffer_bytes) { vx_pcm_read_per_bytes() 857 pipe->buffer_bytes = frames_to_bytes(runtime, runtime->buffer_size); vx_pcm_prepare()
|
/linux-4.1.27/sound/pci/vx222/ |
H A D | vx222_ops.c | 272 if (offset + count > pipe->buffer_bytes) { vx2_dma_write() 273 int length = pipe->buffer_bytes - offset; vx2_dma_write() 310 if (offset + count > pipe->buffer_bytes) { vx2_dma_read() 311 int length = pipe->buffer_bytes - offset; vx2_dma_read()
|
/linux-4.1.27/sound/soc/fsl/ |
H A D | mpc5200_psc_ac97.c | 149 " periods=%i buffer_size=%i buffer_bytes=%i channels=%i" psc_ac97_hw_analog_params()
|
H A D | mpc5200_psc_i2s.c | 46 " periods=%i buffer_size=%i buffer_bytes=%i\n", psc_i2s_hw_params()
|
/linux-4.1.27/sound/core/oss/ |
H A D | pcm_oss.c | 616 if (buffer_size == runtime->oss.buffer_bytes) snd_pcm_oss_bytes() 619 return runtime->oss.buffer_bytes * bytes / buffer_size; snd_pcm_oss_bytes() 622 u64 bsize = (u64)runtime->oss.buffer_bytes * (u64)bytes; snd_pcm_oss_bytes() 632 if (buffer_size == runtime->oss.buffer_bytes) snd_pcm_alsa_frames() 634 return bytes_to_frames(runtime, (buffer_size * bytes) / runtime->oss.buffer_bytes); snd_pcm_alsa_frames() 1050 runtime->oss.buffer_bytes = oss_buffer_size; snd_pcm_oss_change_params() 1054 runtime->oss.buffer_bytes); snd_pcm_oss_change_params() 2138 info.blocks = (runtime->oss.buffer_bytes - delay - fixup) / runtime->oss.period_bytes; snd_pcm_oss_get_ptr()
|
/linux-4.1.27/sound/soc/intel/atom/ |
H A D | sst-mfld-platform-pcm.c | 137 ssize_t buffer_bytes = snd_pcm_lib_buffer_bytes(substream); sst_fill_alloc_params() local 144 alloc_param->ring_buf_info[0].size = buffer_bytes; sst_fill_alloc_params()
|