/freebsd-11-stable/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, 212 (uintmax_t)ccb_h->target_lun); 213 ccb_h->status |= CAM_TID_INVALID; 217 if (ccb_h->target_lun >= TW_CL_MAX_NUM_LUNS) { 219 ccb_h->path_id, ccb_h 316 struct ccb_hdr *ccb_h = &(ccb->ccb_h); local 546 struct ccb_hdr *ccb_h = &(ccb->ccb_h); local [all...] |
/freebsd-11-stable/sys/cam/scsi/ |
H A D | scsi_targ_bh.c | 183 bus_path_id = cpi->ccb_h.path_id; 242 xpt_setup_ccb(&immed_ccb.ccb_h, periph->path, CAM_PRIORITY_NORMAL); 243 immed_ccb.ccb_h.func_code = XPT_EN_LUN; 250 status = immed_ccb.ccb_h.status; 274 atio->ccb_h.ccb_descr = targbhallocdescr(); 276 if (atio->ccb_h.ccb_descr == NULL) { 282 xpt_setup_ccb(&atio->ccb_h, periph->path, CAM_PRIORITY_NORMAL); 283 atio->ccb_h.func_code = XPT_ACCEPT_TARGET_IO; 284 atio->ccb_h.cbfcnp = targbhdone; 285 ((struct targbh_cmd_desc*)atio->ccb_h 345 struct ccb_hdr *ccb_h; local [all...] |
H A D | scsi_target.c | 280 xpt_setup_ccb(&cdbg.ccb_h, softc->path, CAM_PRIORITY_NORMAL); 281 cdbg.ccb_h.func_code = XPT_DEBUG; 282 cdbg.ccb_h.cbfcnp = targdone; 284 status = cdbg.ccb_h.status & CAM_STATUS_MASK; 366 xpt_setup_ccb(&en_ccb.ccb_h, path, CAM_PRIORITY_NORMAL); 367 en_ccb.ccb_h.func_code = XPT_EN_LUN; 373 status = en_ccb.ccb_h.status & CAM_STATUS_MASK; 395 status = cpi.ccb_h.status & CAM_STATUS_MASK; 498 struct ccb_hdr *ccb_h; local 508 while ((ccb_h 682 struct ccb_hdr *ccb_h; local 714 struct ccb_hdr *ccb_h; local 809 struct ccb_hdr *ccb_h; local 1021 struct ccb_hdr *ccb_h; local [all...] |
H A D | scsi_xpt.c | 666 TAILQ_INSERT_TAIL(&softc->request_ccbs, &request_ccb->ccb_h, 720 if (((ccb->ccb_h.path->device->flags & CAM_DEV_UNCONFIGURED) == 0) 721 && (ccb->ccb_h.target_lun == 0)) { 751 CAM_DEBUG(start_ccb->ccb_h.path, CAM_DEBUG_TRACE, ("probestart\n")); 1020 start_ccb->ccb_h.flags |= CAM_DEV_QFREEZE; 1030 xpt_setup_ccb(&cts.ccb_h, periph->path, CAM_PRIORITY_NONE); 1031 cts.ccb_h.func_code = XPT_GET_TRAN_SETTINGS; 1037 cts.ccb_h.func_code = XPT_SET_TRAN_SETTINGS; 1052 xpt_setup_ccb(&cts.ccb_h, periph->path, CAM_PRIORITY_NONE); 1053 cts.ccb_h [all...] |
/freebsd-11-stable/sys/dev/smartpqi/ |
H A D | smartpqi_cam.c | 63 cpi->ccb_h.status = CAM_REQ_CMP; 89 cts->ccb_h.status = CAM_REQ_CMP; 108 if (xpt_create_path(&ccb->ccb_h.path, NULL, 162 if (csio->ccb_h.status & CAM_RELEASE_SIMQ) 163 xpt_release_simq(xpt_path_sim(csio->ccb_h.path), 0); 165 csio->ccb_h.status |= CAM_RELEASE_SIMQ; 222 cdb = (csio->ccb_h.flags & CAM_CDB_POINTER) ? 226 (csio->ccb_h.flags & CAM_DIR_MASK) == CAM_DIR_IN && 231 device = softs->device_list[csio->ccb_h.target_id][csio->ccb_h 920 struct ccb_hdr *ccb_h = &ccb->ccb_h; local [all...] |
/freebsd-11-stable/sys/dev/isci/ |
H A D | isci_io_request.c | 98 ccb->ccb_h.status &= ~CAM_STATUS_MASK; 104 if (ccb->ccb_h.func_code == XPT_SMP_IO) { 113 ccb->ccb_h.status |= CAM_REQ_CMP; 117 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, scsiio_cdb_ptr(csio), 156 ccb->ccb_h [all...] |
/freebsd-11-stable/sys/dev/iscsi_initiator/ |
H A D | isc_cam.c | 67 debug(3, "sid=%d target=%d lun=%jx", sp->sid, ccb->ccb_h.target_id, (uintmax_t)ccb->ccb_h.target_lun); 83 cpi->ccb_h.status = CAM_REQ_CMP; 125 isc_session_t *sp = (isc_session_t *)ccb->ccb_h.spriv_ptr0; 149 ccb->ccb_h.path = sp->cam_path; 150 ccb->ccb_h.cbfcnp = scan_callback; 151 ccb->ccb_h.spriv_ptr0 = sp; 172 struct ccb_hdr *ccb_h = &ccb->ccb_h; local 176 ccb_h [all...] |
/freebsd-11-stable/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-11-stable/share/examples/scsi_target/ |
H A D | scsi_target.c | 336 struct ccb_hdr *ccb_h; local 346 while ((ccb_h = TAILQ_FIRST(&pending_queue)) != NULL) { 347 TAILQ_REMOVE(&pending_queue, ccb_h, periph_links.tqe); 348 free_ccb((union ccb *)ccb_h); 350 while ((ccb_h = TAILQ_FIRST(&work_queue)) != NULL) { 351 TAILQ_REMOVE(&work_queue, ccb_h, periph_links.tqe); 352 free_ccb((union ccb *)ccb_h); 381 atio->ccb_h.func_code = XPT_ACCEPT_TARGET_IO; 382 atio->ccb_h.targ_descr = a_descr; 390 inot->ccb_h 424 struct ccb_hdr *ccb_h; local 686 struct ccb_hdr *ccb_h; local 724 struct ccb_hdr *ccb_h; local 959 struct ccb_hdr *ccb_h; local [all...] |
/freebsd-11-stable/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 SBT_1MS * ccb_h->timeout, 0, 173 adv_timeout, ccb_h, 0); 174 ccb_h = LIST_NEXT(ccb_h, sim_links.le); 181 ccb->ccb_h 207 struct ccb_hdr *ccb_h; local 458 struct ccb_hdr *ccb_h; local 623 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-11-stable/sys/dev/aic/ |
H A D | aic.c | 96 (scb->ccb->ccb_h.status & CAM_RELEASE_SIMQ) == 0) { 97 scb->ccb->ccb_h.status |= CAM_RELEASE_SIMQ; 109 CAM_DEBUG(ccb->ccb_h.path, CAM_DEBUG_TRACE, ("aic_action\n")); 114 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 334 struct ccb_hdr *ccb_h; local 493 struct ccb_hdr *ccb_h; local 603 struct ccb_hdr *ccb_h; local 1053 struct ccb_hdr *ccb_h; local 1142 struct ccb_hdr *ccb_h = &scb->ccb->ccb_h; local 1377 struct ccb_hdr *ccb_h; local [all...] |
/freebsd-11-stable/sys/cam/ |
H A D | cam_periph.c | 737 ccb.ccb_h.func_code = XPT_GDEV_TYPE; 738 xpt_setup_ccb(&ccb.ccb_h, periph->path, CAM_PRIORITY_NORMAL); 780 switch(ccb->ccb_h.func_code) { 809 if ((ccb->ccb_h.flags & CAM_DIR_MASK) == CAM_DIR_NONE) 811 if ((ccb->ccb_h.flags & CAM_DATA_MASK) != CAM_DATA_VADDR) 815 dirs[0] = ccb->ccb_h.flags & CAM_DIR_MASK; 819 if ((ccb->ccb_h.flags & CAM_DIR_MASK) == CAM_DIR_NONE) 821 if ((ccb->ccb_h.flags & CAM_DATA_MASK) != CAM_DATA_VADDR) 825 dirs[0] = ccb->ccb_h.flags & CAM_DIR_MASK; 839 if ((ccb->ccb_h 1255 struct ccb_hdr ccb_h; local [all...] |
H A D | cam_ccb.h | 260 (((ccb)->ccb_h.func_code & XPT_FC_DEV_QUEUED) == XPT_FC_DEV_QUEUED) 262 (((ccb)->ccb_h.func_code & XPT_FC_QUEUED) != 0) 358 struct ccb_hdr ccb_h; member in struct:ccb_getdev 370 struct ccb_hdr ccb_h; member in struct:ccb_getdevstats 395 struct ccb_hdr ccb_h; member in struct:ccb_getdevlist 562 struct ccb_hdr ccb_h; member in struct:ccb_dev_match 639 struct ccb_hdr ccb_h; member in struct:ccb_pathinq 678 struct ccb_hdr ccb_h; member in struct:ccb_pathstats 698 struct ccb_hdr ccb_h; member in struct:ccb_smpio 728 struct ccb_hdr ccb_h; member in struct:ccb_scsiio 766 struct ccb_hdr ccb_h; member in struct:ccb_ataio 780 struct ccb_hdr ccb_h; member in struct:ccb_accept_tio 799 struct ccb_hdr ccb_h; member in struct:ccb_relsim 814 struct ccb_hdr ccb_h; member in struct:ccb_nvmeio 869 struct ccb_hdr ccb_h; member in struct:ccb_setasync 877 struct ccb_hdr ccb_h; member in struct:ccb_setdev 885 struct ccb_hdr ccb_h; member in struct:ccb_abort 891 struct ccb_hdr ccb_h; member in struct:ccb_resetbus 896 struct ccb_hdr ccb_h; member in struct:ccb_resetdev 901 struct ccb_hdr ccb_h; member in struct:ccb_termio 1019 struct ccb_hdr ccb_h; member in struct:ccb_trans_settings 1048 struct ccb_hdr ccb_h; member in struct:ccb_calc_geometry 1090 struct ccb_hdr ccb_h; member in struct:ccb_sim_knob 1104 struct ccb_hdr ccb_h; member in struct:ccb_rescan 1112 struct ccb_hdr ccb_h; member in struct:ccb_debug 1119 struct ccb_hdr ccb_h; member in struct:ccb_en_lun 1127 struct ccb_hdr ccb_h; member in struct:ccb_immed_notify 1135 struct ccb_hdr ccb_h; member in struct:ccb_notify_ack 1141 struct ccb_hdr ccb_h; member in struct:ccb_immediate_notify 1149 struct ccb_hdr ccb_h; member in struct:ccb_notify_acknowledge 1183 struct ccb_hdr ccb_h; member in struct:ccb_eng_inq 1191 struct ccb_hdr ccb_h; member in struct:ccb_eng_exec 1227 struct ccb_hdr ccb_h; member in struct:ccb_dev_advinfo 1250 struct ccb_hdr ccb_h; member in struct:ccb_async 1263 struct ccb_hdr ccb_h; /* For convenience */ member in union:ccb [all...] |
/freebsd-11-stable/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-11-stable/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-11-stable/sys/dev/ahb/ |
H A D | ahb.c | 582 struct ccb_hdr *ccb_h; local 593 ccb_h = LIST_FIRST(&ahb->pending_ccbs); 594 while (ccb_h != NULL) { 598 pending_ecb = (struct ecb *)ccb_h->ccb_ecb_ptr; 600 ccb_h = LIST_NEXT(ccb_h, sim_links.le); 601 if (ccb->ccb_h.target_id == target_id 604 LIST_REMOVE(&ccb->ccb_h, sim_links.le); 605 if ((ccb->ccb_h.flags & CAM_DIR_MASK) != CAM_DIR_NONE) 609 ccb->ccb_h 1242 struct ccb_hdr *ccb_h; local [all...] |
/freebsd-11-stable/sys/cam/ctl/ |
H A D | scsi_ctl.c | 323 softc->path_id = cpi->ccb_h.path_id; 487 xpt_setup_ccb(&ccb.ccb_h, periph->path, CAM_PRIORITY_NONE); 488 ccb.ccb_h.func_code = XPT_EN_LUN; 493 status = (ccb.ccb_h.status & CAM_STATUS_MASK); 496 __func__, ccb.ccb_h.status); 529 new_ccb->ccb_h.io_ptr = new_io; 530 LIST_INSERT_HEAD(&softc->atio_list, &new_ccb->ccb_h, periph_links.le); 532 xpt_setup_ccb(&new_ccb->ccb_h, periph->path, CAM_PRIORITY_NONE); 533 new_ccb->ccb_h.func_code = XPT_ACCEPT_TARGET_IO; 534 new_ccb->ccb_h 773 struct ccb_hdr *ccb_h; local [all...] |
/freebsd-11-stable/sys/dev/ppbus/ |
H A D | vpo.c | 195 csio->ccb_h.target_id, 201 csio->ccb_h.target_id, 220 csio->ccb_h.status = CAM_CMD_TIMEOUT; 230 csio->ccb_h.status = CAM_CMD_TIMEOUT; 247 csio->ccb_h.target_id, 255 csio->ccb_h.target_id, 272 csio->ccb_h.status = CAM_AUTOSNS_VALID | CAM_SCSI_STATUS_ERROR; 285 csio->ccb_h.status = CAM_AUTOSENSE_FAIL; 289 csio->ccb_h.status = CAM_SCSI_STATUS_ERROR; 296 csio->ccb_h [all...] |
/freebsd-11-stable/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-11-stable/sys/powerpc/ps3/ |
H A D | ps3cdrom.c | 263 xpt_setup_ccb(&csa.ccb_h, sc->sc_path, 5); 264 csa.ccb_h.func_code = XPT_SASYNC_CB; 345 CAM_DEBUG(ccb->ccb_h.path, CAM_DEBUG_TRACE, 346 ("function code 0x%02x\n", ccb->ccb_h.func_code)); 348 switch (ccb->ccb_h.func_code) { 350 if ((ccb->ccb_h.status & CAM_STATUS_MASK) != CAM_REQ_INPROG) 353 if(ccb->ccb_h.target_id > 0) { 354 ccb->ccb_h.status = CAM_TID_INVALID; 358 if(ccb->ccb_h.target_lun > 0) { 359 ccb->ccb_h [all...] |
/freebsd-11-stable/sys/dev/buslogic/ |
H A D | bt.c | 1076 LIST_REMOVE(&bccb->ccb->ccb_h, sim_links.le); 1078 && (bccb->ccb->ccb_h.status & CAM_RELEASE_SIMQ) == 0) { 1079 bccb->ccb->ccb_h.status |= CAM_RELEASE_SIMQ; 1114 CAM_DEBUG(ccb->ccb_h.path, CAM_DEBUG_TRACE, ("btaction\n")); 1119 switch (ccb->ccb_h.func_code) { 1134 ccb->ccb_h.status = CAM_REQUEUE_REQ; 1145 ccb->ccb_h.ccb_bccb_ptr = bccb; 1146 ccb->ccb_h.ccb_bt_ptr = bt; 1151 hccb->target_id = ccb->ccb_h.target_id; 1152 hccb->target_lun = ccb->ccb_h 1574 struct ccb_hdr *ccb_h; local 1771 struct ccb_hdr *ccb_h; local 2320 struct ccb_hdr *ccb_h; local [all...] |
/freebsd-11-stable/sys/dev/ata/ |
H A D | ata-all.c | 273 if (xpt_create_path(&ccb->ccb_h.path, NULL, 740 request->unit = ccb->ccb_h.target_id; 741 if (ccb->ccb_h.func_code == XPT_ATA_IO) { 764 if ((ccb->ccb_h.flags & CAM_DIR_MASK) != CAM_DIR_NONE && 767 if ((ccb->ccb_h.flags & CAM_DIR_MASK) == CAM_DIR_IN) 769 if ((ccb->ccb_h.flags & CAM_DIR_MASK) == CAM_DIR_OUT) 776 ch->curr[ccb->ccb_h.target_id].bytecount); 782 bcopy((ccb->ccb_h.flags & CAM_CDB_POINTER) ? 786 if (ch->curr[ccb->ccb_h.target_id].atapi == 16) 788 if ((ccb->ccb_h [all...] |
/freebsd-11-stable/sys/cam/ata/ |
H A D | ata_xpt.c | 286 TAILQ_INSERT_TAIL(&softc->request_ccbs, &request_ccb->ccb_h, 337 CAM_DEBUG(start_ccb->ccb_h.path, CAM_DEBUG_TRACE, ("probestart\n")); 340 path = start_ccb->ccb_h.path; 400 xpt_setup_ccb(&cts.ccb_h, path, CAM_PRIORITY_NONE); 401 cts.ccb_h.func_code = XPT_GET_TRAN_SETTINGS; 423 xpt_setup_ccb(&cts.ccb_h, path, CAM_PRIORITY_NONE); 424 cts.ccb_h.func_code = XPT_SET_TRAN_SETTINGS; 436 xpt_setup_ccb(&cts.ccb_h, path, CAM_PRIORITY_NONE); 437 cts.ccb_h.func_code = XPT_GET_TRAN_SETTINGS; 536 xpt_setup_ccb(&cts.ccb_h, pat [all...] |