Searched refs:func_code (Results 1 - 25 of 102) sorted by relevance

12345

/freebsd-12-stable/sys/cam/scsi/
H A Dscsi_target.c65 int func_code; member in struct:targ_cmd_descr
159 static size_t targccblen(xpt_opcode func_code);
283 cdbg.ccb_h.func_code = XPT_DEBUG;
369 en_ccb.ccb_h.func_code = XPT_EN_LUN;
532 int func_code, priority; local
552 func_code = fuword32(&user_ccb->ccb_h.func_code);
553 switch (func_code) {
558 ccb = targgetccb(softc, func_code, priority);
561 descr->func_code
1121 targccblen(xpt_opcode func_code) argument
[all...]
H A Dscsi_targ_bh.c245 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;
533 switch (done_ccb->ccb_h.func_code) {
H A Dscsi_xpt.c1040 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;
1141 cts.ccb_h.func_code = XPT_SET_TRAN_SETTINGS;
1724 done_ccb->ccb_h.func_code = XPT_GDEV_TYPE;
1785 done_ccb->ccb_h.func_code = XPT_GDEV_TYPE;
1945 switch (request_ccb->ccb_h.func_code) {
1965 work_ccb->ccb_h.func_code = XPT_PATH_INQ;
1993 reset_ccb->ccb_h.func_code = XPT_RESET_BUS;
2029 if (request_ccb->ccb_h.func_code
[all...]
H A Dscsi_pass.c930 switch (done_ccb->ccb_h.func_code) {
1118 switch (ccb->ccb_h.func_code) {
1306 switch(ccb->ccb_h.func_code) {
1797 if (inccb->ccb_h.func_code == XPT_SCSI_IO)
1810 if (inccb->ccb_h.func_code & XPT_FC_XPT_ONLY) {
1813 inccb->ccb_h.func_code);
1829 if ((inccb->ccb_h.func_code & XPT_FC_QUEUED)
1830 && ((inccb->ccb_h.func_code & XPT_FC_USER_CCB) == 0)) {
1908 if (ccb->ccb_h.func_code == XPT_SCSI_IO)
1933 if (ccb->ccb_h.func_code
[all...]
/freebsd-12-stable/sys/cam/
H A Dcam_compat.c138 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 Dcam_periph.c753 ccb.ccb_h.func_code = XPT_GDEV_TYPE;
796 switch(ccb->ccb_h.func_code) {
942 ccb->ccb_h.func_code != XPT_MMC_IO) {
1026 switch (ccb->ccb_h.func_code) {
1135 ccb->ccb_h.func_code = XPT_GDEVLIST;
1200 if ((ccb->ccb_h.func_code & XPT_FC_QUEUED) != 0) {
1207 ("%s: proceeding with incomplete ccb: ccb=%p, func_code=%#x, "
1208 "status=%#x, index=%d", __func__, ccb, ccb->ccb_h.func_code,
1233 ("%s: ccb=%p, func_code=%#x, flags=%#x", __func__, ccb,
1234 ccb->ccb_h.func_code, cc
[all...]
H A Dcam_compat.h65 xpt_opcode func_code; /* XPT function code */ member in struct:ccb_hdr_0x17
153 xpt_opcode func_code; /* XPT function code */ member in struct:ccb_hdr_0x18
H A Dcam_queue.h202 KASSERT((new_ccb->ccb_h.func_code & XPT_FC_QUEUED) != 0 &&
203 (new_ccb->ccb_h.func_code & XPT_FC_USER_CCB) == 0,
204 ("%s: Cannot queue ccb %p func_code %#x", __func__, new_ccb,
205 new_ccb->ccb_h.func_code));
H A Dcam.c356 switch (ccb->ccb_h.func_code) {
415 switch (ccb->ccb_h.func_code) {
437 ccb->ccb_h.func_code);
463 switch (ccb->ccb_h.func_code) {
H A Dcam_xpt.c431 if (inccb->ccb_h.func_code == XPT_SCSI_IO)
442 switch (inccb->ccb_h.func_code) {
462 switch(inccb->ccb_h.func_code) {
617 if (ccb->ccb_h.func_code == XPT_SCSI_IO)
850 ccb->ccb_h.func_code = XPT_SCAN_BUS;
853 ccb->ccb_h.func_code = XPT_SCAN_TGT;
856 ccb->ccb_h.func_code = XPT_SCAN_LUN;
864 ("xpt_rescan: func %#x %s\n", ccb->ccb_h.func_code,
865 xpt_action_name(ccb->ccb_h.func_code)));
1249 cdai.ccb_h.func_code
[all...]
H A Dcam_ccb.h263 (((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
1363 csio->ccb_h.func_code = XPT_SCSI_IO;
1387 csio->ccb_h.func_code = XPT_CONT_TARGET_IO;
1409 ataio->ccb_h.func_code = XPT_ATA_IO;
1434 smpio->ccb_h.func_code = XPT_SMP_IO;
1452 mmcio->ccb_h.func_code = XPT_MMC_IO;
1494 nvmeio->ccb_h.func_code = XPT_NVME_IO;
1509 nvmeio->ccb_h.func_code
[all...]
/freebsd-12-stable/sys/cam/ata/
H A Data_xpt.c413 cts.ccb_h.func_code = XPT_GET_TRAN_SETTINGS;
436 cts.ccb_h.func_code = XPT_SET_TRAN_SETTINGS;
449 cts.ccb_h.func_code = XPT_GET_TRAN_SETTINGS;
549 cts.ccb_h.func_code = XPT_GET_TRAN_SETTINGS;
565 cts.ccb_h.func_code = XPT_SET_TRAN_SETTINGS;
580 cts.ccb_h.func_code = XPT_GET_TRAN_SETTINGS;
611 cts.ccb_h.func_code = XPT_GET_TRAN_SETTINGS;
631 cts.ccb_h.func_code = XPT_SET_TRAN_SETTINGS;
731 cts.ccb_h.func_code = XPT_GET_TRAN_SETTINGS;
737 cts.ccb_h.func_code
[all...]
/freebsd-12-stable/share/examples/scsi_target/
H A Dscsi_target.c383 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-12-stable/sys/cam/ctl/
H A Dscsi_ctl.c484 ccb.ccb_h.func_code = XPT_EN_LUN;
529 new_ccb->ccb_h.func_code = XPT_ACCEPT_TARGET_IO;
576 new_ccb->ccb_h.func_code = XPT_IMMEDIATE_NOTIFY;
618 ccb.ccb_h.func_code = XPT_ABORT;
629 ccb.ccb_h.func_code = XPT_EN_LUN;
817 KASSERT(atio->ccb_h.func_code == XPT_ACCEPT_TARGET_IO,
818 ("func_code %#x is not ATIO", atio->ccb_h.func_code));
819 start_ccb->ccb_h.func_code = XPT_ABORT;
941 switch (ccb->ccb_h.func_code) {
[all...]
H A Dctl_frontend_cam_sim.c442 if (ccb->ccb_h.func_code == XPT_SCSI_IO) {
492 switch (ccb->ccb_h.func_code) {
587 ccb->ccb_h.func_code, err);
601 if (abort_ccb->ccb_h.func_code != XPT_SCSI_IO) {
661 ccb->ccb_h.func_code, err);
720 if (ccb->ccb_h.func_code == XPT_RESET_DEV)
729 if (ccb->ccb_h.func_code == XPT_RESET_BUS)
738 ccb->ccb_h.func_code, err);
788 ccb->ccb_h.func_code);
/freebsd-12-stable/sys/dev/aic7xxx/
H A Daic79xx_osm.c271 csa.ccb_h.func_code = XPT_SASYNC_CB;
340 if (ccb->ccb_h.func_code == XPT_CONT_TARGET_IO) {
470 switch (ccb->ccb_h.func_code) {
483 if (ccb->ccb_h.func_code == XPT_CONT_TARGET_IO) {
493 if (ccb->ccb_h.func_code == XPT_ACCEPT_TARGET_IO) {
523 && (ccb->ccb_h.func_code == XPT_SCSI_IO
524 || ccb->ccb_h.func_code == XPT_RESET_DEV)) {
537 || ccb->ccb_h.func_code == XPT_CONT_TARGET_IO) {
568 if (ccb->ccb_h.func_code == XPT_RESET_DEV) {
576 if (ccb->ccb_h.func_code
[all...]
H A Daic7xxx_osm.c221 csa.ccb_h.func_code = XPT_SASYNC_CB;
262 csa.ccb_h.func_code = XPT_SASYNC_CB;
351 if (ccb->ccb_h.func_code == XPT_CONT_TARGET_IO) {
456 switch (ccb->ccb_h.func_code) {
468 if (ccb->ccb_h.func_code == XPT_CONT_TARGET_IO) {
478 if (ccb->ccb_h.func_code == XPT_ACCEPT_TARGET_IO) {
504 && (ccb->ccb_h.func_code == XPT_SCSI_IO
505 || ccb->ccb_h.func_code == XPT_RESET_DEV)) {
539 if (ccb->ccb_h.func_code == XPT_RESET_DEV) {
545 if (ccb->ccb_h.func_code
[all...]
/freebsd-12-stable/lib/libcam/
H A Dcamlib.c289 ccb.ccb_h.func_code = XPT_DEV_MATCH;
439 ccb.ccb_h.func_code = XPT_GDEVLIST;
560 ccb.ccb_h.func_code = XPT_GDEVLIST;
598 ccb.ccb_h.func_code = XPT_PATH_INQ;
613 ccb.ccb_h.func_code = XPT_GDEV_TYPE;
634 ccb.ccb_h.func_code = XPT_GET_TRAN_SETTINGS;
/freebsd-12-stable/sys/powerpc/mpc85xx/
H A Dfsl_sata.c758 if ((ccb->ccb_h.func_code & XPT_FC_QUEUED) == 0 ||
886 if ((ccb->ccb_h.func_code == XPT_ATA_IO) &&
899 if ((ccb->ccb_h.func_code == XPT_ATA_IO) &&
919 ("fsl_sata_begin_transaction func_code=0x%x\n", ccb->ccb_h.func_code));
922 if ((ccb->ccb_h.func_code == XPT_ATA_IO) &&
945 if ((ccb->ccb_h.func_code == XPT_ATA_IO) &&
951 if ((ccb->ccb_h.func_code == XPT_ATA_IO) &&
1029 ("fsl_sata_execute_transaction func_code=0x%x\n", ccb->ccb_h.func_code));
[all...]
/freebsd-12-stable/sys/dev/nvme/
H A Dnvme_sim.c118 if (ccb->ccb_h.func_code == XPT_NVME_IO)
149 ccb->ccb_h.func_code));
153 switch (ccb->ccb_h.func_code) {
/freebsd-12-stable/sys/cam/nvme/
H A Dnvme_xpt.c465 done_ccb->ccb_h.func_code = XPT_GDEV_TYPE;
639 cts.ccb_h.func_code = XPT_SET_TRAN_SETTINGS;
741 ("nvme_action: func= %#x\n", start_ccb->ccb_h.func_code));
743 switch (start_ccb->ccb_h.func_code) {
797 cts.ccb_h.func_code = XPT_GET_TRAN_SETTINGS;
844 if (ccb->ccb_h.func_code != XPT_NVME_IO &&
845 ccb->ccb_h.func_code != XPT_NVME_ADMIN)
850 ccb->ccb_h.func_code == XPT_NVME_ADMIN),
/freebsd-12-stable/sys/dev/siis/
H A Dsiis.c958 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) &&
1040 if (slot->ccb->ccb_h.func_code == XPT_ATA_IO)
1075 if (ccb->ccb_h.func_code == XPT_ATA_IO) {
1093 } else if (ccb->ccb_h.func_code == XPT_SCSI_IO) {
1101 if ((ccb->ccb_h.func_code == XPT_ATA_IO) &&
1187 if ((ccb->ccb_h.func_code
[all...]
/freebsd-12-stable/usr.sbin/mptutil/
H A Dmpt_cam.c76 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-12-stable/sys/cam/mmc/
H A Dmmc_xpt.c309 ("mmc_action! func_code=%x, action %s\n", start_ccb->ccb_h.func_code,
310 xpt_action_name(start_ccb->ccb_h.func_code)));
311 switch (start_ccb->ccb_h.func_code) {
398 cts.ccb_h.func_code = XPT_GET_TRAN_SETTINGS;
449 if (ccb->ccb_h.func_code != XPT_MMC_IO)
540 ccb->ccb_h.func_code = cmd;
1096 done_ccb->ccb_h.func_code = XPT_GDEV_TYPE;
/freebsd-12-stable/sys/dev/mmcnull/
H A Dmmcnull.c354 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);

Completed in 246 milliseconds

12345