Lines Matching defs:sqe

197 ublk_get_sqe_cmd(struct io_uring_sqe *sqe)
199 return (void *)&sqe->addr3;
203 ublk_set_sqe_cmd_op(struct io_uring_sqe *sqe, uint32_t cmd_op)
250 sqe->off = opc;
466 struct io_uring_sqe *sqe;
471 sqe = io_uring_get_sqe(&g_ublk_tgt.ctrl_ring);
472 if (!sqe) {
473 SPDK_ERRLOG("No available sqe in ctrl ring\n");
478 cmd = (struct ublksrv_ctrl_cmd *)ublk_get_sqe_cmd(sqe);
479 sqe->fd = g_ublk_tgt.ctrl_fd;
480 sqe->opcode = IORING_OP_URING_CMD;
481 sqe->ioprio = 0;
512 ublk_set_sqe_cmd_op(sqe, cmd_op);
513 io_uring_sqe_set_data(sqe, ublk);
531 struct io_uring_sqe *sqe;
536 sqe = io_uring_get_sqe(&g_ublk_tgt.ctrl_ring);
537 if (!sqe) {
538 SPDK_ERRLOG("No available sqe in ctrl ring\n");
543 cmd = (struct ublksrv_ctrl_cmd *)ublk_get_sqe_cmd(sqe);
544 sqe->fd = g_ublk_tgt.ctrl_fd;
545 sqe->opcode = IORING_OP_URING_CMD;
546 sqe->ioprio = 0;
553 ublk_set_sqe_cmd_op(sqe, cmd_op);
1146 struct io_uring_sqe *sqe;
1152 sqe = io_uring_get_sqe(&q->ring);
1153 assert(sqe);
1156 io_uring_prep_read(sqe, 0, io->payload, nbytes, pos);
1158 io_uring_prep_write(sqe, 0, io->payload, nbytes, pos);
1160 io_uring_sqe_set_flags(sqe, IOSQE_FIXED_FILE);
1161 io_uring_sqe_set_data64(sqe, build_user_data(io->tag, 0));
1340 struct io_uring_sqe *sqe;
1349 sqe = io_uring_get_sqe(&q->ring);
1350 assert(sqe);
1352 cmd = (struct ublksrv_io_cmd *)ublk_get_sqe_cmd(sqe);
1358 ublk_set_sqe_cmd_op(sqe, cmd_op);
1360 sqe->fd = 0;
1361 sqe->opcode = IORING_OP_URING_CMD;
1362 sqe->flags = IOSQE_FIXED_FILE;
1363 sqe->rw_flags = 0;
1369 io_uring_sqe_set_data64(sqe, user_data);
1563 struct io_uring_sqe *sqe;
1567 sqe = ublk_uring_get_sqe(r, i);
1570 sqe->flags = IOSQE_FIXED_FILE;
1571 sqe->rw_flags = 0;
1572 sqe->ioprio = 0;
1573 sqe->off = 0;