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

/freebsd-10.2-release/sys/cam/ctl/
H A Dctl_util.c103 io->io_hdr.io_type = CTL_IO_SCSI;
109 io->io_hdr.flags = CTL_FLAG_DATA_NONE;
129 io->io_hdr.io_type = CTL_IO_SCSI;
138 io->io_hdr.io_type = CTL_IO_SCSI;
139 io->io_hdr.flags = CTL_FLAG_DATA_IN;
159 io->io_hdr.io_type = CTL_IO_SCSI;
167 io->io_hdr.io_type = CTL_IO_SCSI;
168 io->io_hdr.flags = CTL_FLAG_DATA_IN;
188 io->io_hdr.io_type = CTL_IO_SCSI;
196 io->io_hdr
[all...]
H A Dctl_frontend_internal.c445 if (ctsio->io_hdr.flags & CTL_FLAG_EDPTR_SGLIST) {
502 if (io->io_hdr.flags & CTL_FLAG_BUS_ADDR) {
517 if ((ctsio->io_hdr.flags & CTL_FLAG_DATA_MASK) ==
642 switch (io->io_hdr.io_type) {
644 switch (io->io_hdr.status & CTL_STATUS_MASK) {
679 io->io_hdr.io_type);
681 io->io_hdr.io_type);
696 io->io_hdr.nexus.initid.id = 7;
697 io->io_hdr.nexus.targ_port = lun->softc->port.targ_port;
698 io->io_hdr
[all...]
H A Dctl.c407 static struct ctl_port * ctl_io_port(struct ctl_io_hdr *io_hdr);
547 ctsio->io_hdr.flags |= CTL_FLAG_IO_ACTIVE;
548 ctsio->io_hdr.msg_type = CTL_MSG_FINISH_IO;
549 ctsio->io_hdr.status = msg_info->hdr.status;
556 memcpy(&ctsio->io_hdr.ctl_private[CTL_PRIV_LBA_LEN].bytes,
579 if (ctsio->io_hdr.io_type == 0xff) {
588 tmp_io->io_hdr.io_type,
589 tmp_io->io_hdr.msg_type,
591 tmp_io->io_hdr.nexus.initid.id,
592 tmp_io->io_hdr
3719 ctl_io_port(struct ctl_io_hdr *io_hdr) argument
[all...]
H A Dscsi_ctl.c693 cmd_info = (struct ctlfe_lun_cmd_info *)io->io_hdr.port_priv;
700 if ((io->io_hdr.flags & CTL_FLAG_DATA_MASK) == CTL_FLAG_DATA_IN)
722 if (io->io_hdr.flags & CTL_FLAG_BUS_ADDR)
757 if (io->io_hdr.flags & CTL_FLAG_BUS_ADDR)
797 cmd_info = (struct ctlfe_lun_cmd_info *)io->io_hdr.port_priv;
802 if (io->io_hdr.flags & CTL_FLAG_DMA_QUEUED) {
822 if ((io->io_hdr.flags & CTL_FLAG_ABORT) &&
823 (io->io_hdr.flags & CTL_FLAG_ABORT_STATUS) == 0) {
824 io->io_hdr.flags &= ~CTL_FLAG_STATUS_QUEUED;
881 if ((io->io_hdr
[all...]
H A Dctl_tpc.c264 lun = (struct ctl_lun *)ctsio->io_hdr.ctl_private[CTL_PRIV_LUN].ptr;
433 ctsio->io_hdr.flags |= CTL_FLAG_ALLOCATED;
495 ctsio->io_hdr.flags |= CTL_FLAG_ALLOCATED;
531 lun = (struct ctl_lun *)ctsio->io_hdr.ctl_private[CTL_PRIV_LUN].ptr;
538 ctl_get_resindex(&ctsio->io_hdr.nexus));
592 ctsio->io_hdr.flags |= CTL_FLAG_ALLOCATED;
613 lun = (struct ctl_lun *)ctsio->io_hdr.ctl_private[CTL_PRIV_LUN].ptr;
620 ctl_get_resindex(&ctsio->io_hdr.nexus));
664 ctsio->io_hdr.flags |= CTL_FLAG_ALLOCATED;
685 lun = (struct ctl_lun *)ctsio->io_hdr
[all...]
H A Dctl_frontend_cam_sim.c340 ccb = io->io_hdr.ctl_private[CTL_PRIV_FRONTEND].ptr;
409 if (io->io_hdr.flags & CTL_FLAG_BUS_ADDR) {
424 if ((io->io_hdr.flags & CTL_FLAG_DATA_MASK) ==
462 ccb = io->io_hdr.ctl_private[CTL_PRIV_FRONTEND].ptr;
471 KASSERT(((io->io_hdr.status & CTL_STATUS_MASK) != CTL_STATUS_NONE),
472 ("invalid CTL status %#x", io->io_hdr.status));
477 switch (io->io_hdr.status & CTL_STATUS_MASK) {
558 io->io_hdr.ctl_private[CTL_PRIV_FRONTEND].ptr = ccb;
565 io->io_hdr.io_type = CTL_IO_SCSI;
566 io->io_hdr
[all...]
H A Dctl_scsi_all.c117 io->io_hdr.nexus.initid.id, io->io_hdr.nexus.targ_port,
118 io->io_hdr.nexus.targ_lun, io->io_hdr.nexus.targ_mapped_lun);
H A Dctl_backend_ramdisk.c229 ctl_be_lun = (struct ctl_be_lun *)io->io_hdr.ctl_private[
234 bintime_sub(&cur_bt, &io->io_hdr.dma_start_bt);
235 bintime_add(&io->io_hdr.dma_bt, &cur_bt);
236 io->io_hdr.num_dmas++;
241 if (io->io_hdr.flags & CTL_FLAG_ABORT) {
243 } else if ((io->io_hdr.port_status == 0) &&
244 ((io->io_hdr.status & CTL_STATUS_MASK) == CTL_STATUS_NONE)) {
245 if (io->io_hdr.ctl_private[CTL_PRIV_BACKEND].integer > 0) {
248 &io->io_hdr, links);
255 } else if ((io->io_hdr
[all...]
H A Dctl_tpc_local.c200 if (ctsio->io_hdr.flags & CTL_FLAG_EDPTR_SGLIST) {
248 if (io->io_hdr.flags & CTL_FLAG_BUS_ADDR) {
263 if ((ctsio->io_hdr.flags & CTL_FLAG_DATA_MASK) ==
366 io->io_hdr.nexus.initid.id = 0;
367 io->io_hdr.nexus.targ_port = tsoftc->port.targ_port;
368 io->io_hdr.nexus.targ_target.id = 0;
369 io->io_hdr.nexus.targ_lun = lun;
H A Dctl_io.h297 * Note: Make sure the io_hdr is *always* the first element in this
301 struct ctl_io_hdr io_hdr; /* common to all I/O types */ member in struct:ctl_scsiio
382 * Note: Make sure the io_hdr is *always* the first element in this
386 struct ctl_io_hdr io_hdr; /* common to all I/O types */ member in struct:ctl_taskio
405 * Note: Make sure the io_hdr is *always* the first element in this
499 struct ctl_io_hdr io_hdr; member in struct:ctl_prio
506 struct ctl_io_hdr io_hdr; /* common to all I/O types */ member in union:ctl_io
H A Dctl_frontend_iscsi.c565 io->io_hdr.ctl_private[CTL_PRIV_FRONTEND].ptr = request;
566 io->io_hdr.io_type = CTL_IO_SCSI;
567 io->io_hdr.nexus.initid.id = cs->cs_ctl_initid;
568 io->io_hdr.nexus.targ_port = cs->cs_target->ct_port.targ_port;
569 io->io_hdr.nexus.targ_target.id = 0;
570 io->io_hdr.nexus.targ_lun = cfiscsi_decode_lun(bhssc->bhssc_lun);
622 io->io_hdr.ctl_private[CTL_PRIV_FRONTEND].ptr = request;
623 io->io_hdr.io_type = CTL_IO_TASK;
624 io->io_hdr.nexus.initid.id = cs->cs_ctl_initid;
625 io->io_hdr
[all...]
H A Dctl_error.c122 lun = (struct ctl_lun *)ctsio->io_hdr.ctl_private[CTL_PRIV_LUN].ptr;
137 ctsio->io_hdr.status = CTL_SCSI_ERROR | CTL_AUTOSENSE;
658 if ((ctsio->io_hdr.flags & CTL_FLAG_DATA_MASK) == CTL_FLAG_DATA_IN) {
793 ctsio->io_hdr.status = CTL_SCSI_ERROR;
805 ctsio->io_hdr.status = CTL_SCSI_ERROR;
817 ctsio->io_hdr.status = CTL_SCSI_ERROR;
829 ctsio->io_hdr.status = CTL_CMD_ABORTED;
853 ctsio->io_hdr.status = CTL_SUCCESS;
H A Dctl_backend_block.c112 ((struct ctl_ptr_len_flags *)&(io)->io_hdr.ctl_private[CTL_PRIV_BACKEND])
114 ((struct ctl_lba_len_flags *)&(io)->io_hdr.ctl_private[CTL_PRIV_LBA_LEN])
390 bintime_sub(&cur_bt, &io->io_hdr.dma_start_bt);
391 bintime_add(&io->io_hdr.dma_bt, &cur_bt);
392 io->io_hdr.num_dmas++;
400 if (io->io_hdr.flags & CTL_FLAG_ABORT) {
402 } else if ((io->io_hdr.port_status == 0) &&
403 ((io->io_hdr.status & CTL_STATUS_MASK) == CTL_STATUS_NONE)) {
425 } else if ((io->io_hdr.port_status != 0) &&
426 ((io->io_hdr
[all...]
/freebsd-10.2-release/usr.sbin/ctladm/
H A Dctladm.c785 } while (((io->io_hdr.status & CTL_STATUS_MASK) != CTL_SUCCESS)
1647 io->io_hdr.nexus.targ_target.id = target;
1648 io->io_hdr.nexus.targ_lun = lun_val;
1649 io->io_hdr.nexus.initid = id;
1656 if ((io->io_hdr.status & CTL_STATUS_MASK) != CTL_SUCCESS)
1745 io->io_hdr.nexus.targ_target.id = target;
1746 io->io_hdr.nexus.targ_lun = lun;
1747 io->io_hdr.nexus.initid = id;
1754 if ((io->io_hdr.status & CTL_STATUS_MASK) == CTL_SUCCESS) {
1812 io->io_hdr
[all...]
/freebsd-10.2-release/sys/cam/scsi/
H A Dscsi_sg.c94 struct sg_io_hdr io_hdr; member in union:sg_rdwr::__anon6830

Completed in 96 milliseconds