Lines Matching defs:ctx

61 static void io_unaccount_mem(struct io_ring_ctx *ctx, unsigned long nr_pages)  in io_unaccount_mem()
70 static int io_account_mem(struct io_ring_ctx *ctx, unsigned long nr_pages) in io_account_mem()
86 static int io_copy_iov(struct io_ring_ctx *ctx, struct iovec *dst, in io_copy_iov()
135 static void io_buffer_unmap(struct io_ring_ctx *ctx, struct io_mapped_ubuf **slot) in io_buffer_unmap()
170 void io_rsrc_node_destroy(struct io_ring_ctx *ctx, struct io_rsrc_node *node) in io_rsrc_node_destroy()
179 struct io_ring_ctx *ctx = node->ctx; in io_rsrc_node_ref_zero() local
197 struct io_rsrc_node *io_rsrc_node_alloc(struct io_ring_ctx *ctx) in io_rsrc_node_alloc()
218 struct io_ring_ctx *ctx) in io_rsrc_ref_quiesce()
318 __cold static int io_rsrc_data_alloc(struct io_ring_ctx *ctx, int type, in io_rsrc_data_alloc()
355 static int __io_sqe_files_update(struct io_ring_ctx *ctx, in __io_sqe_files_update()
420 static int __io_sqe_buffers_update(struct io_ring_ctx *ctx, in __io_sqe_buffers_update()
474 static int __io_register_rsrc_update(struct io_ring_ctx *ctx, unsigned type, in __io_register_rsrc_update()
494 int io_register_files_update(struct io_ring_ctx *ctx, void __user *arg, in io_register_files_update()
509 int io_register_rsrc_update(struct io_ring_ctx *ctx, void __user *arg, in io_register_rsrc_update()
523 __cold int io_register_rsrc(struct io_ring_ctx *ctx, void __user *arg, in io_register_rsrc()
614 struct io_ring_ctx *ctx = req->ctx; in io_files_update() local
642 struct io_ring_ctx *ctx = data->ctx; in io_queue_rsrc_removal() local
661 void __io_sqe_files_unregister(struct io_ring_ctx *ctx) in __io_sqe_files_unregister()
681 int io_sqe_files_unregister(struct io_ring_ctx *ctx) in io_sqe_files_unregister()
701 int io_sqe_files_register(struct io_ring_ctx *ctx, void __user *arg, in io_sqe_files_register()
768 static void io_rsrc_buf_put(struct io_ring_ctx *ctx, struct io_rsrc_put *prsrc) in io_rsrc_buf_put()
774 void __io_sqe_buffers_unregister(struct io_ring_ctx *ctx) in __io_sqe_buffers_unregister()
787 int io_sqe_buffers_unregister(struct io_ring_ctx *ctx) in io_sqe_buffers_unregister()
816 static bool headpage_already_acct(struct io_ring_ctx *ctx, struct page **pages, in headpage_already_acct()
844 static int io_buffer_account_pin(struct io_ring_ctx *ctx, struct page **pages, in io_buffer_account_pin()
915 static int io_sqe_buffer_register(struct io_ring_ctx *ctx, struct iovec *iov, in io_sqe_buffer_register()
1003 static int io_buffers_map_alloc(struct io_ring_ctx *ctx, unsigned int nr_args) in io_buffers_map_alloc()
1009 int io_sqe_buffers_register(struct io_ring_ctx *ctx, void __user *arg, in io_sqe_buffers_register()