| /freebsd-12.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-12.1/sys/dev/aacraid/ |
| H A D | aacraid_cam.c | 186 union ccb *ccb; in aac_cam_rescan() local 223 union ccb *ccb; in aac_cam_event() local 613 ccb->ccb_h.target_id, ccb->ccb_h.target_lun, in aac_container_special_command() 624 ccb->ccb_h.target_id, ccb->ccb_h.target_lun, in aac_container_special_command() 693 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() 712 ccb->ccb_h.target_id, ccb->ccb_h.target_lun, in aac_container_special_command() 733 ccb->ccb_h.target_id, ccb->ccb_h.target_lun, in aac_container_special_command() 773 ccb->ccb_h.target_id, ccb->ccb_h.target_lun, in aac_container_special_command() 1138 union ccb *ccb; in aac_container_complete() local [all …]
|
| /freebsd-12.1/lib/libcam/ |
| H A D | camlib.c | 77 union ccb * 80 union ccb *ccb; in cam_getccb() local 82 ccb = (union ccb *)malloc(sizeof(union ccb)); in cam_getccb() 97 cam_freeccb(union ccb *ccb) in cam_freeccb() argument 99 free(ccb); in cam_freeccb() 277 union ccb ccb; in cam_open_btl() local 288 bzero(&ccb, sizeof(union ccb)); in cam_open_btl() 350 ccb.ccb_h.status, ccb.cdm.status); in cam_open_btl() 423 union ccb ccb; in cam_lookup_pass() local 505 union ccb ccb; in cam_real_open_device() local [all …]
|
| /freebsd-12.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() 120 ccb->csio.resid = ccb->csio.dxfer_len - in isci_io_request_complete() 150 ccb->ccb_h.path_id, ccb->ccb_h.target_id, in isci_io_request_complete() 161 ccb->ccb_h.path_id, ccb->ccb_h.target_id, in isci_io_request_complete() 517 union ccb *ccb; in scif_cb_io_request_get_virtual_address_from_sgl() local 521 ccb = isci_request->ccb; in scif_cb_io_request_get_virtual_address_from_sgl() 692 union ccb *ccb; in isci_io_request_construct() local 699 ccb = io_request->ccb; in isci_io_request_construct() 775 io_request->ccb = ccb; in isci_io_request_execute_scsi_io() [all …]
|
| /freebsd-12.1/sys/cam/ |
| H A D | cam_periph.c | 748 union ccb ccb; in camperiphfree() local 1125 int (*error_routine)(union ccb *ccb, in cam_periph_ioctl() argument 1129 union ccb *ccb; in cam_periph_ioctl() local 1172 bcopy(ccb, addr, sizeof(union ccb)); in cam_periph_ioctl() 1203 cam_periph_ccbwait(union ccb *ccb) in cam_periph_ccbwait() argument 1223 cam_periph_runccb(union ccb *ccb, in cam_periph_runccb() argument 1224 int (*error_routine)(union ccb *ccb, in cam_periph_runccb() argument 1513 camperiphscsistatuserror(union ccb *ccb, union ccb **orig_ccb, in camperiphscsistatuserror() argument 1627 camperiphscsisenseerror(union ccb *ccb, union ccb **orig, in camperiphscsisenseerror() argument 1633 union ccb *orig_ccb = ccb; in camperiphscsisenseerror() [all …]
|
| /freebsd-12.1/sys/dev/aac/ |
| H A D | aac_cam.c | 114 union ccb *ccb; in aac_cam_rescan() local 151 union ccb *ccb; in aac_cam_event() local 156 ccb = arg; in aac_cam_event() 258 aac_cam_action(struct cam_sim *sim, union ccb *ccb) in aac_cam_action() argument 360 ccb->ccb_h.status = aac_cam_reset_bus(sim, ccb); in aac_cam_action() 367 ccb->ccb_h.status = aac_cam_abort_ccb(sim, ccb); in aac_cam_action() 371 ccb->ccb_h.status = aac_cam_term_io(sim, ccb); in aac_cam_action() 579 union ccb *ccb; in aac_cam_complete() local 629 aac_cam_reset_bus(struct cam_sim *sim, union ccb *ccb) in aac_cam_reset_bus() argument 674 aac_cam_abort_ccb(struct cam_sim *sim, union ccb *ccb) in aac_cam_abort_ccb() argument [all …]
|
| /freebsd-12.1/sys/cam/ctl/ |
| H A D | ctl_frontend_cam_sim.c | 74 union ccb *ccb; member 106 void cfcs_action(struct cam_sim *sim, union ccb *ccb); 259 union ccb *ccb; in cfcs_onoffline() local 308 union ccb *ccb; in cfcs_datamove() local 433 ccb->csio.resid = ccb->csio.dxfer_len - in cfcs_datamove() 446 union ccb *ccb; in cfcs_done() local 464 ccb->csio.resid = ccb->csio.dxfer_len - in cfcs_done() 478 ccb->csio.sense_resid = ccb->csio.sense_len - in cfcs_done() 482 if ((ccb->csio.sense_len - ccb->csio.sense_resid) > in cfcs_done() 484 ccb->csio.sense_resid = ccb->csio.sense_len - in cfcs_done() [all …]
|
| /freebsd-12.1/sbin/camcontrol/ |
| H A D | camcontrol.c | 411 union ccb *ccb; in getdevlist() local 471 union ccb ccb; in getdevtree() local 746 union ccb *ccb; in print_dev_mmcsd() local 797 union ccb *ccb; in nvme_get_cdata() local 863 union ccb *ccb; in testunitready() local 910 union ccb *ccb; in scsistart() local 1033 union ccb *ccb; in scsiinquiry() local 1142 union ccb *ccb; in scsiserial() local 1227 union ccb *ccb; in camxferrate() local 3423 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-12.1/sys/dev/ata/ |
| H A D | ata-all.c | 67 static int ata_check_ids(device_t dev, union ccb *ccb); 265 union ccb *ccb; in ata_conn_event() local 786 request->u.atapi.ccb, ccb->csio.cdb_len); in ata_cam_begin_transaction() 803 request->ccb = ccb; in ata_cam_begin_transaction() 820 union ccb *ccb = request->ccb; in ata_cam_request_sense() local 831 request->u.atapi.ccb[4] = ccb->csio.sense_len; in ata_cam_request_sense() 843 request->ccb = ccb; in ata_cam_request_sense() 859 union ccb *ccb = request->ccb; in ata_cam_process_sense() local 885 union ccb *ccb = request->ccb; in ata_cam_end_transaction() local 953 ata_check_ids(device_t dev, union ccb *ccb) in ata_check_ids() argument [all …]
|
| /freebsd-12.1/sys/dev/dpt/ |
| H A D | dpt_scsi.c | 156 union ccb *ccb, u_int hba_stat, 610 union ccb *ccb; in dptexecuteccb() local 614 ccb = dccb->ccb; in dptexecuteccb() 700 dpt_action(struct cam_sim *sim, union ccb *ccb) in dpt_action() argument 744 dccb->ccb = ccb; in dpt_action() 1488 union ccb *ccb; in dpt_intr_locked() local 1559 ccb = dccb->ccb; in dpt_intr_locked() 1667 union ccb *ccb; in dpttimeout() local 1671 ccb = dccb->ccb; in dpttimeout() 1764 ccb->cp_viraddr = (u_int32_t) & ccb; [all …]
|
| /freebsd-12.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-12.1/sys/dev/twa/ |
| H A D | tw_osl_cam.c | 58 static TW_VOID twa_action(struct cam_sim *sim, union ccb *ccb); 62 union ccb *ccb); 216 xpt_done(ccb); in tw_osli_execute_scsi() 224 xpt_done(ccb); in tw_osli_execute_scsi() 235 xpt_done(ccb); in tw_osli_execute_scsi() 277 xpt_done(ccb); in tw_osli_execute_scsi() 315 twa_action(struct cam_sim *sim, union ccb *ccb) in twa_action() argument 485 union ccb *ccb; in tw_osli_request_bus_scan() local 526 union ccb *ccb = (union ccb *)(req->orig_req); in tw_osli_disallow_new_requests() local 547 union ccb *ccb = (union ccb *)(req->orig_req); in tw_osl_timeout() local [all …]
|
| /freebsd-12.1/sys/powerpc/mpc85xx/ |
| H A D | fsl_sata.c | 89 static void fsl_sataaction(struct cam_sim *sim, union ccb *ccb); 238 union ccb *ccb; /* CCB occupying slot */ member 709 union ccb *ccb; in fsl_sata_phy_check_events() local 754 fsl_sata_done(struct fsl_sata_channel *ch, union ccb *ccb) in fsl_sata_done() argument 760 xpt_done(ccb); in fsl_sata_done() 936 slot->ccb = ccb; in fsl_sata_begin_transaction() 1021 union ccb *ccb = slot->ccb; in fsl_sata_execute_transaction() local 1205 union ccb *ccb = slot->ccb; in fsl_sata_end_transaction() local 1397 union ccb *ccb; in fsl_sata_issue_recovery() local 1691 ccb->csio.cdb_io.cdb_ptr : ccb->csio.cdb_io.cdb_bytes, in fsl_sata_setup_fis() [all …]
|
| /freebsd-12.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 1026 union ccb *ccb; in mvs_crbq_intr() local 1064 ccb = ch->slot[slot].ccb; in mvs_crbq_intr() 1143 mvs_tfd_read(device_t dev, union ccb *ccb) in mvs_tfd_read() argument 1164 mvs_tfd_write(device_t dev, union ccb *ccb) in mvs_tfd_write() argument 1213 slot->ccb = ccb; in mvs_begin_transaction() 1316 union ccb *ccb = slot->ccb; in mvs_legacy_execute_transaction() local 1433 union ccb *ccb = slot->ccb; in mvs_execute_transaction() local 1615 union ccb *ccb = slot->ccb; in mvs_end_transaction() local [all …]
|
| /freebsd-12.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 267 xpt_done(ccb); in nvme_sim_action() 325 union ccb *ccb; in nvme_sim_new_ns() local [all …]
|
| /freebsd-12.1/sys/dev/smartpqi/ |
| H A D | smartpqi_cam.c | 98 union ccb *ccb; in os_add_device() local 115 xpt_rescan(ccb); in os_add_device() 526 union ccb *ccb = rcb->cm_ccb; in pqi_map_request() local 601 union ccb *ccb = NULL; in smartpqi_lun_rescan() local 617 bzero(ccb, sizeof(union ccb)); in smartpqi_lun_rescan() 623 xpt_action(ccb); in smartpqi_lun_rescan() 653 union ccb *ccb = rcb->cm_ccb; in os_get_task_attr() local 696 static int pqisrc_io_start(struct cam_sim *sim, union ccb *ccb) in pqisrc_io_start() argument 880 pqisrc_target_reset( pqisrc_softstate_t *softs, union ccb *ccb) in pqisrc_target_reset() argument 994 xpt_done(ccb); in smartpqi_cam_action() [all …]
|
| /freebsd-12.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 527 ccb->csio.resid = ccb->csio.dxfer_len; in ps3cdrom_intr() 540 xpt_done(ccb); in ps3cdrom_intr() 556 union ccb *ccb = xp->x_ccb; in ps3cdrom_transfer() local 573 xpt_done(ccb); in ps3cdrom_transfer() 583 ccb->csio.cdb_len, ccb->csio.dxfer_len)); in ps3cdrom_transfer() [all …]
|
| /freebsd-12.1/sys/dev/ocs_fc/ |
| H A D | ocs_cam.c | 1017 union ccb *ccb = NULL; in ocs_add_new_tgt() local 1347 union ccb *ccb = arg; in ocs_scsi_target_io_cb() local 1464 union ccb *ccb = arg; in ocs_scsi_initiator_io_cb() local 1950 ocs_action(struct cam_sim *sim, union ccb *ccb) in ocs_action() argument 2225 union ccb *accb = ccb->cab.abort_ccb; in ocs_action() 2427 ccb->ccb_h.flags, ccb->csio.tag_id); in ocs_action() 2527 union ccb *ccb = NULL; in ocs_tgt_resource_abort() local 2532 ccb = (union ccb *)STAILQ_FIRST(&trsrc->atio); in ocs_tgt_resource_abort() 2543 ccb = (union ccb *)STAILQ_FIRST(&trsrc->inot); in ocs_tgt_resource_abort() 2563 union ccb *accb = ccb->cab.abort_ccb; in ocs_abort_atio() [all …]
|
| /freebsd-12.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() 1064 union ccb *ccb = slot->ccb; in siis_execute_transaction() local 1179 union ccb *ccb = slot->ccb; in siis_timeout() local 1218 union ccb *ccb = slot->ccb; in siis_end_transaction() local 1249 ccb->ataio.resid = ccb->ataio.dxfer_len - in siis_end_transaction() 1255 ccb->csio.resid = ccb->csio.dxfer_len - in siis_end_transaction() 1373 union ccb *ccb; in siis_issue_recovery() local 1712 ctp->u.atapi.ccb, ccb->csio.cdb_len); in siis_setup_fis() 1789 siis_check_ids(device_t dev, union ccb *ccb) in siis_check_ids() argument [all …]
|
| /freebsd-12.1/sys/dev/advansys/ |
| H A D | adwcam.c | 231 union ccb *ccb; in adwexecuteacb() local 235 ccb = acb->ccb; in adwexecuteacb() 334 adw_action(struct cam_sim *sim, union ccb *ccb) in adw_action() argument 370 acb->ccb = ccb; in adw_action() 426 ccb, in adw_action() 1254 union ccb *ccb; in adw_intr_locked() local 1281 ccb = acb->ccb; in adw_intr_locked() 1330 union ccb *ccb; in adwprocesserror() local 1332 ccb = acb->ccb; in adwprocesserror() 1424 union ccb *ccb; in adwtimeout() local [all …]
|
| /freebsd-12.1/sys/dev/iscsi_initiator/ |
| H A D | isc_cam.c | 63 _inq(struct cam_sim *sim, union ccb *ccb) in _inq() argument 93 _scsi_encap(struct cam_sim *sim, union ccb *ccb) in _scsi_encap() argument 125 scan_callback(struct cam_periph *periph, union ccb *ccb) in scan_callback() argument 142 union ccb *ccb; in ic_scan() local 171 ic_action(struct cam_sim *sim, union ccb *ccb) in ic_action() argument 180 ccb_h->func_code, ccb->ccb_h.flags, ccb->ccb_h.status, in ic_action() 181 ccb->ccb_h.target_id, (uintmax_t)ccb->ccb_h.target_lun, in ic_action() 189 _inq(sim, ccb); in ic_action() 225 ccg = &ccb->ccg; in ic_action() 227 sp->sid, ccb->ccb_h.target_id, (uintmax_t)ccb->ccb_h.target_lun, in ic_action() [all …]
|
| /freebsd-12.1/sys/dev/ahci/ |
| H A D | ahciem.c | 59 static void ahciemaction(struct cam_sim *sim, union ccb *ccb); 349 ahci_check_ids(union ccb *ccb) in ahci_check_ids() argument 354 xpt_done(ccb); in ahci_check_ids() 359 xpt_done(ccb); in ahci_check_ids() 366 ahci_em_emulate_ses_on_led(device_t dev, union ccb *ccb) in ahci_em_emulate_ses_on_led() argument 383 ccb->ataio.dxfer_len < ccb->ataio.cmd.sector_count * 4) { in ahci_em_emulate_ses_on_led() 568 xpt_done(ccb); in ahci_em_emulate_ses_on_led() 572 ahci_em_begin_transaction(device_t dev, union ccb *ccb) in ahci_em_begin_transaction() argument 596 xpt_done(ccb); in ahci_em_begin_transaction() 600 ahciemaction(struct cam_sim *sim, union ccb *ccb) in ahciemaction() argument [all …]
|
| /freebsd-12.1/sys/dev/mpt/ |
| H A D | mpt_cam.c | 1243 union ccb *ccb; in mpt_timeout() local 1276 union ccb *ccb; in mpt_execute_req_a64() local 1288 ccb = req->ccb; in mpt_execute_req_a64() 1680 union ccb *ccb; in mpt_execute_req() local 1691 ccb = req->ccb; in mpt_execute_req() 2103 req->ccb = ccb; in mpt_start() 2343 union ccb *ccb; in mpt_cam_event() local 2591 union ccb *ccb; in mpt_scsi_reply_handler() local 2599 ccb = req->ccb; in mpt_scsi_reply_handler() 3051 union ccb *ccb; in mpt_scsi_reply_frame_handler() local [all …]
|