/freebsd/sys/cam/scsi/ |
H A D | scsi_target.c | 60 int func_code; member 153 static size_t targccblen(xpt_opcode func_code); 277 cdbg.ccb_h.func_code = XPT_DEBUG; in targioctl() 364 en_ccb.ccb_h.func_code = XPT_EN_LUN; in targendislun() 527 int func_code, priority; in targwrite() local 547 func_code = fuword32(&user_ccb->ccb_h.func_code); in targwrite() 548 switch (func_code) { in targwrite() 553 ccb = targgetccb(softc, func_code, priority); in targwrite() 556 descr->func_code = func_code; in targwrite() 567 if ((func_code & XPT_FC_QUEUED) != 0) { in targwrite() [all …]
|
H A D | scsi_targ_bh.c | 243 immed_ccb.ccb_h.func_code = XPT_EN_LUN; in targbhenlun() 283 atio->ccb_h.func_code = XPT_ACCEPT_TARGET_IO; in targbhenlun() 318 inot->ccb_h.func_code = XPT_IMMEDIATE_NOTIFY; in targbhenlun() 361 ccb.cab.ccb_h.func_code = XPT_ABORT; in targbhdislun() 369 ccb.cab.ccb_h.func_code = XPT_ABORT; in targbhdislun() 378 ccb.cel.ccb_h.func_code = XPT_EN_LUN; in targbhdislun() 532 switch (done_ccb->ccb_h.func_code) { in targbhdone()
|
H A D | scsi_xpt.c | 1042 cts.ccb_h.func_code = XPT_GET_TRAN_SETTINGS; in proberequestdefaultnegotiation() 1048 cts.ccb_h.func_code = XPT_SET_TRAN_SETTINGS; in proberequestdefaultnegotiation() 1064 cts.ccb_h.func_code = XPT_GET_TRAN_SETTINGS; in proberequestbackoff() 1142 cts.ccb_h.func_code = XPT_SET_TRAN_SETTINGS; in proberequestbackoff() 1727 done_ccb->ccb_h.func_code = XPT_GDEV_TYPE; in probedone() 1788 done_ccb->ccb_h.func_code = XPT_GDEV_TYPE; in probedone() 1931 switch (request_ccb->ccb_h.func_code) { in scsi_scan_bus() 1951 work_ccb->ccb_h.func_code = XPT_PATH_INQ; in scsi_scan_bus() 1979 reset_ccb->ccb_h.func_code = XPT_RESET_BUS; in scsi_scan_bus() 2014 if (request_ccb->ccb_h.func_code == XPT_SCAN_TGT) { in scsi_scan_bus() [all …]
|
H A D | scsi_pass.c | 938 switch (done_ccb->ccb_h.func_code) { in passdone() 1125 switch (ccb->ccb_h.func_code) { in passiocleanup() 1301 switch(ccb->ccb_h.func_code) { in passmemsetup() 1769 if (inccb->ccb_h.func_code == XPT_SCSI_IO) in passdoioctl() 1782 if (inccb->ccb_h.func_code & XPT_FC_XPT_ONLY) { in passdoioctl() 1785 inccb->ccb_h.func_code); in passdoioctl() 1801 if ((inccb->ccb_h.func_code & XPT_FC_QUEUED) in passdoioctl() 1802 && ((inccb->ccb_h.func_code & XPT_FC_USER_CCB) == 0)) { in passdoioctl() 1880 if (ccb->ccb_h.func_code == XPT_SCSI_IO) in passdoioctl() 1905 if (ccb->ccb_h.func_code & XPT_FC_XPT_ONLY) { in passdoioctl() [all …]
|
/freebsd/sys/cam/ |
H A D | cam_periph.c | 776 ccb.ccb_h.func_code = XPT_GDEV_TYPE; in camperiphfree() 818 switch(ccb->ccb_h.func_code) { in cam_periph_mapmem() 942 ccb->ccb_h.func_code != XPT_MMC_IO) { in cam_periph_mapmem() 1018 switch (ccb->ccb_h.func_code) { in cam_periph_unmapmem() 1130 ccb->ccb_h.func_code = XPT_GDEVLIST; in cam_periph_ioctl() 1194 if ((ccb->ccb_h.func_code & XPT_FC_QUEUED) != 0) { in cam_periph_ccbwait() 1202 "status=%#x, index=%d", __func__, ccb, ccb->ccb_h.func_code, in cam_periph_ccbwait() 1228 ccb->ccb_h.func_code, ccb->ccb_h.flags)); in cam_periph_runccb() 1235 (ccb->ccb_h.func_code == XPT_SCSI_IO || in cam_periph_runccb() 1236 ccb->ccb_h.func_code == XPT_ATA_IO || in cam_periph_runccb() [all …]
|
H A D | cam.c | 337 switch (ccb->ccb_h.func_code) { in cam_error_string() 396 switch (ccb->ccb_h.func_code) { in cam_error_string() 418 ccb->ccb_h.func_code); in cam_error_string() 444 switch (ccb->ccb_h.func_code) { in cam_error_string() 586 switch (ccb_h->func_code) { in memdesc_ccb() 626 ccb_h->func_code); in memdesc_ccb()
|
H A D | cam_queue.h | 162 KASSERT((new_ccb->ccb_h.func_code & XPT_FC_QUEUED) != 0 && in cam_ccbq_insert_ccb() 163 (new_ccb->ccb_h.func_code & XPT_FC_USER_CCB) == 0, in cam_ccbq_insert_ccb() 165 new_ccb->ccb_h.func_code)); in cam_ccbq_insert_ccb()
|
H A D | cam_xpt.c | 421 if (inccb->ccb_h.func_code == XPT_SCSI_IO) in xptdoioctl() 432 switch (inccb->ccb_h.func_code) { in xptdoioctl() 452 switch(inccb->ccb_h.func_code) { in xptdoioctl() 605 if (ccb->ccb_h.func_code == XPT_SCSI_IO) in xptdoioctl() 837 ccb->ccb_h.func_code = XPT_SCAN_BUS; in xpt_rescan() 840 ccb->ccb_h.func_code = XPT_SCAN_TGT; in xpt_rescan() 843 ccb->ccb_h.func_code = XPT_SCAN_LUN; in xpt_rescan() 851 ("xpt_rescan: func %#x %s\n", ccb->ccb_h.func_code, in xpt_rescan() 852 xpt_action_name(ccb->ccb_h.func_code))); in xpt_rescan() 1168 cdai.ccb_h.func_code = XPT_DEV_ADVINFO; in xpt_getattr() [all …]
|
H A D | cam_ccb.h | 269 (((ccb)->ccb_h.func_code & XPT_FC_DEV_QUEUED) == XPT_FC_DEV_QUEUED) 271 (((ccb)->ccb_h.func_code & XPT_FC_QUEUED) != 0) 361 xpt_opcode func_code; /* XPT function code */ 1410 csio->ccb_h.func_code = XPT_SCSI_IO; 1434 csio->ccb_h.func_code = XPT_CONT_TARGET_IO; in cam_fill_ataio() 1456 ataio->ccb_h.func_code = XPT_ATA_IO; in cam_fill_smpio() 1481 smpio->ccb_h.func_code = XPT_SMP_IO; in cam_fill_mmcio() 1499 mmcio->ccb_h.func_code = XPT_MMC_IO; in cam_fill_mmcio() 1547 nvmeio->ccb_h.func_code = XPT_NVME_IO; in cam_fill_nvmeadmin() 1562 nvmeio->ccb_h.func_code 360 xpt_opcode func_code; /* XPT function code */ global() member [all...] |
/freebsd/share/examples/scsi_target/ |
H A D | scsi_target.c | 385 atio->ccb_h.func_code = XPT_ACCEPT_TARGET_IO; in init_ccbs() 394 inot->ccb_h.func_code = XPT_IMMEDIATE_NOTIFY; in init_ccbs() 497 switch (ccb_h->func_code) { in request_loop() 507 ccb_h->func_code); in request_loop() 562 switch (ccb->ccb_h.func_code) { in handle_read() 607 ccb->ccb_h.func_code); in handle_read() 833 warnx("sending ccb (%#x)", ccb->ccb_h.func_code); in send_ccb() 879 ctio->ccb_h.func_code = XPT_CONT_TARGET_IO; in get_ctio() 897 switch (ccb->ccb_h.func_code) { in free_ccb() 925 cpi.ccb_h.func_code = XPT_PATH_INQ; in get_sim_flags() [all …]
|
/freebsd/sys/cam/ata/ |
H A D | ata_xpt.c | 396 cts.ccb_h.func_code = XPT_GET_TRAN_SETTINGS; in aprobestart() 419 cts.ccb_h.func_code = XPT_SET_TRAN_SETTINGS; in aprobestart() 432 cts.ccb_h.func_code = XPT_GET_TRAN_SETTINGS; in aprobestart() 532 cts.ccb_h.func_code = XPT_GET_TRAN_SETTINGS; in aprobestart() 548 cts.ccb_h.func_code = XPT_SET_TRAN_SETTINGS; in aprobestart() 563 cts.ccb_h.func_code = XPT_GET_TRAN_SETTINGS; in aprobestart() 594 cts.ccb_h.func_code = XPT_GET_TRAN_SETTINGS; in aprobestart() 614 cts.ccb_h.func_code = XPT_SET_TRAN_SETTINGS; in aprobestart() 715 cts.ccb_h.func_code = XPT_GET_TRAN_SETTINGS; in aproberequestdefaultnegotiation() 721 cts.ccb_h.func_code = XPT_SET_TRAN_SETTINGS; in aproberequestdefaultnegotiation() [all …]
|
/freebsd/sys/cam/ctl/ |
H A D | scsi_ctl.c | 481 ccb.ccb_h.func_code = XPT_EN_LUN; in ctlferegister() 526 new_ccb->ccb_h.func_code = XPT_ACCEPT_TARGET_IO; in ctlferegister() 573 new_ccb->ccb_h.func_code = XPT_IMMEDIATE_NOTIFY; in ctlferegister() 616 ccb.ccb_h.func_code = XPT_ABORT; in ctlfeoninvalidate() 627 ccb.ccb_h.func_code = XPT_EN_LUN; in ctlfeoninvalidate() 815 KASSERT(atio->ccb_h.func_code == XPT_ACCEPT_TARGET_IO, in ctlfestart() 816 ("func_code %#x is not ATIO", atio->ccb_h.func_code)); in ctlfestart() 817 start_ccb->ccb_h.func_code = XPT_ABORT; in ctlfestart() 939 switch (ccb->ccb_h.func_code) { in ctlfe_free_ccb() [all...] |
H A D | ctl_frontend_cam_sim.c | 438 if (ccb->ccb_h.func_code == XPT_SCSI_IO) { in cfcs_done() 488 switch (ccb->ccb_h.func_code) { in cfcs_action() 583 ccb->ccb_h.func_code, err); in cfcs_action() 597 if (abort_ccb->ccb_h.func_code != XPT_SCSI_IO) { in cfcs_action() 657 ccb->ccb_h.func_code, err); in cfcs_action() 716 if (ccb->ccb_h.func_code == XPT_RESET_DEV) in cfcs_action() 725 if (ccb->ccb_h.func_code == XPT_RESET_BUS) in cfcs_action() 734 ccb->ccb_h.func_code, err); in cfcs_action() 784 ccb->ccb_h.func_code); in cfcs_action()
|
/freebsd/sys/powerpc/mpc85xx/ |
H A D | fsl_sata.c | 729 if ((ccb->ccb_h.func_code & XPT_FC_QUEUED) == 0 || in fsl_sata_done() 857 if ((ccb->ccb_h.func_code == XPT_ATA_IO) && in fsl_sata_check_collision() 870 if ((ccb->ccb_h.func_code == XPT_ATA_IO) && in fsl_sata_check_collision() 890 ("fsl_sata_begin_transaction func_code=0x%x\n", ccb->ccb_h.func_code)); in fsl_sata_begin_transaction() 893 if ((ccb->ccb_h.func_code == XPT_ATA_IO) && in fsl_sata_begin_transaction() 916 if ((ccb->ccb_h.func_code == XPT_ATA_IO) && in fsl_sata_begin_transaction() 922 if ((ccb->ccb_h.func_code == XPT_ATA_IO) && in fsl_sata_begin_transaction() 1000 ("fsl_sata_execute_transaction func_code=0x%x\n", ccb->ccb_h.func_code)); in fsl_sata_execute_transaction() 1014 if ((ccb->ccb_h.func_code == XPT_ATA_IO) && in fsl_sata_execute_transaction() 1029 (ccb->ccb_h.func_code == XPT_SCSI_IO ? FSL_SATA_CMD_ATAPI : 0) | in fsl_sata_execute_transaction() [all …]
|
/freebsd/sys/dev/aic7xxx/ |
H A D | aic79xx_osm.c | 269 csa.ccb_h.func_code = XPT_SASYNC_CB; in ahd_attach() 311 if (ccb->ccb_h.func_code == XPT_CONT_TARGET_IO) 350 if (ccb->ccb_h.func_code == XPT_CONT_TARGET_IO) { in ahd_done() 478 switch (ccb->ccb_h.func_code) { in ahd_action() 491 if (ccb->ccb_h.func_code == XPT_CONT_TARGET_IO) { in ahd_action() 501 if (ccb->ccb_h.func_code == XPT_ACCEPT_TARGET_IO) { in ahd_action() 530 && (ccb->ccb_h.func_code == XPT_SCSI_IO in ahd_action() 531 || ccb->ccb_h.func_code == XPT_RESET_DEV)) { in ahd_action() 544 || ccb->ccb_h.func_code == XPT_CONT_TARGET_IO) { in ahd_action() 574 if (ccb->ccb_h.func_code in ahd_action() [all...] |
H A D | aic7xxx_osm.c | 215 csa.ccb_h.func_code = XPT_SASYNC_CB; in ahc_attach() 256 csa.ccb_h.func_code = XPT_SASYNC_CB; in ahc_attach() 310 if (ccb->ccb_h.func_code == XPT_CONT_TARGET_IO) 358 if (ccb->ccb_h.func_code == XPT_CONT_TARGET_IO) { in ahc_done() 461 switch (ccb->ccb_h.func_code) { in ahc_action() 473 if (ccb->ccb_h.func_code == XPT_CONT_TARGET_IO) { in ahc_action() 483 if (ccb->ccb_h.func_code == XPT_ACCEPT_TARGET_IO) { in ahc_action() 508 && (ccb->ccb_h.func_code == XPT_SCSI_IO in ahc_action() 509 || ccb->ccb_h.func_code == XPT_RESET_DEV)) { in ahc_action() 542 if (ccb->ccb_h.func_code in ahc_action() [all...] |
/freebsd/sys/cam/nvme/ |
H A D | nvme_xpt.c | 463 done_ccb->ccb_h.func_code = XPT_GDEV_TYPE; in nvme_probe_done() 638 cts.ccb_h.func_code = XPT_SET_TRAN_SETTINGS; in nvme_device_transport() 743 ("nvme_action: func= %#x\n", start_ccb->ccb_h.func_code)); in nvme_action() 745 switch (start_ccb->ccb_h.func_code) { in nvme_action() 798 cts.ccb_h.func_code = XPT_GET_TRAN_SETTINGS; in nvme_announce_periph_sbuf() 838 if (ccb->ccb_h.func_code != XPT_NVME_IO && in nvme_proto_debug_out() 839 ccb->ccb_h.func_code != XPT_NVME_ADMIN) in nvme_proto_debug_out() 844 ccb->ccb_h.func_code == XPT_NVME_ADMIN), in nvme_proto_debug_out()
|
/freebsd/lib/libcam/ |
H A D | camlib.c | 288 ccb.ccb_h.func_code = XPT_DEV_MATCH; in cam_open_btl() 438 ccb.ccb_h.func_code = XPT_GDEVLIST; in cam_lookup_pass() 559 ccb.ccb_h.func_code = XPT_GDEVLIST; in cam_real_open_device() 597 ccb.ccb_h.func_code = XPT_PATH_INQ; in cam_real_open_device() 612 ccb.ccb_h.func_code = XPT_GDEV_TYPE; in cam_real_open_device() 633 ccb.ccb_h.func_code = XPT_GET_TRAN_SETTINGS; in cam_real_open_device()
|
/freebsd/sys/cam/mmc/ |
H A D | mmc_sim.c | 63 switch (mmc_sim->ccb->ccb_h.func_code) { in mmc_sim_task() 79 panic("Unsupported ccb func %x\n", mmc_sim->ccb->ccb_h.func_code); in mmc_sim_task() 105 switch (ccb->ccb_h.func_code) { in mmc_cam_sim_default_action()
|
H A D | mmc_da.c | 248 KASSERT(ccb->ccb_h.func_code == XPT_MMC_IO, in mmc_handle_reply() 250 ccb, ccb->ccb_h.func_code)); in mmc_handle_reply() 697 cgd.ccb_h.func_code = XPT_GDEV_TYPE; in sddaasync() 1059 ccb->ccb_h.func_code = XPT_SET_TRAN_SETTINGS; in mmc_set_timing() 1133 ccb->ccb_h.func_code = XPT_SET_TRAN_SETTINGS; in sdda_set_bus_width() 1189 ccb->ccb_h.func_code = XPT_GET_TRAN_SETTINGS; in sdda_get_host_caps() 1209 ccb->ccb_h.func_code = XPT_GET_TRAN_SETTINGS; in sdda_get_max_data() 1302 start_ccb->ccb_h.func_code = XPT_GET_TRAN_SETTINGS; in sdda_start_init() 1408 start_ccb->ccb_h.func_code = XPT_SET_TRAN_SETTINGS; in sdda_start_init() 1419 start_ccb->ccb_h.func_code = XPT_SET_TRAN_SETTINGS; in sdda_start_init() [all …]
|
/freebsd/sys/dev/nvmf/host/ |
H A D | nvmf_sim.c | 122 if (nvmeio->ccb_h.func_code == XPT_NVME_IO) in nvmf_sim_io() 162 ccb->ccb_h.func_code)); in nvmf_sim_action() 164 switch (ccb->ccb_h.func_code) { in nvmf_sim_action() 240 ccb->ccb_h.func_code); in nvmf_sim_action()
|
/freebsd/sys/dev/siis/ |
H A D | siis.c | 953 if ((ccb->ccb_h.func_code == XPT_ATA_IO) && in siis_check_collision() 960 if ((ccb->ccb_h.func_code == XPT_ATA_IO) && in siis_check_collision() 983 if ((ccb->ccb_h.func_code == XPT_ATA_IO) && in siis_begin_transaction() 993 if ((ccb->ccb_h.func_code == XPT_ATA_IO) && in siis_begin_transaction() 997 if ((ccb->ccb_h.func_code == XPT_ATA_IO) && in siis_begin_transaction() 1034 if (slot->ccb->ccb_h.func_code == XPT_ATA_IO) in siis_dmasetprd() 1068 if (ccb->ccb_h.func_code == XPT_ATA_IO) { in siis_execute_transaction() 1086 } else if (ccb->ccb_h.func_code == XPT_SCSI_IO) { in siis_execute_transaction() 1094 if ((ccb->ccb_h.func_code == XPT_ATA_IO) && in siis_execute_transaction() 1180 if ((ccb->ccb_h.func_code in siis_timeout() [all...] |
/freebsd/usr.sbin/mptutil/ |
H A D | mpt_cam.c | 73 ccb.ccb_h.func_code = XPT_DEV_MATCH; in fetch_path_id() 144 ccb.ccb_h.func_code = XPT_DEV_MATCH; in mpt_query_disk() 412 ccb.ccb_h.func_code = XPT_DEV_MATCH; in mpt_fetch_disks() 541 ccb.ccb_h.func_code = XPT_SCAN_BUS; in mpt_rescan_bus() 546 ccb.ccb_h.func_code = XPT_SCAN_LUN; in mpt_rescan_bus()
|
/freebsd/sys/dev/smartpqi/ |
H A D | smartpqi_cam.c | 386 if (csio->ccb_h.func_code == XPT_SCSI_IO) { in os_raid_response_error() 719 ccb->ccb_h.func_code = XPT_SCAN_LUN; in smartpqi_lun_rescan() 946 DBG_ERR("dvp is null, tmf type : 0x%x\n", ccb_h->func_code); in pqisrc_scsi_abort_task() 987 DBG_ERR("dvp is null, tmf type : 0x%x\n", ccb_h->func_code); in pqisrc_scsi_abort_task_set() 1038 DBG_ERR("bad target %d, tmf type : 0x%x\n", ccb_h->target_id, ccb_h->func_code); in pqisrc_target_reset() 1076 switch (ccb_h->func_code) { in smartpqi_cam_action() 1178 crs.ccb_h.func_code = XPT_REL_SIMQ; in smartpqi_adjust_queue_depth() 1306 csa.ccb_h.func_code = XPT_SASYNC_CB; in register_sim() 1338 csa.ccb_h.func_code = XPT_SASYNC_CB; in deregister_sim()
|
/freebsd/sys/dev/ahci/ |
H A D | ahci.c | 1304 if ((ccb->ccb_h.func_code & XPT_FC_QUEUED) == 0 || in ahci_done() 1534 if ((ccb->ccb_h.func_code == XPT_ATA_IO) && in ahci_check_collision() 1566 if ((ccb->ccb_h.func_code == XPT_ATA_IO) && in ahci_check_collision() 1587 if ((ccb->ccb_h.func_code == XPT_ATA_IO) && in ahci_begin_transaction() 1609 if ((ccb->ccb_h.func_code == XPT_ATA_IO) && in ahci_begin_transaction() 1615 if ((ccb->ccb_h.func_code == XPT_ATA_IO) && in ahci_begin_transaction() 1686 (ccb->ccb_h.func_code == XPT_SCSI_IO ? in ahci_execute_transaction() 1692 if ((ccb->ccb_h.func_code == XPT_ATA_IO) && in ahci_execute_transaction() 1717 if ((ccb->ccb_h.func_code == XPT_ATA_IO) && in ahci_execute_transaction() 1731 if (ccb->ccb_h.func_code in ahci_execute_transaction() [all...] |