| /freebsd-14.2/usr.sbin/mptutil/ |
| H A D | mpt_cam.c | 64 union ccb ccb; in fetch_path_id() local 72 bzero(&ccb, sizeof(ccb)); in fetch_path_id() 105 ccb.ccb_h.status, ccb.cdm.status); in fetch_path_id() 126 union ccb ccb; in mpt_query_disk() local 143 bzero(&ccb, sizeof(ccb)); in mpt_query_disk() 236 union ccb *ccb; in fetch_scsi_capacity() local 348 union ccb *ccb; in fetch_scsi_inquiry() local 396 union ccb ccb; in mpt_fetch_disks() local 411 bzero(&ccb, sizeof(ccb)); in mpt_fetch_disks() 523 union ccb ccb; in mpt_rescan_bus() local [all …]
|
| /freebsd-14.2/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-14.2/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-14.2/lib/libcam/ |
| H A D | camlib.c | 75 union ccb * 78 union ccb *ccb; in cam_getccb() local 80 ccb = calloc(1, sizeof(*ccb)); in cam_getccb() 94 cam_freeccb(union ccb *ccb) in cam_freeccb() argument 96 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 …]
|
| H A D | scsi_wrap.c | 52 union ccb *ccb = NULL; in scsi_wrap_get_physical_element_status() local 57 ccb = cam_getccb(device); in scsi_wrap_get_physical_element_status() 58 if (ccb == NULL) { in scsi_wrap_get_physical_element_status() 117 cam_freeccb(ccb); in scsi_wrap_get_physical_element_status() 120 cam_freeccb(ccb); in scsi_wrap_get_physical_element_status() 128 union ccb *ccb; in scsi_wrap_inquiry() local 133 if (ccb == NULL) in scsi_wrap_inquiry() 139 cam_freeccb(ccb); in scsi_wrap_inquiry() 143 scsi_inquiry(&ccb->csio, in scsi_wrap_inquiry() 160 cam_freeccb(ccb); in scsi_wrap_inquiry() [all …]
|
| /freebsd-14.2/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-14.2/sys/cam/ |
| H A D | cam_periph.c | 771 union ccb ccb; in camperiphfree() local 774 memset(&ccb, 0, sizeof(ccb)); in camperiphfree() 1128 int (*error_routine)(union ccb *ccb, in cam_periph_ioctl() argument 1132 union ccb *ccb; in cam_periph_ioctl() local 1175 bcopy(ccb, addr, sizeof(union ccb)); in cam_periph_ioctl() 1206 cam_periph_ccbwait(union ccb *ccb) in cam_periph_ccbwait() argument 1226 cam_periph_runccb(union ccb *ccb, in cam_periph_runccb() argument 1227 int (*error_routine)(union ccb *ccb, in cam_periph_runccb() argument 1545 camperiphscsistatuserror(union ccb *ccb, union ccb **orig_ccb, in camperiphscsistatuserror() argument 1660 camperiphscsisenseerror(union ccb *ccb, union ccb **orig, in camperiphscsisenseerror() argument [all …]
|
| H A D | cam.c | 315 cam_error_string(union ccb *ccb, char *str, int str_len, in cam_error_string() argument 320 cam_error_string(struct cam_device *device, union ccb *ccb, char *str, in cam_error_string() 328 if ((ccb == NULL) in cam_error_string() 510 cam_error_print(union ccb *ccb, cam_error_string_flags flags, in cam_error_print() argument 522 cam_error_print(struct cam_device *device, union ccb *ccb, in cam_error_print() argument 577 memdesc_ccb(union ccb *ccb) in memdesc_ccb() argument 584 ccb_h = &ccb->ccb_h; in memdesc_ccb() 589 csio = &ccb->csio; in memdesc_ccb() 598 ctio = &ccb->ctio; in memdesc_ccb() 646 bus_dmamap_load_ccb(bus_dma_tag_t dmat, bus_dmamap_t map, union ccb *ccb, in bus_dmamap_load_ccb() argument [all …]
|
| /freebsd-14.2/sys/cam/ctl/ |
| H A D | ctl_frontend_cam_sim.c | 69 union ccb *ccb; member 99 void cfcs_action(struct cam_sim *sim, union ccb *ccb); 241 union ccb *ccb; in cfcs_onoffline() local 284 union ccb *ccb; in cfcs_datamove() local 409 ccb->csio.resid = ccb->csio.dxfer_len - in cfcs_datamove() 422 union ccb *ccb; in cfcs_done() local 440 ccb->csio.resid = ccb->csio.dxfer_len - in cfcs_done() 454 ccb->csio.sense_resid = ccb->csio.sense_len - in cfcs_done() 458 if ((ccb->csio.sense_len - ccb->csio.sense_resid) > in cfcs_done() 460 ccb->csio.sense_resid = ccb->csio.sense_len - in cfcs_done() [all …]
|
| /freebsd-14.2/sbin/camcontrol/ |
| H A D | camcontrol.c | 399 union ccb *ccb; in getdevlist() local 458 union ccb ccb; in getdevtree() local 731 union ccb *ccb; in print_dev_mmcsd() local 781 union ccb *ccb; in nvme_get_cdata() local 953 union ccb *ccb; in testunitready() local 1000 union ccb *ccb; in scsistart() local 1123 union ccb *ccb; in scsiinquiry() local 1229 union ccb *ccb; in scsiserial() local 1311 union ccb *ccb; in camxferrate() local 3497 union ccb ccb; in parse_btl_name() local [all …]
|
| H A D | timestamp.c | 80 union ccb *ccb = NULL; in set_restore_flags() local 87 if (ccb == NULL) { in set_restore_flags() 179 if (ccb != NULL) in set_restore_flags() 180 cam_freeccb(ccb); in set_restore_flags() 195 union ccb *ccb = NULL; in report_timestamp() local 198 if (ccb == NULL) { in report_timestamp() 236 if (ccb != NULL) in report_timestamp() 237 cam_freeccb(ccb); in report_timestamp() 254 union ccb *ccb = NULL; in set_timestamp() local 265 if (ccb == NULL) { in set_timestamp() [all …]
|
| /freebsd-14.2/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-14.2/sys/dev/ata/ |
| H A D | ata-all.c | 65 static int ata_check_ids(device_t dev, union ccb *ccb); 264 union ccb *ccb; in ata_conn_event() local 787 request->u.atapi.ccb, ccb->csio.cdb_len); in ata_cam_begin_transaction() 804 request->ccb = ccb; in ata_cam_begin_transaction() 821 union ccb *ccb = request->ccb; in ata_cam_request_sense() local 832 request->u.atapi.ccb[4] = ccb->csio.sense_len; in ata_cam_request_sense() 844 request->ccb = ccb; in ata_cam_request_sense() 860 union ccb *ccb = request->ccb; in ata_cam_process_sense() local 886 union ccb *ccb = request->ccb; in ata_cam_end_transaction() local 954 ata_check_ids(device_t dev, union ccb *ccb) in ata_check_ids() argument [all …]
|
| /freebsd-14.2/sys/cam/mmc/ |
| H A D | mmc_sim.c | 60 if (mmc_sim->ccb == NULL) in mmc_sim_task() 63 cts = &mmc_sim->ccb->cts; in mmc_sim_task() 84 xpt_done(mmc_sim->ccb); in mmc_sim_task() 85 mmc_sim->ccb = NULL; in mmc_sim_task() 90 mmc_cam_sim_default_action(struct cam_sim *sim, union ccb *ccb) in mmc_cam_sim_default_action() argument 100 if (mmc_sim->ccb != NULL) { in mmc_cam_sim_default_action() 101 ccb->ccb_h.status = CAM_BUSY; in mmc_cam_sim_default_action() 102 xpt_done(ccb); in mmc_cam_sim_default_action() 136 mmc_sim->ccb = ccb; in mmc_cam_sim_default_action() 156 mmc_sim->ccb = ccb; in mmc_cam_sim_default_action() [all …]
|
| /freebsd-14.2/sys/powerpc/mpc85xx/ |
| H A D | fsl_sata.c | 86 static void fsl_sataaction(struct cam_sim *sim, union ccb *ccb); 235 union ccb *ccb; /* CCB occupying slot */ member 682 union ccb *ccb; in fsl_sata_phy_check_events() local 727 fsl_sata_done(struct fsl_sata_channel *ch, union ccb *ccb) in fsl_sata_done() argument 733 xpt_done(ccb); in fsl_sata_done() 909 slot->ccb = ccb; in fsl_sata_begin_transaction() 994 union ccb *ccb = slot->ccb; in fsl_sata_execute_transaction() local 1179 union ccb *ccb = slot->ccb; in fsl_sata_end_transaction() local 1371 union ccb *ccb; in fsl_sata_issue_recovery() local 1665 ccb->csio.cdb_io.cdb_ptr : ccb->csio.cdb_io.cdb_bytes, in fsl_sata_setup_fis() [all …]
|
| /freebsd-14.2/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-14.2/sys/dev/nvme/ |
| H A D | nvme_sim.c | 50 static void nvme_sim_action(struct cam_sim *sim, union ccb *ccb); 66 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 283 xpt_done(ccb); in nvme_sim_action() 341 union ccb *ccb; in nvme_sim_ns_change() local [all …]
|
| /freebsd-14.2/sys/dev/mvs/ |
| H A D | mvs.c | 600 union ccb *ccb; in mvs_phy_check_events() local 841 union ccb *ccb = slot->ccb; in mvs_legacy_intr() local 1019 union ccb *ccb; in mvs_crbq_intr() local 1057 ccb = ch->slot[slot].ccb; in mvs_crbq_intr() 1136 mvs_tfd_read(device_t dev, union ccb *ccb) in mvs_tfd_read() argument 1157 mvs_tfd_write(device_t dev, union ccb *ccb) in mvs_tfd_write() argument 1205 slot->ccb = ccb; in mvs_begin_transaction() 1307 union ccb *ccb = slot->ccb; in mvs_legacy_execute_transaction() local 1423 union ccb *ccb = slot->ccb; in mvs_execute_transaction() local 1607 union ccb *ccb = slot->ccb; in mvs_end_transaction() local [all …]
|
| /freebsd-14.2/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-14.2/sys/powerpc/ps3/ |
| H A D | ps3cdrom.c | 81 union ccb *x_ccb; 133 static void ps3cdrom_action(struct cam_sim *sim, union ccb *ccb); 337 ps3cdrom_action(struct cam_sim *sim, union ccb *ccb) in ps3cdrom_action() argument 443 xpt_done(ccb); in ps3cdrom_action() 472 union ccb *ccb; in ps3cdrom_intr() local 525 ccb->csio.resid = ccb->csio.dxfer_len; in ps3cdrom_intr() 538 xpt_done(ccb); in ps3cdrom_intr() 554 union ccb *ccb = xp->x_ccb; in ps3cdrom_transfer() local 571 xpt_done(ccb); in ps3cdrom_transfer() 581 ccb->csio.cdb_len, ccb->csio.dxfer_len)); in ps3cdrom_transfer() [all …]
|
| /freebsd-14.2/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-14.2/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-14.2/sys/dev/ahci/ |
| H A D | ahciem.c | 57 static void ahciemaction(struct cam_sim *sim, union ccb *ccb); 354 ahci_check_ids(union ccb *ccb) in ahci_check_ids() argument 359 xpt_done(ccb); in ahci_check_ids() 364 xpt_done(ccb); in ahci_check_ids() 371 ahci_em_emulate_ses_on_led(device_t dev, union ccb *ccb) in ahci_em_emulate_ses_on_led() argument 388 ccb->ataio.dxfer_len < ccb->ataio.cmd.sector_count * 4) { in ahci_em_emulate_ses_on_led() 573 xpt_done(ccb); in ahci_em_emulate_ses_on_led() 577 ahci_em_begin_transaction(device_t dev, union ccb *ccb) in ahci_em_begin_transaction() argument 601 xpt_done(ccb); in ahci_em_begin_transaction() 605 ahciemaction(struct cam_sim *sim, union ccb *ccb) in ahciemaction() argument [all …]
|
| /freebsd-14.2/sys/dev/aic7xxx/ |
| H A D | aic79xx_osm.c | 58 static void ahd_action(struct cam_sim *sim, union ccb *ccb); 73 union ccb *ccb); 333 union ccb *ccb; in ahd_done() local 376 xpt_done(ccb); in ahd_done() 459 xpt_done(ccb); in ahd_done() 463 ahd_action(struct cam_sim *sim, union ccb *ccb) in ahd_action() argument 635 xpt_done(ccb); in ahd_action() 647 xpt_done(ccb); in ahd_action() 655 xpt_done(ccb); in ahd_action() 953 union ccb *ccb; in ahd_execute_scb() local [all …]
|