Lines Matching refs:sqe
49 struct io_uring_sqe *sqe[3]; in null_queue_zc_io() local
51 ublk_queue_alloc_sqes(q, sqe, 3); in null_queue_zc_io()
53 io_uring_prep_buf_register(sqe[0], 0, tag, q->q_id, tag); in null_queue_zc_io()
54 sqe[0]->user_data = build_user_data(tag, in null_queue_zc_io()
55 ublk_cmd_op_nr(sqe[0]->cmd_op), 0, 1); in null_queue_zc_io()
56 sqe[0]->flags |= IOSQE_CQE_SKIP_SUCCESS | IOSQE_IO_HARDLINK; in null_queue_zc_io()
58 io_uring_prep_nop(sqe[1]); in null_queue_zc_io()
59 sqe[1]->buf_index = tag; in null_queue_zc_io()
60 sqe[1]->flags |= IOSQE_FIXED_FILE | IOSQE_IO_HARDLINK; in null_queue_zc_io()
61 sqe[1]->rw_flags = IORING_NOP_FIXED_BUFFER | IORING_NOP_INJECT_RESULT; in null_queue_zc_io()
62 sqe[1]->len = iod->nr_sectors << 9; /* injected result */ in null_queue_zc_io()
63 sqe[1]->user_data = build_user_data(tag, ublk_op, 0, 1); in null_queue_zc_io()
65 io_uring_prep_buf_unregister(sqe[2], 0, tag, q->q_id, tag); in null_queue_zc_io()
66 sqe[2]->user_data = build_user_data(tag, ublk_cmd_op_nr(sqe[2]->cmd_op), 0, 1); in null_queue_zc_io()