Lines Matching refs:io_buffer
222 struct io_buffer { struct
476 struct io_buffer *kbuf;
2268 static unsigned int io_put_kbuf(struct io_kiocb *req, struct io_buffer *kbuf) in io_put_kbuf()
2281 struct io_buffer *kbuf; in io_put_rw_kbuf()
2283 kbuf = (struct io_buffer *) (unsigned long) req->rw.addr; in io_put_rw_kbuf()
2946 static struct io_buffer *io_buffer_select(struct io_kiocb *req, size_t *len, in io_buffer_select()
2947 int bgid, struct io_buffer *kbuf, in io_buffer_select()
2950 struct io_buffer *head; in io_buffer_select()
2962 kbuf = list_last_entry(&head->list, struct io_buffer, in io_buffer_select()
2983 struct io_buffer *kbuf; in io_rw_buffer_select()
2986 kbuf = (struct io_buffer *) (unsigned long) req->rw.addr; in io_rw_buffer_select()
3048 struct io_buffer *kbuf; in io_iov_buffer_select()
3050 kbuf = (struct io_buffer *) (unsigned long) req->rw.addr; in io_iov_buffer_select()
3909 static int __io_remove_buffers(struct io_ring_ctx *ctx, struct io_buffer *buf, in __io_remove_buffers()
3920 struct io_buffer *nxt; in __io_remove_buffers()
3922 nxt = list_first_entry(&buf->list, struct io_buffer, list); in __io_remove_buffers()
3940 struct io_buffer *head; in io_remove_buffers()
3986 static int io_add_buffers(struct io_provide_buf *pbuf, struct io_buffer **head) in io_add_buffers()
3988 struct io_buffer *buf; in io_add_buffers()
4018 struct io_buffer *head, *list; in io_provide_buffers()
4531 static struct io_buffer *io_recv_buffer_select(struct io_kiocb *req, in io_recv_buffer_select()
4535 struct io_buffer *kbuf; in io_recv_buffer_select()
4584 struct io_buffer *kbuf; in io_recvmsg()
4642 struct io_buffer *kbuf; in io_recv()
8268 struct io_buffer *buf = p; in __io_destroy_buffers()