/freebsd-13-stable/sys/cam/scsi/ |
H A D | scsi_target.c | 63 int func_code; member in struct:targ_cmd_descr 157 static size_t targccblen(xpt_opcode func_code); 281 cdbg.ccb_h.func_code = XPT_DEBUG; 367 en_ccb.ccb_h.func_code = XPT_EN_LUN; 530 int func_code, priority; local 550 func_code = fuword32(&user_ccb->ccb_h.func_code); 551 switch (func_code) { 556 ccb = targgetccb(softc, func_code, priority); 559 descr->func_code 1118 targccblen(xpt_opcode func_code) argument [all...] |
H A D | scsi_targ_bh.c | 245 immed_ccb.ccb_h.func_code = XPT_EN_LUN; 285 atio->ccb_h.func_code = XPT_ACCEPT_TARGET_IO; 320 inot->ccb_h.func_code = XPT_IMMEDIATE_NOTIFY; 361 ccb.cab.ccb_h.func_code = XPT_ABORT; 369 ccb.cab.ccb_h.func_code = XPT_ABORT; 378 ccb.cel.ccb_h.func_code = XPT_EN_LUN; 532 switch (done_ccb->ccb_h.func_code) {
|
H A D | scsi_xpt.c | 1040 cts.ccb_h.func_code = XPT_GET_TRAN_SETTINGS; 1046 cts.ccb_h.func_code = XPT_SET_TRAN_SETTINGS; 1062 cts.ccb_h.func_code = XPT_GET_TRAN_SETTINGS; 1140 cts.ccb_h.func_code = XPT_SET_TRAN_SETTINGS; 1721 done_ccb->ccb_h.func_code = XPT_GDEV_TYPE; 1782 done_ccb->ccb_h.func_code = XPT_GDEV_TYPE; 1942 switch (request_ccb->ccb_h.func_code) { 1962 work_ccb->ccb_h.func_code = XPT_PATH_INQ; 1990 reset_ccb->ccb_h.func_code = XPT_RESET_BUS; 2025 if (request_ccb->ccb_h.func_code [all...] |
H A D | scsi_pass.c | 929 switch (done_ccb->ccb_h.func_code) { 1116 switch (ccb->ccb_h.func_code) { 1295 switch(ccb->ccb_h.func_code) { 1763 if (inccb->ccb_h.func_code == XPT_SCSI_IO) 1776 if (inccb->ccb_h.func_code & XPT_FC_XPT_ONLY) { 1779 inccb->ccb_h.func_code); 1795 if ((inccb->ccb_h.func_code & XPT_FC_QUEUED) 1796 && ((inccb->ccb_h.func_code & XPT_FC_USER_CCB) == 0)) { 1874 if (ccb->ccb_h.func_code == XPT_SCSI_IO) 1899 if (ccb->ccb_h.func_code [all...] |
/freebsd-13-stable/sys/cam/ |
H A D | cam_compat.c | 138 hdr->func_code = hdr17->func_code; 154 if (ccb->ccb_h.func_code == XPT_SET_TRAN_SETTINGS) { 181 hdr17->func_code = hdr->func_code; 192 if (ccb->ccb_h.func_code == XPT_PATH_INQ) { 227 } else if (ccb->ccb_h.func_code == XPT_GET_TRAN_SETTINGS) { 242 } else if (ccb->ccb_h.func_code == XPT_DEV_MATCH) { 276 hdr->func_code = hdr18->func_code; [all...] |
H A D | cam_periph.c | 751 ccb.ccb_h.func_code = XPT_GDEV_TYPE; 793 switch(ccb->ccb_h.func_code) { 927 ccb->ccb_h.func_code != XPT_MMC_IO) { 1004 switch (ccb->ccb_h.func_code) { 1113 ccb->ccb_h.func_code = XPT_GDEVLIST; 1177 if ((ccb->ccb_h.func_code & XPT_FC_QUEUED) != 0) { 1184 ("%s: proceeding with incomplete ccb: ccb=%p, func_code=%#x, " 1185 "status=%#x, index=%d", __func__, ccb, ccb->ccb_h.func_code, 1210 ("%s: ccb=%p, func_code=%#x, flags=%#x", __func__, ccb, 1211 ccb->ccb_h.func_code, cc [all...] |
H A D | cam_compat.h | 64 xpt_opcode func_code; /* XPT function code */ member in struct:ccb_hdr_0x17 152 xpt_opcode func_code; /* XPT function code */ member in struct:ccb_hdr_0x18
|
H A D | cam_queue.h | 188 KASSERT((new_ccb->ccb_h.func_code & XPT_FC_QUEUED) != 0 && 189 (new_ccb->ccb_h.func_code & XPT_FC_USER_CCB) == 0, 190 ("%s: Cannot queue ccb %p func_code %#x", __func__, new_ccb, 191 new_ccb->ccb_h.func_code));
|
H A D | cam.c | 355 switch (ccb->ccb_h.func_code) { 414 switch (ccb->ccb_h.func_code) { 436 ccb->ccb_h.func_code); 462 switch (ccb->ccb_h.func_code) {
|
H A D | cam_xpt.c | 427 if (inccb->ccb_h.func_code == XPT_SCSI_IO) 438 switch (inccb->ccb_h.func_code) { 458 switch(inccb->ccb_h.func_code) { 612 if (ccb->ccb_h.func_code == XPT_SCSI_IO) 844 ccb->ccb_h.func_code = XPT_SCAN_BUS; 847 ccb->ccb_h.func_code = XPT_SCAN_TGT; 850 ccb->ccb_h.func_code = XPT_SCAN_LUN; 858 ("xpt_rescan: func %#x %s\n", ccb->ccb_h.func_code, 859 xpt_action_name(ccb->ccb_h.func_code))); 1242 cdai.ccb_h.func_code [all...] |
H A D | cam_ccb.h | 263 (((ccb)->ccb_h.func_code & XPT_FC_DEV_QUEUED) == XPT_FC_DEV_QUEUED) 265 (((ccb)->ccb_h.func_code & XPT_FC_QUEUED) != 0) 347 xpt_opcode func_code; /* XPT function code */ member in struct:ccb_hdr 1388 csio->ccb_h.func_code = XPT_SCSI_IO; 1412 csio->ccb_h.func_code = XPT_CONT_TARGET_IO; 1434 ataio->ccb_h.func_code = XPT_ATA_IO; 1459 smpio->ccb_h.func_code = XPT_SMP_IO; 1477 mmcio->ccb_h.func_code = XPT_MMC_IO; 1519 nvmeio->ccb_h.func_code = XPT_NVME_IO; 1534 nvmeio->ccb_h.func_code [all...] |
/freebsd-13-stable/sys/cam/ata/ |
H A D | ata_xpt.c | 412 cts.ccb_h.func_code = XPT_GET_TRAN_SETTINGS; 435 cts.ccb_h.func_code = XPT_SET_TRAN_SETTINGS; 448 cts.ccb_h.func_code = XPT_GET_TRAN_SETTINGS; 548 cts.ccb_h.func_code = XPT_GET_TRAN_SETTINGS; 564 cts.ccb_h.func_code = XPT_SET_TRAN_SETTINGS; 579 cts.ccb_h.func_code = XPT_GET_TRAN_SETTINGS; 610 cts.ccb_h.func_code = XPT_GET_TRAN_SETTINGS; 630 cts.ccb_h.func_code = XPT_SET_TRAN_SETTINGS; 730 cts.ccb_h.func_code = XPT_GET_TRAN_SETTINGS; 736 cts.ccb_h.func_code [all...] |
/freebsd-13-stable/share/examples/scsi_target/ |
H A D | scsi_target.c | 383 atio->ccb_h.func_code = XPT_ACCEPT_TARGET_IO; 392 inot->ccb_h.func_code = XPT_IMMEDIATE_NOTIFY; 495 switch (ccb_h->func_code) { 505 ccb_h->func_code); 560 switch (ccb->ccb_h.func_code) { 605 ccb->ccb_h.func_code); 831 warnx("sending ccb (%#x)", ccb->ccb_h.func_code); 877 ctio->ccb_h.func_code = XPT_CONT_TARGET_IO; 895 switch (ccb->ccb_h.func_code) { 923 cpi.ccb_h.func_code [all...] |
/freebsd-13-stable/sys/cam/ctl/ |
H A D | scsi_ctl.c | 483 ccb.ccb_h.func_code = XPT_EN_LUN; 528 new_ccb->ccb_h.func_code = XPT_ACCEPT_TARGET_IO; 575 new_ccb->ccb_h.func_code = XPT_IMMEDIATE_NOTIFY; 617 ccb.ccb_h.func_code = XPT_ABORT; 628 ccb.ccb_h.func_code = XPT_EN_LUN; 816 KASSERT(atio->ccb_h.func_code == XPT_ACCEPT_TARGET_IO, 817 ("func_code %#x is not ATIO", atio->ccb_h.func_code)); 818 start_ccb->ccb_h.func_code = XPT_ABORT; 940 switch (ccb->ccb_h.func_code) { [all...] |
H A D | ctl_frontend_cam_sim.c | 441 if (ccb->ccb_h.func_code == XPT_SCSI_IO) { 491 switch (ccb->ccb_h.func_code) { 586 ccb->ccb_h.func_code, err); 600 if (abort_ccb->ccb_h.func_code != XPT_SCSI_IO) { 660 ccb->ccb_h.func_code, err); 719 if (ccb->ccb_h.func_code == XPT_RESET_DEV) 728 if (ccb->ccb_h.func_code == XPT_RESET_BUS) 737 ccb->ccb_h.func_code, err); 787 ccb->ccb_h.func_code);
|
/freebsd-13-stable/sys/dev/aic7xxx/ |
H A D | aic79xx_osm.c | 271 csa.ccb_h.func_code = XPT_SASYNC_CB; 339 if (ccb->ccb_h.func_code == XPT_CONT_TARGET_IO) { 467 switch (ccb->ccb_h.func_code) { 480 if (ccb->ccb_h.func_code == XPT_CONT_TARGET_IO) { 490 if (ccb->ccb_h.func_code == XPT_ACCEPT_TARGET_IO) { 519 && (ccb->ccb_h.func_code == XPT_SCSI_IO 520 || ccb->ccb_h.func_code == XPT_RESET_DEV)) { 533 || ccb->ccb_h.func_code == XPT_CONT_TARGET_IO) { 563 if (ccb->ccb_h.func_code == XPT_RESET_DEV) { 571 if (ccb->ccb_h.func_code [all...] |
H A D | aic7xxx_osm.c | 219 csa.ccb_h.func_code = XPT_SASYNC_CB; 260 csa.ccb_h.func_code = XPT_SASYNC_CB; 349 if (ccb->ccb_h.func_code == XPT_CONT_TARGET_IO) { 452 switch (ccb->ccb_h.func_code) { 464 if (ccb->ccb_h.func_code == XPT_CONT_TARGET_IO) { 474 if (ccb->ccb_h.func_code == XPT_ACCEPT_TARGET_IO) { 499 && (ccb->ccb_h.func_code == XPT_SCSI_IO 500 || ccb->ccb_h.func_code == XPT_RESET_DEV)) { 533 if (ccb->ccb_h.func_code == XPT_RESET_DEV) { 539 if (ccb->ccb_h.func_code [all...] |
/freebsd-13-stable/lib/libcam/ |
H A D | camlib.c | 288 ccb.ccb_h.func_code = XPT_DEV_MATCH; 438 ccb.ccb_h.func_code = XPT_GDEVLIST; 559 ccb.ccb_h.func_code = XPT_GDEVLIST; 597 ccb.ccb_h.func_code = XPT_PATH_INQ; 612 ccb.ccb_h.func_code = XPT_GDEV_TYPE; 633 ccb.ccb_h.func_code = XPT_GET_TRAN_SETTINGS;
|
/freebsd-13-stable/sys/powerpc/mpc85xx/ |
H A D | fsl_sata.c | 732 if ((ccb->ccb_h.func_code & XPT_FC_QUEUED) == 0 || 860 if ((ccb->ccb_h.func_code == XPT_ATA_IO) && 873 if ((ccb->ccb_h.func_code == XPT_ATA_IO) && 893 ("fsl_sata_begin_transaction func_code=0x%x\n", ccb->ccb_h.func_code)); 896 if ((ccb->ccb_h.func_code == XPT_ATA_IO) && 919 if ((ccb->ccb_h.func_code == XPT_ATA_IO) && 925 if ((ccb->ccb_h.func_code == XPT_ATA_IO) && 1003 ("fsl_sata_execute_transaction func_code=0x%x\n", ccb->ccb_h.func_code)); [all...] |
/freebsd-13-stable/sys/cam/nvme/ |
H A D | nvme_xpt.c | 464 done_ccb->ccb_h.func_code = XPT_GDEV_TYPE; 638 cts.ccb_h.func_code = XPT_SET_TRAN_SETTINGS; 740 ("nvme_action: func= %#x\n", start_ccb->ccb_h.func_code)); 742 switch (start_ccb->ccb_h.func_code) { 796 cts.ccb_h.func_code = XPT_GET_TRAN_SETTINGS; 843 if (ccb->ccb_h.func_code != XPT_NVME_IO && 844 ccb->ccb_h.func_code != XPT_NVME_ADMIN) 849 ccb->ccb_h.func_code == XPT_NVME_ADMIN),
|
/freebsd-13-stable/sys/dev/siis/ |
H A D | siis.c | 958 if ((ccb->ccb_h.func_code == XPT_ATA_IO) && 965 if ((ccb->ccb_h.func_code == XPT_ATA_IO) && 988 if ((ccb->ccb_h.func_code == XPT_ATA_IO) && 998 if ((ccb->ccb_h.func_code == XPT_ATA_IO) && 1002 if ((ccb->ccb_h.func_code == XPT_ATA_IO) && 1039 if (slot->ccb->ccb_h.func_code == XPT_ATA_IO) 1073 if (ccb->ccb_h.func_code == XPT_ATA_IO) { 1091 } else if (ccb->ccb_h.func_code == XPT_SCSI_IO) { 1099 if ((ccb->ccb_h.func_code == XPT_ATA_IO) && 1185 if ((ccb->ccb_h.func_code [all...] |
/freebsd-13-stable/usr.sbin/mptutil/ |
H A D | mpt_cam.c | 76 ccb.ccb_h.func_code = XPT_DEV_MATCH; 147 ccb.ccb_h.func_code = XPT_DEV_MATCH; 415 ccb.ccb_h.func_code = XPT_DEV_MATCH; 544 ccb.ccb_h.func_code = XPT_SCAN_BUS; 549 ccb.ccb_h.func_code = XPT_SCAN_LUN;
|
/freebsd-13-stable/sys/dev/smartpqi/ |
H A D | smartpqi_cam.c | 370 if (csio->ccb_h.func_code == XPT_SCSI_IO) { 701 ccb->ccb_h.func_code = XPT_SCAN_LUN; 929 DBG_ERR("dvp is null, tmf type : 0x%x\n", ccb_h->func_code); 969 DBG_ERR("dvp is null, tmf type : 0x%x\n", ccb_h->func_code); 1005 DBG_ERR("bad target %d, tmf type : 0x%x\n", ccb_h->target_id, ccb_h->func_code); 1043 switch (ccb_h->func_code) { 1145 crs.ccb_h.func_code = XPT_REL_SIMQ; 1268 csa.ccb_h.func_code = XPT_SASYNC_CB; 1301 csa.ccb_h.func_code = XPT_SASYNC_CB;
|
/freebsd-13-stable/sys/dev/nvme/ |
H A D | nvme_sim.c | 118 if (ccb->ccb_h.func_code == XPT_NVME_IO) 149 ccb->ccb_h.func_code)); 153 switch (ccb->ccb_h.func_code) {
|
/freebsd-13-stable/sys/dev/mmcnull/ |
H A D | mmcnull.c | 354 device_printf(sc->dev, "action: func_code %0x\n", ccb->ccb_h.func_code); 356 switch (ccb->ccb_h.func_code) { 428 device_printf(sc->dev, "Func code %d is unknown\n", ccb->ccb_h.func_code);
|