Searched refs:io_hdr (Results 1 - 19 of 19) sorted by relevance

/freebsd-13-stable/sys/contrib/openzfs/cmd/zpool/os/linux/
H A Dzpool_vdev_os.c224 sg_io_hdr_t io_hdr; local
230 memset(&io_hdr, 0, sizeof (sg_io_hdr_t));
231 io_hdr.interface_id = 'S';
232 io_hdr.cmd_len = sizeof (inq_cmd_blk);
233 io_hdr.mx_sb_len = sizeof (sense_buffer);
234 io_hdr.dxfer_direction = SG_DXFER_FROM_DEV;
235 io_hdr.dxfer_len = INQ_REPLY_LEN;
236 io_hdr.dxferp = inq_buff;
237 io_hdr.cmdp = inq_cmd_blk;
238 io_hdr
[all...]
/freebsd-13-stable/sys/cam/ctl/
H A Dctl_util.c108 io->io_hdr.io_type = CTL_IO_SCSI;
114 io->io_hdr.flags = CTL_FLAG_DATA_NONE;
134 io->io_hdr.io_type = CTL_IO_SCSI;
143 io->io_hdr.io_type = CTL_IO_SCSI;
144 io->io_hdr.flags = CTL_FLAG_DATA_IN;
164 io->io_hdr.io_type = CTL_IO_SCSI;
172 io->io_hdr.io_type = CTL_IO_SCSI;
173 io->io_hdr.flags = CTL_FLAG_DATA_IN;
193 io->io_hdr.io_type = CTL_IO_SCSI;
201 io->io_hdr
[all...]
H A Dctl_io.h166 #define CTL_LUN(io) ((io)->io_hdr.ctl_private[CTL_PRIV_LUN].ptrs[0])
167 #define CTL_SOFTC(io) ((io)->io_hdr.ctl_private[CTL_PRIV_LUN].ptrs[1])
168 #define CTL_BACKEND_LUN(io) ((io)->io_hdr.ctl_private[CTL_PRIV_BACKEND_LUN].ptrs[0])
170 ctl_ports[(io)->io_hdr.nexus.targ_port])
176 #define CTL_RSGL(io) ((io)->io_hdr.ctl_private[CTL_PRIV_BACKEND].ptrs[0])
177 #define CTL_LSGL(io) ((io)->io_hdr.ctl_private[CTL_PRIV_BACKEND].ptrs[1])
271 * Note: Make sure the io_hdr is *always* the first element in this
275 struct ctl_io_hdr io_hdr; /* common to all I/O types */ member in struct:ctl_scsiio
370 * Note: Make sure the io_hdr is *always* the first element in this
374 struct ctl_io_hdr io_hdr; /* commo member in struct:ctl_taskio
582 struct ctl_io_hdr io_hdr; member in struct:ctl_prio
587 struct ctl_io_hdr io_hdr; /* common to all I/O types */ member in union:ctl_io
[all...]
H A Dscsi_ctl.c173 #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
[all...]
H A Dctl.c659 msg.hdr.original_sc = io->io_hdr.remote_io;
661 msg.hdr.nexus = io->io_hdr.nexus;
662 msg.hdr.status = io->io_hdr.status;
663 msg.dt.flags = io->io_hdr.flags;
676 if (io->io_hdr.flags & CTL_FLAG_BUS_ADDR) {
684 KASSERT((io->io_hdr.flags & CTL_FLAG_BUS_ADDR) == 0,
716 if (io->io_hdr.flags & CTL_FLAG_BUS_ADDR) {
724 KASSERT((io->io_hdr.flags &
739 io->io_hdr.port_status = 31341;
753 if (io->io_hdr
[all...]
H A Dctl_frontend_cam_sim.c295 ccb = io->io_hdr.ctl_private[CTL_PRIV_FRONTEND].ptr;
365 if (io->io_hdr.flags & CTL_FLAG_BUS_ADDR) {
377 if ((io->io_hdr.flags & CTL_FLAG_DATA_MASK) ==
408 if ((io->io_hdr.status & CTL_STATUS_MASK) == CTL_SUCCESS) {
409 io->io_hdr.ctl_private[CTL_PRIV_FRONTEND].ptr = NULL;
410 io->io_hdr.flags |= CTL_FLAG_STATUS_SENT;
426 ccb = io->io_hdr.ctl_private[CTL_PRIV_FRONTEND].ptr;
435 KASSERT(((io->io_hdr.status & CTL_STATUS_MASK) != CTL_STATUS_NONE),
436 ("invalid CTL status %#x", io->io_hdr.status));
446 switch (io->io_hdr
[all...]
H A Dctl_frontend_ioctl.c352 if (ctsio->io_hdr.flags & CTL_FLAG_NO_DATAMOVE) {
371 ctsio->io_hdr.port_status = 31343;
418 if (ctsio->io_hdr.flags & CTL_FLAG_BUS_ADDR) {
430 if ((ctsio->io_hdr.flags & CTL_FLAG_DATA_MASK) ==
437 ctsio->io_hdr.port_status = 31344;
446 ctsio->io_hdr.port_status = 31345;
487 io->io_hdr.ctl_private[CTL_PRIV_FRONTEND].ptr;
501 io->io_hdr.ctl_private[CTL_PRIV_FRONTEND].ptr;
522 io->io_hdr.ctl_private[CTL_PRIV_FRONTEND].ptr = &params;
618 pool_tmp = io->io_hdr
[all...]
H A Dctl_scsi_all.c119 io->io_hdr.nexus.initid, io->io_hdr.nexus.targ_port,
120 io->io_hdr.nexus.targ_lun, io->io_hdr.nexus.targ_mapped_lun);
H A Dctl_tpc.c445 ctsio->io_hdr.flags |= CTL_FLAG_ALLOCATED;
497 ctsio->io_hdr.flags |= CTL_FLAG_ALLOCATED;
538 ctl_get_initindex(&ctsio->io_hdr.nexus));
582 ctsio->io_hdr.flags |= CTL_FLAG_ALLOCATED;
608 ctl_get_initindex(&ctsio->io_hdr.nexus));
642 ctsio->io_hdr.flags |= CTL_FLAG_ALLOCATED;
668 ctl_get_initindex(&ctsio->io_hdr.nexus));
716 ctsio->io_hdr.flags |= CTL_FLAG_ALLOCATED;
739 ctl_get_initindex(&ctsio->io_hdr.nexus));
929 tior->io->io_hdr
[all...]
H A Dctl_tpc_local.c208 if (io->io_hdr.flags & CTL_FLAG_BUS_ADDR) {
220 if ((ctsio->io_hdr.flags & CTL_FLAG_DATA_MASK) ==
325 io->io_hdr.nexus.initid = 0;
326 io->io_hdr.nexus.targ_port = tsoftc->port.targ_port;
327 io->io_hdr.nexus.targ_lun = lun;
H A Dctl_frontend_iscsi.c152 ((struct cfiscsi_priv *)&(io)->io_hdr.ctl_private[CTL_PRIV_FRONTEND])
528 io->io_hdr.io_type = CTL_IO_SCSI;
529 io->io_hdr.nexus.initid = cs->cs_ctl_initid;
530 io->io_hdr.nexus.targ_port = cs->cs_target->ct_port.targ_port;
531 io->io_hdr.nexus.targ_lun = ctl_decode_lun(be64toh(bhssc->bhssc_lun));
586 io->io_hdr.io_type = CTL_IO_TASK;
587 io->io_hdr.nexus.initid = cs->cs_ctl_initid;
588 io->io_hdr.nexus.targ_port = cs->cs_target->ct_port.targ_port;
589 io->io_hdr.nexus.targ_lun = ctl_decode_lun(be64toh(bhstmr->bhstmr_lun));
717 KASSERT((io->io_hdr
[all...]
H A Dctl_error.c156 ctsio->io_hdr.status = CTL_SCSI_ERROR | CTL_AUTOSENSE;
934 ctsio->io_hdr.status = CTL_SCSI_ERROR;
943 ctsio->io_hdr.status = CTL_SCSI_ERROR;
952 ctsio->io_hdr.status = CTL_SCSI_ERROR;
961 ctsio->io_hdr.status = CTL_CMD_ABORTED;
994 ctsio->io_hdr.status = CTL_SUCCESS;
H A Dctl_backend_block.c119 ((struct ctl_ptr_len_flags *)&(io)->io_hdr.ctl_private[CTL_PRIV_BACKEND])
121 ((struct ctl_lba_len_flags *)&(io)->io_hdr.ctl_private[CTL_PRIV_LBA_LEN])
448 if ((io->io_hdr.flags & CTL_FLAG_ABORT) == 0 &&
449 (io->io_hdr.status & CTL_STATUS_MASK) == CTL_STATUS_NONE) {
463 || ((io->io_hdr.flags & CTL_FLAG_ABORT) != 0)
464 || ((io->io_hdr.status & CTL_STATUS_MASK) != CTL_STATUS_NONE)) {
483 STAILQ_INSERT_TAIL(&be_lun->datamove_queue, &io->io_hdr, links);
1123 ptrlen = (struct ctl_ptr_len_flags *)&io->io_hdr.ctl_private[CTL_PRIV_LBA_LEN];
1249 lbalen = (struct ctl_lba_len_flags *)&io->io_hdr.ctl_private[CTL_PRIV_LBA_LEN];
1267 if ((io->io_hdr
[all...]
H A Dctl_backend_ramdisk.c81 ((struct ctl_ptr_len_flags *)&(io)->io_hdr.ctl_private[CTL_PRIV_BACKEND])
83 ((struct ctl_lba_len_flags *)&(io)->io_hdr.ctl_private[CTL_PRIV_LBA_LEN])
413 if ((io->io_hdr.flags & CTL_FLAG_ABORT) == 0 &&
414 (io->io_hdr.status & CTL_STATUS_MASK) == CTL_STATUS_NONE) {
423 &io->io_hdr, links);
450 io->io_hdr.flags |= CTL_FLAG_ALLOCATED;
505 io->io_hdr.flags |= CTL_FLAG_ALLOCATED;
/freebsd-13-stable/sys/dev/usb/storage/
H A Dcfumass.c668 io->io_hdr.ctl_private[CTL_PRIV_FRONTEND].ptr = sc;
669 io->io_hdr.io_type = CTL_IO_SCSI;
670 io->io_hdr.nexus.initid = sc->sc_ctl_initid;
671 io->io_hdr.nexus.targ_port = cfumass_port.targ_port;
672 io->io_hdr.nexus.targ_lun = ctl_decode_lun(sc->sc_cbw->bCBWLUN);
853 sc = io->io_hdr.ctl_private[CTL_PRIV_FRONTEND].ptr;
863 if ((io->io_hdr.flags & CTL_FLAG_DATA_MASK) == CTL_FLAG_DATA_IN) {
899 sc = io->io_hdr.ctl_private[CTL_PRIV_FRONTEND].ptr;
903 KASSERT(((io->io_hdr.status & CTL_STATUS_MASK) != CTL_STATUS_NONE),
904 ("invalid CTL status %#x", io->io_hdr
[all...]
/freebsd-13-stable/usr.sbin/bhyve/
H A Dpci_virtio_scsi.c392 io->io_hdr.io_type = CTL_IO_TASK;
393 io->io_hdr.nexus.initid = sc->vss_iid;
394 io->io_hdr.nexus.targ_lun = pci_vtscsi_get_lun(tmf->lun);
484 io->io_hdr.nexus.initid = sc->vss_iid;
485 io->io_hdr.nexus.targ_lun = pci_vtscsi_get_lun(cmd_rd->lun);
487 io->io_hdr.io_type = CTL_IO_SCSI;
493 io->io_hdr.flags |= CTL_FLAG_DATA_OUT;
498 io->io_hdr.flags |= CTL_FLAG_DATA_IN;
/freebsd-13-stable/usr.sbin/ctladm/
H A Dctladm.c690 } while (((io->io_hdr.status & CTL_STATUS_MASK) != CTL_SUCCESS)
1182 io->io_hdr.nexus.targ_lun = lun;
1183 io->io_hdr.nexus.initid = iid;
1190 if ((io->io_hdr.status & CTL_STATUS_MASK) == CTL_SUCCESS) {
1242 io->io_hdr.nexus.targ_lun = lun;
1243 io->io_hdr.nexus.initid = iid;
1251 if ((io->io_hdr.status & CTL_STATUS_MASK) == CTL_SUCCESS) {
1407 io->io_hdr.nexus.targ_lun = lun;
1408 io->io_hdr.nexus.initid = iid;
1415 if ((io->io_hdr
[all...]
/freebsd-13-stable/sys/dev/cxgbe/cxgbei/
H A Dicl_cxgbei.c873 #define io_to_request_pdu(io) ((io)->io_hdr.ctl_private[CTL_PRIV_FRONTEND].ptr)
874 #define io_to_ppod_reservation(io) ((io)->io_hdr.ctl_private[CTL_PRIV_FRONTEND2].ptr)
/freebsd-13-stable/sys/cam/scsi/
H A Dscsi_sg.c96 struct sg_io_hdr io_hdr; member in union:sg_rdwr::__anon8732

Completed in 274 milliseconds