Searched refs:bufs (Results 101 - 118 of 118) sorted by path

12345

/linux-master/include/uapi/sound/
H A Dasound.h614 void __user * __user *bufs; member in struct:snd_xfern
/linux-master/include/xen/arm/
H A Dhypercall.h58 struct xen_dm_op_buf *bufs);
/linux-master/io_uring/
H A Dio_uring.c4159 BUILD_BUG_ON(offsetof(struct io_uring_buf_ring, bufs) != 0);
H A Dkbuf.c151 buf = &br->bufs[head];
386 struct io_buffer *bufs[IO_BUFFER_ALLOC_BATCH]; local
411 ARRAY_SIZE(bufs), (void **) bufs);
417 bufs[0] = kmem_cache_alloc(io_buf_cachep, GFP_KERNEL);
418 if (!bufs[0])
424 list_add_tail(&bufs[--allocated]->list, &ctx->io_buffers_cache);
506 flex_array_size(br, bufs, reg->ring_entries),
/linux-master/kernel/bpf/
H A Dhelpers.c778 static int try_get_buffers(struct bpf_bprintf_buffers **bufs) argument
789 *bufs = this_cpu_ptr(&bpf_bprintf_bufs[nest_level - 1]);
/linux-master/kernel/
H A Dwatch_queue.c127 buf = &pipe->bufs[head & mask];
150 buf = &pipe->bufs[(head - 1) & mask];
/linux-master/sound/core/oss/
H A Dpcm_oss.c1299 snd_pcm_sframes_t snd_pcm_oss_writev3(struct snd_pcm_substream *substream, void **bufs, snd_pcm_uframes_t frames) argument
1316 ret = snd_pcm_kernel_writev(substream, bufs, frames);
1328 snd_pcm_sframes_t snd_pcm_oss_readv3(struct snd_pcm_substream *substream, void **bufs, snd_pcm_uframes_t frames) argument
1349 ret = snd_pcm_kernel_readv(substream, bufs, frames);
H A Dpcm_plugin.h158 void **bufs, snd_pcm_uframes_t frames);
160 void **bufs, snd_pcm_uframes_t frames);
/linux-master/sound/core/
H A Dpcm_compat.c316 /* snd_xfern needs remapping of bufs */
319 u32 bufs; /* this is void **; */ member in struct:snd_xfern32
335 void __user **bufs __free(kfree) = NULL;
348 if (get_user(buf, &data32->bufs) ||
352 bufs = kmalloc_array(ch, sizeof(void __user *), GFP_KERNEL);
353 if (bufs == NULL)
359 bufs[i] = compat_ptr(ptr);
363 err = snd_pcm_lib_writev(substream, bufs, frames);
365 err = snd_pcm_lib_readv(substream, bufs, frames);
H A Dpcm_lib.c2123 void **bufs = data; local
2133 for (c = 0; c < channels; ++c, ++bufs) {
2134 if (!data || !*bufs)
2137 err = do_transfer(substream, c, hwoff, *bufs + off,
H A Dpcm_native.c3224 void *bufs __free(kfree) = NULL;
3236 bufs = memdup_user(xfern.bufs, sizeof(void *) * runtime->channels);
3237 if (IS_ERR(bufs))
3238 return PTR_ERR(no_free_ptr(bufs));
3240 result = snd_pcm_lib_writev(substream, bufs, xfern.frames);
3242 result = snd_pcm_lib_readv(substream, bufs, xfern.frames);
3510 void __user **bufs __free(kfree) = NULL;
3529 bufs = kmalloc_array(to->nr_segs, sizeof(void *), GFP_KERNEL);
3530 if (bufs
[all...]
/linux-master/sound/oss/dmasound/
H A Ddmasound_core.c953 static int set_queue_frags(struct sound_queue *sq, int bufs, int size) argument
968 if (bufs <= 0)
970 if (bufs > sq->numBufs) /* the user is allowed say "don't care" with 0x7fff */
971 bufs = sq->numBufs ;
979 sq->max_active = bufs ;
/linux-master/tools/include/uapi/linux/
H A Dio_uring.h660 __DECLARE_FLEX_ARRAY(struct io_uring_buf, bufs);
/linux-master/tools/include/uapi/sound/
H A Dasound.h614 void __user * __user *bufs; member in struct:snd_xfern
/linux-master/tools/testing/selftests/bpf/
H A Dxskxceiver.c276 void *bufs; local
279 bufs = mmap(NULL, umem_sz, PROT_READ | PROT_WRITE, mmap_flags, -1, 0);
280 if (bufs == MAP_FAILED)
285 munmap(bufs, umem_sz);
289 ret = xsk_configure_umem(ifobject, umem, bufs, umem_sz);
1620 void *bufs; local
1630 bufs = mmap(NULL, umem_sz, PROT_READ | PROT_WRITE, mmap_flags, -1, 0);
1631 if (bufs == MAP_FAILED)
1634 ret = xsk_configure_umem(ifobject, ifobject->umem, bufs, umem_sz);
2244 void *bufs; local
[all...]
/linux-master/tools/testing/selftests/powerpc/papr_vpd/
H A Dpapr_vpd.c198 char *bufs[2]; local
200 for (size_t i = 0; i < ARRAY_SIZE(bufs); ++i) {
201 bufs[i] = malloc(size);
202 FAIL_IF(!bufs[i]);
203 ssize_t consumed = pread(fd, bufs[i], size, 0);
207 FAIL_IF(memcmp(bufs[0], bufs[1], size));
/linux-master/tools/virtio/
H A Dvhost_net_test.c276 bool delayed, int bufs)
289 while (vq->started < bufs &&
306 if (vq->started >= bufs)
309 /* Flush out completed bufs if any */
325 assert(vq->completed <= bufs);
326 assert(vq->started <= bufs);
327 if (vq->completed == bufs)
343 bool delayed, int bufs)
355 while (vq->started < bufs &&
375 if (vq->started >= bufs)
275 run_tx_test(struct vdev_info *dev, struct vq_info *vq, bool delayed, int bufs) argument
342 run_rx_test(struct vdev_info *dev, struct vq_info *vq, bool delayed, int bufs) argument
[all...]
H A Dvirtio_test.c170 bool delayed, int batch, int reset_n, int bufs)
195 while (started < bufs &&
218 if (started >= bufs)
227 /* Flush out completed bufs if any */
258 assert(completed <= bufs);
259 assert(started <= bufs);
260 if (completed == bufs)
169 run_test(struct vdev_info *dev, struct vq_info *vq, bool delayed, int batch, int reset_n, int bufs) argument

Completed in 286 milliseconds

12345