/freebsd-9.3-release/usr.sbin/mptutil/ |
H A D | mpt_cam.c | 64 union ccb ccb; local 72 bzero(&ccb, sizeof(ccb)); 74 ccb.ccb_h.func_code = XPT_DEV_MATCH; 77 ccb.cdm.num_matches = 0; 78 ccb.cdm.match_buf_len = bufsize; 79 ccb.cdm.matches = calloc(1, bufsize); 82 ccb.cdm.num_patterns = 1; 83 ccb 126 union ccb ccb; local 236 union ccb *ccb; local 350 union ccb *ccb; local 399 union ccb ccb; local 526 union ccb ccb; local [all...] |
/freebsd-9.3-release/sys/cam/ |
H A D | cam_compat.c | 61 union ccb *ccb; local 63 ccb = (union ccb *)*addr; 64 if (ccb->ccb_h.flags & CAM_SG_LIST_PHYS_0x16) { 65 ccb->ccb_h.flags &= ~CAM_SG_LIST_PHYS_0x16; 66 ccb->ccb_h.flags |= CAM_DATA_SG_PADDR; 68 if (ccb->ccb_h.flags & CAM_DATA_PHYS_0x16) { 69 ccb->ccb_h.flags &= ~CAM_DATA_PHYS_0x16; 70 ccb [all...] |
H A D | cam_xpt_periph.h | 41 void xpt_polled_action(union ccb *ccb); 42 void xpt_release_ccb(union ccb *released_ccb);
|
H A D | cam_compat.h | 39 /* The size of the union ccb didn't change when going to 0x17 */ 40 #define CAMIOCOMMAND_0x16 _IOWR(CAM_VERSION_0x16, 2, union ccb) 41 #define CAMGETPASSTHRU_0x16 _IOWR(CAM_VERSION_0x16, 3, union ccb)
|
H A D | cam_periph.c | 69 union ccb *done_ccb); 71 static int camperiphscsistatuserror(union ccb *ccb, 72 union ccb **orig_ccb, 80 static int camperiphscsisenseerror(union ccb *ccb, 81 union ccb **orig_ccb, 659 union ccb ccb; local 664 ccb 695 cam_periph_mapmem(union ccb *ccb, struct cam_periph_map_info *mapinfo) argument 889 cam_periph_unmapmem(union ccb *ccb, struct cam_periph_map_info *mapinfo) argument 976 cam_periph_ccbwait(union ccb *ccb) argument 987 cam_periph_ioctl(struct cam_periph *periph, u_long cmd, caddr_t addr, int (*error_routine)(union ccb *ccb, cam_flags camflags, u_int32_t sense_flags)) argument 992 union ccb *ccb; local 1049 cam_periph_runccb(union ccb *ccb, int (*error_routine)(union ccb *ccb, cam_flags camflags, u_int32_t sense_flags), cam_flags camflags, u_int32_t sense_flags, struct devstat *ds) argument 1282 camperiphscsistatuserror(union ccb *ccb, union ccb **orig_ccb, cam_flags camflags, u_int32_t sense_flags, int *openings, u_int32_t *relsim_flags, u_int32_t *timeout, u_int32_t *action, const char **action_string) argument 1388 camperiphscsisenseerror(union ccb *ccb, union ccb **orig, cam_flags camflags, u_int32_t sense_flags, int *openings, u_int32_t *relsim_flags, u_int32_t *timeout, u_int32_t *action, const char **action_string) argument 1597 cam_periph_error(union ccb *ccb, cam_flags camflags, u_int32_t sense_flags, union ccb *save_ccb) argument [all...] |
H A D | cam.c | 230 cam_error_string(union ccb *ccb, char *str, int str_len, argument 235 cam_error_string(struct cam_device *device, union ccb *ccb, char *str, 243 if ((ccb == NULL) 251 switch (ccb->ccb_h.func_code) { 301 xpt_path_string(ccb->csio.ccb_h.path, path_str, sizeof(path_str)); 310 switch (ccb->ccb_h.func_code) { 312 ata_command_sbuf(&ccb->ataio, &sb); 317 scsi_command_string(&ccb 421 cam_error_print(union ccb *ccb, cam_error_string_flags flags, cam_error_proto_flags proto_flags) argument 433 cam_error_print(struct cam_device *device, union ccb *ccb, cam_error_string_flags flags, cam_error_proto_flags proto_flags, FILE *ofile) argument [all...] |
H A D | cam_xpt.h | 36 union ccb; 67 void xpt_action(union ccb *new_ccb); 68 void xpt_action_default(union ccb *new_ccb); 69 union ccb *xpt_alloc_ccb(void); 70 union ccb *xpt_alloc_ccb_nowait(void); 71 void xpt_free_ccb(union ccb *free_ccb); 75 void xpt_merge_ccb(union ccb *master_ccb, 76 union ccb *slave_ccb); 108 void xpt_rescan(union ccb *ccb); [all...] |
/freebsd-9.3-release/sys/dev/mpt/ |
H A D | mpt_cam.h | 114 static __inline void mpt_freeze_ccb(union ccb *ccb); 115 static __inline void mpt_set_ccb_status(union ccb *ccb, cam_status status); 118 mpt_freeze_ccb(union ccb *ccb) argument 120 if ((ccb->ccb_h.status & CAM_DEV_QFRZN) == 0) { 121 ccb->ccb_h.status |= CAM_DEV_QFRZN; 122 xpt_freeze_devq(ccb->ccb_h.path, /*count*/1); 127 mpt_set_ccb_status(union ccb *cc argument [all...] |
/freebsd-9.3-release/sys/cam/scsi/ |
H A D | scsi_pass.h | 36 * Convert to using a pointer to a ccb in the next major version. 39 #define CAMIOCOMMAND _IOWR(CAM_VERSION, 2, union ccb) 40 #define CAMGETPASSTHRU _IOWR(CAM_VERSION, 3, union ccb)
|
/freebsd-9.3-release/sys/dev/isci/ |
H A D | isci_io_request.c | 87 union ccb *ccb; local 95 ccb = isci_request->ccb; 97 ccb->ccb_h.status &= ~CAM_STATUS_MASK; 103 if (ccb->ccb_h.func_code == XPT_SMP_IO) { 108 memcpy(ccb->smpio.smp_response, smp_response, 109 ccb->smpio.smp_response_len); 112 ccb->ccb_h.status |= CAM_REQ_CMP; 116 ccb 515 union ccb *ccb; local 690 union ccb *ccb; local 739 isci_io_request_execute_scsi_io(union ccb *ccb, struct ISCI_CONTROLLER *controller) argument 920 isci_io_request_execute_smp_io(union ccb *ccb, struct ISCI_CONTROLLER *controller) argument [all...] |
H A D | isci_task_request.c | 187 union ccb *ccb = isci_task_request->ccb; local 243 isci_remote_device_reset(isci_remote_device, ccb); 257 } else if (ccb != NULL) { 261 ccb->ccb_h.status &= ~CAM_STATUS_MASK; 262 ccb->ccb_h.status |= CAM_REQ_CMP; 263 xpt_done(ccb);
|
/freebsd-9.3-release/sys/dev/aac/ |
H A D | aac_cam.c | 79 static void aac_cam_action(struct cam_sim *, union ccb *); 85 static u_int32_t aac_cam_reset_bus(struct cam_sim *, union ccb *); 86 static u_int32_t aac_cam_abort_ccb(struct cam_sim *, union ccb *); 87 static u_int32_t aac_cam_term_io(struct cam_sim *, union ccb *); 112 union ccb *ccb; local 125 ccb = xpt_alloc_ccb_nowait(); 126 if (ccb == NULL) { 128 "Cannot allocate ccb for bus rescan.\n"); 132 if (xpt_create_path(&ccb 149 union ccb *ccb; local 256 aac_cam_action(struct cam_sim *sim, union ccb *ccb) argument 528 aac_cam_fix_inquiry(struct aac_softc *sc, union ccb *ccb) argument 577 union ccb *ccb; local 627 aac_cam_reset_bus(struct cam_sim *sim, union ccb *ccb) argument 672 aac_cam_abort_ccb(struct cam_sim *sim, union ccb *ccb) argument 678 aac_cam_term_io(struct cam_sim *sim, union ccb *ccb) argument [all...] |
/freebsd-9.3-release/lib/libcam/ |
H A D | camlib.c | 62 * Send a ccb to a passthrough device. 65 cam_send_ccb(struct cam_device *device, union ccb *ccb) argument 67 return(ioctl(device->fd, CAMIOCOMMAND, ccb)); 73 union ccb * 76 union ccb *ccb; local 78 ccb = (union ccb *)malloc(sizeof(union ccb)); 93 cam_freeccb(union ccb *ccb) argument 271 union ccb ccb; local 413 union ccb ccb; local 497 union ccb ccb; local [all...] |
/freebsd-9.3-release/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); 187 * Description: Build a fw cmd, based on a CAM style ccb, and 191 * ccb -- ptr to CAM style ccb 197 tw_osli_execute_scsi(struct tw_osli_req_context *req, union ccb *ccb) argument 202 struct ccb_hdr *ccb_h = &(ccb 311 twa_action(struct cam_sim *sim, union ccb *ccb) argument 481 union ccb *ccb; local 522 union ccb *ccb = (union ccb *)(req->orig_req); local 543 union ccb *ccb = (union ccb *)(req->orig_req); local 610 union ccb *ccb = (union ccb *)(req->orig_req); local [all...] |
/freebsd-9.3-release/sys/dev/iscsi/initiator/ |
H A D | isc_cam.c | 60 _inq(struct cam_sim *sim, union ccb *ccb) argument 62 struct ccb_pathinq *cpi = &ccb->cpi; 66 debug(3, "sid=%d target=%d lun=%d", sp->sid, ccb->ccb_h.target_id, ccb->ccb_h.target_lun); 90 _scsi_encap(struct cam_sim *sim, union ccb *ccb) argument 95 ret = scsi_encap(sim, ccb); 100 ret = scsi_encap(sim, ccb); 122 scan_callback(struct cam_periph *periph, union ccb *cc argument 139 union ccb *ccb; local 183 ic_action(struct cam_sim *sim, union ccb *ccb) argument [all...] |
/freebsd-9.3-release/sys/dev/aacraid/ |
H A D | aacraid_cam.c | 110 static void aac_cam_action(struct cam_sim *, union ccb *); 118 static void aac_set_scsi_error(struct aac_softc *sc, union ccb *ccb, 122 static void aac_container_rw_command(struct cam_sim *, union ccb *, u_int8_t *); 123 static void aac_container_special_command(struct cam_sim *, union ccb *, 125 static void aac_passthrough_command(struct cam_sim *, union ccb *); 127 static u_int32_t aac_cam_reset_bus(struct cam_sim *, union ccb *); 128 static u_int32_t aac_cam_abort_ccb(struct cam_sim *, union ccb *); 129 static u_int32_t aac_cam_term_io(struct cam_sim *, union ccb *); 152 aac_set_scsi_error(struct aac_softc *sc, union ccb *cc argument 184 union ccb *ccb; local 221 union ccb *ccb; local 371 aac_container_rw_command(struct cam_sim *sim, union ccb *ccb, u_int8_t *cmdp) argument 518 aac_container_special_command(struct cam_sim *sim, union ccb *ccb, u_int8_t *cmdp) argument 853 aac_passthrough_command(struct cam_sim *sim, union ccb *ccb) argument 969 aac_cam_action(struct cam_sim *sim, union ccb *ccb) argument 1137 union ccb *ccb; local 1162 union ccb *ccb; local 1255 aac_cam_reset_bus(struct cam_sim *sim, union ccb *ccb) argument 1333 aac_cam_abort_ccb(struct cam_sim *sim, union ccb *ccb) argument 1339 aac_cam_term_io(struct cam_sim *sim, union ccb *ccb) argument [all...] |
/freebsd-9.3-release/sys/powerpc/ps3/ |
H A D | ps3cdrom.c | 82 union ccb *x_ccb; 134 static void ps3cdrom_action(struct cam_sim *sim, union ccb *ccb); 269 xpt_action((union ccb *) &csa); 337 ps3cdrom_action(struct cam_sim *sim, union ccb *ccb) argument 346 CAM_DEBUG(ccb->ccb_h.path, CAM_DEBUG_TRACE, 347 ("function code 0x%02x\n", ccb->ccb_h.func_code)); 349 switch (ccb->ccb_h.func_code) { 351 if ((ccb 472 union ccb *ccb; local 555 union ccb *ccb = xp->x_ccb; local [all...] |
/freebsd-9.3-release/sys/dev/dpt/ |
H A D | dpt_scsi.c | 150 static void dpt_action(struct cam_sim *sim, union ccb *ccb); 158 union ccb *ccb, u_int hba_stat, 253 LIST_REMOVE(&dccb->ccb->ccb_h, sim_links.le); 255 dccb->ccb->ccb_h.status |= CAM_RELEASE_SIMQ; 257 && (dccb->ccb->ccb_h.status & CAM_RELEASE_SIMQ) == 0) { 258 dccb->ccb->ccb_h.status |= CAM_RELEASE_SIMQ; 720 union ccb *ccb; local 810 dpt_action(struct cam_sim *sim, union ccb *ccb) argument 1602 union ccb *ccb; local 1719 dptprocesserror(dpt_softc_t *dpt, dpt_ccb_t *dccb, union ccb *ccb, u_int hba_stat, u_int scsi_stat, u_int32_t resid) argument 1784 union ccb *ccb; local [all...] |
/freebsd-9.3-release/sbin/camcontrol/ |
H A D | camcontrol.c | 357 union ccb *ccb; local 361 ccb = cam_getccb(device); 363 ccb->ccb_h.func_code = XPT_GDEVLIST; 364 ccb->ccb_h.flags = CAM_DIR_NONE; 365 ccb->ccb_h.retry_count = 1; 366 ccb->cgdl.index = 0; 367 ccb->cgdl.status = CAM_GDEVLIST_MORE_DEVS; 368 while (ccb->cgdl.status == CAM_GDEVLIST_MORE_DEVS) { 369 if (cam_send_ccb(device, ccb) < 417 union ccb ccb; local 622 union ccb *ccb; local 675 union ccb *ccb; local 800 union ccb *ccb; local 915 union ccb *ccb; local 1007 union ccb *ccb; local 1457 scsi_cam_pass_16_send(struct cam_device *device, union ccb *ccb, int quiet) argument 1512 ata_cam_send(struct cam_device *device, union ccb *ccb, int quiet) argument 1558 ata_do_pass_16(struct cam_device *device, union ccb *ccb, int retries, u_int32_t flags, u_int8_t protocol, u_int8_t ata_flags, u_int8_t tag_action, u_int8_t command, u_int8_t features, u_int64_t lba, u_int8_t sector_count, u_int8_t *data_ptr, u_int16_t dxfer_len, int timeout, int quiet) argument 1618 ata_do_28bit_cmd(struct cam_device *device, union ccb *ccb, int retries, u_int32_t flags, u_int8_t protocol, u_int8_t tag_action, u_int8_t command, u_int8_t features, u_int32_t lba, u_int8_t sector_count, u_int8_t *data_ptr, u_int16_t dxfer_len, int timeout, int quiet) argument 1653 ata_do_cmd(struct cam_device *device, union ccb *ccb, int retries, u_int32_t flags, u_int8_t protocol, u_int8_t ata_flags, u_int8_t tag_action, u_int8_t command, u_int8_t features, u_int64_t lba, u_int8_t sector_count, u_int8_t *data_ptr, u_int16_t dxfer_len, int timeout, int force48bit) argument 1746 atahpa_proc_resp(struct cam_device *device, union ccb *ccb, int is48bit, u_int64_t *hpasize) argument 1798 ata_read_native_max(struct cam_device *device, int retry_count, u_int32_t timeout, union ccb *ccb, struct ata_params *parm, u_int64_t *hpasize) argument 1839 atahpa_set_max(struct cam_device *device, int retry_count, u_int32_t timeout, union ccb *ccb, int is48bit, u_int64_t maxsize, int persist) argument 1883 atahpa_password(struct cam_device *device, int retry_count, u_int32_t timeout, union ccb *ccb, int is48bit, struct ata_set_max_pwd *pwd) argument 1917 atahpa_lock(struct cam_device *device, int retry_count, u_int32_t timeout, union ccb *ccb, int is48bit) argument 1950 atahpa_unlock(struct cam_device *device, int retry_count, u_int32_t timeout, union ccb *ccb, int is48bit, struct ata_set_max_pwd *pwd) argument 1984 atahpa_freeze_lock(struct cam_device *device, int retry_count, u_int32_t timeout, union ccb *ccb, int is48bit) argument 2018 ata_do_identify(struct cam_device *device, int retry_count, int timeout, union ccb *ccb, struct ata_params** ident_bufp) argument 2146 union ccb *ccb; local 2251 atasecurity_freeze(struct cam_device *device, union ccb *ccb, int retry_count, u_int32_t timeout, int quiet) argument 2275 atasecurity_unlock(struct cam_device *device, union ccb *ccb, int retry_count, u_int32_t timeout, struct ata_security_password *pwd, int quiet) argument 2300 atasecurity_disable(struct cam_device *device, union ccb *ccb, int retry_count, u_int32_t timeout, struct ata_security_password *pwd, int quiet) argument 2356 atasecurity_erase(struct cam_device *device, union ccb *ccb, int retry_count, u_int32_t timeout, u_int32_t erase_timeout, struct ata_security_password *pwd, int quiet) argument 2409 atasecurity_set_password(struct cam_device *device, union ccb *ccb, int retry_count, u_int32_t timeout, struct ata_security_password *pwd, int quiet) argument 2547 union ccb *ccb; local 2746 union ccb *ccb; local 3104 union ccb ccb, matchccb; local 3271 union ccb ccb; local 3362 union ccb *ccb = NULL; local 3727 union ccb *ccb; local 3777 union ccb *ccb; local 3879 union ccb *ccb; local 4237 union ccb ccb; local 4371 union ccb *ccb; local 4626 union ccb *ccb; local 4665 union ccb *ccb; local 4876 union ccb *ccb; local 4932 union ccb *ccb; local 5288 union ccb *ccb; local 5580 union ccb *ccb; local 5976 union ccb *ccb; local 6219 union ccb *ccb; local 6428 union ccb *ccb; local 6623 union ccb *ccb; local 6761 union ccb *ccb; local 7027 union ccb *ccb; local 7117 union ccb *ccb = NULL; local 7207 union ccb ccb; local 7409 union ccb *ccb; local 7661 union ccb *ccb; local [all...] |
/freebsd-9.3-release/sys/dev/advansys/ |
H A D | adwcam.c | 90 static void adw_action(struct cam_sim *sim, union ccb *ccb); 131 LIST_REMOVE(&acb->ccb->ccb_h, sim_links.le); 133 acb->ccb->ccb_h.status |= CAM_RELEASE_SIMQ; 135 && (acb->ccb->ccb_h.status & CAM_RELEASE_SIMQ) == 0) { 136 acb->ccb->ccb_h.status |= CAM_RELEASE_SIMQ; 229 union ccb *ccb; local 233 ccb = acb->ccb; 332 adw_action(struct cam_sim *sim, union ccb *ccb) argument 1255 union ccb *ccb; local 1331 union ccb *ccb; local 1425 union ccb *ccb; local [all...] |
/freebsd-9.3-release/sys/dev/ahb/ |
H A D | ahb.c | 82 struct ecb *ecb, union ccb *ccb); 88 static void ahbaction(struct cam_sim *sim, union ccb *ccb); 312 /* DMA tag for our ccb structures and ha inquiry data */ 597 union ccb *ccb; local 600 ccb = pending_ecb->ccb; 602 if (ccb 639 ahbcalcresid(struct ahb_softc *ahb, struct ecb *ecb, union ccb *ccb) argument 688 ahbprocesserror(struct ahb_softc *ahb, struct ecb *ecb, union ccb *ccb) argument 786 union ccb *ccb; local 905 union ccb *ccb; local 994 ahbaction(struct cam_sim *sim, union ccb *ccb) argument 1216 union ccb *ccb; local [all...] |
/freebsd-9.3-release/sys/cam/ctl/ |
H A D | ctl_frontend_cam_sim.c | 73 union ccb *ccb; member in struct:cfcs_io 110 void cfcs_action(struct cam_sim *sim, union ccb *ccb); 258 xpt_action((union ccb *)&csa); 305 union ccb *ccb; local 312 ccb = xpt_alloc_ccb_nowait(); 313 if (ccb == NULL) { 318 if (xpt_create_path(&ccb 377 union ccb *ccb; local 510 union ccb *ccb; local 565 cfcs_action(struct cam_sim *sim, union ccb *ccb) argument [all...] |
/freebsd-9.3-release/sys/dev/aic7xxx/ |
H A D | aic79xx_osm.c | 60 static void ahd_action(struct cam_sim *sim, union ccb *ccb); 75 union ccb *ccb); 275 xpt_action((union ccb *)&csa); 316 union ccb *ccb; local 321 ccb = scb->io_ctx; 328 if ((ccb->ccb_h.flags & CAM_DIR_MASK) != CAM_DIR_NONE) { 331 if ((ccb 454 ahd_action(struct cam_sim *sim, union ccb *ccb) argument 947 union ccb *ccb; local 1140 ahd_abort_ccb(struct ahd_softc *ahd, struct cam_sim *sim, union ccb *ccb) argument [all...] |
H A D | aic7xxx_osm.c | 56 static void ahc_action(struct cam_sim *sim, union ccb *ccb); 68 union ccb *ccb); 225 xpt_action((union ccb *)&csa); 266 xpt_action((union ccb *)&csa); 318 union ccb *ccb; local 323 ccb = scb->io_ctx; 340 if ((ccb 442 ahc_action(struct cam_sim *sim, union ccb *ccb) argument 932 union ccb *ccb; local 1202 ahc_abort_ccb(struct ahc_softc *ahc, struct cam_sim *sim, union ccb *ccb) argument [all...] |
/freebsd-9.3-release/sys/dev/ata/ |
H A D | atapi-cam.c | 82 union ccb *ccb; member in struct:atapi_hcb 100 static void atapi_action(struct cam_sim *, union ccb *); 113 static struct atapi_hcb *allocate_hcb(struct atapi_xpt_softc *, int, int, union ccb *); 339 xpt_action((union ccb *) &csa); 343 atapi_action(struct cam_sim *sim, union ccb *ccb) argument 346 struct ccb_hdr *ccb_h = &ccb->ccb_h; 356 struct ccb_pathinq *cpi = &ccb->cpi; 383 ccb 778 union ccb *ccb; local 823 union ccb *ccb; local 839 allocate_hcb(struct atapi_xpt_softc *softc, int unit, int bus, union ccb *ccb) argument [all...] |