Searched refs:bufs (Results 1 – 8 of 8) 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 | 164 void **bufs, snd_pcm_uframes_t frames, 167 void **bufs, snd_pcm_uframes_t frames,
|
D | pcm_oss.c | 1236 snd_pcm_sframes_t snd_pcm_oss_writev3(struct snd_pcm_substream *substream, void **bufs, snd_pcm_ufr… in snd_pcm_oss_writev3() argument 1256 ret = snd_pcm_lib_writev(substream, (void __user **)bufs, frames); in snd_pcm_oss_writev3() 1259 ret = snd_pcm_lib_writev(substream, (void __user **)bufs, frames); in snd_pcm_oss_writev3() 1272 snd_pcm_sframes_t snd_pcm_oss_readv3(struct snd_pcm_substream *substream, void **bufs, snd_pcm_ufra… in snd_pcm_oss_readv3() argument 1296 ret = snd_pcm_lib_readv(substream, (void __user **)bufs, frames); in snd_pcm_oss_readv3() 1299 ret = snd_pcm_lib_readv(substream, (void __user **)bufs, frames); in snd_pcm_oss_readv3()
|
/sound/core/ |
D | pcm_compat.c | 308 u32 bufs; /* this is void **; */ member 324 void __user **bufs; in snd_pcm_ioctl_xfern_compat() local 334 if (get_user(buf, &data32->bufs) || in snd_pcm_ioctl_xfern_compat() 338 bufs = kmalloc(sizeof(void __user *) * ch, GFP_KERNEL); in snd_pcm_ioctl_xfern_compat() 339 if (bufs == NULL) in snd_pcm_ioctl_xfern_compat() 344 kfree(bufs); in snd_pcm_ioctl_xfern_compat() 347 bufs[ch] = compat_ptr(ptr); in snd_pcm_ioctl_xfern_compat() 351 err = snd_pcm_lib_writev(substream, bufs, frames); in snd_pcm_ioctl_xfern_compat() 353 err = snd_pcm_lib_readv(substream, bufs, frames); in snd_pcm_ioctl_xfern_compat() 358 kfree(bufs); in snd_pcm_ioctl_xfern_compat()
|
D | pcm_lib.c | 1724 void __user **bufs = (void __user **)data; in snd_pcm_lib_writev_transfer() local 1730 for (c = 0; c < channels; ++c, ++bufs) { in snd_pcm_lib_writev_transfer() 1731 if (*bufs == NULL) { in snd_pcm_lib_writev_transfer() 1735 char __user *buf = *bufs + samples_to_bytes(runtime, off); in snd_pcm_lib_writev_transfer() 1743 for (c = 0; c < channels; ++c, ++bufs) { in snd_pcm_lib_writev_transfer() 1745 if (*bufs == NULL) { in snd_pcm_lib_writev_transfer() 1748 char __user *buf = *bufs + samples_to_bytes(runtime, off); in snd_pcm_lib_writev_transfer() 1758 void __user **bufs, in snd_pcm_lib_writev() argument 1773 return snd_pcm_lib_write1(substream, (unsigned long)bufs, frames, in snd_pcm_lib_writev() 1925 void __user **bufs = (void __user **)data; in snd_pcm_lib_readv_transfer() local [all …]
|
D | pcm_native.c | 2586 void __user **bufs; in snd_pcm_playback_ioctl1() local 2596 bufs = kmalloc(sizeof(void *) * runtime->channels, GFP_KERNEL); in snd_pcm_playback_ioctl1() 2597 if (bufs == NULL) in snd_pcm_playback_ioctl1() 2599 if (copy_from_user(bufs, xfern.bufs, sizeof(void *) * runtime->channels)) { in snd_pcm_playback_ioctl1() 2600 kfree(bufs); in snd_pcm_playback_ioctl1() 2603 result = snd_pcm_lib_writev(substream, bufs, xfern.frames); in snd_pcm_playback_ioctl1() 2604 kfree(bufs); in snd_pcm_playback_ioctl1() 2668 void *bufs; in snd_pcm_capture_ioctl1() local 2678 bufs = kmalloc(sizeof(void *) * runtime->channels, GFP_KERNEL); in snd_pcm_capture_ioctl1() 2679 if (bufs == NULL) in snd_pcm_capture_ioctl1() [all …]
|
/sound/oss/dmasound/ |
D | dmasound_core.c | 924 static int set_queue_frags(struct sound_queue *sq, int bufs, int size) in set_queue_frags() argument 939 if (bufs <= 0) in set_queue_frags() 941 if (bufs > sq->numBufs) /* the user is allowed say "don't care" with 0x7fff */ in set_queue_frags() 942 bufs = sq->numBufs ; in set_queue_frags() 950 sq->max_active = bufs ; in set_queue_frags()
|
/sound/oss/ |
D | au1550_ac97.c | 638 unsigned bufs; in prog_dmabuf() local 665 bufs = PAGE_SIZE << db->buforder; in prog_dmabuf() 680 db->numfrag = bufs / db->dma_fragsize; in prog_dmabuf() 686 db->numfrag = bufs / db->dma_fragsize; in prog_dmabuf() 693 memset(db->rawbuf, 0, bufs); in prog_dmabuf()
|