Home
last modified time | relevance | path

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

/linux-3.4.99/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-3.4.99/drivers/scsi/
Dst.c619 STbuffer->buffer_bytes -= STbuffer->writing; in write_behind_check()
705 transfer = STp->buffer->buffer_bytes; in st_flush_write_buffer()
734 (STp->buffer)->buffer_bytes = 0; in st_flush_write_buffer()
748 (STp->buffer)->buffer_bytes = 0; in st_flush_write_buffer()
783 backspace = ((STp->buffer)->buffer_bytes + in flush_buffer()
787 (STp->buffer)->buffer_bytes = 0; in flush_buffer()
1124 (STp->buffer)->buffer_bytes = (STp->buffer)->read_pointer = 0; in check_tape()
1500 STbp->buffer_bytes = 0; /* can be used as transfer counter */ in setup_buffering()
1673 STbp->buffer_bytes; in st_write()
1692 STbp->buffer_bytes < STbp->buffer_size) { in st_write()
[all …]
Dosst.c533 if (STbuffer->writing < STbuffer->buffer_bytes) in osst_write_behind_check()
537 STbuffer->buffer_bytes -= STbuffer->writing; in osst_write_behind_check()
626 STp->buffer->buffer_bytes = OS_FRAME_SIZE; in osst_verify_frame()
718 STp->buffer->buffer_bytes = blk_cnt * blk_sz; in osst_verify_frame()
1323 STp->buffer->buffer_bytes -= STp->buffer->read_pointer; in osst_seek_logical_blk()
1329 STp->buffer->buffer_bytes, STp->buffer->read_pointer / STp->block_size, in osst_seek_logical_blk()
1385 STp->ps[STp->partition].rw == ST_WRITING?STp->buffer->buffer_bytes: in osst_get_sector()
1393 sector |= (STp->buffer->buffer_bytes >> OSST_SECTOR_SHIFT) & OSST_SECTOR_MASK; in osst_get_sector()
1433 STp->buffer->buffer_bytes -= offset; in osst_seek_sector()
1438 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-3.4.99/kernel/
Dprofile.c107 int buffer_bytes; in profile_init() local
113 buffer_bytes = prof_len*sizeof(atomic_t); in profile_init()
120 prof_buffer = kzalloc(buffer_bytes, GFP_KERNEL|__GFP_NOWARN); in profile_init()
124 prof_buffer = alloc_pages_exact(buffer_bytes, in profile_init()
129 prof_buffer = vzalloc(buffer_bytes); in profile_init()
/linux-3.4.99/sound/soc/txx9/
Dtxx9aclc.c94 dmadata->buffer_bytes = snd_pcm_lib_buffer_bytes(substream); in txx9aclc_pcm_prepare()
97 if (dmadata->buffer_bytes == dmadata->period_bytes) { in txx9aclc_pcm_prepare()
102 dmadata->frags = dmadata->buffer_bytes / dmadata->period_bytes; in txx9aclc_pcm_prepare()
199 dmadata->pos %= dmadata->buffer_bytes; in txx9aclc_dma_tasklet()
Dtxx9aclc.h55 unsigned long buffer_bytes; member
/linux-3.4.99/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-3.4.99/sound/pci/
Dals300.c470 unsigned short buffer_bytes = snd_pcm_lib_buffer_bytes(substream); in snd_als300_playback_prepare() local
478 period_bytes, buffer_bytes); in snd_als300_playback_prepare()
489 runtime->dma_addr + buffer_bytes - 1); in snd_als300_playback_prepare()
501 unsigned short buffer_bytes = snd_pcm_lib_buffer_bytes(substream); in snd_als300_capture_prepare() local
509 buffer_bytes); in snd_als300_capture_prepare()
520 runtime->dma_addr + buffer_bytes - 1); in snd_als300_capture_prepare()
Dazt3328.c1476 unsigned int buffer_bytes in snd_azf3328_codec_setdmaa() argument
1481 WARN_ONCE(buffer_bytes != 2 * period_bytes, in snd_azf3328_codec_setdmaa()
1483 buffer_bytes, period_bytes); in snd_azf3328_codec_setdmaa()
1497 area_length = buffer_bytes/2; in snd_azf3328_codec_setdmaa()
1506 period_bytes, buffer_bytes); in snd_azf3328_codec_setdmaa()
/linux-3.4.99/include/sound/
Dpcm_oss.h54 size_t buffer_bytes; /* requested buffer size */ member
Dvx_core.h79 int buffer_bytes; /* the ALSA pcm buffer size in bytes */ member
/linux-3.4.99/sound/pci/vx222/
Dvx222_ops.c267 if (offset + count > pipe->buffer_bytes) { in vx2_dma_write()
268 int length = pipe->buffer_bytes - offset; in vx2_dma_write()
305 if (offset + count > pipe->buffer_bytes) { in vx2_dma_read()
306 int length = pipe->buffer_bytes - offset; in vx2_dma_read()
/linux-3.4.99/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()
879 pipe->buffer_bytes = frames_to_bytes(runtime, runtime->buffer_size); in vx_pcm_prepare()
/linux-3.4.99/sound/pci/asihpi/
Dasihpi.c146 unsigned int buffer_bytes; member
509 dpcm->buffer_bytes = params_buffer_bytes(params); in snd_card_asihpi_pcm_hw_params()
787 newdata = (pcm_buf_dma_ofs - ds->pcm_buf_elapsed_dma_ofs) % ds->buffer_bytes; in snd_card_asihpi_timer_function()
793 (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()
939 ptr = bytes_to_frames(runtime, dpcm->pcm_buf_dma_ofs % dpcm->buffer_bytes); in snd_card_asihpi_playback_pointer()
1095 return bytes_to_frames(runtime, dpcm->pcm_buf_dma_ofs % dpcm->buffer_bytes); in snd_card_asihpi_capture_pointer()
/linux-3.4.99/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()
1045 runtime->oss.buffer_bytes = oss_buffer_size; in snd_pcm_oss_change_params()
1049 runtime->oss.buffer_bytes); in snd_pcm_oss_change_params()
2139 info.blocks = (runtime->oss.buffer_bytes - delay - fixup) / runtime->oss.period_bytes; in snd_pcm_oss_get_ptr()