Lines Matching refs:io_hdr

173 #define PRIV_CCB(io)	((io)->io_hdr.ctl_private[CTL_PRIV_FRONTEND].ptrs[0])
174 #define PRIV_INFO(io) ((io)->io_hdr.ctl_private[CTL_PRIV_FRONTEND].ptrs[1])
686 if ((io->io_hdr.flags & CTL_FLAG_DATA_MASK) == CTL_FLAG_DATA_IN)
711 if (io->io_hdr.flags & CTL_FLAG_BUS_ADDR)
755 if (io->io_hdr.flags & CTL_FLAG_BUS_ADDR)
798 if (io->io_hdr.flags & CTL_FLAG_DMA_QUEUED) {
808 if ((io->io_hdr.flags & CTL_FLAG_ABORT) &&
809 (io->io_hdr.flags & CTL_FLAG_ABORT_STATUS) == 0) {
810 io->io_hdr.flags &= ~CTL_FLAG_STATUS_QUEUED;
833 if ((io->io_hdr.flags & CTL_FLAG_STATUS_QUEUED) &&
835 ((io->io_hdr.flags & CTL_FLAG_DMA_QUEUED) == 0 ||
836 io->io_hdr.status == CTL_SUCCESS)) {
842 atio->tag_id, io->io_hdr.status);
881 atio->tag_id, io->io_hdr.status);
897 if (io->io_hdr.flags & CTL_FLAG_DMA_QUEUED)
898 io->io_hdr.flags |= CTL_FLAG_DMA_INPROG;
899 io->io_hdr.flags &= ~(CTL_FLAG_DMA_QUEUED | CTL_FLAG_STATUS_QUEUED);
1145 io->io_hdr.io_type = CTL_IO_SCSI;
1146 io->io_hdr.nexus.initid = atio->init_id;
1147 io->io_hdr.nexus.targ_port = bus_softc->port.targ_port;
1149 io->io_hdr.nexus.targ_lun = ctl_decode_lun(
1152 io->io_hdr.nexus.targ_lun = atio->ccb_h.target_lun;
1187 io->io_hdr.nexus.initid,
1188 io->io_hdr.nexus.targ_port,
1189 io->io_hdr.nexus.targ_lun,
1229 if (srr && (io->io_hdr.flags & CTL_FLAG_DMA_INPROG) &&
1237 io->scsiio.io_hdr.status = CTL_STATUS_NONE;
1238 io->io_hdr.flags |= CTL_FLAG_DMA_QUEUED;
1252 if (srr && (io->io_hdr.flags & CTL_FLAG_DMA_INPROG) == 0) {
1265 io->io_hdr.flags |= CTL_FLAG_STATUS_SENT;
1272 if ((io->io_hdr.flags & CTL_FLAG_DMA_INPROG) == 0) {
1306 io->io_hdr.flags &= ~CTL_FLAG_DMA_INPROG;
1319 io->io_hdr.port_status = 0;
1333 io->io_hdr.port_status = 0xbad1;
1346 io->io_hdr.port_status == 0 && csio->resid == 0) {
1366 io->io_hdr.status);
1385 io->io_hdr.flags |= CTL_FLAG_DMA_INPROG;
1415 io->io_hdr.io_type = CTL_IO_TASK;
1418 io->io_hdr.nexus.initid = inot->initiator_id;
1419 io->io_hdr.nexus.targ_port = bus_softc->port.targ_port;
1421 io->io_hdr.nexus.targ_lun = ctl_decode_lun(
1424 io->io_hdr.nexus.targ_lun = inot->ccb_h.target_lun;
1886 if (io->io_hdr.flags & CTL_FLAG_DMA_QUEUED) {
1911 KASSERT(io->io_hdr.io_type == CTL_IO_SCSI,
1912 ("%s: unexpected I/O type %x", __func__, io->io_hdr.io_type));
1919 io->io_hdr.flags |= CTL_FLAG_DMA_QUEUED;
1920 if ((io->io_hdr.status & CTL_STATUS_MASK) != CTL_STATUS_NONE)
1921 io->io_hdr.flags |= CTL_FLAG_STATUS_QUEUED;
1940 if (io->io_hdr.io_type == CTL_IO_TASK) {
1970 } else if (io->io_hdr.flags & CTL_FLAG_STATUS_SENT) {
1974 io->io_hdr.flags |= CTL_FLAG_STATUS_QUEUED;