/freebsd/usr.sbin/mptutil/ |
H A D | mpt_cam.c | 63 union ccb ccb; in fetch_path_id() local 71 bzero(&ccb, sizeof(ccb)); in fetch_path_id() 104 ccb.ccb_h.status, ccb.cdm.status); in fetch_path_id() 125 union ccb ccb; in mpt_query_disk() local 142 bzero(&ccb, sizeof(ccb)); in mpt_query_disk() 235 union ccb *ccb; in fetch_scsi_capacity() local 347 union ccb *ccb; in fetch_scsi_inquiry() local 395 union ccb ccb; in mpt_fetch_disks() local 410 bzero(&ccb, sizeof(ccb)); in mpt_fetch_disks() 522 union ccb ccb; in mpt_rescan_bus() local [all …]
|
/freebsd/sys/dev/aacraid/ |
H A D | aacraid_cam.c | 167 union ccb *ccb; in aac_cam_rescan() local 203 union ccb *ccb; in aac_cam_event() local 597 ccb->ccb_h.target_id, ccb->ccb_h.target_lun, in aac_container_special_command() 608 ccb->ccb_h.target_id, ccb->ccb_h.target_lun, in aac_container_special_command() 678 ccb->ccb_h.target_id, ccb->ccb_h.target_lun, in aac_container_special_command() 686 ccb->ccb_h.target_id, ccb->ccb_h.target_lun, in aac_container_special_command() 697 ccb->ccb_h.target_id, ccb->ccb_h.target_lun, in aac_container_special_command() 718 ccb->ccb_h.target_id, ccb->ccb_h.target_lun, in aac_container_special_command() 758 ccb->ccb_h.target_id, ccb->ccb_h.target_lun, in aac_container_special_command() 1122 union ccb *ccb; in aac_container_complete() local [all …]
|
/freebsd/sys/dev/isci/ |
H A D | isci_io_request.c | 87 union ccb *ccb; in isci_io_request_complete() local 96 ccb = isci_request->ccb; in isci_io_request_complete() 116 ccb->csio.resid = ccb->csio.dxfer_len - in isci_io_request_complete() 146 ccb->ccb_h.path_id, ccb->ccb_h.target_id, in isci_io_request_complete() 157 ccb->ccb_h.path_id, ccb->ccb_h.target_id, in isci_io_request_complete() 514 union ccb *ccb; in scif_cb_io_request_get_virtual_address_from_sgl() local 518 ccb = isci_request->ccb; in scif_cb_io_request_get_virtual_address_from_sgl() 689 union ccb *ccb; in isci_io_request_construct() local 696 ccb = io_request->ccb; in isci_io_request_construct() 772 io_request->ccb = ccb; in isci_io_request_execute_scsi_io() [all …]
|
/freebsd/lib/libcam/ |
H A D | camlib.c | 74 union ccb * 77 union ccb *ccb; in cam_getccb() local 79 ccb = calloc(1, sizeof(*ccb)); in cam_getccb() 93 cam_freeccb(union ccb *ccb) in cam_freeccb() argument 95 free(ccb); in cam_freeccb() 276 union ccb ccb; in cam_open_btl() local 287 bzero(&ccb, sizeof(union ccb)); in cam_open_btl() 349 ccb.ccb_h.status, ccb.cdm.status); in cam_open_btl() 422 union ccb ccb; in cam_lookup_pass() local 504 union ccb ccb; in cam_real_open_device() local [all …]
|
H A D | scsi_wrap.c | 51 union ccb *ccb = NULL; in scsi_wrap_get_physical_element_status() local 56 ccb = cam_getccb(device); in scsi_wrap_get_physical_element_status() 57 if (ccb == NULL) { in scsi_wrap_get_physical_element_status() 116 cam_freeccb(ccb); in scsi_wrap_get_physical_element_status() 119 cam_freeccb(ccb); in scsi_wrap_get_physical_element_status() 127 union ccb *ccb; in scsi_wrap_inquiry() local 132 if (ccb == NULL) in scsi_wrap_inquiry() 138 cam_freeccb(ccb); in scsi_wrap_inquiry() 142 scsi_inquiry(&ccb->csio, in scsi_wrap_inquiry() 159 cam_freeccb(ccb); in scsi_wrap_inquiry() [all …]
|
/freebsd/sys/dev/nvmf/host/ |
H A D | nvmf_sim.c | 29 ccb_refs(union ccb *ccb) in ccb_refs() argument 37 nvmf_ccb_done(union ccb *ccb) in nvmf_ccb_done() argument 44 xpt_done(ccb); in nvmf_ccb_done() 47 xpt_done(ccb); in nvmf_ccb_done() 52 xpt_done(ccb); in nvmf_ccb_done() 62 union ccb *ccb = arg; in nvmf_ccb_io_complete() local 92 union ccb *ccb = arg; in nvmf_ccb_complete() local 99 nvmf_sim_io(struct nvmf_softc *sc, union ccb *ccb) in nvmf_sim_io() argument 110 xpt_done(ccb); in nvmf_sim_io() 148 nvmf_sim_action(struct cam_sim *sim, union ccb *ccb) in nvmf_sim_action() argument [all …]
|
/freebsd/sys/dev/aac/ |
H A D | aac_cam.c | 110 union ccb *ccb; in aac_cam_rescan() local 146 union ccb *ccb; in aac_cam_event() local 151 ccb = arg; in aac_cam_event() 253 aac_cam_action(struct cam_sim *sim, union ccb *ccb) in aac_cam_action() argument 355 ccb->ccb_h.status = aac_cam_reset_bus(sim, ccb); in aac_cam_action() 362 ccb->ccb_h.status = aac_cam_abort_ccb(sim, ccb); in aac_cam_action() 366 ccb->ccb_h.status = aac_cam_term_io(sim, ccb); in aac_cam_action() 574 union ccb *ccb; in aac_cam_complete() local 624 aac_cam_reset_bus(struct cam_sim *sim, union ccb *ccb) in aac_cam_reset_bus() argument 669 aac_cam_abort_ccb(struct cam_sim *sim, union ccb *ccb) in aac_cam_abort_ccb() argument [all …]
|
/freebsd/sys/cam/ |
H A D | cam_periph.c | 770 union ccb ccb; in camperiphfree() local 773 memset(&ccb, 0, sizeof(ccb)); in camperiphfree() 1127 int (*error_routine)(union ccb *ccb, in cam_periph_ioctl() argument 1131 union ccb *ccb; in cam_periph_ioctl() local 1174 bcopy(ccb, addr, sizeof(union ccb)); in cam_periph_ioctl() 1205 cam_periph_ccbwait(union ccb *ccb) in cam_periph_ccbwait() argument 1225 cam_periph_runccb(union ccb *ccb, in cam_periph_runccb() argument 1226 int (*error_routine)(union ccb *ccb, in cam_periph_runccb() argument 1544 camperiphscsistatuserror(union ccb *ccb, union ccb **orig_ccb, in camperiphscsistatuserror() argument 1659 camperiphscsisenseerror(union ccb *ccb, union ccb **orig, in camperiphscsisenseerror() argument [all …]
|
H A D | cam.c | 316 cam_error_string(union ccb *ccb, char *str, int str_len, in cam_error_string() argument 321 cam_error_string(struct cam_device *device, union ccb *ccb, char *str, in cam_error_string() 329 if ((ccb == NULL) in cam_error_string() 511 cam_error_print(union ccb *ccb, cam_error_string_flags flags, in cam_error_print() argument 523 cam_error_print(struct cam_device *device, union ccb *ccb, in cam_error_print() argument 578 memdesc_ccb(union ccb *ccb) in memdesc_ccb() argument 585 ccb_h = &ccb->ccb_h; in memdesc_ccb() 590 csio = &ccb->csio; in memdesc_ccb() 599 ctio = &ccb->ctio; in memdesc_ccb() 647 bus_dmamap_load_ccb(bus_dma_tag_t dmat, bus_dmamap_t map, union ccb *ccb, in bus_dmamap_load_ccb() argument [all …]
|
/freebsd/sys/cam/ctl/ |
H A D | ctl_frontend_cam_sim.c | 68 union ccb *ccb; member 98 void cfcs_action(struct cam_sim *sim, union ccb *ccb); 240 union ccb *ccb; in cfcs_onoffline() local 283 union ccb *ccb; in cfcs_datamove() local 408 ccb->csio.resid = ccb->csio.dxfer_len - in cfcs_datamove() 421 union ccb *ccb; in cfcs_done() local 439 ccb->csio.resid = ccb->csio.dxfer_len - in cfcs_done() 453 ccb->csio.sense_resid = ccb->csio.sense_len - in cfcs_done() 457 if ((ccb->csio.sense_len - ccb->csio.sense_resid) > in cfcs_done() 459 ccb->csio.sense_resid = ccb->csio.sense_len - in cfcs_done() [all …]
|
/freebsd/sbin/camcontrol/ |
H A D | camcontrol.c | 400 union ccb *ccb; in getdevlist() local 459 union ccb ccb; in getdevtree() local 732 union ccb *ccb; in print_dev_mmcsd() local 782 union ccb *ccb; in nvme_get_cdata() local 954 union ccb *ccb; in testunitready() local 1001 union ccb *ccb; in scsistart() local 1124 union ccb *ccb; in scsiinquiry() local 1230 union ccb *ccb; in scsiserial() local 1312 union ccb *ccb; in camxferrate() local 3498 union ccb ccb; in parse_btl_name() local [all …]
|
H A D | timestamp.c | 79 union ccb *ccb = NULL; in set_restore_flags() local 86 if (ccb == NULL) { in set_restore_flags() 178 if (ccb != NULL) in set_restore_flags() 179 cam_freeccb(ccb); in set_restore_flags() 194 union ccb *ccb = NULL; in report_timestamp() local 197 if (ccb == NULL) { in report_timestamp() 235 if (ccb != NULL) in report_timestamp() 236 cam_freeccb(ccb); in report_timestamp() 253 union ccb *ccb = NULL; in set_timestamp() local 264 if (ccb == NULL) { in set_timestamp() [all …]
|
/freebsd/usr.bin/iscsictl/ |
H A D | periphs.c | 67 union ccb ccb; in print_periphs() local 82 bzero(&ccb, sizeof(union ccb)); in print_periphs() 84 ccb.ccb_h.path_id = CAM_XPT_PATH_ID; in print_periphs() 88 ccb.ccb_h.func_code = XPT_DEV_MATCH; in print_periphs() 90 ccb.cdm.match_buf_len = bufsize; in print_periphs() 92 if (ccb.cdm.matches == NULL) { in print_periphs() 97 ccb.cdm.num_matches = 0; in print_periphs() 103 ccb.cdm.num_patterns = 0; in print_periphs() 104 ccb.cdm.pattern_buf_len = 0; in print_periphs() 127 ccb.ccb_h.status, ccb.cdm.status); in print_periphs() [all …]
|
/freebsd/sys/dev/ata/ |
H A D | ata-all.c | 64 static int ata_check_ids(device_t dev, union ccb *ccb); 262 union ccb *ccb; in ata_conn_event() local 785 request->u.atapi.ccb, ccb->csio.cdb_len); in ata_cam_begin_transaction() 802 request->ccb = ccb; in ata_cam_begin_transaction() 819 union ccb *ccb = request->ccb; in ata_cam_request_sense() local 830 request->u.atapi.ccb[4] = ccb->csio.sense_len; in ata_cam_request_sense() 842 request->ccb = ccb; in ata_cam_request_sense() 858 union ccb *ccb = request->ccb; in ata_cam_process_sense() local 884 union ccb *ccb = request->ccb; in ata_cam_end_transaction() local 952 ata_check_ids(device_t dev, union ccb *ccb) in ata_check_ids() argument [all …]
|
/freebsd/sys/cam/mmc/ |
H A D | mmc_sim.c | 59 if (mmc_sim->ccb == NULL) in mmc_sim_task() 62 cts = &mmc_sim->ccb->cts; in mmc_sim_task() 83 xpt_done(mmc_sim->ccb); in mmc_sim_task() 84 mmc_sim->ccb = NULL; in mmc_sim_task() 89 mmc_cam_sim_default_action(struct cam_sim *sim, union ccb *ccb) in mmc_cam_sim_default_action() argument 99 if (mmc_sim->ccb != NULL) { in mmc_cam_sim_default_action() 100 ccb->ccb_h.status = CAM_BUSY; in mmc_cam_sim_default_action() 101 xpt_done(ccb); in mmc_cam_sim_default_action() 135 mmc_sim->ccb = ccb; in mmc_cam_sim_default_action() 155 mmc_sim->ccb = ccb; in mmc_cam_sim_default_action() [all …]
|
/freebsd/sys/powerpc/mpc85xx/ |
H A D | fsl_sata.c | 85 static void fsl_sataaction(struct cam_sim *sim, union ccb *ccb); 234 union ccb *ccb; /* CCB occupying slot */ member 680 union ccb *ccb; in fsl_sata_phy_check_events() local 725 fsl_sata_done(struct fsl_sata_channel *ch, union ccb *ccb) in fsl_sata_done() argument 731 xpt_done(ccb); in fsl_sata_done() 907 slot->ccb = ccb; in fsl_sata_begin_transaction() 992 union ccb *ccb = slot->ccb; in fsl_sata_execute_transaction() local 1177 union ccb *ccb = slot->ccb; in fsl_sata_end_transaction() local 1369 union ccb *ccb; in fsl_sata_issue_recovery() local 1663 ccb->csio.cdb_io.cdb_ptr : ccb->csio.cdb_io.cdb_bytes, in fsl_sata_setup_fis() [all …]
|
/freebsd/sys/dev/isp/ |
H A D | isp_freebsd.h | 445 #define XS_TGT(ccb) (ccb)->ccb_h.target_id argument 452 #define XS_CDBLEN(ccb) (ccb)->cdb_len argument 453 #define XS_XFRLEN(ccb) (ccb)->dxfer_len argument 459 #define XS_GET_RESID(ccb) (ccb)->resid argument 461 #define XS_STSP(ccb) (&(ccb)->scsi_status) argument 462 #define XS_SNSP(ccb) (&(ccb)->sense_data) argument 464 #define XS_TOT_SNSLEN(ccb) ccb->sense_len argument 465 #define XS_CUR_SNSLEN(ccb) (ccb->sense_len - ccb->sense_resid) argument 468 ccb->sense_len - ccb->sense_resid, 1)) 485 #define XS_PRIORITY(ccb) (ccb)->priority argument [all …]
|
H A D | isp_freebsd.c | 601 isp_get_pcmd(ispsoftc_t *isp, union ccb *ccb) in isp_get_pcmd() argument 694 union ccb *ccb; in isp_tmcmd_restart() local 707 ccb = (union ccb *)TAILQ_FIRST(&fc->waitq); in isp_tmcmd_restart() 830 union ccb *ccb; in destroy_lun_state() local 1466 union ccb *ccb; in isp_handle_srr_start() local 1585 union ccb *ccb; in isp_handle_platform_ctio() local 1642 ccb->csio.resid = ccb->csio.dxfer_len - in isp_handle_platform_ctio() 2002 union ccb *ccb; in isp_make_here() local 2290 union ccb *accb = ccb->cab.abort_ccb; in isp_abort_atio() 2341 union ccb *accb = ccb->cab.abort_ccb; in isp_abort_inot() [all …]
|
/freebsd/sys/dev/nvme/ |
H A D | nvme_sim.c | 49 static void nvme_sim_action(struct cam_sim *sim, union ccb *ccb); 65 union ccb *ccb = (union ccb *)ccb_arg; in nvme_sim_nvmeio_done() local 77 xpt_done(ccb); in nvme_sim_nvmeio_done() 85 nvme_sim_nvmeio(struct cam_sim *sim, union ccb *ccb) in nvme_sim_nvmeio() argument 101 req = nvme_allocate_request_ccb(ccb, nvme_sim_nvmeio_done, ccb); in nvme_sim_nvmeio() 110 xpt_done(ccb); in nvme_sim_nvmeio() 115 memcpy(&req->cmd, &ccb->nvmeio.cmd, sizeof(ccb->nvmeio.cmd)); in nvme_sim_nvmeio() 142 nvme_sim_action(struct cam_sim *sim, union ccb *ccb) in nvme_sim_action() argument 286 xpt_done(ccb); in nvme_sim_action() 344 union ccb *ccb; in nvme_sim_ns_change() local [all …]
|
/freebsd/sys/dev/mvs/ |
H A D | mvs.c | 599 union ccb *ccb; in mvs_phy_check_events() local 840 union ccb *ccb = slot->ccb; in mvs_legacy_intr() local 1018 union ccb *ccb; in mvs_crbq_intr() local 1056 ccb = ch->slot[slot].ccb; in mvs_crbq_intr() 1135 mvs_tfd_read(device_t dev, union ccb *ccb) in mvs_tfd_read() argument 1156 mvs_tfd_write(device_t dev, union ccb *ccb) in mvs_tfd_write() argument 1204 slot->ccb = ccb; in mvs_begin_transaction() 1306 union ccb *ccb = slot->ccb; in mvs_legacy_execute_transaction() local 1422 union ccb *ccb = slot->ccb; in mvs_execute_transaction() local 1606 union ccb *ccb = slot->ccb; in mvs_end_transaction() local [all …]
|
/freebsd/sys/powerpc/ps3/ |
H A D | ps3cdrom.c | 80 union ccb *x_ccb; 132 static void ps3cdrom_action(struct cam_sim *sim, union ccb *ccb); 336 ps3cdrom_action(struct cam_sim *sim, union ccb *ccb) in ps3cdrom_action() argument 442 xpt_done(ccb); in ps3cdrom_action() 471 union ccb *ccb; in ps3cdrom_intr() local 524 ccb->csio.resid = ccb->csio.dxfer_len; in ps3cdrom_intr() 537 xpt_done(ccb); in ps3cdrom_intr() 553 union ccb *ccb = xp->x_ccb; in ps3cdrom_transfer() local 570 xpt_done(ccb); in ps3cdrom_transfer() 580 ccb->csio.cdb_len, ccb->csio.dxfer_len)); in ps3cdrom_transfer() [all …]
|
/freebsd/sys/dev/ocs_fc/ |
H A D | ocs_cam.c | 1036 union ccb *ccb = NULL; in ocs_add_new_tgt() local 1371 union ccb *ccb = arg; in ocs_scsi_target_io_cb() local 1488 union ccb *ccb = arg; in ocs_scsi_initiator_io_cb() local 2051 ocs_action(struct cam_sim *sim, union ccb *ccb) in ocs_action() argument 2327 union ccb *accb = ccb->cab.abort_ccb; in ocs_action() 2532 ccb->ccb_h.flags, ccb->csio.tag_id); in ocs_action() 2632 union ccb *ccb = NULL; in ocs_tgt_resource_abort() local 2635 ccb = (union ccb *)STAILQ_FIRST(&trsrc->atio); in ocs_tgt_resource_abort() 2644 ccb = (union ccb *)STAILQ_FIRST(&trsrc->inot); in ocs_tgt_resource_abort() 2663 union ccb *accb = ccb->cab.abort_ccb; in ocs_abort_atio() [all …]
|
/freebsd/sys/dev/smartpqi/ |
H A D | smartpqi_cam.c | 111 union ccb *ccb; in os_add_device() local 539 pqi_freeze_ccb(union ccb *ccb) in pqi_freeze_ccb() argument 555 union ccb *ccb; in pqi_request_map_helper() local 603 xpt_done(ccb); in pqi_request_map_helper() 615 union ccb *ccb = rcb->cm_ccb; in pqi_map_request() local 696 union ccb *ccb = NULL; in smartpqi_lun_rescan() local 717 memset(ccb, 0, sizeof(union ccb)); in smartpqi_lun_rescan() 757 union ccb *ccb = rcb->cm_ccb; in os_get_task_attr() local 805 pqisrc_io_start(struct cam_sim *sim, union ccb *ccb) in pqisrc_io_start() argument 1069 smartpqi_cam_action(struct cam_sim *sim, union ccb *ccb) in smartpqi_cam_action() argument [all …]
|
/freebsd/sys/dev/siis/ |
H A D | siis.c | 812 union ccb *ccb; in siis_phy_check_events() local 991 slot->ccb = ccb; in siis_begin_transaction() 1060 union ccb *ccb = slot->ccb; in siis_execute_transaction() local 1174 union ccb *ccb = slot->ccb; in siis_timeout() local 1213 union ccb *ccb = slot->ccb; in siis_end_transaction() local 1244 ccb->ataio.resid = ccb->ataio.dxfer_len - in siis_end_transaction() 1250 ccb->csio.resid = ccb->csio.dxfer_len - in siis_end_transaction() 1368 union ccb *ccb; in siis_issue_recovery() local 1708 ctp->u.atapi.ccb, ccb->csio.cdb_len); in siis_setup_fis() 1786 siis_check_ids(device_t dev, union ccb *ccb) in siis_check_ids() argument [all …]
|
/freebsd/sys/dev/ahci/ |
H A D | ahciem.c | 56 static void ahciemaction(struct cam_sim *sim, union ccb *ccb); 353 ahci_check_ids(union ccb *ccb) in ahci_check_ids() argument 358 xpt_done(ccb); in ahci_check_ids() 363 xpt_done(ccb); in ahci_check_ids() 370 ahci_em_emulate_ses_on_led(device_t dev, union ccb *ccb) in ahci_em_emulate_ses_on_led() argument 387 ccb->ataio.dxfer_len < ccb->ataio.cmd.sector_count * 4) { in ahci_em_emulate_ses_on_led() 572 xpt_done(ccb); in ahci_em_emulate_ses_on_led() 576 ahci_em_begin_transaction(device_t dev, union ccb *ccb) in ahci_em_begin_transaction() argument 600 xpt_done(ccb); in ahci_em_begin_transaction() 604 ahciemaction(struct cam_sim *sim, union ccb *ccb) in ahciemaction() argument [all …]
|