Searched refs:i (Results 1 – 10 of 10) sorted by relevance
/io_uring/ |
D | rsrc.c | 142 unsigned int i; in io_buffer_unmap() local 145 for (i = 0; i < imu->nr_bvecs; i++) in io_buffer_unmap() 146 unpin_user_page(imu->bvec[i].bv_page); in io_buffer_unmap() 354 unsigned i, nr_tables = DIV_ROUND_UP(size, PAGE_SIZE); in io_free_page_table() local 356 for (i = 0; i < nr_tables; i++) in io_free_page_table() 357 kfree(table[i]); in io_free_page_table() 372 unsigned i, nr_tables = DIV_ROUND_UP(size, PAGE_SIZE); in io_alloc_page_table() local 380 for (i = 0; i < nr_tables; i++) { in io_alloc_page_table() 383 table[i] = kzalloc(this_size, GFP_KERNEL_ACCOUNT); in io_alloc_page_table() 384 if (!table[i]) { in io_alloc_page_table() [all …]
|
D | fdinfo.c | 66 unsigned int i; in __io_uring_show_fdinfo() local 89 for (i = 0; i < sq_entries; i++) { in __io_uring_show_fdinfo() 90 unsigned int entry = i + sq_head; in __io_uring_show_fdinfo() 120 for (i = 0; i < cq_entries; i++) { in __io_uring_show_fdinfo() 121 unsigned int entry = i + cq_head; in __io_uring_show_fdinfo() 156 for (i = 0; has_lock && i < ctx->nr_user_files; i++) { in __io_uring_show_fdinfo() 157 struct file *f = io_file_from_index(&ctx->file_table, i); in __io_uring_show_fdinfo() 160 seq_printf(m, "%5u: %s\n", i, file_dentry(f)->d_iname); in __io_uring_show_fdinfo() 162 seq_printf(m, "%5u: <none>\n", i); in __io_uring_show_fdinfo() 165 for (i = 0; has_lock && i < ctx->nr_user_bufs; i++) { in __io_uring_show_fdinfo() [all …]
|
D | tctx.c | 201 int i; in io_uring_unreg_ringfd() local 203 for (i = 0; i < IO_RINGFD_REG_MAX; i++) { in io_uring_unreg_ringfd() 204 if (tctx->registered_rings[i]) { in io_uring_unreg_ringfd() 205 fput(tctx->registered_rings[i]); in io_uring_unreg_ringfd() 206 tctx->registered_rings[i] = NULL; in io_uring_unreg_ringfd() 250 int ret, i; in io_ringfd_register() local 262 for (i = 0; i < nr_args; i++) { in io_ringfd_register() 265 if (copy_from_user(®, &arg[i], sizeof(reg))) { in io_ringfd_register() 292 if (copy_to_user(&arg[i], ®, sizeof(reg))) { in io_ringfd_register() 300 return i ? i : ret; in io_ringfd_register() [all …]
|
D | kbuf.c | 196 int i; in io_init_bl_list() local 203 for (i = 0; i < BGID_ARRAY; i++) { in io_init_bl_list() 204 INIT_LIST_HEAD(&ctx->io_bl[i].buf_list); in io_init_bl_list() 205 ctx->io_bl[i].bgid = i; in io_init_bl_list() 214 unsigned i = 0; in __io_remove_buffers() local 223 i = bl->buf_ring->tail - bl->head; in __io_remove_buffers() 231 return i; in __io_remove_buffers() 242 if (++i == nbufs) in __io_remove_buffers() 243 return i; in __io_remove_buffers() 247 return i; in __io_remove_buffers() [all …]
|
D | io-wq.c | 1061 int i; in io_wqe_cancel_pending_work() local 1063 for (i = 0; i < IO_WQ_ACCT_NR; i++) { in io_wqe_cancel_pending_work() 1064 struct io_wqe_acct *acct = io_get_acct(wqe, i == 0); in io_wqe_cancel_pending_work() 1130 int i; in io_wqe_hash_wake() local 1135 for (i = 0; i < IO_WQ_ACCT_NR; i++) { in io_wqe_hash_wake() 1136 struct io_wqe_acct *acct = &wqe->acct[i]; in io_wqe_hash_wake() 1147 int ret, node, i; in io_wq_create() local 1187 for (i = 0; i < IO_WQ_ACCT_NR; i++) { in io_wq_create() 1188 struct io_wqe_acct *acct = &wqe->acct[i]; in io_wq_create() 1190 acct->index = i; in io_wq_create() [all …]
|
D | opdef.c | 545 int i; in io_uring_optable_init() local 549 for (i = 0; i < ARRAY_SIZE(io_op_defs); i++) { in io_uring_optable_init() 550 BUG_ON(!io_op_defs[i].prep); in io_uring_optable_init() 551 if (io_op_defs[i].prep != io_eopnotsupp_prep) in io_uring_optable_init() 552 BUG_ON(!io_op_defs[i].issue); in io_uring_optable_init() 553 WARN_ON_ONCE(!io_op_defs[i].name); in io_uring_optable_init()
|
D | cancel.c | 203 unsigned int i; in init_hash_table() local 205 for (i = 0; i < size; i++) { in init_hash_table() 206 spin_lock_init(&table->hbs[i].lock); in init_hash_table() 207 INIT_HLIST_HEAD(&table->hbs[i].list); in init_hash_table()
|
D | io_uring.c | 915 int ret, i; in __io_alloc_req_refill() local 942 for (i = 0; i < ret; i++) { in __io_alloc_req_refill() 943 struct io_kiocb *req = reqs[i]; in __io_alloc_req_refill() 3664 int i; in io_uring_setup() local 3668 for (i = 0; i < ARRAY_SIZE(p.resv); i++) { in io_uring_setup() 3669 if (p.resv[i]) in io_uring_setup() 3696 int i, ret; in io_probe() local 3716 for (i = 0; i < nr_args; i++) { in io_probe() 3717 p->ops[i].op = i; in io_probe() 3718 if (!io_op_defs[i].not_supported) in io_probe() [all …]
|
D | filetable.h | 41 io_fixed_file_slot(struct io_file_table *table, unsigned i) in io_fixed_file_slot() argument 43 return &table->files[i]; in io_fixed_file_slot()
|
D | poll.c | 767 int i; in io_poll_remove_all_table() local 769 for (i = 0; i < nr_buckets; i++) { in io_poll_remove_all_table() 770 struct io_hash_bucket *hb = &table->hbs[i]; in io_poll_remove_all_table() 835 int i; in io_poll_file_find() local 839 for (i = 0; i < nr_buckets; i++) { in io_poll_file_find() 840 struct io_hash_bucket *hb = &table->hbs[i]; in io_poll_file_find()
|