Home
last modified time | relevance | path

Searched refs:bufsize (Results 1 – 16 of 16) sorted by relevance

/sound/soc/intel/skylake/
Dskl-sst-cldma.c94 (ctx->cl_dev.frags * ctx->cl_dev.bufsize)); in skl_cldma_setup_bdle()
99 bdl[2] = cpu_to_le32(ctx->cl_dev.bufsize); in skl_cldma_setup_bdle()
101 size -= ctx->cl_dev.bufsize; in skl_cldma_setup_bdle()
209 if (ctx->cl_dev.dma_buffer_offset + size > ctx->cl_dev.bufsize) { in skl_cldma_fill_buffer()
210 unsigned int size_b = ctx->cl_dev.bufsize - in skl_cldma_fill_buffer()
222 if (ctx->cl_dev.curr_spib_pos == ctx->cl_dev.bufsize) in skl_cldma_fill_buffer()
264 if (bytes_left > ctx->cl_dev.bufsize) { in skl_cldma_copy_to_buf()
271 ctx->cl_dev.curr_spib_pos = ctx->cl_dev.bufsize; in skl_cldma_copy_to_buf()
273 size = ctx->cl_dev.bufsize; in skl_cldma_copy_to_buf()
287 <= ctx->cl_dev.bufsize) { in skl_cldma_copy_to_buf()
[all …]
Dskl-sst-cldma.h239 unsigned int bufsize; member
Dskl-pcm.c84 hdac_stream(stream)->bufsize = 0; in skl_substream_alloc_pages()
1039 if (pos >= hdac_stream(hstream)->bufsize) in skl_platform_pcm_pointer()
/sound/hda/
Dhdac_stream.c160 snd_hdac_stream_writel(azx_dev, SD_CBL, azx_dev->bufsize); in snd_hdac_stream_setup()
220 azx_dev->bufsize = 0; in snd_hdac_stream_cleanup()
376 periods = azx_dev->bufsize / period_bytes; in snd_hdac_stream_setup_periods()
424 azx_dev->bufsize, period_bytes); in snd_hdac_stream_setup_periods()
441 unsigned int bufsize, period_bytes; in snd_hdac_stream_set_params() local
449 bufsize = snd_pcm_lib_buffer_bytes(substream); in snd_hdac_stream_set_params()
452 if (bufsize != azx_dev->bufsize || in snd_hdac_stream_set_params()
456 azx_dev->bufsize = bufsize; in snd_hdac_stream_set_params()
643 azx_dev->bufsize = byte_size; in snd_hdac_dsp_prepare()
707 azx_dev->bufsize = 0; in snd_hdac_dsp_cleanup()
/sound/core/seq/
Dseq_midi_event.c115 int snd_midi_event_new(int bufsize, struct snd_midi_event **rdev) in snd_midi_event_new() argument
123 if (bufsize > 0) { in snd_midi_event_new()
124 dev->buf = kmalloc(bufsize, GFP_KERNEL); in snd_midi_event_new()
130 dev->bufsize = bufsize; in snd_midi_event_new()
191 int snd_midi_event_resize_buffer(struct snd_midi_event *dev, int bufsize)
196 if (bufsize == dev->bufsize)
198 new_buf = kmalloc(bufsize, GFP_KERNEL);
204 dev->bufsize = bufsize;
293 dev->read >= dev->bufsize) { in snd_midi_event_encode_byte()
/sound/pci/lola/
Dlola_pcm.c295 str->bufsize = 0; in lola_pcm_hw_params()
362 periods = str->bufsize / period_bytes; in lola_setup_periods()
377 str->bufsize, period_bytes); in lola_setup_periods()
471 unsigned int bufsize, period_bytes, format_verb; in lola_pcm_prepare() local
487 bufsize = snd_pcm_lib_buffer_bytes(substream); in lola_pcm_prepare()
491 str->bufsize = bufsize; in lola_pcm_prepare()
570 if (pos >= str->bufsize) in lola_pcm_pointer()
Dlola.h300 unsigned int bufsize; member
/sound/soc/bcm/
Dcygnus-pcm.c220 u32 bufsize) in ringbuf_set_initial() argument
228 p_rbuf->buf_size = bufsize; in ringbuf_set_initial()
240 end = start + bufsize - 1; in ringbuf_set_initial()
670 unsigned long bufsize, periodsize; in cygnus_pcm_prepare() local
679 bufsize = snd_pcm_lib_buffer_bytes(substream); in cygnus_pcm_prepare()
683 __func__, bufsize, periodsize); in cygnus_pcm_prepare()
694 periodsize, bufsize); in cygnus_pcm_prepare()
/sound/pci/nm256/
Dnm256.c195 int bufsize; /* buffer size in bytes */ member
844 runtime->hw.buffer_bytes_max = s->bufsize; in snd_nm256_setup_stream()
845 runtime->hw.period_bytes_max = s->bufsize / 2; in snd_nm256_setup_stream()
848 runtime->dma_bytes = s->bufsize; in snd_nm256_setup_stream()
1496 chip->streams[SNDRV_PCM_STREAM_PLAYBACK].bufsize = playback_bufsize * 1024; in snd_nm256_create()
1497 chip->streams[SNDRV_PCM_STREAM_CAPTURE].bufsize = capture_bufsize * 1024; in snd_nm256_create()
1560 chip->buffer_size = chip->streams[SNDRV_PCM_STREAM_PLAYBACK].bufsize + in snd_nm256_create()
1561 chip->streams[SNDRV_PCM_STREAM_CAPTURE].bufsize; in snd_nm256_create()
1601 addr += chip->streams[SNDRV_PCM_STREAM_PLAYBACK].bufsize; in snd_nm256_create()
1603 addr += chip->streams[SNDRV_PCM_STREAM_CAPTURE].bufsize; in snd_nm256_create()
/sound/oss/
Ddev_table.h175 int (*prepare_for_input) (int dev, int bufsize, int nbufs);
176 int (*prepare_for_output) (int dev, int bufsize, int nbufs);
/sound/pci/
Dvia82xx_modem.c230 unsigned int bufsize; member
344 dev->bufsize = periods * fragsize; in build_via_table()
345 dev->bufsize2 = dev->bufsize / 2; in build_via_table()
610 if (res >= viadev->bufsize) in calc_linear_pos()
611 res -= viadev->bufsize; in calc_linear_pos()
Dvia82xx.c336 unsigned int bufsize; member
489 dev->bufsize = periods * fragsize; in build_via_table()
490 dev->bufsize2 = dev->bufsize / 2; in build_via_table()
792 if (res >= viadev->bufsize) in calc_linear_pos()
793 res -= viadev->bufsize; in calc_linear_pos()
809 delta += viadev->bufsize; in calc_linear_pos()
/sound/pci/echoaudio/
Dechoaudio.c811 size_t cnt, bufsize, pos; in pcm_pointer() local
816 bufsize = substream->runtime->buffer_size; in pcm_pointer()
819 while (pos >= bufsize) { in pcm_pointer()
820 pipe->position -= frames_to_bytes(substream->runtime, bufsize); in pcm_pointer()
821 pos -= bufsize; in pcm_pointer()
/sound/pci/hda/
Dhda_intel.c592 delay += azx_dev->core.bufsize; in azx_get_delay_from_lpib()
675 if (pos >= azx_dev->core.bufsize) in azx_position_ok()
803 mini_pos = azx_dev->core.bufsize + link_pos - fifo_size; in azx_via_get_position()
816 if (bound_pos >= azx_dev->core.bufsize) in azx_via_get_position()
Dhda_controller.c130 azx_dev->core.bufsize = 0; in azx_pcm_hw_params()
317 if (pos >= azx_dev->core.bufsize) in azx_get_position()
/sound/oss/dmasound/
Ddmasound_core.c711 int numbufs, int bufsize) in sq_open2() argument
739 if (( rc = sq_allocate_buffers(sq, numbufs, bufsize))) { in sq_open2()