| /freebsd-13.1/usr.sbin/mptutil/ |
| H A D | mpt_cam.c | 66 union ccb ccb; in fetch_path_id() local 74 bzero(&ccb, sizeof(ccb)); in fetch_path_id() 107 ccb.ccb_h.status, ccb.cdm.status); in fetch_path_id() 128 union ccb ccb; in mpt_query_disk() local 145 bzero(&ccb, sizeof(ccb)); in mpt_query_disk() 238 union ccb *ccb; in fetch_scsi_capacity() local 350 union ccb *ccb; in fetch_scsi_inquiry() local 398 union ccb ccb; in mpt_fetch_disks() local 413 bzero(&ccb, sizeof(ccb)); in mpt_fetch_disks() 525 union ccb ccb; in mpt_rescan_bus() local [all …]
|
| /freebsd-13.1/sys/dev/isci/ |
| H A D | isci_io_request.c | 89 union ccb *ccb; in isci_io_request_complete() local 98 ccb = isci_request->ccb; in isci_io_request_complete() 118 ccb->csio.resid = ccb->csio.dxfer_len - in isci_io_request_complete() 148 ccb->ccb_h.path_id, ccb->ccb_h.target_id, in isci_io_request_complete() 159 ccb->ccb_h.path_id, ccb->ccb_h.target_id, in isci_io_request_complete() 515 union ccb *ccb; in scif_cb_io_request_get_virtual_address_from_sgl() local 519 ccb = isci_request->ccb; in scif_cb_io_request_get_virtual_address_from_sgl() 690 union ccb *ccb; in isci_io_request_construct() local 697 ccb = io_request->ccb; in isci_io_request_construct() 773 io_request->ccb = ccb; in isci_io_request_execute_scsi_io() [all …]
|
| /freebsd-13.1/lib/libcam/ |
| H A D | camlib.c | 77 union ccb * 80 union ccb *ccb; in cam_getccb() local 82 ccb = calloc(1, sizeof(*ccb)); in cam_getccb() 96 cam_freeccb(union ccb *ccb) in cam_freeccb() argument 98 free(ccb); in cam_freeccb() 279 union ccb ccb; in cam_open_btl() local 290 bzero(&ccb, sizeof(union ccb)); in cam_open_btl() 352 ccb.ccb_h.status, ccb.cdm.status); in cam_open_btl() 425 union ccb ccb; in cam_lookup_pass() local 507 union ccb ccb; in cam_real_open_device() local [all …]
|
| /freebsd-13.1/sys/dev/aacraid/ |
| H A D | aacraid_cam.c | 171 union ccb *ccb; in aac_cam_rescan() local 207 union ccb *ccb; in aac_cam_event() local 601 ccb->ccb_h.target_id, ccb->ccb_h.target_lun, in aac_container_special_command() 612 ccb->ccb_h.target_id, ccb->ccb_h.target_lun, in aac_container_special_command() 682 ccb->ccb_h.target_id, ccb->ccb_h.target_lun, in aac_container_special_command() 690 ccb->ccb_h.target_id, ccb->ccb_h.target_lun, in aac_container_special_command() 701 ccb->ccb_h.target_id, ccb->ccb_h.target_lun, in aac_container_special_command() 722 ccb->ccb_h.target_id, ccb->ccb_h.target_lun, in aac_container_special_command() 762 ccb->ccb_h.target_id, ccb->ccb_h.target_lun, in aac_container_special_command() 1126 union ccb *ccb; in aac_container_complete() local [all …]
|
| /freebsd-13.1/sys/dev/aac/ |
| H A D | aac_cam.c | 114 union ccb *ccb; in aac_cam_rescan() local 150 union ccb *ccb; in aac_cam_event() local 155 ccb = arg; in aac_cam_event() 257 aac_cam_action(struct cam_sim *sim, union ccb *ccb) in aac_cam_action() argument 359 ccb->ccb_h.status = aac_cam_reset_bus(sim, ccb); in aac_cam_action() 366 ccb->ccb_h.status = aac_cam_abort_ccb(sim, ccb); in aac_cam_action() 370 ccb->ccb_h.status = aac_cam_term_io(sim, ccb); in aac_cam_action() 578 union ccb *ccb; in aac_cam_complete() local 628 aac_cam_reset_bus(struct cam_sim *sim, union ccb *ccb) in aac_cam_reset_bus() argument 673 aac_cam_abort_ccb(struct cam_sim *sim, union ccb *ccb) in aac_cam_abort_ccb() argument [all …]
|
| /freebsd-13.1/sys/cam/ |
| H A D | cam_periph.c | 748 union ccb ccb; in camperiphfree() local 1099 int (*error_routine)(union ccb *ccb, in cam_periph_ioctl() argument 1103 union ccb *ccb; in cam_periph_ioctl() local 1146 bcopy(ccb, addr, sizeof(union ccb)); in cam_periph_ioctl() 1177 cam_periph_ccbwait(union ccb *ccb) in cam_periph_ccbwait() argument 1197 cam_periph_runccb(union ccb *ccb, in cam_periph_runccb() argument 1198 int (*error_routine)(union ccb *ccb, in cam_periph_runccb() argument 1499 camperiphscsistatuserror(union ccb *ccb, union ccb **orig_ccb, in camperiphscsistatuserror() argument 1613 camperiphscsisenseerror(union ccb *ccb, union ccb **orig, in camperiphscsisenseerror() argument 1619 union ccb *orig_ccb = ccb; in camperiphscsisenseerror() [all …]
|
| /freebsd-13.1/sys/cam/ctl/ |
| H A D | ctl_frontend_cam_sim.c | 71 union ccb *ccb; member 101 void cfcs_action(struct cam_sim *sim, union ccb *ccb); 243 union ccb *ccb; in cfcs_onoffline() local 286 union ccb *ccb; in cfcs_datamove() local 411 ccb->csio.resid = ccb->csio.dxfer_len - in cfcs_datamove() 424 union ccb *ccb; in cfcs_done() local 442 ccb->csio.resid = ccb->csio.dxfer_len - in cfcs_done() 456 ccb->csio.sense_resid = ccb->csio.sense_len - in cfcs_done() 460 if ((ccb->csio.sense_len - ccb->csio.sense_resid) > in cfcs_done() 462 ccb->csio.sense_resid = ccb->csio.sense_len - in cfcs_done() [all …]
|
| /freebsd-13.1/sbin/camcontrol/ |
| H A D | camcontrol.c | 394 union ccb *ccb; in getdevlist() local 453 union ccb ccb; in getdevtree() local 728 union ccb *ccb; in print_dev_mmcsd() local 779 union ccb *ccb; in nvme_get_cdata() local 844 union ccb *ccb; in testunitready() local 891 union ccb *ccb; in scsistart() local 1014 union ccb *ccb; in scsiinquiry() local 1123 union ccb *ccb; in scsiserial() local 1208 union ccb *ccb; in camxferrate() local 3400 union ccb ccb; in parse_btl_name() local [all …]
|
| H A D | timestamp.c | 82 union ccb *ccb = NULL; in set_restore_flags() local 89 if (ccb == NULL) { in set_restore_flags() 181 if (ccb != NULL) in set_restore_flags() 182 cam_freeccb(ccb); in set_restore_flags() 197 union ccb *ccb = NULL; in report_timestamp() local 200 if (ccb == NULL) { in report_timestamp() 238 if (ccb != NULL) in report_timestamp() 239 cam_freeccb(ccb); in report_timestamp() 256 union ccb *ccb = NULL; in set_timestamp() local 267 if (ccb == NULL) { in set_timestamp() [all …]
|
| H A D | epc.c | 133 union ccb *ccb, int retry_count, int timeout); 137 union ccb *ccb, int retry_count, int timeout, 140 camcontrol_devtype devtype, union ccb *ccb, 274 union ccb *ccb, int retry_count, int timeout, int power_only) in epc_getmode() argument 362 avail_bytes = ccb->csio.dxfer_len - ccb->csio.resid; in epc_getmode() 364 avail_bytes = ccb->ataio.dxfer_len - ccb->ataio.resid; in epc_getmode() 524 union ccb *ccb, int retry_count, int timeout, int action, in epc_set_features() argument 615 union ccb *ccb = NULL; in epc() local 630 if (ccb == NULL) { in epc() 853 if (ccb != NULL) in epc() [all …]
|
| /freebsd-13.1/usr.bin/iscsictl/ |
| H A D | periphs.c | 69 union ccb ccb; in print_periphs() local 84 bzero(&ccb, sizeof(union ccb)); in print_periphs() 86 ccb.ccb_h.path_id = CAM_XPT_PATH_ID; in print_periphs() 90 ccb.ccb_h.func_code = XPT_DEV_MATCH; in print_periphs() 92 ccb.cdm.match_buf_len = bufsize; in print_periphs() 94 if (ccb.cdm.matches == NULL) { in print_periphs() 99 ccb.cdm.num_matches = 0; in print_periphs() 105 ccb.cdm.num_patterns = 0; in print_periphs() 106 ccb.cdm.pattern_buf_len = 0; in print_periphs() 129 ccb.ccb_h.status, ccb.cdm.status); in print_periphs() [all …]
|
| /freebsd-13.1/sys/dev/ata/ |
| H A D | ata-all.c | 67 static int ata_check_ids(device_t dev, union ccb *ccb); 266 union ccb *ccb; in ata_conn_event() local 789 request->u.atapi.ccb, ccb->csio.cdb_len); in ata_cam_begin_transaction() 806 request->ccb = ccb; in ata_cam_begin_transaction() 823 union ccb *ccb = request->ccb; in ata_cam_request_sense() local 834 request->u.atapi.ccb[4] = ccb->csio.sense_len; in ata_cam_request_sense() 846 request->ccb = ccb; in ata_cam_request_sense() 862 union ccb *ccb = request->ccb; in ata_cam_process_sense() local 888 union ccb *ccb = request->ccb; in ata_cam_end_transaction() local 956 ata_check_ids(device_t dev, union ccb *ccb) in ata_check_ids() argument [all …]
|
| /freebsd-13.1/sys/dev/twa/ |
| H A D | tw_osl_cam.c | 56 static TW_VOID twa_action(struct cam_sim *sim, union ccb *ccb); 60 union ccb *ccb); 208 xpt_done(ccb); in tw_osli_execute_scsi() 216 xpt_done(ccb); in tw_osli_execute_scsi() 227 xpt_done(ccb); in tw_osli_execute_scsi() 269 xpt_done(ccb); in tw_osli_execute_scsi() 305 twa_action(struct cam_sim *sim, union ccb *ccb) in twa_action() argument 471 union ccb *ccb; in tw_osli_request_bus_scan() local 510 union ccb *ccb = (union ccb *)(req->orig_req); in tw_osli_disallow_new_requests() local 529 union ccb *ccb = (union ccb *)(req->orig_req); in tw_osl_timeout() local [all …]
|
| /freebsd-13.1/sys/cam/mmc/ |
| H A D | mmc_sim.c | 64 if (mmc_sim->ccb == NULL) in mmc_sim_task() 67 cts = &mmc_sim->ccb->cts; in mmc_sim_task() 88 xpt_done(mmc_sim->ccb); in mmc_sim_task() 89 mmc_sim->ccb = NULL; in mmc_sim_task() 94 mmc_cam_sim_default_action(struct cam_sim *sim, union ccb *ccb) in mmc_cam_sim_default_action() argument 104 if (mmc_sim->ccb != NULL) { in mmc_cam_sim_default_action() 105 ccb->ccb_h.status = CAM_BUSY; in mmc_cam_sim_default_action() 106 xpt_done(ccb); in mmc_cam_sim_default_action() 140 mmc_sim->ccb = ccb; in mmc_cam_sim_default_action() 160 mmc_sim->ccb = ccb; in mmc_cam_sim_default_action() [all …]
|
| /freebsd-13.1/sys/powerpc/mpc85xx/ |
| H A D | fsl_sata.c | 88 static void fsl_sataaction(struct cam_sim *sim, union ccb *ccb); 237 union ccb *ccb; /* CCB occupying slot */ member 683 union ccb *ccb; in fsl_sata_phy_check_events() local 728 fsl_sata_done(struct fsl_sata_channel *ch, union ccb *ccb) in fsl_sata_done() argument 734 xpt_done(ccb); in fsl_sata_done() 910 slot->ccb = ccb; in fsl_sata_begin_transaction() 995 union ccb *ccb = slot->ccb; in fsl_sata_execute_transaction() local 1180 union ccb *ccb = slot->ccb; in fsl_sata_end_transaction() local 1372 union ccb *ccb; in fsl_sata_issue_recovery() local 1666 ccb->csio.cdb_io.cdb_ptr : ccb->csio.cdb_io.cdb_bytes, in fsl_sata_setup_fis() [all …]
|
| /freebsd-13.1/sys/dev/isp/ |
| H A D | isp_freebsd.h | 446 #define XS_TGT(ccb) (ccb)->ccb_h.target_id argument 453 #define XS_CDBLEN(ccb) (ccb)->cdb_len argument 454 #define XS_XFRLEN(ccb) (ccb)->dxfer_len argument 460 #define XS_GET_RESID(ccb) (ccb)->resid argument 462 #define XS_STSP(ccb) (&(ccb)->scsi_status) argument 463 #define XS_SNSP(ccb) (&(ccb)->sense_data) argument 465 #define XS_TOT_SNSLEN(ccb) ccb->sense_len argument 466 #define XS_CUR_SNSLEN(ccb) (ccb->sense_len - ccb->sense_resid) argument 469 ccb->sense_len - ccb->sense_resid, 1)) 486 #define XS_PRIORITY(ccb) (ccb)->priority argument [all …]
|
| H A D | isp_freebsd.c | 594 isp_get_pcmd(ispsoftc_t *isp, union ccb *ccb) in isp_get_pcmd() argument 687 union ccb *ccb; in isp_tmcmd_restart() local 700 ccb = (union ccb *)TAILQ_FIRST(&fc->waitq); in isp_tmcmd_restart() 823 union ccb *ccb; in destroy_lun_state() local 1459 union ccb *ccb; in isp_handle_srr_start() local 1578 union ccb *ccb; in isp_handle_platform_ctio() local 1635 ccb->csio.resid = ccb->csio.dxfer_len - in isp_handle_platform_ctio() 1995 union ccb *ccb; in isp_make_here() local 2283 union ccb *accb = ccb->cab.abort_ccb; in isp_abort_atio() 2334 union ccb *accb = ccb->cab.abort_ccb; in isp_abort_inot() [all …]
|
| /freebsd-13.1/sys/dev/nvme/ |
| H A D | nvme_sim.c | 52 static void nvme_sim_action(struct cam_sim *sim, union ccb *ccb); 68 union ccb *ccb = (union ccb *)ccb_arg; in nvme_sim_nvmeio_done() local 78 xpt_done(ccb); in nvme_sim_nvmeio_done() 86 nvme_sim_nvmeio(struct cam_sim *sim, union ccb *ccb) in nvme_sim_nvmeio() argument 102 req = nvme_allocate_request_ccb(ccb, nvme_sim_nvmeio_done, ccb); in nvme_sim_nvmeio() 111 xpt_done(ccb); in nvme_sim_nvmeio() 116 memcpy(&req->cmd, &ccb->nvmeio.cmd, sizeof(ccb->nvmeio.cmd)); in nvme_sim_nvmeio() 143 nvme_sim_action(struct cam_sim *sim, union ccb *ccb) in nvme_sim_action() argument 281 xpt_done(ccb); in nvme_sim_action() 339 union ccb *ccb; in nvme_sim_ns_change() local [all …]
|
| /freebsd-13.1/sys/dev/mvs/ |
| H A D | mvs.c | 604 union ccb *ccb; in mvs_phy_check_events() local 845 union ccb *ccb = slot->ccb; in mvs_legacy_intr() local 1025 union ccb *ccb; in mvs_crbq_intr() local 1063 ccb = ch->slot[slot].ccb; in mvs_crbq_intr() 1142 mvs_tfd_read(device_t dev, union ccb *ccb) in mvs_tfd_read() argument 1163 mvs_tfd_write(device_t dev, union ccb *ccb) in mvs_tfd_write() argument 1211 slot->ccb = ccb; in mvs_begin_transaction() 1313 union ccb *ccb = slot->ccb; in mvs_legacy_execute_transaction() local 1429 union ccb *ccb = slot->ccb; in mvs_execute_transaction() local 1613 union ccb *ccb = slot->ccb; in mvs_end_transaction() local [all …]
|
| /freebsd-13.1/sys/powerpc/ps3/ |
| H A D | ps3cdrom.c | 83 union ccb *x_ccb; 135 static void ps3cdrom_action(struct cam_sim *sim, union ccb *ccb); 338 ps3cdrom_action(struct cam_sim *sim, union ccb *ccb) in ps3cdrom_action() argument 444 xpt_done(ccb); in ps3cdrom_action() 473 union ccb *ccb; in ps3cdrom_intr() local 526 ccb->csio.resid = ccb->csio.dxfer_len; in ps3cdrom_intr() 539 xpt_done(ccb); in ps3cdrom_intr() 555 union ccb *ccb = xp->x_ccb; in ps3cdrom_transfer() local 572 xpt_done(ccb); in ps3cdrom_transfer() 582 ccb->csio.cdb_len, ccb->csio.dxfer_len)); in ps3cdrom_transfer() [all …]
|
| /freebsd-13.1/sys/dev/smartpqi/ |
| H A D | smartpqi_cam.c | 109 union ccb *ccb; in os_add_device() local 522 pqi_freeze_ccb(union ccb *ccb) in pqi_freeze_ccb() argument 538 union ccb *ccb; in pqi_request_map_helper() local 585 xpt_done(ccb); in pqi_request_map_helper() 597 union ccb *ccb = rcb->cm_ccb; in pqi_map_request() local 678 union ccb *ccb = NULL; in smartpqi_lun_rescan() local 699 bzero(ccb, sizeof(union ccb)); in smartpqi_lun_rescan() 737 union ccb *ccb = rcb->cm_ccb; in os_get_task_attr() local 786 pqisrc_io_start(struct cam_sim *sim, union ccb *ccb) in pqisrc_io_start() argument 1036 smartpqi_cam_action(struct cam_sim *sim, union ccb *ccb) in smartpqi_cam_action() argument [all …]
|
| /freebsd-13.1/sys/dev/iscsi_initiator/ |
| H A D | isc_cam.c | 61 _inq(struct cam_sim *sim, union ccb *ccb) in _inq() argument 91 _scsi_encap(struct cam_sim *sim, union ccb *ccb) in _scsi_encap() argument 119 scan_callback(struct cam_periph *periph, union ccb *ccb) in scan_callback() argument 136 union ccb *ccb; in ic_scan() local 165 ic_action(struct cam_sim *sim, union ccb *ccb) in ic_action() argument 174 ccb_h->func_code, ccb->ccb_h.flags, ccb->ccb_h.status, in ic_action() 175 ccb->ccb_h.target_id, (uintmax_t)ccb->ccb_h.target_lun, in ic_action() 183 _inq(sim, ccb); in ic_action() 219 ccg = &ccb->ccg; in ic_action() 221 sp->sid, ccb->ccb_h.target_id, (uintmax_t)ccb->ccb_h.target_lun, in ic_action() [all …]
|
| /freebsd-13.1/sys/dev/ocs_fc/ |
| H A D | ocs_cam.c | 1016 union ccb *ccb = NULL; in ocs_add_new_tgt() local 1351 union ccb *ccb = arg; in ocs_scsi_target_io_cb() local 1468 union ccb *ccb = arg; in ocs_scsi_initiator_io_cb() local 1974 ocs_action(struct cam_sim *sim, union ccb *ccb) in ocs_action() argument 2250 union ccb *accb = ccb->cab.abort_ccb; in ocs_action() 2455 ccb->ccb_h.flags, ccb->csio.tag_id); in ocs_action() 2555 union ccb *ccb = NULL; in ocs_tgt_resource_abort() local 2560 ccb = (union ccb *)STAILQ_FIRST(&trsrc->atio); in ocs_tgt_resource_abort() 2571 ccb = (union ccb *)STAILQ_FIRST(&trsrc->inot); in ocs_tgt_resource_abort() 2591 union ccb *accb = ccb->cab.abort_ccb; in ocs_abort_atio() [all …]
|
| /freebsd-13.1/sys/dev/siis/ |
| H A D | siis.c | 814 union ccb *ccb; in siis_phy_check_events() local 994 slot->ccb = ccb; in siis_begin_transaction() 1063 union ccb *ccb = slot->ccb; in siis_execute_transaction() local 1177 union ccb *ccb = slot->ccb; in siis_timeout() local 1216 union ccb *ccb = slot->ccb; in siis_end_transaction() local 1247 ccb->ataio.resid = ccb->ataio.dxfer_len - in siis_end_transaction() 1253 ccb->csio.resid = ccb->csio.dxfer_len - in siis_end_transaction() 1371 union ccb *ccb; in siis_issue_recovery() local 1710 ctp->u.atapi.ccb, ccb->csio.cdb_len); in siis_setup_fis() 1788 siis_check_ids(device_t dev, union ccb *ccb) in siis_check_ids() argument [all …]
|
| /freebsd-13.1/sys/dev/ahci/ |
| H A D | ahciem.c | 59 static void ahciemaction(struct cam_sim *sim, union ccb *ccb); 357 ahci_check_ids(union ccb *ccb) in ahci_check_ids() argument 362 xpt_done(ccb); in ahci_check_ids() 367 xpt_done(ccb); in ahci_check_ids() 374 ahci_em_emulate_ses_on_led(device_t dev, union ccb *ccb) in ahci_em_emulate_ses_on_led() argument 391 ccb->ataio.dxfer_len < ccb->ataio.cmd.sector_count * 4) { in ahci_em_emulate_ses_on_led() 576 xpt_done(ccb); in ahci_em_emulate_ses_on_led() 580 ahci_em_begin_transaction(device_t dev, union ccb *ccb) in ahci_em_begin_transaction() argument 604 xpt_done(ccb); in ahci_em_begin_transaction() 608 ahciemaction(struct cam_sim *sim, union ccb *ccb) in ahciemaction() argument [all …]
|