Home
last modified time | relevance | path

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

12

/linux-4.19.296/fs/afs/
Dnetdevices.c20 int afs_get_ipv4_interfaces(struct afs_net *net, struct afs_interface *bufs, in afs_get_ipv4_interfaces() argument
37 bufs[n].address.s_addr = ifa->ifa_address; in afs_get_ipv4_interfaces()
38 bufs[n].netmask.s_addr = ifa->ifa_mask; in afs_get_ipv4_interfaces()
39 bufs[n].mtu = dev->mtu; in afs_get_ipv4_interfaces()
/linux-4.19.296/fs/
Dpipe.c291 int bufs = pipe->nrbufs; in pipe_read() local
292 if (bufs) { in pipe_read()
294 struct pipe_buffer *buf = pipe->bufs + curbuf; in pipe_read()
329 pipe->nrbufs = --bufs; in pipe_read()
336 if (bufs) /* More to do? */ in pipe_read()
408 struct pipe_buffer *buf = pipe->bufs + lastbuf; in pipe_write()
429 int bufs; in pipe_write() local
437 bufs = pipe->nrbufs; in pipe_write()
438 if (bufs < pipe->buffers) { in pipe_write()
439 int newbuf = (pipe->curbuf + bufs) & (pipe->buffers-1); in pipe_write()
[all …]
Dsplice.c202 struct pipe_buffer *buf = pipe->bufs + newbuf; in splice_to_pipe()
241 pipe->bufs[newbuf] = *buf; in add_to_pipe()
406 pipe->bufs[to.idx].offset = offset; in default_file_splice_read()
407 pipe->bufs[to.idx].len -= offset; in default_file_splice_read()
490 struct pipe_buffer *buf = pipe->bufs + pipe->curbuf; in splice_from_pipe_feed()
726 struct pipe_buffer *buf = pipe->bufs + idx; in iter_file_splice_write()
760 struct pipe_buffer *buf = pipe->bufs + pipe->curbuf; in iter_file_splice_write()
1007 struct pipe_buffer *buf = pipe->bufs + i; in splice_direct_to_actor()
1581 ibuf = ipipe->bufs + ipipe->curbuf; in splice_pipe_to_pipe()
1583 obuf = opipe->bufs + nbuf; in splice_pipe_to_pipe()
[all …]
/linux-4.19.296/drivers/media/v4l2-core/
Dvideobuf-core.c206 if (NULL == q->bufs[i]) in videobuf_queue_is_busy()
208 if (q->bufs[i]->map) { in videobuf_queue_is_busy()
212 if (q->bufs[i]->state == VIDEOBUF_QUEUED) { in videobuf_queue_is_busy()
216 if (q->bufs[i]->state == VIDEOBUF_ACTIVE) { in videobuf_queue_is_busy()
248 if (q->bufs[i] && q->bufs[i]->map) { in __videobuf_free()
254 if (NULL == q->bufs[i]) in __videobuf_free()
256 q->ops->buf_release(q, q->bufs[i]); in __videobuf_free()
257 kfree(q->bufs[i]); in __videobuf_free()
258 q->bufs[i] = NULL; in __videobuf_free()
277 if (NULL == q->bufs[i]) in videobuf_queue_cancel()
[all …]
Dvideobuf-dma-sg.c415 if (NULL == q->bufs[i]) in videobuf_vm_close()
417 mem = q->bufs[i]->priv; in videobuf_vm_close()
423 if (q->bufs[i]->map != map) in videobuf_vm_close()
425 q->bufs[i]->map = NULL; in videobuf_vm_close()
426 q->bufs[i]->baddr = 0; in videobuf_vm_close()
427 q->ops->buf_release(q, q->bufs[i]); in videobuf_vm_close()
609 if (buf == q->bufs[first]) { in __videobuf_mmap_mapper()
610 size = PAGE_ALIGN(q->bufs[first]->bsize); in __videobuf_mmap_mapper()
632 if (NULL == q->bufs[i]) in __videobuf_mmap_mapper()
634 q->bufs[i]->map = map; in __videobuf_mmap_mapper()
[all …]
Dvideobuf-vmalloc.c85 if (NULL == q->bufs[i]) in videobuf_vm_close()
88 if (q->bufs[i]->map != map) in videobuf_vm_close()
91 mem = q->bufs[i]->priv; in videobuf_vm_close()
111 q->bufs[i]->map = NULL; in videobuf_vm_close()
112 q->bufs[i]->baddr = 0; in videobuf_vm_close()
Dvideobuf-dma-contig.c97 if (NULL == q->bufs[i]) in videobuf_vm_close()
100 if (q->bufs[i]->map != map) in videobuf_vm_close()
103 mem = q->bufs[i]->priv; in videobuf_vm_close()
123 q->bufs[i]->map = NULL; in videobuf_vm_close()
124 q->bufs[i]->baddr = 0; in videobuf_vm_close()
/linux-4.19.296/drivers/media/common/videobuf2/
Dvideobuf2-core.c309 struct vb2_buffer *prev = q->bufs[vb->index - 1]; in __setup_offsets()
363 q->bufs[vb->index] = vb; in __vb2_queue_alloc()
371 q->bufs[vb->index] = NULL; in __vb2_queue_alloc()
386 q->bufs[vb->index] = NULL; in __vb2_queue_alloc()
409 vb = q->bufs[buffer]; in __vb2_free_mem()
442 if (q->bufs[buffer] == NULL) in __vb2_queue_free()
444 if (q->bufs[buffer]->state == VB2_BUF_STATE_PREPARING) { in __vb2_queue_free()
453 struct vb2_buffer *vb = q->bufs[buffer]; in __vb2_queue_free()
488 struct vb2_buffer *vb = q->bufs[buffer]; in __vb2_queue_free()
527 kfree(q->bufs[buffer]); in __vb2_queue_free()
[all …]
Dvideobuf2-v4l2.c169 if (q->bufs[b->index] == NULL) { in vb2_queue_or_prepare_buf()
180 return __verify_planes_array(q->bufs[b->index], b); in vb2_queue_or_prepare_buf()
477 vb = q->bufs[b->index]; in vb2_querybuf()
/linux-4.19.296/lib/
Diov_iter.c332 p = &pipe->bufs[idx]; in sanity()
346 pipe->bufs[idx].ops, in sanity()
347 pipe->bufs[idx].page, in sanity()
348 pipe->bufs[idx].offset, in sanity()
349 pipe->bufs[idx].len); in sanity()
381 buf = &pipe->bufs[idx]; in copy_page_to_iter_pipe()
390 buf = &pipe->bufs[idx]; in copy_page_to_iter_pipe()
481 if (off && (!allocated(&i->pipe->bufs[idx]) || off == PAGE_SIZE)) { in data_start()
509 pipe->bufs[idx].len += size; in push_pipe()
512 pipe->bufs[idx].len = PAGE_SIZE; in push_pipe()
[all …]
/linux-4.19.296/include/soc/fsl/
Dbman.h114 int bman_release(struct bman_pool *pool, const struct bm_buffer *bufs, u8 num);
127 int bman_acquire(struct bman_pool *pool, struct bm_buffer *bufs, u8 num);
/linux-4.19.296/fs/jbd2/
Dcommit.c362 int bufs; in jbd2_journal_commit_transaction() local
568 bufs = 0; in jbd2_journal_commit_transaction()
600 J_ASSERT (bufs == 0); in jbd2_journal_commit_transaction()
621 wbuf[bufs++] = descriptor; in jbd2_journal_commit_transaction()
659 jh, &wbuf[bufs], blocknr); in jbd2_journal_commit_transaction()
664 jbd2_file_log_bh(&io_bufs, wbuf[bufs]); in jbd2_journal_commit_transaction()
678 jbd2_block_tag_csum_set(journal, tag, wbuf[bufs], in jbd2_journal_commit_transaction()
682 bufs++; in jbd2_journal_commit_transaction()
694 if (bufs == journal->j_wbufsize || in jbd2_journal_commit_transaction()
698 jbd_debug(4, "JBD2: Submit %d IOs\n", bufs); in jbd2_journal_commit_transaction()
[all …]
Drecovery.c74 struct buffer_head * bufs[MAXBUF]; in do_readahead() local
102 bufs[nbufs++] = bh; in do_readahead()
104 ll_rw_block(REQ_OP_READ, 0, nbufs, bufs); in do_readahead()
105 journal_brelse_array(bufs, nbufs); in do_readahead()
113 ll_rw_block(REQ_OP_READ, 0, nbufs, bufs); in do_readahead()
118 journal_brelse_array(bufs, nbufs); in do_readahead()
/linux-4.19.296/fs/fuse/
Ddev.c1418 struct pipe_buffer *bufs; in fuse_dev_splice_read() local
1425 bufs = kvmalloc_array(pipe->buffers, sizeof(struct pipe_buffer), in fuse_dev_splice_read()
1427 if (!bufs) in fuse_dev_splice_read()
1431 cs.pipebufs = bufs; in fuse_dev_splice_read()
1447 bufs[page_nr].ops = &nosteal_pipe_buf_ops; in fuse_dev_splice_read()
1448 bufs[page_nr].flags = 0; in fuse_dev_splice_read()
1449 ret = add_to_pipe(pipe, &bufs[page_nr++]); in fuse_dev_splice_read()
1457 put_page(bufs[page_nr].page); in fuse_dev_splice_read()
1459 kvfree(bufs); in fuse_dev_splice_read()
2003 struct pipe_buffer *bufs; in fuse_dev_splice_write() local
[all …]
/linux-4.19.296/include/sound/
Dpcm.h1107 void __user **bufs, snd_pcm_uframes_t frames) in snd_pcm_lib_writev() argument
1109 return __snd_pcm_lib_xfer(substream, (void *)bufs, false, frames, false); in snd_pcm_lib_writev()
1114 void __user **bufs, snd_pcm_uframes_t frames) in snd_pcm_lib_readv() argument
1116 return __snd_pcm_lib_xfer(substream, (void *)bufs, false, frames, false); in snd_pcm_lib_readv()
1135 void **bufs, snd_pcm_uframes_t frames) in snd_pcm_kernel_writev() argument
1137 return __snd_pcm_lib_xfer(substream, bufs, false, frames, true); in snd_pcm_kernel_writev()
1142 void **bufs, snd_pcm_uframes_t frames) in snd_pcm_kernel_readv() argument
1144 return __snd_pcm_lib_xfer(substream, bufs, false, frames, true); in snd_pcm_kernel_readv()
/linux-4.19.296/include/xen/arm/
Dhypercall.h59 struct xen_dm_op_buf *bufs);
/linux-4.19.296/block/
Dblk-throttle.c1529 char bufs[4][21] = { "max", "max", "max", "max" }; in tg_prfill_limit() local
1556 snprintf(bufs[0], sizeof(bufs[0]), "%llu", in tg_prfill_limit()
1559 snprintf(bufs[1], sizeof(bufs[1]), "%llu", in tg_prfill_limit()
1562 snprintf(bufs[2], sizeof(bufs[2]), "%u", in tg_prfill_limit()
1565 snprintf(bufs[3], sizeof(bufs[3]), "%u", in tg_prfill_limit()
1582 dname, bufs[0], bufs[1], bufs[2], bufs[3], idle_time, in tg_prfill_limit()
/linux-4.19.296/include/linux/
Dpipe_fs_i.h61 struct pipe_buffer *bufs; member
/linux-4.19.296/fs/fscache/
Dcookie.c82 int bufs; in fscache_set_key() local
84 bufs = DIV_ROUND_UP(index_key_len, sizeof(*buf)); in fscache_set_key()
87 buf = kcalloc(bufs, sizeof(*buf), GFP_KERNEL); in fscache_set_key()
96 cookie->key_hash = fscache_hash(0, buf, bufs); in fscache_set_key()
/linux-4.19.296/include/drm/
Ddrm_legacy.h103 struct drm_buf_entry bufs[DRM_MAX_ORDER + 1]; /**< buffers, grouped by their size order */ member
/linux-4.19.296/drivers/s390/net/
Dqeth_core_main.c330 q->bufs[i].buffer = q->qdio_bufs[i]; in qeth_alloc_qdio_queue()
446 if (q->bufs[bidx]->next_pending != NULL) { in qeth_cleanup_handled_pending()
447 struct qeth_qdio_out_buffer *head = q->bufs[bidx]; in qeth_cleanup_handled_pending()
448 struct qeth_qdio_out_buffer *c = q->bufs[bidx]->next_pending; in qeth_cleanup_handled_pending()
1258 if (!q->bufs[j]) in qeth_clear_outq_buffers()
1261 qeth_clear_output_buffer(q, q->bufs[j]); in qeth_clear_outq_buffers()
1263 kmem_cache_free(qeth_qdio_outbuf_cache, q->bufs[j]); in qeth_clear_outq_buffers()
1264 q->bufs[j] = NULL; in qeth_clear_outq_buffers()
2460 newbuf->next_pending = q->bufs[bidx]; in qeth_init_qdio_out_buf()
2462 q->bufs[bidx] = newbuf; in qeth_init_qdio_out_buf()
[all …]
/linux-4.19.296/include/media/
Dvideobuf-core.h147 struct videobuf_buffer *bufs[VIDEO_MAX_FRAME]; member
Dvideobuf2-core.h539 struct vb2_buffer *bufs[VB2_MAX_FRAME]; member
/linux-4.19.296/drivers/virtio/
Dvirtio_ring.c873 u16 bufs; in virtqueue_enable_cb_delayed() local
888 bufs = (u16)(vq->avail_idx_shadow - vq->last_used_idx) * 3 / 4; in virtqueue_enable_cb_delayed()
892 cpu_to_virtio16(_vq->vdev, vq->last_used_idx + bufs)); in virtqueue_enable_cb_delayed()
894 if (unlikely((u16)(virtio16_to_cpu(_vq->vdev, vq->vring.used->idx) - vq->last_used_idx) > bufs)) { in virtqueue_enable_cb_delayed()
/linux-4.19.296/fs/cifs/
Dconnect.c966 char *bufs[MAX_COMPOUND]; in cifs_demultiplex_thread() local
1035 memset(bufs, 0, sizeof(bufs)); in cifs_demultiplex_thread()
1043 bufs, in cifs_demultiplex_thread()
1047 bufs[0] = buf; in cifs_demultiplex_thread()
1084 server->ops->is_oplock_break(bufs[i], in cifs_demultiplex_thread()
1086 smb2_add_credits_from_hdr(bufs[i], server); in cifs_demultiplex_thread()
1092 cifs_dump_mem("Received Data is: ", bufs[i], in cifs_demultiplex_thread()
1096 server->ops->dump_detail(bufs[i], in cifs_demultiplex_thread()
1098 smb2_add_credits_from_hdr(bufs[i], server); in cifs_demultiplex_thread()

12