Home
last modified time | relevance | path

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

12345

/freebsd-12.1/sys/cam/scsi/
H A Dscsi_target.c65 int func_code; member
532 int func_code, priority; in targwrite() local
552 func_code = fuword32(&user_ccb->ccb_h.func_code); in targwrite()
553 switch (func_code) { in targwrite()
561 descr->func_code = func_code; in targwrite()
575 func_code, user_ccb)); in targwrite()
579 descr->func_code = func_code; in targwrite()
586 func_code, user_ccb)); in targwrite()
592 descr->func_code = func_code; in targwrite()
671 k_ccbh->func_code = descr->func_code; in targusermerge()
[all …]
H A Dscsi_targ_bh.c245 immed_ccb.ccb_h.func_code = XPT_EN_LUN; in targbhenlun()
285 atio->ccb_h.func_code = XPT_ACCEPT_TARGET_IO; in targbhenlun()
320 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()
533 switch (done_ccb->ccb_h.func_code) { in targbhdone()
H A Dscsi_xpt.c1040 cts.ccb_h.func_code = XPT_GET_TRAN_SETTINGS; in proberequestdefaultnegotiation()
1046 cts.ccb_h.func_code = XPT_SET_TRAN_SETTINGS; in proberequestdefaultnegotiation()
1945 switch (request_ccb->ccb_h.func_code) { in scsi_scan_bus()
1965 work_ccb->ccb_h.func_code = XPT_PATH_INQ; in scsi_scan_bus()
2073 work_ccb->ccb_h.func_code = XPT_SCAN_LUN; in scsi_scan_bus()
2314 cpi.ccb_h.func_code = XPT_PATH_INQ; in scsi_scan_lun()
2440 cpi.ccb_h.func_code = XPT_PATH_INQ; in scsi_devise_transport()
2632 switch (start_ccb->ccb_h.func_code) { in scsi_action()
2741 cpi.ccb_h.func_code = XPT_PATH_INQ; in scsi_set_transfer_settings()
3054 cpi.ccb_h.func_code = XPT_PATH_INQ; in _scsi_announce_periph()
[all …]
H A Dscsi_pass.c930 switch (done_ccb->ccb_h.func_code) { in passdone()
1118 switch (ccb->ccb_h.func_code) { in passiocleanup()
1306 switch(ccb->ccb_h.func_code) { in passmemsetup()
1797 if (inccb->ccb_h.func_code == XPT_SCSI_IO) in passdoioctl()
1813 inccb->ccb_h.func_code); in passdoioctl()
1829 if ((inccb->ccb_h.func_code & XPT_FC_QUEUED) in passdoioctl()
1908 if (ccb->ccb_h.func_code == XPT_SCSI_IO) in passdoioctl()
1933 if (ccb->ccb_h.func_code & XPT_FC_XPT_ONLY) { in passdoioctl()
1936 ccb->ccb_h.func_code); in passdoioctl()
1975 fc = ccb->ccb_h.func_code; in passdoioctl()
[all …]
/freebsd-12.1/sys/cam/
H A Dcam_compat.c138 hdr->func_code = hdr17->func_code; in cam_compat_handle_0x17()
154 if (ccb->ccb_h.func_code == XPT_SET_TRAN_SETTINGS) { in cam_compat_handle_0x17()
181 hdr17->func_code = hdr->func_code; in cam_compat_handle_0x17()
192 if (ccb->ccb_h.func_code == XPT_PATH_INQ) { in cam_compat_handle_0x17()
227 } else if (ccb->ccb_h.func_code == XPT_GET_TRAN_SETTINGS) { in cam_compat_handle_0x17()
242 } else if (ccb->ccb_h.func_code == XPT_DEV_MATCH) { in cam_compat_handle_0x17()
276 hdr->func_code = hdr18->func_code; in cam_compat_handle_0x18()
294 if (ccb->ccb_h.func_code == XPT_SET_TRAN_SETTINGS) { in cam_compat_handle_0x18()
321 hdr18->func_code = hdr->func_code; in cam_compat_handle_0x18()
334 if (ccb->ccb_h.func_code == XPT_GET_TRAN_SETTINGS) { in cam_compat_handle_0x18()
[all …]
H A Dcam_periph.c753 ccb.ccb_h.func_code = XPT_GDEV_TYPE; in camperiphfree()
795 switch(ccb->ccb_h.func_code) { in cam_periph_mapmem()
1032 switch (ccb->ccb_h.func_code) { in cam_periph_unmapmem()
1141 ccb->ccb_h.func_code = XPT_GDEVLIST; in cam_periph_ioctl()
1248 ccb->ccb_h.func_code == XPT_ATA_IO || in cam_periph_runccb()
1348 ccb_h.func_code = XPT_NOOP; in cam_freeze_devq()
1363 crs.ccb_h.func_code = XPT_REL_SIMQ; in cam_release_devq()
1478 cgds.ccb_h.func_code = XPT_GDEV_STATS; in cam_periph_bus_settle()
1551 cgds.ccb_h.func_code = XPT_GDEV_STATS; in camperiphscsistatuserror()
1667 cgd.ccb_h.func_code = XPT_GDEV_TYPE; in camperiphscsisenseerror()
[all …]
H A Dcam_xpt.c449 switch (inccb->ccb_h.func_code) { in xptdoioctl()
469 switch(inccb->ccb_h.func_code) { in xptdoioctl()
849 ccb->ccb_h.func_code = XPT_SCAN_BUS; in xpt_rescan()
852 ccb->ccb_h.func_code = XPT_SCAN_TGT; in xpt_rescan()
855 ccb->ccb_h.func_code = XPT_SCAN_LUN; in xpt_rescan()
3203 start_ccb->ccb_h.func_code, in xpt_action_default()
3213 start_ccb->ccb_h.func_code, in xpt_action_default()
3568 master_ccb->ccb_h.func_code = slave_ccb->ccb_h.func_code; in xpt_merge_ccb()
4456 ccb->ccb_h.func_code = XPT_ASYNC; in xpt_async()
4464 ccb->ccb_h.func_code, in xpt_async()
[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
1354 csio->ccb_h.func_code = XPT_SCSI_IO; in cam_fill_csio()
1377 csio->ccb_h.func_code = XPT_CONT_TARGET_IO; in cam_fill_ctio()
1398 ataio->ccb_h.func_code = XPT_ATA_IO; in cam_fill_ataio()
1423 smpio->ccb_h.func_code = XPT_SMP_IO; in cam_fill_smpio()
1441 mmcio->ccb_h.func_code = XPT_MMC_IO; in cam_fill_mmcio()
1483 nvmeio->ccb_h.func_code = XPT_NVME_IO; in cam_fill_nvmeio()
1498 nvmeio->ccb_h.func_code = XPT_NVME_ADMIN; in cam_fill_nvmeadmin()
H A Dcam_queue.h202 KASSERT((new_ccb->ccb_h.func_code & XPT_FC_QUEUED) != 0 && in cam_ccbq_insert_ccb()
203 (new_ccb->ccb_h.func_code & XPT_FC_USER_CCB) == 0, in cam_ccbq_insert_ccb()
205 new_ccb->ccb_h.func_code)); in cam_ccbq_insert_ccb()
H A Dcam.c356 switch (ccb->ccb_h.func_code) { in cam_error_string()
415 switch (ccb->ccb_h.func_code) { in cam_error_string()
437 ccb->ccb_h.func_code); in cam_error_string()
463 switch (ccb->ccb_h.func_code) { in cam_error_string()
H A Dcam_compat.h65 xpt_opcode func_code; /* XPT function code */ member
153 xpt_opcode func_code; /* XPT function code */ member
/freebsd-12.1/share/examples/scsi_target/
H A Dscsi_target.c383 atio->ccb_h.func_code = XPT_ACCEPT_TARGET_IO; in init_ccbs()
392 inot->ccb_h.func_code = XPT_IMMEDIATE_NOTIFY; in init_ccbs()
495 switch (ccb_h->func_code) { in request_loop()
505 ccb_h->func_code); in request_loop()
560 switch (ccb->ccb_h.func_code) { in handle_read()
605 ccb->ccb_h.func_code); in handle_read()
877 ctio->ccb_h.func_code = XPT_CONT_TARGET_IO; in get_ctio()
895 switch (ccb->ccb_h.func_code) { in free_ccb()
923 cpi.ccb_h.func_code = XPT_PATH_INQ; in get_sim_flags()
948 crs.ccb_h.func_code = XPT_REL_SIMQ; in rel_simq()
[all …]
/freebsd-12.1/sys/cam/ata/
H A Data_xpt.c413 cts.ccb_h.func_code = XPT_GET_TRAN_SETTINGS; in probestart()
436 cts.ccb_h.func_code = XPT_SET_TRAN_SETTINGS; in probestart()
449 cts.ccb_h.func_code = XPT_GET_TRAN_SETTINGS; in probestart()
549 cts.ccb_h.func_code = XPT_GET_TRAN_SETTINGS; in probestart()
565 cts.ccb_h.func_code = XPT_SET_TRAN_SETTINGS; in probestart()
731 cts.ccb_h.func_code = XPT_GET_TRAN_SETTINGS; in proberequestdefaultnegotiation()
737 cts.ccb_h.func_code = XPT_SET_TRAN_SETTINGS; in proberequestdefaultnegotiation()
1405 switch (request_ccb->ccb_h.func_code) { in ata_scan_bus()
1541 work_ccb->ccb_h.func_code = XPT_SCAN_LUN; in ata_scan_bus()
1797 switch (start_ccb->ccb_h.func_code) { in ata_action()
[all …]
/freebsd-12.1/sys/cam/ctl/
H A Dscsi_ctl.c484 ccb.ccb_h.func_code = XPT_EN_LUN; in ctlferegister()
618 ccb.ccb_h.func_code = XPT_ABORT; in ctlfeoninvalidate()
629 ccb.ccb_h.func_code = XPT_EN_LUN; in ctlfeoninvalidate()
819 start_ccb->ccb_h.func_code = XPT_ABORT; in ctlfestart()
941 switch (ccb->ccb_h.func_code) { in ctlfe_free_ccb()
1096 done_ccb->ccb_h.func_code); in ctlfedone()
1117 switch (done_ccb->ccb_h.func_code) { in ctlfedone()
1291 done_ccb->ccb_h.func_code = XPT_ABORT; in ctlfedone()
1516 done_ccb->ccb_h.func_code); in ctlfedone()
1541 ccb->ccb_h.func_code = XPT_GET_SIM_KNOB; in ctlfe_onoffline()
[all …]
H A Dctl_frontend_cam_sim.c463 if (ccb->ccb_h.func_code == XPT_SCSI_IO) { in cfcs_done()
514 switch (ccb->ccb_h.func_code) { in cfcs_action()
608 ccb->ccb_h.func_code, err); in cfcs_action()
622 if (abort_ccb->ccb_h.func_code != XPT_SCSI_IO) { in cfcs_action()
682 ccb->ccb_h.func_code, err); in cfcs_action()
741 if (ccb->ccb_h.func_code == XPT_RESET_DEV) in cfcs_action()
750 if (ccb->ccb_h.func_code == XPT_RESET_BUS) in cfcs_action()
759 ccb->ccb_h.func_code, err); in cfcs_action()
809 ccb->ccb_h.func_code); in cfcs_action()
/freebsd-12.1/sys/powerpc/mpc85xx/
H A Dfsl_sata.c886 if ((ccb->ccb_h.func_code == XPT_ATA_IO) && in fsl_sata_check_collision()
899 if ((ccb->ccb_h.func_code == XPT_ATA_IO) && in fsl_sata_check_collision()
922 if ((ccb->ccb_h.func_code == XPT_ATA_IO) && in fsl_sata_begin_transaction()
1070 if (ccb->ccb_h.func_code == XPT_ATA_IO && in fsl_sata_execute_transaction()
1214 if (ccb->ccb_h.func_code == XPT_ATA_IO) { in fsl_sata_end_transaction()
1274 if (ccb->ccb_h.func_code == XPT_SCSI_IO) in fsl_sata_end_transaction()
1425 if (ccb->ccb_h.func_code == XPT_ATA_IO) { in fsl_sata_issue_recovery()
1428 ccb->ccb_h.func_code = XPT_ATA_IO; in fsl_sata_issue_recovery()
1452 ccb->ccb_h.func_code = XPT_SCSI_IO; in fsl_sata_issue_recovery()
1678 if (ccb->ccb_h.func_code == XPT_SCSI_IO) { in fsl_sata_setup_fis()
[all …]
/freebsd-12.1/sys/dev/aic7xxx/
H A Daic7xxx_osm.c221 csa.ccb_h.func_code = XPT_SASYNC_CB; in ahc_attach()
262 csa.ccb_h.func_code = XPT_SASYNC_CB; in ahc_attach()
351 if (ccb->ccb_h.func_code == XPT_CONT_TARGET_IO) { in ahc_done()
456 switch (ccb->ccb_h.func_code) { in ahc_action()
468 if (ccb->ccb_h.func_code == XPT_CONT_TARGET_IO) { in ahc_action()
504 && (ccb->ccb_h.func_code == XPT_SCSI_IO in ahc_action()
505 || ccb->ccb_h.func_code == XPT_RESET_DEV)) { in ahc_action()
539 if (ccb->ccb_h.func_code == XPT_RESET_DEV) { in ahc_action()
988 if (ccb->ccb_h.func_code == XPT_CONT_TARGET_IO) { in ahc_execute_scb()
1148 if (ccb_h->func_code == XPT_SCSI_IO) { in ahc_setup_data()
[all …]
H A Daic79xx_osm.c271 csa.ccb_h.func_code = XPT_SASYNC_CB; in ahd_attach()
340 if (ccb->ccb_h.func_code == XPT_CONT_TARGET_IO) { in ahd_done()
470 switch (ccb->ccb_h.func_code) { in ahd_action()
483 if (ccb->ccb_h.func_code == XPT_CONT_TARGET_IO) { in ahd_action()
523 && (ccb->ccb_h.func_code == XPT_SCSI_IO in ahd_action()
524 || ccb->ccb_h.func_code == XPT_RESET_DEV)) { in ahd_action()
537 || ccb->ccb_h.func_code == XPT_CONT_TARGET_IO) { in ahd_action()
568 if (ccb->ccb_h.func_code == XPT_RESET_DEV) { in ahd_action()
990 if (ccb->ccb_h.func_code == XPT_CONT_TARGET_IO) { in ahd_execute_scb()
1081 if (ccb_h->func_code == XPT_SCSI_IO) { in ahd_setup_data()
[all …]
/freebsd-12.1/sys/cam/nvme/
H A Dnvme_xpt.c401 done_ccb->ccb_h.func_code = XPT_GDEV_TYPE; in nvme_probe_done()
575 cts.ccb_h.func_code = XPT_SET_TRAN_SETTINGS; in nvme_device_transport()
677 ("nvme_action: func= %#x\n", start_ccb->ccb_h.func_code)); in nvme_action()
679 switch (start_ccb->ccb_h.func_code) { in nvme_action()
733 cts.ccb_h.func_code = XPT_GET_TRAN_SETTINGS; in nvme_announce_periph()
780 if (ccb->ccb_h.func_code != XPT_NVME_IO && in nvme_proto_debug_out()
781 ccb->ccb_h.func_code != XPT_NVME_ADMIN) in nvme_proto_debug_out()
786 ccb->ccb_h.func_code == XPT_NVME_ADMIN), in nvme_proto_debug_out()
/freebsd-12.1/lib/libcam/
H A Dcamlib.c289 ccb.ccb_h.func_code = XPT_DEV_MATCH; in cam_open_btl()
439 ccb.ccb_h.func_code = XPT_GDEVLIST; in cam_lookup_pass()
560 ccb.ccb_h.func_code = XPT_GDEVLIST; in cam_real_open_device()
598 ccb.ccb_h.func_code = XPT_PATH_INQ; in cam_real_open_device()
613 ccb.ccb_h.func_code = XPT_GDEV_TYPE; in cam_real_open_device()
634 ccb.ccb_h.func_code = XPT_GET_TRAN_SETTINGS; in cam_real_open_device()
/freebsd-12.1/sys/dev/siis/
H A Dsiis.c958 if ((ccb->ccb_h.func_code == XPT_ATA_IO) && in siis_check_collision()
965 if ((ccb->ccb_h.func_code == XPT_ATA_IO) && in siis_check_collision()
1075 if (ccb->ccb_h.func_code == XPT_ATA_IO) { in siis_execute_transaction()
1228 if (ccb->ccb_h.func_code == XPT_ATA_IO) { in siis_end_transaction()
1280 if (ccb->ccb_h.func_code == XPT_SCSI_IO) in siis_end_transaction()
1403 if (ccb->ccb_h.func_code == XPT_ATA_IO) { in siis_issue_recovery()
1406 ccb->ccb_h.func_code = XPT_ATA_IO; in siis_issue_recovery()
1430 ccb->ccb_h.func_code = XPT_SCSI_IO; in siis_issue_recovery()
1697 if (ccb->ccb_h.func_code == XPT_SCSI_IO) { in siis_setup_fis()
1812 ccb->ccb_h.func_code)); in siisaction()
[all …]
/freebsd-12.1/usr.sbin/mptutil/
H A Dmpt_cam.c76 ccb.ccb_h.func_code = XPT_DEV_MATCH; in fetch_path_id()
147 ccb.ccb_h.func_code = XPT_DEV_MATCH; in mpt_query_disk()
415 ccb.ccb_h.func_code = XPT_DEV_MATCH; in mpt_fetch_disks()
544 ccb.ccb_h.func_code = XPT_SCAN_BUS; in mpt_rescan_bus()
549 ccb.ccb_h.func_code = XPT_SCAN_LUN; in mpt_rescan_bus()
/freebsd-12.1/sys/dev/ahci/
H A Dahci.c1513 if ((ccb->ccb_h.func_code == XPT_ATA_IO) && in ahci_check_collision()
1545 if ((ccb->ccb_h.func_code == XPT_ATA_IO) && in ahci_check_collision()
1713 if (ccb->ccb_h.func_code == XPT_ATA_IO && in ahci_execute_transaction()
1931 if (ccb->ccb_h.func_code == XPT_ATA_IO) { in ahci_end_transaction()
2007 if (ccb->ccb_h.func_code == XPT_SCSI_IO) in ahci_end_transaction()
2158 if (ccb->ccb_h.func_code == XPT_ATA_IO) { in ahci_issue_recovery()
2161 ccb->ccb_h.func_code = XPT_ATA_IO; in ahci_issue_recovery()
2185 ccb->ccb_h.func_code = XPT_SCSI_IO; in ahci_issue_recovery()
2531 if (ccb->ccb_h.func_code == XPT_SCSI_IO) { in ahci_setup_fis()
2687 ccb->ccb_h.func_code)); in ahciaction()
[all …]
/freebsd-12.1/sys/dev/nvme/
H A Dnvme_sim.c118 if (ccb->ccb_h.func_code == XPT_NVME_IO) in nvme_sim_nvmeio()
149 ccb->ccb_h.func_code)); in nvme_sim_action()
153 switch (ccb->ccb_h.func_code) { in nvme_sim_action()
/freebsd-12.1/sys/cam/mmc/
H A Dmmc_xpt.c309 ("mmc_action! func_code=%x, action %s\n", start_ccb->ccb_h.func_code, in mmc_action()
310 xpt_action_name(start_ccb->ccb_h.func_code))); in mmc_action()
311 switch (start_ccb->ccb_h.func_code) { in mmc_action()
398 cts.ccb_h.func_code = XPT_GET_TRAN_SETTINGS; in mmc_announce_periph()
449 if (ccb->ccb_h.func_code != XPT_MMC_IO) in mmc_proto_debug_out()
540 ccb->ccb_h.func_code = cmd; in init_standard_ccb()
1097 done_ccb->ccb_h.func_code = XPT_GDEV_TYPE; in mmcprobe_done()

12345