/freebsd-current/sys/cam/scsi/ |
H A D | scsi_targ_bh.c | 182 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 | 276 xpt_setup_ccb(&cdbg.ccb_h, softc->path, CAM_PRIORITY_NORMAL); 277 cdbg.ccb_h.func_code = XPT_DEBUG; 278 cdbg.ccb_h.cbfcnp = targdone; 280 status = cdbg.ccb_h.status & CAM_STATUS_MASK; 363 xpt_setup_ccb(&en_ccb.ccb_h, path, CAM_PRIORITY_NORMAL); 364 en_ccb.ccb_h.func_code = XPT_EN_LUN; 370 status = en_ccb.ccb_h.status & CAM_STATUS_MASK; 392 status = cpi.ccb_h.status & CAM_STATUS_MASK; 495 struct ccb_hdr *ccb_h; local 505 while ((ccb_h 679 struct ccb_hdr *ccb_h; local 711 struct ccb_hdr *ccb_h; local 803 struct ccb_hdr *ccb_h; local 1029 struct ccb_hdr *ccb_h; local [all...] |
H A D | scsi_xpt.c | 662 TAILQ_INSERT_TAIL(&softc->request_ccbs, &request_ccb->ccb_h, 715 if (((ccb->ccb_h.path->device->flags & CAM_DEV_UNCONFIGURED) == 0) 716 && (ccb->ccb_h.target_lun == 0)) { 746 CAM_DEBUG(start_ccb->ccb_h.path, CAM_DEBUG_TRACE, ("probestart\n")); 1030 start_ccb->ccb_h.flags |= CAM_DEV_QFREEZE; 1041 xpt_setup_ccb(&cts.ccb_h, periph->path, CAM_PRIORITY_NONE); 1042 cts.ccb_h.func_code = XPT_GET_TRAN_SETTINGS; 1048 cts.ccb_h.func_code = XPT_SET_TRAN_SETTINGS; 1063 xpt_setup_ccb(&cts.ccb_h, periph->path, CAM_PRIORITY_NONE); 1064 cts.ccb_h [all...] |
/freebsd-current/sys/dev/isci/ |
H A D | isci_io_request.c | 98 ccb->ccb_h.status &= ~CAM_STATUS_MASK; 103 if (ccb->ccb_h.func_code == XPT_SMP_IO) { 111 ccb->ccb_h.status |= CAM_REQ_CMP; 115 ccb->ccb_h.status |= CAM_REQ_CMP; 140 ccb->ccb_h.status |= CAM_SCSI_STATUS_ERROR; 141 ccb->ccb_h.status |= CAM_AUTOSNS_VALID; 146 ccb->ccb_h.path_id, ccb->ccb_h.target_id, 147 ccb->ccb_h.target_lun, scsiio_cdb_ptr(csio), 154 ccb->ccb_h [all...] |
/freebsd-current/sys/cam/ |
H A D | cam_periph.c | 776 ccb.ccb_h.func_code = XPT_GDEV_TYPE; 777 xpt_setup_ccb(&ccb.ccb_h, periph->path, CAM_PRIORITY_NORMAL); 818 switch(ccb->ccb_h.func_code) { 847 if ((ccb->ccb_h.flags & CAM_DIR_MASK) == CAM_DIR_NONE) 849 if ((ccb->ccb_h.flags & CAM_DATA_MASK) != CAM_DATA_VADDR) 853 dirs[0] = ccb->ccb_h.flags & CAM_DIR_MASK; 857 if ((ccb->ccb_h.flags & CAM_DIR_MASK) == CAM_DIR_NONE) 859 if ((ccb->ccb_h.flags & CAM_DATA_MASK) != CAM_DATA_VADDR) 863 dirs[0] = ccb->ccb_h.flags & CAM_DIR_MASK; 867 if ((ccb->ccb_h 1354 struct ccb_hdr ccb_h; local [all...] |
H A D | cam_ccb.h | 269 (((ccb)->ccb_h.func_code & XPT_FC_DEV_QUEUED) == XPT_FC_DEV_QUEUED) 271 (((ccb)->ccb_h.func_code & XPT_FC_QUEUED) != 0) 378 struct ccb_hdr ccb_h; member in struct:ccb_getdev 390 struct ccb_hdr ccb_h; member in struct:ccb_getdevstats 415 struct ccb_hdr ccb_h; member in struct:ccb_getdevlist 579 struct ccb_hdr ccb_h; member in struct:ccb_dev_match 666 struct ccb_hdr ccb_h; member in struct:ccb_pathinq 706 struct ccb_hdr ccb_h; member in struct:ccb_pathstats 726 struct ccb_hdr ccb_h; member in struct:ccb_smpio 756 struct ccb_hdr ccb_h; member in struct:ccb_scsiio 798 struct ccb_hdr ccb_h; member in struct:ccb_ataio 817 struct ccb_hdr ccb_h; member in struct:ccb_mmcio 824 struct ccb_hdr ccb_h; member in struct:ccb_accept_tio 844 struct ccb_hdr ccb_h; member in struct:ccb_relsim 859 struct ccb_hdr ccb_h; member in struct:ccb_nvmeio 914 struct ccb_hdr ccb_h; member in struct:ccb_setasync 922 struct ccb_hdr ccb_h; member in struct:ccb_setdev 930 struct ccb_hdr ccb_h; member in struct:ccb_abort 936 struct ccb_hdr ccb_h; member in struct:ccb_resetbus 941 struct ccb_hdr ccb_h; member in struct:ccb_resetdev 946 struct ccb_hdr ccb_h; member in struct:ccb_termio 1119 struct ccb_hdr ccb_h; member in struct:ccb_trans_settings 1149 struct ccb_hdr ccb_h; member in struct:ccb_calc_geometry 1190 struct ccb_hdr ccb_h; member in struct:ccb_sim_knob 1204 struct ccb_hdr ccb_h; member in struct:ccb_rescan 1212 struct ccb_hdr ccb_h; member in struct:ccb_debug 1219 struct ccb_hdr ccb_h; member in struct:ccb_en_lun 1227 struct ccb_hdr ccb_h; member in struct:ccb_immed_notify 1235 struct ccb_hdr ccb_h; member in struct:ccb_notify_ack 1241 struct ccb_hdr ccb_h; member in struct:ccb_immediate_notify 1249 struct ccb_hdr ccb_h; member in struct:ccb_notify_acknowledge 1283 struct ccb_hdr ccb_h; member in struct:ccb_eng_inq 1291 struct ccb_hdr ccb_h; member in struct:ccb_eng_exec 1323 struct ccb_hdr ccb_h; member in struct:ccb_dev_advinfo 1347 struct ccb_hdr ccb_h; member in struct:ccb_async 1360 struct ccb_hdr ccb_h; /* For convenience */ member in union:ccb [all...] |
H A D | cam.c | 337 switch (ccb->ccb_h.func_code) { 387 xpt_path_string(ccb->csio.ccb_h.path, path_str, sizeof(path_str)); 396 switch (ccb->ccb_h.func_code) { 418 ccb->ccb_h.func_code); 430 status = ccb->ccb_h.status & CAM_STATUS_MASK; 436 ccb->ccb_h.status); 444 switch (ccb->ccb_h.func_code) { 446 if ((ccb->ccb_h.status & CAM_STATUS_MASK) != 463 if ((ccb->ccb_h.status & CAM_STATUS_MASK) != 475 && (ccb->ccb_h 580 struct ccb_hdr *ccb_h; local 651 struct ccb_hdr *ccb_h; local [all...] |
H A D | cam_xpt.c | 265 static void xpt_done_process(struct ccb_hdr *ccb_h); 421 if (inccb->ccb_h.func_code == XPT_SCSI_IO) 425 if (inccb->ccb_h.flags & CAM_UNLOCKED) 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 3410 xpt_setup_ccb_flags(struct ccb_hdr *ccb_h, struct cam_path *path, uint32_t priority, uint32_t flags) argument 3434 xpt_setup_ccb(struct ccb_hdr *ccb_h, struct cam_path *path, uint32_t priority) argument 4615 struct ccb_hdr *ccb_h; local 5253 xpt_done_process(struct ccb_hdr *ccb_h) argument 5386 struct ccb_hdr *ccb_h; local 5411 struct ccb_hdr *ccb_h; local 5440 struct ccb_hdr *ccb_h; local [all...] |
/freebsd-current/sys/dev/mpt/ |
H A D | mpt_cam.h | 121 if ((ccb->ccb_h.status & CAM_DEV_QFRZN) == 0) { 122 ccb->ccb_h.status |= CAM_DEV_QFRZN; 123 xpt_freeze_devq(ccb->ccb_h.path, /*count*/1); 130 ccb->ccb_h.status &= ~CAM_STATUS_MASK; 131 ccb->ccb_h.status |= status;
|
/freebsd-current/sys/dev/nvmf/host/ |
H A D | nvmf_sim.c | 31 return ((u_int *)&ccb->ccb_h.spriv_field0); 43 ccb->ccb_h.status = CAM_REQUEUE_REQ; 46 ccb->ccb_h.status = CAM_NVME_STATUS_ERROR; 48 } else if (ccb->ccb_h.spriv_ioerror != 0) { 49 KASSERT(ccb->ccb_h.spriv_ioerror != EJUSTRETURN, 51 ccb->ccb_h.status = CAM_REQ_CMP_ERR; 54 ccb->ccb_h.status = CAM_REQ_CMP; 70 ccb->ccb_h.spriv_ioerror = error; 79 ccb->ccb_h.spriv_ioerror = EJUSTRETURN; 109 nvmeio->ccb_h [all...] |
/freebsd-current/sys/dev/smartpqi/ |
H A D | smartpqi_cam.c | 68 cpi->ccb_h.status = CAM_REQ_CMP; 100 cts->ccb_h.status = CAM_REQ_CMP; 123 if (xpt_create_path(&ccb->ccb_h.path, NULL, 184 if (csio->ccb_h.status & CAM_RELEASE_SIMQ) 185 xpt_release_simq(xpt_path_sim(csio->ccb_h.path), 0); 187 csio->ccb_h.status |= CAM_RELEASE_SIMQ; 204 if ((rcb->cm_ccb->ccb_h.flags & CAM_DIR_MASK) == CAM_DIR_IN) 207 if ((rcb->cm_ccb->ccb_h.flags & CAM_DIR_MASK) == CAM_DIR_OUT) 251 cdb = (csio->ccb_h.flags & CAM_CDB_POINTER) ? 256 (csio->ccb_h 934 struct ccb_hdr *ccb_h = &ccb->ccb_h; local 974 struct ccb_hdr *ccb_h = &ccb->ccb_h; local 1016 struct ccb_hdr *ccb_h = &ccb->ccb_h; local 1072 struct ccb_hdr *ccb_h = &ccb->ccb_h; local [all...] |
/freebsd-current/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-current/sys/cam/mmc/ |
H A D | mmc_sim.c | 63 switch (mmc_sim->ccb->ccb_h.func_code) { 67 mmc_sim->ccb->ccb_h.status = CAM_REQ_INVALID; 69 mmc_sim->ccb->ccb_h.status = CAM_REQ_CMP; 74 mmc_sim->ccb->ccb_h.status = CAM_REQ_INVALID; 76 mmc_sim->ccb->ccb_h.status = CAM_REQ_CMP; 79 panic("Unsupported ccb func %x\n", mmc_sim->ccb->ccb_h.func_code); 100 ccb->ccb_h.status = CAM_BUSY; 105 switch (ccb->ccb_h.func_code) { 109 ccb->ccb_h.status = CAM_REQ_INVALID; 121 ccb->ccb_h [all...] |
H A D | mmc_xpt.c | 239 if (cpi.ccb_h.status != CAM_REQ_CMP) { 241 request_ccb->ccb_h.status = cpi.ccb_h.status; 249 request_ccb->ccb_h.status = CAM_REQ_CMP; /* XXX signal error ? */ 264 // &request_ccb->ccb_h, periph_links.tqe); 268 request_ccb->ccb_h.status = CAM_REQ_CMP_ERR; 271 request_ccb->ccb_h.status = CAM_REQ_CMP_ERR; 289 request_ccb->ccb_h.status = status; 300 CAM_DEBUG(start_ccb->ccb_h.path, CAM_DEBUG_TRACE, 301 ("mmc_action! func_code=%x, action %s\n", start_ccb->ccb_h [all...] |
/freebsd-current/sys/dev/aic7xxx/ |
H A D | aic79xx_osm.c | 268 xpt_setup_ccb(&csa.ccb_h, path, /*priority*/5); 269 csa.ccb_h.func_code = XPT_SASYNC_CB; 311 if (ccb->ccb_h.func_code == XPT_CONT_TARGET_IO) 316 if ((ccb->ccb_h.flags & CAM_DIR_MASK) == rdmask) 334 CAM_DEBUG(scb->io_ctx->ccb_h.path, CAM_DEBUG_TRACE, 344 if ((ccb->ccb_h.flags & CAM_DIR_MASK) != CAM_DIR_NONE) { 350 if (ccb->ccb_h.func_code == XPT_CONT_TARGET_IO) { 359 ccb_path = ccb->ccb_h.path; 362 if ((ccb->ccb_h.flags & CAM_SEND_STATUS) != 0) { 365 xpt_print_path(ccb->ccb_h 1071 struct ccb_hdr *ccb_h; local [all...] |
H A D | aic7xxx_osm.c | 214 xpt_setup_ccb(&csa.ccb_h, path, /*priority*/5); 215 csa.ccb_h.func_code = XPT_SASYNC_CB; 255 xpt_setup_ccb(&csa.ccb_h, path2, /*priority*/5); 256 csa.ccb_h.func_code = XPT_SASYNC_CB; 310 if (ccb->ccb_h.func_code == XPT_CONT_TARGET_IO) 315 if ((ccb->ccb_h.flags & CAM_DIR_MASK) == rdmask) 333 CAM_DEBUG(scb->io_ctx->ccb_h.path, CAM_DEBUG_TRACE, 353 if ((ccb->ccb_h.flags & CAM_DIR_MASK) != CAM_DIR_NONE) { 358 if (ccb->ccb_h.func_code == XPT_CONT_TARGET_IO) { 367 ccb_path = ccb->ccb_h 1134 struct ccb_hdr *ccb_h; local [all...] |
/freebsd-current/sys/cam/ctl/ |
H A D | scsi_ctl.c | 322 softc->path_id = cpi->ccb_h.path_id; 480 xpt_setup_ccb(&ccb.ccb_h, periph->path, CAM_PRIORITY_NONE); 481 ccb.ccb_h.func_code = XPT_EN_LUN; 486 status = (ccb.ccb_h.status & CAM_STATUS_MASK); 489 __func__, ccb.ccb_h.status); 522 new_ccb->ccb_h.io_ptr = new_io; 523 LIST_INSERT_HEAD(&softc->atio_list, &new_ccb->ccb_h, periph_links.le); 525 xpt_setup_ccb(&new_ccb->ccb_h, periph->path, CAM_PRIORITY_NONE); 526 new_ccb->ccb_h.func_code = XPT_ACCEPT_TARGET_IO; 527 new_ccb->ccb_h 767 struct ccb_hdr *ccb_h; local [all...] |
H A D | ctl_frontend_cam_sim.c | 250 if (xpt_create_path(&ccb->ccb_h.path, NULL, 301 KASSERT(((ccb->ccb_h.flags & CFCS_BAD_CCB_FLAGS) == 0), ("invalid " 302 "CAM flags %#x", (ccb->ccb_h.flags & CFCS_BAD_CCB_FLAGS))); 308 switch ((ccb->ccb_h.flags & CAM_DATA_MASK)) { 338 panic("Invalid CAM flags %#x", ccb->ccb_h.flags); 410 ccb->ccb_h.status &= ~CAM_STATUS_MASK; 411 ccb->ccb_h.status |= CAM_REQ_CMP; 438 if (ccb->ccb_h.func_code == XPT_SCSI_IO) { 442 ccb->ccb_h.status &= ~CAM_STATUS_MASK; 445 ccb->ccb_h [all...] |
/freebsd-current/sys/dev/aac/ |
H A D | aac_cam.c | 130 if (xpt_create_path(&ccb->ccb_h.path, NULL, 152 camsc = ccb->ccb_h.sim_priv.entries[0].ptr; 155 ccb->ccb_h.status = CAM_REQUEUE_REQ; 267 switch(ccb->ccb_h.func_code) { 294 ccb->ccb_h.status = CAM_REQ_CMP; 325 ccb->ccb_h.status = CAM_REQ_CMP; 339 if (ccb->ccb_h.target_lun != CAM_LUN_WILDCARD) { 345 ccb->ccb_h.status = CAM_REQ_CMP; 350 ccb->ccb_h.status = CAM_FUNC_NOTAVAIL; 355 ccb->ccb_h [all...] |
/freebsd-current/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-current/sys/dev/ata/ |
H A D | ata-all.c | 272 if (xpt_create_path(&ccb->ccb_h.path, NULL, 741 request->unit = ccb->ccb_h.target_id; 742 if (ccb->ccb_h.func_code == XPT_ATA_IO) { 765 if ((ccb->ccb_h.flags & CAM_DIR_MASK) != CAM_DIR_NONE && 768 if ((ccb->ccb_h.flags & CAM_DIR_MASK) == CAM_DIR_IN) 770 if ((ccb->ccb_h.flags & CAM_DIR_MASK) == CAM_DIR_OUT) 777 ch->curr[ccb->ccb_h.target_id].bytecount); 783 bcopy((ccb->ccb_h.flags & CAM_CDB_POINTER) ? 787 if (ch->curr[ccb->ccb_h.target_id].atapi == 16) 789 if ((ccb->ccb_h [all...] |
/freebsd-current/sys/dev/aacraid/ |
H A D | aacraid_cam.c | 148 ccb->ccb_h.status = CAM_SCSI_STATUS_ERROR; 151 ccb->ccb_h.status |= CAM_AUTOSNS_VALID; 187 if (xpt_create_path(&ccb->ccb_h.path, xpt_periph, 209 camsc = ccb->ccb_h.sim_priv.entries[0].ptr; 212 ccb->ccb_h.status = CAM_REQUEUE_REQ; 365 ccb->ccb_h.status = CAM_RESRC_UNAVAIL; 366 ccb->ccb_h.sim_priv.entries[0].ptr = camsc; 382 switch (ccb->ccb_h.flags & CAM_DIR_MASK) { 424 raw->ldNum = ccb->ccb_h.target_id; 439 raw->ContainerId = ccb->ccb_h [all...] |
/freebsd-current/sys/cam/ata/ |
H A D | ata_xpt.c | 282 TAILQ_INSERT_TAIL(&softc->request_ccbs, &request_ccb->ccb_h, 332 CAM_DEBUG(start_ccb->ccb_h.path, CAM_DEBUG_TRACE, ("aprobestart\n")); 335 path = start_ccb->ccb_h.path; 395 xpt_setup_ccb(&cts.ccb_h, path, CAM_PRIORITY_NONE); 396 cts.ccb_h.func_code = XPT_GET_TRAN_SETTINGS; 418 xpt_setup_ccb(&cts.ccb_h, path, CAM_PRIORITY_NONE); 419 cts.ccb_h.func_code = XPT_SET_TRAN_SETTINGS; 431 xpt_setup_ccb(&cts.ccb_h, path, CAM_PRIORITY_NONE); 432 cts.ccb_h.func_code = XPT_GET_TRAN_SETTINGS; 531 xpt_setup_ccb(&cts.ccb_h, pat [all...] |
/freebsd-current/sys/powerpc/mpc85xx/ |
H A D | fsl_sata.c | 692 if (xpt_create_path(&ccb->ccb_h.path, NULL, 729 if ((ccb->ccb_h.func_code & XPT_FC_QUEUED) == 0 || 735 STAILQ_INSERT_TAIL(&ch->doneq, &ccb->ccb_h, sim_links.stqe); 742 struct ccb_hdr *ccb_h; local 761 while ((ccb_h = STAILQ_FIRST(&tmp_doneq)) != NULL) { 763 xpt_done_direct((union ccb *)ccb_h); 827 fccb->ccb_h.status = CAM_REQUEUE_REQ | CAM_RELEASE_SIMQ; 828 if (!(fccb->ccb_h.status & CAM_DEV_QFRZN)) { 829 xpt_freeze_devq(fccb->ccb_h.path, 1); 830 fccb->ccb_h [all...] |
/freebsd-current/sys/dev/ocs_fc/ |
H A D | ocs_cam.c | 589 atio->ccb_h.status = CAM_CDB_RECVD; 590 atio->ccb_h.target_lun = lun; 595 atio->ccb_h.ccb_io_ptr = io; 736 inot->ccb_h.status = CAM_MESSAGE_RECV; 737 inot->ccb_h.target_lun = lun; 752 STAILQ_INSERT_TAIL(&trsrc->inot, &inot->ccb_h, sim_links.stqe); 777 STAILQ_INSERT_TAIL(&trsrc->inot, &inot->ccb_h, sim_links.stqe); 783 xpt_print(inot->ccb_h.path, "%s: func=%#x stat=%#x id=%#x lun=%#x" 785 __func__, inot->ccb_h.func_code, inot->ccb_h 1860 struct ccb_hdr *ccb_h = &csio->ccb_h; local 2054 struct ccb_hdr *ccb_h = &ccb->ccb_h; local 2606 ocs_tgt_resource_get(ocs_fcport *fcp, struct ccb_hdr *ccb_h, uint32_t *status) argument [all...] |