Home
last modified time | relevance | path

Searched refs:bufs (Results 1 – 8 of 8) 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.h164 void **bufs, snd_pcm_uframes_t frames,
167 void **bufs, snd_pcm_uframes_t frames,
Dpcm_oss.c1236 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/
Dpcm_compat.c308 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()
Dpcm_lib.c1724 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 …]
Dpcm_native.c2586 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/
Ddmasound_core.c924 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/
Dau1550_ac97.c638 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()