Lines Matching refs:len
26 __u32 len; member
126 static void __user *io_provided_buffer_select(struct io_kiocb *req, size_t *len, in io_provided_buffer_select() argument
134 if (*len == 0 || *len > kbuf->len) in io_provided_buffer_select()
135 *len = kbuf->len; in io_provided_buffer_select()
144 static void __user *io_ring_buffer_select(struct io_kiocb *req, size_t *len, in io_ring_buffer_select() argument
165 if (*len == 0 || *len > buf->len) in io_ring_buffer_select()
166 *len = buf->len; in io_ring_buffer_select()
189 void __user *io_buffer_select(struct io_kiocb *req, size_t *len, in io_buffer_select() argument
201 ret = io_ring_buffer_select(req, len, bl, issue_flags); in io_buffer_select()
203 ret = io_provided_buffer_select(req, len, bl); in io_buffer_select()
309 if (sqe->rw_flags || sqe->addr || sqe->len || sqe->off || in io_remove_buffers_prep()
361 p->len = READ_ONCE(sqe->len); in io_provide_buffers_prep()
363 if (check_mul_overflow((unsigned long)p->len, (unsigned long)p->nbufs, in io_provide_buffers_prep()
369 size = (unsigned long)p->len * p->nbufs; in io_provide_buffers_prep()
441 buf->len = min_t(__u32, pbuf->len, MAX_RW_COUNT); in io_add_buffers()
444 addr += pbuf->len; in io_add_buffers()