Home
last modified time | relevance | path

Searched refs:bufs (Results 1 – 7 of 7) sorted by relevance

/sound/core/oss/
Dio.c50 void **bufs = (void**)plugin->extra_data; in io_playback_transfer() local
51 if (snd_BUG_ON(!bufs)) in io_playback_transfer()
55 bufs[channel] = src_channels[channel].area.addr; in io_playback_transfer()
57 bufs[channel] = NULL; in io_playback_transfer()
59 return pcm_writev(plugin->plug, bufs, frames); in io_playback_transfer()
76 void **bufs = (void**)plugin->extra_data; in io_capture_transfer() local
77 if (snd_BUG_ON(!bufs)) in io_capture_transfer()
81 bufs[channel] = dst_channels[channel].area.addr; in io_capture_transfer()
83 bufs[channel] = NULL; in io_capture_transfer()
85 return pcm_readv(plugin->plug, bufs, frames); in io_capture_transfer()
Dpcm_plugin.h158 void **bufs, snd_pcm_uframes_t frames);
160 void **bufs, snd_pcm_uframes_t frames);
Dpcm_oss.c1300 snd_pcm_sframes_t snd_pcm_oss_writev3(struct snd_pcm_substream *substream, void **bufs, snd_pcm_ufr… in snd_pcm_oss_writev3() argument
1317 ret = snd_pcm_kernel_writev(substream, bufs, frames); in snd_pcm_oss_writev3()
1329 snd_pcm_sframes_t snd_pcm_oss_readv3(struct snd_pcm_substream *substream, void **bufs, snd_pcm_ufra… in snd_pcm_oss_readv3() argument
1350 ret = snd_pcm_kernel_readv(substream, bufs, frames); in snd_pcm_oss_readv3()
/sound/core/
Dpcm_compat.c387 u32 bufs; /* this is void **; */ member
403 void __user **bufs; in snd_pcm_ioctl_xfern_compat() local
415 if (get_user(buf, &data32->bufs) || in snd_pcm_ioctl_xfern_compat()
419 bufs = kmalloc_array(ch, sizeof(void __user *), GFP_KERNEL); in snd_pcm_ioctl_xfern_compat()
420 if (bufs == NULL) in snd_pcm_ioctl_xfern_compat()
425 kfree(bufs); in snd_pcm_ioctl_xfern_compat()
428 bufs[i] = compat_ptr(ptr); in snd_pcm_ioctl_xfern_compat()
432 err = snd_pcm_lib_writev(substream, bufs, frames); in snd_pcm_ioctl_xfern_compat()
434 err = snd_pcm_lib_readv(substream, bufs, frames); in snd_pcm_ioctl_xfern_compat()
439 kfree(bufs); in snd_pcm_ioctl_xfern_compat()
Dpcm_native.c2903 void *bufs; in snd_pcm_xfern_frames_ioctl() local
2915 bufs = memdup_user(xfern.bufs, sizeof(void *) * runtime->channels); in snd_pcm_xfern_frames_ioctl()
2916 if (IS_ERR(bufs)) in snd_pcm_xfern_frames_ioctl()
2917 return PTR_ERR(bufs); in snd_pcm_xfern_frames_ioctl()
2919 result = snd_pcm_lib_writev(substream, bufs, xfern.frames); in snd_pcm_xfern_frames_ioctl()
2921 result = snd_pcm_lib_readv(substream, bufs, xfern.frames); in snd_pcm_xfern_frames_ioctl()
2922 kfree(bufs); in snd_pcm_xfern_frames_ioctl()
3173 void __user **bufs; in snd_pcm_readv() local
3190 bufs = kmalloc_array(to->nr_segs, sizeof(void *), GFP_KERNEL); in snd_pcm_readv()
3191 if (bufs == NULL) in snd_pcm_readv()
[all …]
Dpcm_lib.c2013 void **bufs = data; in noninterleaved_copy() local
2023 for (c = 0; c < channels; ++c, ++bufs) { in noninterleaved_copy()
2024 if (!data || !*bufs) in noninterleaved_copy()
2027 err = transfer(substream, c, hwoff, *bufs + off, in noninterleaved_copy()
/sound/oss/dmasound/
Ddmasound_core.c957 static int set_queue_frags(struct sound_queue *sq, int bufs, int size) in set_queue_frags() argument
972 if (bufs <= 0) in set_queue_frags()
974 if (bufs > sq->numBufs) /* the user is allowed say "don't care" with 0x7fff */ in set_queue_frags()
975 bufs = sq->numBufs ; in set_queue_frags()
983 sq->max_active = bufs ; in set_queue_frags()