| /freebsd-12-stable/sys/cam/ctl/ |
| D | ctl_util.c | 108 io->io_hdr.io_type = CTL_IO_SCSI; in ctl_scsi_tur() 114 io->io_hdr.flags = CTL_FLAG_DATA_NONE; in ctl_scsi_tur() 134 io->io_hdr.io_type = CTL_IO_SCSI; in ctl_scsi_inquiry() 143 io->io_hdr.io_type = CTL_IO_SCSI; in ctl_scsi_inquiry() 144 io->io_hdr.flags = CTL_FLAG_DATA_IN; in ctl_scsi_inquiry() 164 io->io_hdr.io_type = CTL_IO_SCSI; in ctl_scsi_request_sense() 172 io->io_hdr.io_type = CTL_IO_SCSI; in ctl_scsi_request_sense() 173 io->io_hdr.flags = CTL_FLAG_DATA_IN; in ctl_scsi_request_sense() 193 io->io_hdr.io_type = CTL_IO_SCSI; in ctl_scsi_report_luns() 201 io->io_hdr.io_type = CTL_IO_SCSI; in ctl_scsi_report_luns() [all …]
|
| D | ctl.c | 659 msg.hdr.original_sc = io->io_hdr.remote_io; in ctl_ha_datamove() 661 msg.hdr.nexus = io->io_hdr.nexus; in ctl_ha_datamove() 662 msg.hdr.status = io->io_hdr.status; in ctl_ha_datamove() 663 msg.dt.flags = io->io_hdr.flags; in ctl_ha_datamove() 676 if (io->io_hdr.flags & CTL_FLAG_BUS_ADDR) { in ctl_ha_datamove() 684 KASSERT((io->io_hdr.flags & CTL_FLAG_BUS_ADDR) == 0, in ctl_ha_datamove() 716 if (io->io_hdr.flags & CTL_FLAG_BUS_ADDR) { in ctl_ha_datamove() 724 KASSERT((io->io_hdr.flags & in ctl_ha_datamove() 739 io->io_hdr.port_status = 31341; in ctl_ha_datamove() 753 if (io->io_hdr.flags & CTL_FLAG_FAILOVER) { in ctl_ha_datamove() [all …]
|
| D | ctl_frontend_cam_sim.c | 296 ccb = io->io_hdr.ctl_private[CTL_PRIV_FRONTEND].ptr; in cfcs_datamove() 366 if (io->io_hdr.flags & CTL_FLAG_BUS_ADDR) { in cfcs_datamove() 378 if ((io->io_hdr.flags & CTL_FLAG_DATA_MASK) == in cfcs_datamove() 409 if ((io->io_hdr.status & CTL_STATUS_MASK) == CTL_SUCCESS) { in cfcs_datamove() 410 io->io_hdr.ctl_private[CTL_PRIV_FRONTEND].ptr = NULL; in cfcs_datamove() 411 io->io_hdr.flags |= CTL_FLAG_STATUS_SENT; in cfcs_datamove() 427 ccb = io->io_hdr.ctl_private[CTL_PRIV_FRONTEND].ptr; in cfcs_done() 436 KASSERT(((io->io_hdr.status & CTL_STATUS_MASK) != CTL_STATUS_NONE), in cfcs_done() 437 ("invalid CTL status %#x", io->io_hdr.status)); in cfcs_done() 447 switch (io->io_hdr.status & CTL_STATUS_MASK) { in cfcs_done() [all …]
|
| D | scsi_ctl.c | 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]) 687 if ((io->io_hdr.flags & CTL_FLAG_DATA_MASK) == CTL_FLAG_DATA_IN) in ctlfedata() 712 if (io->io_hdr.flags & CTL_FLAG_BUS_ADDR) in ctlfedata() 756 if (io->io_hdr.flags & CTL_FLAG_BUS_ADDR) in ctlfedata() 799 if (io->io_hdr.flags & CTL_FLAG_DMA_QUEUED) { in ctlfestart() 809 if ((io->io_hdr.flags & CTL_FLAG_ABORT) && in ctlfestart() 810 (io->io_hdr.flags & CTL_FLAG_ABORT_STATUS) == 0) { in ctlfestart() 811 io->io_hdr.flags &= ~CTL_FLAG_STATUS_QUEUED; in ctlfestart() 834 if ((io->io_hdr.flags & CTL_FLAG_STATUS_QUEUED) && in ctlfestart() [all …]
|
| D | ctl_frontend_ioctl.c | 354 if (ctsio->io_hdr.flags & CTL_FLAG_NO_DATAMOVE) { in ctl_ioctl_do_datamove() 373 ctsio->io_hdr.port_status = 31343; in ctl_ioctl_do_datamove() 420 if (ctsio->io_hdr.flags & CTL_FLAG_BUS_ADDR) { in ctl_ioctl_do_datamove() 432 if ((ctsio->io_hdr.flags & CTL_FLAG_DATA_MASK) == in ctl_ioctl_do_datamove() 439 ctsio->io_hdr.port_status = 31344; in ctl_ioctl_do_datamove() 448 ctsio->io_hdr.port_status = 31345; in ctl_ioctl_do_datamove() 489 io->io_hdr.ctl_private[CTL_PRIV_FRONTEND].ptr; in cfi_datamove() 503 io->io_hdr.ctl_private[CTL_PRIV_FRONTEND].ptr; in cfi_done() 524 io->io_hdr.ctl_private[CTL_PRIV_FRONTEND].ptr = ¶ms; in cfi_submit_wait() 620 pool_tmp = io->io_hdr.pool; in ctl_ioctl_io() [all …]
|
| D | ctl_tpc.c | 445 ctsio->io_hdr.flags |= CTL_FLAG_ALLOCATED; in ctl_inquiry_evpd_tpc() 497 ctsio->io_hdr.flags |= CTL_FLAG_ALLOCATED; in ctl_receive_copy_operating_parameters() 538 ctl_get_initindex(&ctsio->io_hdr.nexus)); in ctl_receive_copy_status_lid1() 582 ctsio->io_hdr.flags |= CTL_FLAG_ALLOCATED; in ctl_receive_copy_status_lid1() 608 ctl_get_initindex(&ctsio->io_hdr.nexus)); in ctl_receive_copy_failure_details() 642 ctsio->io_hdr.flags |= CTL_FLAG_ALLOCATED; in ctl_receive_copy_failure_details() 668 ctl_get_initindex(&ctsio->io_hdr.nexus)); in ctl_receive_copy_status_lid4() 716 ctsio->io_hdr.flags |= CTL_FLAG_ALLOCATED; in ctl_receive_copy_status_lid4() 739 ctl_get_initindex(&ctsio->io_hdr.nexus)); in ctl_copy_operation_abort() 929 tior->io->io_hdr.retries = 3; in tpc_process_b2b() [all …]
|
| D | ctl_io.h | 167 #define CTL_LUN(io) ((io)->io_hdr.ctl_private[CTL_PRIV_LUN].ptrs[0]) 168 #define CTL_SOFTC(io) ((io)->io_hdr.ctl_private[CTL_PRIV_LUN].ptrs[1]) 169 #define CTL_BACKEND_LUN(io) ((io)->io_hdr.ctl_private[CTL_PRIV_BACKEND_LUN].ptrs[0]) 171 ctl_ports[(io)->io_hdr.nexus.targ_port]) 177 #define CTL_RSGL(io) ((io)->io_hdr.ctl_private[CTL_PRIV_BACKEND].ptrs[0]) 178 #define CTL_LSGL(io) ((io)->io_hdr.ctl_private[CTL_PRIV_BACKEND].ptrs[1]) 274 struct ctl_io_hdr io_hdr; /* common to all I/O types */ member 371 struct ctl_io_hdr io_hdr; /* common to all I/O types */ member 580 struct ctl_io_hdr io_hdr; member 585 struct ctl_io_hdr io_hdr; /* common to all I/O types */ member
|
| D | ctl_scsi_all.c | 119 io->io_hdr.nexus.initid, io->io_hdr.nexus.targ_port, in ctl_scsi_path_string() 120 io->io_hdr.nexus.targ_lun, io->io_hdr.nexus.targ_mapped_lun); in ctl_scsi_path_string()
|
| D | ctl_tpc_local.c | 209 if (io->io_hdr.flags & CTL_FLAG_BUS_ADDR) { in tpcl_datamove() 221 if ((ctsio->io_hdr.flags & CTL_FLAG_DATA_MASK) == in tpcl_datamove() 326 io->io_hdr.nexus.initid = 0; in tpcl_queue() 327 io->io_hdr.nexus.targ_port = tsoftc->port.targ_port; in tpcl_queue() 328 io->io_hdr.nexus.targ_lun = lun; in tpcl_queue()
|
| D | ctl_frontend_iscsi.c | 153 ((struct cfiscsi_priv *)&(io)->io_hdr.ctl_private[CTL_PRIV_FRONTEND]) 518 io->io_hdr.io_type = CTL_IO_SCSI; in cfiscsi_pdu_handle_scsi_command() 519 io->io_hdr.nexus.initid = cs->cs_ctl_initid; in cfiscsi_pdu_handle_scsi_command() 520 io->io_hdr.nexus.targ_port = cs->cs_target->ct_port.targ_port; in cfiscsi_pdu_handle_scsi_command() 521 io->io_hdr.nexus.targ_lun = ctl_decode_lun(be64toh(bhssc->bhssc_lun)); in cfiscsi_pdu_handle_scsi_command() 576 io->io_hdr.io_type = CTL_IO_TASK; in cfiscsi_pdu_handle_task_request() 577 io->io_hdr.nexus.initid = cs->cs_ctl_initid; in cfiscsi_pdu_handle_task_request() 578 io->io_hdr.nexus.targ_port = cs->cs_target->ct_port.targ_port; in cfiscsi_pdu_handle_task_request() 579 io->io_hdr.nexus.targ_lun = ctl_decode_lun(be64toh(bhstmr->bhstmr_lun)); in cfiscsi_pdu_handle_task_request() 707 KASSERT((io->io_hdr.flags & CTL_FLAG_DATA_MASK) != CTL_FLAG_DATA_IN, in cfiscsi_handle_data_segment() [all …]
|
| D | ctl_error.c | 156 ctsio->io_hdr.status = CTL_SCSI_ERROR | CTL_AUTOSENSE; in ctl_set_sense() 934 ctsio->io_hdr.status = CTL_SCSI_ERROR; in ctl_set_reservation_conflict() 943 ctsio->io_hdr.status = CTL_SCSI_ERROR; in ctl_set_queue_full() 952 ctsio->io_hdr.status = CTL_SCSI_ERROR; in ctl_set_busy() 961 ctsio->io_hdr.status = CTL_CMD_ABORTED; in ctl_set_task_aborted() 994 ctsio->io_hdr.status = CTL_SUCCESS; in ctl_set_success()
|
| D | ctl_backend_block.c | 117 ((struct ctl_ptr_len_flags *)&(io)->io_hdr.ctl_private[CTL_PRIV_BACKEND]) 119 ((struct ctl_lba_len_flags *)&(io)->io_hdr.ctl_private[CTL_PRIV_LBA_LEN]) 428 if ((io->io_hdr.flags & CTL_FLAG_ABORT) == 0 && in ctl_be_block_move_done() 429 (io->io_hdr.status & CTL_STATUS_MASK) == CTL_STATUS_NONE) { in ctl_be_block_move_done() 443 || ((io->io_hdr.flags & CTL_FLAG_ABORT) != 0) in ctl_be_block_move_done() 444 || ((io->io_hdr.status & CTL_STATUS_MASK) != CTL_STATUS_NONE)) { in ctl_be_block_move_done() 463 STAILQ_INSERT_TAIL(&be_lun->datamove_queue, &io->io_hdr, links); in ctl_be_block_move_done() 1103 ptrlen = (struct ctl_ptr_len_flags *)&io->io_hdr.ctl_private[CTL_PRIV_LBA_LEN]; in ctl_be_block_unmap_dev() 1231 lbalen = (struct ctl_lba_len_flags *)&io->io_hdr.ctl_private[CTL_PRIV_LBA_LEN]; in ctl_be_block_cw_dispatch_sync() 1249 if ((io->io_hdr.flags & CTL_FLAG_ABORT) || in ctl_be_block_cw_done_ws() [all …]
|
| D | ctl_backend_ramdisk.c | 81 ((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 && in ctl_backend_ramdisk_move_done() 414 (io->io_hdr.status & CTL_STATUS_MASK) == CTL_STATUS_NONE) { in ctl_backend_ramdisk_move_done() 423 &io->io_hdr, links); in ctl_backend_ramdisk_move_done() 450 io->io_hdr.flags |= CTL_FLAG_ALLOCATED; in ctl_backend_ramdisk_compare() 505 io->io_hdr.flags |= CTL_FLAG_ALLOCATED; in ctl_backend_ramdisk_rw()
|
| /freebsd-12-stable/sys/dev/usb/storage/ |
| D | cfumass.c | 671 io->io_hdr.ctl_private[CTL_PRIV_FRONTEND].ptr = sc; in cfumass_t_command_callback() 672 io->io_hdr.io_type = CTL_IO_SCSI; in cfumass_t_command_callback() 673 io->io_hdr.nexus.initid = sc->sc_ctl_initid; in cfumass_t_command_callback() 674 io->io_hdr.nexus.targ_port = cfumass_port.targ_port; in cfumass_t_command_callback() 675 io->io_hdr.nexus.targ_lun = ctl_decode_lun(sc->sc_cbw->bCBWLUN); in cfumass_t_command_callback() 856 sc = io->io_hdr.ctl_private[CTL_PRIV_FRONTEND].ptr; in cfumass_datamove() 866 if ((io->io_hdr.flags & CTL_FLAG_DATA_MASK) == CTL_FLAG_DATA_IN) { in cfumass_datamove() 902 sc = io->io_hdr.ctl_private[CTL_PRIV_FRONTEND].ptr; in cfumass_done() 906 KASSERT(((io->io_hdr.status & CTL_STATUS_MASK) != CTL_STATUS_NONE), in cfumass_done() 907 ("invalid CTL status %#x", io->io_hdr.status)); in cfumass_done() [all …]
|
| /freebsd-12-stable/usr.sbin/ctladm/ |
| D | ctladm.c | 690 } while (((io->io_hdr.status & CTL_STATUS_MASK) != CTL_SUCCESS) in cctl_do_io() 1182 io->io_hdr.nexus.targ_lun = lun; in cctl_sync_cache() 1183 io->io_hdr.nexus.initid = iid; in cctl_sync_cache() 1190 if ((io->io_hdr.status & CTL_STATUS_MASK) == CTL_SUCCESS) { in cctl_sync_cache() 1242 io->io_hdr.nexus.targ_lun = lun; in cctl_start_stop() 1243 io->io_hdr.nexus.initid = iid; in cctl_start_stop() 1251 if ((io->io_hdr.status & CTL_STATUS_MASK) == CTL_SUCCESS) { in cctl_start_stop() 1407 io->io_hdr.nexus.targ_lun = lun; in cctl_mode_sense() 1408 io->io_hdr.nexus.initid = iid; in cctl_mode_sense() 1415 if ((io->io_hdr.status & CTL_STATUS_MASK) == CTL_SUCCESS) { in cctl_mode_sense() [all …]
|
| /freebsd-12-stable/usr.sbin/bhyve/ |
| D | pci_virtio_scsi.c | 404 io->io_hdr.io_type = CTL_IO_TASK; in pci_vtscsi_tmf_handle() 405 io->io_hdr.nexus.initid = sc->vss_iid; in pci_vtscsi_tmf_handle() 406 io->io_hdr.nexus.targ_lun = pci_vtscsi_get_lun(tmf->lun); in pci_vtscsi_tmf_handle() 505 io->io_hdr.nexus.initid = sc->vss_iid; in pci_vtscsi_request_handle() 506 io->io_hdr.nexus.targ_lun = pci_vtscsi_get_lun(cmd_rd->lun); in pci_vtscsi_request_handle() 508 io->io_hdr.io_type = CTL_IO_SCSI; in pci_vtscsi_request_handle() 514 io->io_hdr.flags |= CTL_FLAG_DATA_OUT; in pci_vtscsi_request_handle() 519 io->io_hdr.flags |= CTL_FLAG_DATA_IN; in pci_vtscsi_request_handle()
|
| /freebsd-12-stable/sys/dev/cxgbe/cxgbei/ |
| D | icl_cxgbei.c | 875 #define io_to_request_pdu(io) ((io)->io_hdr.ctl_private[CTL_PRIV_FRONTEND].ptr) 876 #define io_to_ppod_reservation(io) ((io)->io_hdr.ctl_private[CTL_PRIV_FRONTEND2].ptr)
|
| /freebsd-12-stable/sys/cam/scsi/ |
| D | scsi_sg.c | 96 struct sg_io_hdr io_hdr; member
|