Lines Matching defs:ctx
205 static struct file *aio_private_file(struct kioctx *ctx, loff_t nr_pages) in aio_private_file()
269 static void put_aio_ring_file(struct kioctx *ctx) in put_aio_ring_file()
285 static void aio_free_ring(struct kioctx *ctx) in aio_free_ring()
322 struct kioctx *ctx; in aio_ring_mremap() local
363 struct kioctx *ctx; in aio_migratepage() local
436 static int aio_setup_ring(struct kioctx *ctx) in aio_setup_ring()
536 struct kioctx *ctx = req->ki_ctx; in kiocb_set_cancel_fn() local
573 struct kioctx *ctx = container_of(work, struct kioctx, free_work); in free_ioctx() local
586 struct kioctx *ctx = container_of(ref, struct kioctx, reqs); in free_ioctx_reqs() local
603 struct kioctx *ctx = container_of(ref, struct kioctx, users); in free_ioctx_users() local
622 static int ioctx_add_table(struct kioctx *ctx, struct mm_struct *mm) in ioctx_add_table()
693 struct kioctx *ctx; in ioctx_alloc() local
799 static int kill_ioctx(struct mm_struct *mm, struct kioctx *ctx, in kill_ioctx()
857 struct kioctx *ctx = table->table[i]; in exit_aio() local
884 static void put_reqs_available(struct kioctx *ctx, unsigned nr) in put_reqs_available()
901 static bool get_reqs_available(struct kioctx *ctx) in get_reqs_available()
938 static void refill_reqs_available(struct kioctx *ctx, unsigned head, in refill_reqs_available()
967 static void user_refill_reqs_available(struct kioctx *ctx) in user_refill_reqs_available()
997 static inline struct aio_kiocb *aio_get_req(struct kioctx *ctx) in aio_get_req()
1033 struct kioctx *ctx, *ret = NULL; in lookup_ioctx() local
1062 struct kioctx *ctx = iocb->ki_ctx; in aio_complete() local
1162 static long aio_read_events_ring(struct kioctx *ctx, in aio_read_events_ring()
1243 static bool aio_read_events(struct kioctx *ctx, long min_nr, long nr, in aio_read_events()
1260 static long read_events(struct kioctx *ctx, long min_nr, long nr, in read_events()
1319 unsigned long ctx; in SYSCALL_DEFINE2() local
1352 SYSCALL_DEFINE1(io_destroy, aio_context_t, ctx) in SYSCALL_DEFINE1() argument
1496 static int io_submit_one(struct kioctx *ctx, struct iocb __user *user_iocb, in io_submit_one()
1575 struct kioctx *ctx; in do_io_submit() local
1647 lookup_kiocb(struct kioctx *ctx, struct iocb __user *iocb, u32 key) in lookup_kiocb()
1677 struct kioctx *ctx; in SYSCALL_DEFINE3() local