Searched refs:bufs (Results 1 – 7 of 7) sorted by relevance
/sound/core/oss/ |
D | io.c | 50 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()
|
D | pcm_plugin.h | 165 void **bufs, snd_pcm_uframes_t frames, 168 void **bufs, snd_pcm_uframes_t frames,
|
D | pcm_oss.c | 1258 snd_pcm_sframes_t snd_pcm_oss_writev3(struct snd_pcm_substream *substream, void **bufs, snd_pcm_ufr… in snd_pcm_oss_writev3() argument 1278 ret = snd_pcm_lib_writev(substream, (void __user **)bufs, frames); in snd_pcm_oss_writev3() 1281 ret = snd_pcm_lib_writev(substream, (void __user **)bufs, frames); in snd_pcm_oss_writev3() 1294 snd_pcm_sframes_t snd_pcm_oss_readv3(struct snd_pcm_substream *substream, void **bufs, snd_pcm_ufra… in snd_pcm_oss_readv3() argument 1318 ret = snd_pcm_lib_readv(substream, (void __user **)bufs, frames); in snd_pcm_oss_readv3() 1321 ret = snd_pcm_lib_readv(substream, (void __user **)bufs, frames); in snd_pcm_oss_readv3()
|
/sound/core/ |
D | pcm_compat.c | 313 u32 bufs; /* this is void **; */ member 329 void __user **bufs; in snd_pcm_ioctl_xfern_compat() local 339 if (get_user(buf, &data32->bufs) || in snd_pcm_ioctl_xfern_compat() 343 bufs = kmalloc(sizeof(void __user *) * ch, GFP_KERNEL); in snd_pcm_ioctl_xfern_compat() 344 if (bufs == NULL) in snd_pcm_ioctl_xfern_compat() 349 kfree(bufs); in snd_pcm_ioctl_xfern_compat() 352 bufs[i] = compat_ptr(ptr); in snd_pcm_ioctl_xfern_compat() 356 err = snd_pcm_lib_writev(substream, bufs, frames); in snd_pcm_ioctl_xfern_compat() 358 err = snd_pcm_lib_readv(substream, bufs, frames); in snd_pcm_ioctl_xfern_compat() 363 kfree(bufs); in snd_pcm_ioctl_xfern_compat()
|
D | pcm_lib.c | 2127 void __user **bufs = (void __user **)data; in snd_pcm_lib_writev_transfer() local 2133 for (c = 0; c < channels; ++c, ++bufs) { in snd_pcm_lib_writev_transfer() 2134 if (*bufs == NULL) { in snd_pcm_lib_writev_transfer() 2138 char __user *buf = *bufs + samples_to_bytes(runtime, off); in snd_pcm_lib_writev_transfer() 2146 for (c = 0; c < channels; ++c, ++bufs) { in snd_pcm_lib_writev_transfer() 2148 if (*bufs == NULL) { in snd_pcm_lib_writev_transfer() 2151 char __user *buf = *bufs + samples_to_bytes(runtime, off); in snd_pcm_lib_writev_transfer() 2161 void __user **bufs, in snd_pcm_lib_writev() argument 2176 return snd_pcm_lib_write1(substream, (unsigned long)bufs, frames, in snd_pcm_lib_writev() 2336 void __user **bufs = (void __user **)data; in snd_pcm_lib_readv_transfer() local [all …]
|
D | pcm_native.c | 2815 void __user **bufs; in snd_pcm_playback_ioctl1() local 2826 bufs = memdup_user(xfern.bufs, in snd_pcm_playback_ioctl1() 2828 if (IS_ERR(bufs)) in snd_pcm_playback_ioctl1() 2829 return PTR_ERR(bufs); in snd_pcm_playback_ioctl1() 2830 result = snd_pcm_lib_writev(substream, bufs, xfern.frames); in snd_pcm_playback_ioctl1() 2831 kfree(bufs); in snd_pcm_playback_ioctl1() 2895 void *bufs; in snd_pcm_capture_ioctl1() local 2906 bufs = memdup_user(xfern.bufs, in snd_pcm_capture_ioctl1() 2908 if (IS_ERR(bufs)) in snd_pcm_capture_ioctl1() 2909 return PTR_ERR(bufs); in snd_pcm_capture_ioctl1() [all …]
|
/sound/oss/dmasound/ |
D | dmasound_core.c | 956 static int set_queue_frags(struct sound_queue *sq, int bufs, int size) in set_queue_frags() argument 971 if (bufs <= 0) in set_queue_frags() 973 if (bufs > sq->numBufs) /* the user is allowed say "don't care" with 0x7fff */ in set_queue_frags() 974 bufs = sq->numBufs ; in set_queue_frags() 982 sq->max_active = bufs ; in set_queue_frags()
|