/freebsd-9.3-release/sys/cam/ |
H A D | cam_compat.c | 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->ccb_h.flags |= CAM_DATA_PADDR; 72 if (ccb->ccb_h.flags & CAM_SCATTER_VALID_0x16) { 73 ccb->ccb_h.flags &= CAM_SCATTER_VALID_0x16; 74 ccb->ccb_h.flags |= CAM_DATA_SG;
|
H A D | cam_periph.c | 664 ccb.ccb_h.func_code = XPT_GDEV_TYPE; 665 xpt_setup_ccb(&ccb.ccb_h, periph->path, CAM_PRIORITY_NORMAL); 670 ccb.ccb_h.func_code = XPT_PATH_INQ; 671 xpt_setup_ccb(&ccb.ccb_h, periph->path, CAM_PRIORITY_NORMAL); 705 switch(ccb->ccb_h.func_code) { 734 if ((ccb->ccb_h.flags & CAM_DIR_MASK) == CAM_DIR_NONE) 736 if ((ccb->ccb_h.flags & CAM_DATA_MASK) != CAM_DATA_VADDR) 740 dirs[0] = ccb->ccb_h.flags & CAM_DIR_MASK; 744 if ((ccb->ccb_h.flags & CAM_DIR_MASK) == CAM_DIR_NONE) 746 if ((ccb->ccb_h 953 struct ccb_hdr *ccb_h; local 1121 struct ccb_hdr ccb_h; local [all...] |
H A D | cam_ccb.h | 240 (((ccb)->ccb_h.func_code & XPT_FC_DEV_QUEUED) == XPT_FC_DEV_QUEUED) 242 (((ccb)->ccb_h.func_code & XPT_FC_QUEUED) != 0) 332 struct ccb_hdr ccb_h; member in struct:ccb_getdev 343 struct ccb_hdr ccb_h; member in struct:ccb_getdevstats 368 struct ccb_hdr ccb_h; member in struct:ccb_getdevlist 535 struct ccb_hdr ccb_h; member in struct:ccb_dev_match 600 struct ccb_hdr ccb_h; member in struct:ccb_pathinq 638 struct ccb_hdr ccb_h; member in struct:ccb_pathstats 658 struct ccb_hdr ccb_h; member in struct:ccb_smpio 688 struct ccb_hdr ccb_h; member in struct:ccb_scsiio 719 struct ccb_hdr ccb_h; member in struct:ccb_ataio 738 struct ccb_hdr ccb_h; member in struct:ccb_accept_tio 750 struct ccb_hdr ccb_h; member in struct:ccb_relsim 806 struct ccb_hdr ccb_h; member in struct:ccb_setasync 814 struct ccb_hdr ccb_h; member in struct:ccb_setdev 822 struct ccb_hdr ccb_h; member in struct:ccb_abort 828 struct ccb_hdr ccb_h; member in struct:ccb_resetbus 833 struct ccb_hdr ccb_h; member in struct:ccb_resetdev 838 struct ccb_hdr ccb_h; member in struct:ccb_termio 940 struct ccb_hdr ccb_h; member in struct:ccb_trans_settings 967 struct ccb_hdr ccb_h; member in struct:ccb_calc_geometry 1009 struct ccb_hdr ccb_h; member in struct:ccb_sim_knob 1023 struct ccb_hdr ccb_h; member in struct:ccb_rescan 1031 struct ccb_hdr ccb_h; member in struct:ccb_debug 1038 struct ccb_hdr ccb_h; member in struct:ccb_en_lun 1046 struct ccb_hdr ccb_h; member in struct:ccb_immed_notify 1054 struct ccb_hdr ccb_h; member in struct:ccb_notify_ack 1060 struct ccb_hdr ccb_h; member in struct:ccb_immediate_notify 1068 struct ccb_hdr ccb_h; member in struct:ccb_notify_acknowledge 1092 struct ccb_hdr ccb_h; member in struct:ccb_eng_inq 1100 struct ccb_hdr ccb_h; member in struct:ccb_eng_exec 1136 struct ccb_hdr ccb_h; member in struct:ccb_dev_advinfo 1158 struct ccb_hdr ccb_h; /* For convenience */ member in union:ccb [all...] |
H A D | cam_xpt.c | 347 wakeup(&done_ccb->ccb_h.cbfcnp); 428 bus = xpt_find_bus(inccb->ccb_h.path_id); 432 switch (inccb->ccb_h.func_code) { 435 if (inccb->ccb_h.target_id != CAM_TARGET_WILDCARD || 436 inccb->ccb_h.target_lun != CAM_LUN_WILDCARD) { 442 if (inccb->ccb_h.target_id == CAM_TARGET_WILDCARD || 443 inccb->ccb_h.target_lun != CAM_LUN_WILDCARD) { 452 switch(inccb->ccb_h.func_code) { 468 if (xpt_create_path(&ccb->ccb_h.path, NULL, 469 inccb->ccb_h 3390 xpt_setup_ccb(struct ccb_hdr *ccb_h, struct cam_path *path, u_int32_t priority) argument 5037 struct ccb_hdr *ccb_h; local [all...] |
/freebsd-9.3-release/sys/dev/twa/ |
H A D | tw_osl_cam.c | 202 struct ccb_hdr *ccb_h = &(ccb->ccb_h); local 209 if (ccb_h->target_id >= TW_CL_MAX_NUM_UNITS) { 211 ccb_h->path_id, ccb_h->target_id, ccb_h->target_lun); 212 ccb_h->status |= CAM_TID_INVALID; 216 if (ccb_h->target_lun >= TW_CL_MAX_NUM_LUNS) { 218 ccb_h->path_id, ccb_h 314 struct ccb_hdr *ccb_h = &(ccb->ccb_h); local 544 struct ccb_hdr *ccb_h = &(ccb->ccb_h); local [all...] |
/freebsd-9.3-release/sys/cam/scsi/ |
H A D | scsi_targ_bh.c | 184 bus_path_id = cpi->ccb_h.path_id; 243 xpt_setup_ccb(&immed_ccb.ccb_h, periph->path, CAM_PRIORITY_NORMAL); 244 immed_ccb.ccb_h.func_code = XPT_EN_LUN; 251 status = immed_ccb.ccb_h.status; 275 atio->ccb_h.ccb_descr = targbhallocdescr(); 277 if (atio->ccb_h.ccb_descr == NULL) { 283 xpt_setup_ccb(&atio->ccb_h, periph->path, CAM_PRIORITY_NORMAL); 284 atio->ccb_h.func_code = XPT_ACCEPT_TARGET_IO; 285 atio->ccb_h.cbfcnp = targbhdone; 286 ((struct targbh_cmd_desc*)atio->ccb_h 346 struct ccb_hdr *ccb_h; local [all...] |
H A D | scsi_target.c | 321 xpt_setup_ccb(&cdbg.ccb_h, softc->path, CAM_PRIORITY_NORMAL); 322 cdbg.ccb_h.func_code = XPT_DEBUG; 323 cdbg.ccb_h.cbfcnp = targdone; 327 status = cdbg.ccb_h.status & CAM_STATUS_MASK; 409 xpt_setup_ccb(&en_ccb.ccb_h, path, CAM_PRIORITY_NORMAL); 410 en_ccb.ccb_h.func_code = XPT_EN_LUN; 416 status = en_ccb.ccb_h.status & CAM_STATUS_MASK; 437 xpt_setup_ccb(&cpi.ccb_h, path, CAM_PRIORITY_NORMAL); 438 cpi.ccb_h.func_code = XPT_PATH_INQ; 440 status = cpi.ccb_h 537 struct ccb_hdr *ccb_h; local 721 struct ccb_hdr *ccb_h; local 753 struct ccb_hdr *ccb_h; local 848 struct ccb_hdr *ccb_h; local 1072 struct ccb_hdr *ccb_h; local [all...] |
H A D | scsi_xpt.c | 631 TAILQ_INSERT_TAIL(&softc->request_ccbs, &request_ccb->ccb_h, 664 xpt_setup_ccb(&cpi.ccb_h, periph->path, CAM_PRIORITY_NONE); 665 cpi.ccb_h.func_code = XPT_PATH_INQ; 686 if (((ccb->ccb_h.path->device->flags & CAM_DEV_UNCONFIGURED) == 0) 687 && (ccb->ccb_h.target_lun == 0)) { 712 CAM_DEBUG(start_ccb->ccb_h.path, CAM_DEBUG_TRACE, ("probestart\n")); 964 start_ccb->ccb_h.flags |= CAM_DEV_QFREEZE; 973 xpt_setup_ccb(&cts.ccb_h, periph->path, CAM_PRIORITY_NONE); 974 cts.ccb_h.func_code = XPT_GET_TRAN_SETTINGS; 980 cts.ccb_h [all...] |
/freebsd-9.3-release/sys/dev/isci/ |
H A D | isci_io_request.c | 97 ccb->ccb_h.status &= ~CAM_STATUS_MASK; 103 if (ccb->ccb_h.func_code == XPT_SMP_IO) { 112 ccb->ccb_h.status |= CAM_REQ_CMP; 116 ccb->ccb_h.status |= CAM_REQ_CMP; 142 ccb->ccb_h.status |= CAM_SCSI_STATUS_ERROR; 143 ccb->ccb_h.status |= CAM_AUTOSNS_VALID; 148 ccb->ccb_h.path_id, ccb->ccb_h.target_id, 149 ccb->ccb_h.target_lun, csio->cdb_io.cdb_bytes[0], 156 ccb->ccb_h [all...] |
/freebsd-9.3-release/sys/dev/iscsi/initiator/ |
H A D | isc_cam.c | 66 debug(3, "sid=%d target=%d lun=%d", sp->sid, ccb->ccb_h.target_id, ccb->ccb_h.target_lun); 82 cpi->ccb_h.status = CAM_REQ_CMP; 124 isc_session_t *sp = (isc_session_t *)ccb->ccb_h.spriv_ptr0; 160 xpt_setup_ccb(&ccb->ccb_h, sp->cam_path, 5/*priority (low)*/); 161 ccb->ccb_h.func_code = XPT_SCAN_BUS; 162 ccb->ccb_h.cbfcnp = scan_callback; 164 ccb->ccb_h.spriv_ptr0 = sp; 186 struct ccb_hdr *ccb_h = &ccb->ccb_h; local [all...] |
/freebsd-9.3-release/sys/dev/mpt/ |
H A D | mpt_cam.h | 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); 129 ccb->ccb_h.status &= ~CAM_STATUS_MASK; 130 ccb->ccb_h.status |= status;
|
/freebsd-9.3-release/share/examples/scsi_target/ |
H A D | scsi_target.c | 342 struct ccb_hdr *ccb_h; local 352 while ((ccb_h = TAILQ_FIRST(&pending_queue)) != NULL) { 353 TAILQ_REMOVE(&pending_queue, ccb_h, periph_links.tqe); 354 free_ccb((union ccb *)ccb_h); 356 while ((ccb_h = TAILQ_FIRST(&work_queue)) != NULL) { 357 TAILQ_REMOVE(&work_queue, ccb_h, periph_links.tqe); 358 free_ccb((union ccb *)ccb_h); 387 atio->ccb_h.func_code = XPT_ACCEPT_TARGET_IO; 388 atio->ccb_h.targ_descr = a_descr; 396 inot->ccb_h 430 struct ccb_hdr *ccb_h; local 692 struct ccb_hdr *ccb_h; local 730 struct ccb_hdr *ccb_h; local 965 struct ccb_hdr *ccb_h; local [all...] |
/freebsd-9.3-release/sys/dev/advansys/ |
H A D | advansys.c | 160 cinfo = (struct adv_ccb_info *)ccb->ccb_h.ccb_cinfo_ptr; 162 struct ccb_hdr *ccb_h; local 168 ccb_h = LIST_FIRST(&adv->pending_ccbs); 169 while (ccb_h != NULL) { 170 cinfo = ccb_h->ccb_cinfo_ptr; 172 ccb_h->timeout * hz / 1000, adv_timeout, 173 ccb_h); 174 ccb_h = LIST_NEXT(ccb_h, sim_links.le); 181 ccb->ccb_h 207 struct ccb_hdr *ccb_h; local 462 struct ccb_hdr *ccb_h; local 627 struct ccb_hdr *ccb_h; local [all...] |
H A D | adwcam.c | 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; 234 adw = (struct adw_softc *)ccb->ccb_h.ccb_adw_ptr; 242 if (ccb->ccb_h.status == CAM_REQ_INPROG) { 243 xpt_freeze_devq(ccb->ccb_h.path, /*count*/1); 244 ccb->ccb_h.status = CAM_REQ_TOO_BIG|CAM_DEV_QFRZN; 297 if ((ccb->ccb_h.flags & CAM_DIR_MASK) == CAM_DIR_IN) 314 if (ccb->ccb_h [all...] |
/freebsd-9.3-release/sys/dev/aic/ |
H A D | aic.c | 92 (scb->ccb->ccb_h.status & CAM_RELEASE_SIMQ) == 0) { 93 scb->ccb->ccb_h.status |= CAM_RELEASE_SIMQ; 108 CAM_DEBUG(ccb->ccb_h.path, CAM_DEBUG_TRACE, ("aic_action\n")); 112 switch (ccb->ccb_h.func_code) { 123 ccb->ccb_h.status = CAM_REQUEUE_REQ; 129 ccb->ccb_h.ccb_scb_ptr = scb; 130 ccb->ccb_h.ccb_aic_ptr = aic; 132 scb->target = ccb->ccb_h.target_id; 133 scb->lun = ccb->ccb_h.target_lun; 135 if (ccb->ccb_h 342 struct ccb_hdr *ccb_h; local 501 struct ccb_hdr *ccb_h; local 611 struct ccb_hdr *ccb_h; local 1061 struct ccb_hdr *ccb_h; local 1153 struct ccb_hdr *ccb_h = &scb->ccb->ccb_h; local 1381 struct ccb_hdr *ccb_h; local [all...] |
/freebsd-9.3-release/sys/dev/amr/ |
H A D | amr_cam.c | 121 TAILQ_INSERT_TAIL(&sc->amr_cam_ccbq, &ccb->ccb_h, sim_links.tqe); 128 TAILQ_INSERT_HEAD(&sc->amr_cam_ccbq, &ccb->ccb_h, sim_links.tqe); 137 TAILQ_REMOVE(&sc->amr_cam_ccbq, &ccb->ccb_h, sim_links.tqe); 247 switch(ccb->ccb_h.func_code) { 254 struct ccb_hdr *ccbh = &ccb->ccb_h; 288 if (csio->ccb_h.target_lun != 0) 295 csio->ccb_h.sim_priv.entries[0].field= cam_sim_bus(sim); 336 cpi->ccb_h.status = CAM_REQ_CMP; 346 cpi->ccb_h.status = CAM_REQ_CMP; 353 ccb->ccb_h [all...] |
/freebsd-9.3-release/sys/dev/aic7xxx/ |
H A D | aic79xx_osm.c | 270 xpt_setup_ccb(&csa.ccb_h, path, /*priority*/5); 271 csa.ccb_h.func_code = XPT_SASYNC_CB; 318 CAM_DEBUG(scb->io_ctx->ccb_h.path, CAM_DEBUG_TRACE, 328 if ((ccb->ccb_h.flags & CAM_DIR_MASK) != CAM_DIR_NONE) { 331 if ((ccb->ccb_h.flags & CAM_DIR_MASK) == CAM_DIR_IN) 340 if (ccb->ccb_h.func_code == XPT_CONT_TARGET_IO) { 349 ccb_path = ccb->ccb_h.path; 353 if ((ccb->ccb_h.flags & CAM_SEND_STATUS) != 0) { 356 xpt_print_path(ccb->ccb_h.path); 363 ccb->ccb_h 1073 struct ccb_hdr *ccb_h; local [all...] |
H A D | aic7xxx_osm.c | 220 xpt_setup_ccb(&csa.ccb_h, path, /*priority*/5); 221 csa.ccb_h.func_code = XPT_SASYNC_CB; 261 xpt_setup_ccb(&csa.ccb_h, path2, /*priority*/5); 262 csa.ccb_h.func_code = XPT_SASYNC_CB; 320 CAM_DEBUG(scb->io_ctx->ccb_h.path, CAM_DEBUG_TRACE, 340 if ((ccb->ccb_h.flags & CAM_DIR_MASK) != CAM_DIR_NONE) { 343 if ((ccb->ccb_h.flags & CAM_DIR_MASK) == CAM_DIR_IN) 351 if (ccb->ccb_h.func_code == XPT_CONT_TARGET_IO) { 360 ccb_path = ccb->ccb_h.path; 364 if ((ccb->ccb_h 1140 struct ccb_hdr *ccb_h; local [all...] |
/freebsd-9.3-release/sys/dev/ahb/ |
H A D | ahb.c | 583 struct ccb_hdr *ccb_h; local 594 ccb_h = LIST_FIRST(&ahb->pending_ccbs); 595 while (ccb_h != NULL) { 599 pending_ecb = (struct ecb *)ccb_h->ccb_ecb_ptr; 601 ccb_h = LIST_NEXT(ccb_h, sim_links.le); 602 if (ccb->ccb_h.target_id == target_id 605 LIST_REMOVE(&ccb->ccb_h, sim_links.le); 606 if ((ccb->ccb_h.flags & CAM_DIR_MASK) != CAM_DIR_NONE) 610 ccb->ccb_h 1243 struct ccb_hdr *ccb_h; local [all...] |
/freebsd-9.3-release/sys/cam/ata/ |
H A D | ata_xpt.c | 241 TAILQ_INSERT_TAIL(&softc->request_ccbs, &request_ccb->ccb_h, 290 CAM_DEBUG(start_ccb->ccb_h.path, CAM_DEBUG_TRACE, ("probestart\n")); 293 path = start_ccb->ccb_h.path; 353 xpt_setup_ccb(&cts.ccb_h, path, CAM_PRIORITY_NONE); 354 cts.ccb_h.func_code = XPT_GET_TRAN_SETTINGS; 376 xpt_setup_ccb(&cts.ccb_h, path, CAM_PRIORITY_NONE); 377 cts.ccb_h.func_code = XPT_SET_TRAN_SETTINGS; 389 xpt_setup_ccb(&cts.ccb_h, path, CAM_PRIORITY_NONE); 390 cts.ccb_h.func_code = XPT_GET_TRAN_SETTINGS; 485 xpt_setup_ccb(&cts.ccb_h, pat [all...] |
/freebsd-9.3-release/sys/cam/ctl/ |
H A D | scsi_ctl.c | 336 xpt_setup_ccb(&ccb->ccb_h, cpi->ccb_h.path, 339 sim = xpt_path_sim(cpi->ccb_h.path); 341 ccb->ccb_h.func_code = XPT_SET_SIM_KNOB; 350 if ((ccb->ccb_h.status & CAM_STATUS_MASK) != 355 cpi->unit_number, cpi->ccb_h.path_id, 356 ccb->ccb_h.status); 361 cpi->unit_number, cpi->ccb_h.path_id); 388 bus_softc->path_id = cpi->ccb_h.path_id; 389 bus_softc->sim = xpt_path_sim(cpi->ccb_h 704 struct ccb_hdr *ccb_h; local [all...] |
/freebsd-9.3-release/sys/dev/aac/ |
H A D | aac_cam.c | 132 if (xpt_create_path(&ccb->ccb_h.path, NULL, 155 camsc = ccb->ccb_h.sim_priv.entries[0].ptr; 158 ccb->ccb_h.status = CAM_REQUEUE_REQ; 270 switch(ccb->ccb_h.func_code) { 297 ccb->ccb_h.status = CAM_REQ_CMP; 328 ccb->ccb_h.status = CAM_REQ_CMP; 342 if (ccb->ccb_h.target_lun != CAM_LUN_WILDCARD) { 348 ccb->ccb_h.status = CAM_REQ_CMP; 353 ccb->ccb_h.status = CAM_FUNC_NOTAVAIL; 358 ccb->ccb_h [all...] |
/freebsd-9.3-release/sys/powerpc/ps3/ |
H A D | ps3cdrom.c | 264 xpt_setup_ccb(&csa.ccb_h, sc->sc_path, 5); 265 csa.ccb_h.func_code = XPT_SASYNC_CB; 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->ccb_h.status & CAM_STATUS_MASK) != CAM_REQ_INPROG) 354 if(ccb->ccb_h.target_id > 0) { 355 ccb->ccb_h.status = CAM_TID_INVALID; 359 if(ccb->ccb_h.target_lun > 0) { 360 ccb->ccb_h [all...] |
/freebsd-9.3-release/sys/dev/buslogic/ |
H A D | bt.c | 1078 LIST_REMOVE(&bccb->ccb->ccb_h, sim_links.le); 1080 && (bccb->ccb->ccb_h.status & CAM_RELEASE_SIMQ) == 0) { 1081 bccb->ccb->ccb_h.status |= CAM_RELEASE_SIMQ; 1116 CAM_DEBUG(ccb->ccb_h.path, CAM_DEBUG_TRACE, ("btaction\n")); 1121 switch (ccb->ccb_h.func_code) { 1136 ccb->ccb_h.status = CAM_REQUEUE_REQ; 1147 ccb->ccb_h.ccb_bccb_ptr = bccb; 1148 ccb->ccb_h.ccb_bt_ptr = bt; 1153 hccb->target_id = ccb->ccb_h.target_id; 1154 hccb->target_lun = ccb->ccb_h 1580 struct ccb_hdr *ccb_h; local 1775 struct ccb_hdr *ccb_h; local 2324 struct ccb_hdr *ccb_h; local [all...] |
/freebsd-9.3-release/sys/dev/ppbus/ |
H A D | vpo.c | 193 csio->ccb_h.target_id, 199 csio->ccb_h.target_id, 218 csio->ccb_h.status = CAM_CMD_TIMEOUT; 228 csio->ccb_h.status = CAM_CMD_TIMEOUT; 245 csio->ccb_h.target_id, 253 csio->ccb_h.target_id, 270 csio->ccb_h.status = CAM_AUTOSNS_VALID | CAM_SCSI_STATUS_ERROR; 283 csio->ccb_h.status = CAM_AUTOSENSE_FAIL; 287 csio->ccb_h.status = CAM_SCSI_STATUS_ERROR; 294 csio->ccb_h [all...] |