/freebsd/share/examples/scsi_target/ |
H A D | scsi_target.c | 340 struct ccb_hdr *ccb_h; in cleanup() local 350 while ((ccb_h = TAILQ_FIRST(&pending_queue)) != NULL) { in cleanup() 351 TAILQ_REMOVE(&pending_queue, ccb_h, periph_links.tqe); in cleanup() 352 free_ccb((union ccb *)ccb_h); in cleanup() 354 while ((ccb_h = TAILQ_FIRST(&work_queue)) != NULL) { in cleanup() 355 TAILQ_REMOVE(&work_queue, ccb_h, periph_links.tqe); in cleanup() 356 free_ccb((union ccb *)ccb_h); in cleanup() 385 atio->ccb_h.func_code = XPT_ACCEPT_TARGET_IO; in init_ccbs() 386 atio->ccb_h.targ_descr = a_descr; in init_ccbs() 394 inot->ccb_h.func_code = XPT_IMMEDIATE_NOTIFY; in init_ccbs() [all …]
|
/freebsd/sys/cam/scsi/ |
H A D | scsi_targ_bh.c | 182 bus_path_id = cpi->ccb_h.path_id; in targbhasync() 242 xpt_setup_ccb(&immed_ccb.ccb_h, periph->path, CAM_PRIORITY_NORMAL); in targbhenlun() 243 immed_ccb.ccb_h.func_code = XPT_EN_LUN; in targbhenlun() 250 status = immed_ccb.ccb_h.status; in targbhenlun() 274 atio->ccb_h.ccb_descr = targbhallocdescr(); in targbhenlun() 276 if (atio->ccb_h.ccb_descr == NULL) { in targbhenlun() 282 xpt_setup_ccb(&atio->ccb_h, periph->path, CAM_PRIORITY_NORMAL); in targbhenlun() 283 atio->ccb_h.func_code = XPT_ACCEPT_TARGET_IO; in targbhenlun() 284 atio->ccb_h.cbfcnp = targbhdone; in targbhenlun() 285 ((struct targbh_cmd_desc*)atio->ccb_h.ccb_descr)->atio_link = in targbhenlun() [all …]
|
H A D | scsi_target.c | 276 xpt_setup_ccb(&cdbg.ccb_h, softc->path, CAM_PRIORITY_NORMAL); in targioctl() 277 cdbg.ccb_h.func_code = XPT_DEBUG; in targioctl() 278 cdbg.ccb_h.cbfcnp = targdone; in targioctl() 280 status = cdbg.ccb_h.status & CAM_STATUS_MASK; in targioctl() 363 xpt_setup_ccb(&en_ccb.ccb_h, path, CAM_PRIORITY_NORMAL); in targendislun() 364 en_ccb.ccb_h.func_code = XPT_EN_LUN; in targendislun() 370 status = en_ccb.ccb_h.status & CAM_STATUS_MASK; in targendislun() 392 status = cpi.ccb_h.status & CAM_STATUS_MASK; in targenable() 495 struct ccb_hdr *ccb_h; in targdtor() local 505 while ((ccb_h = TAILQ_FIRST(&softc->user_ccb_queue)) != NULL) { in targdtor() [all …]
|
H A D | scsi_xpt.c | 660 TAILQ_INSERT_TAIL(&softc->request_ccbs, &request_ccb->ccb_h, in proberegister() 713 if (((ccb->ccb_h.path->device->flags & CAM_DEV_UNCONFIGURED) == 0) in probeschedule() 714 && (ccb->ccb_h.target_lun == 0)) { in probeschedule() 744 CAM_DEBUG(start_ccb->ccb_h.path, CAM_DEBUG_TRACE, ("probestart\n")); in probestart() 1028 start_ccb->ccb_h.flags |= CAM_DEV_QFREEZE; in probestart() 1039 xpt_setup_ccb(&cts.ccb_h, periph->path, CAM_PRIORITY_NONE); in proberequestdefaultnegotiation() 1040 cts.ccb_h.func_code = XPT_GET_TRAN_SETTINGS; in proberequestdefaultnegotiation() 1046 cts.ccb_h.func_code = XPT_SET_TRAN_SETTINGS; in proberequestdefaultnegotiation() 1061 xpt_setup_ccb(&cts.ccb_h, periph->path, CAM_PRIORITY_NONE); in proberequestbackoff() 1062 cts.ccb_h.func_code = XPT_GET_TRAN_SETTINGS; in proberequestbackoff() [all …]
|
/freebsd/sys/dev/isci/ |
H A D | isci_io_request.c | 98 ccb->ccb_h.status &= ~CAM_STATUS_MASK; in isci_io_request_complete() 103 if (ccb->ccb_h.func_code == XPT_SMP_IO) { in isci_io_request_complete() 111 ccb->ccb_h.status |= CAM_REQ_CMP; in isci_io_request_complete() 115 ccb->ccb_h.status |= CAM_REQ_CMP; in isci_io_request_complete() 140 ccb->ccb_h.status |= CAM_SCSI_STATUS_ERROR; in isci_io_request_complete() 141 ccb->ccb_h.status |= CAM_AUTOSNS_VALID; in isci_io_request_complete() 146 ccb->ccb_h.path_id, ccb->ccb_h.target_id, in isci_io_request_complete() 147 ccb->ccb_h.target_lun, scsiio_cdb_ptr(csio), in isci_io_request_complete() 154 ccb->ccb_h.status |= CAM_REQ_TERMIO; in isci_io_request_complete() 157 ccb->ccb_h.path_id, ccb->ccb_h.target_id, in isci_io_request_complete() [all …]
|
/freebsd/sys/dev/smartpqi/ |
H A D | smartpqi_cam.c | 68 cpi->ccb_h.status = CAM_REQ_CMP; in update_sim_properties() 100 cts->ccb_h.status = CAM_REQ_CMP; in get_transport_settings() 123 if (xpt_create_path(&ccb->ccb_h.path, NULL, in os_add_device() 184 if (csio->ccb_h.status & CAM_RELEASE_SIMQ) in pqi_release_camq() 185 xpt_release_simq(xpt_path_sim(csio->ccb_h.path), 0); in pqi_release_camq() 187 csio->ccb_h.status |= CAM_RELEASE_SIMQ; in pqi_release_camq() 204 if ((rcb->cm_ccb->ccb_h.flags & CAM_DIR_MASK) == CAM_DIR_IN) in pqi_synch_request() 207 if ((rcb->cm_ccb->ccb_h.flags & CAM_DIR_MASK) == CAM_DIR_OUT) in pqi_synch_request() 251 cdb = (csio->ccb_h.flags & CAM_CDB_POINTER) ? in smartpqi_fix_ld_inquiry() 256 (csio->ccb_h.flags & CAM_DIR_MASK) == CAM_DIR_IN && in smartpqi_fix_ld_inquiry() [all …]
|
/freebsd/sys/cam/ |
H A D | cam_periph.c | 776 ccb.ccb_h.func_code = XPT_GDEV_TYPE; in camperiphfree() 777 xpt_setup_ccb(&ccb.ccb_h, periph->path, CAM_PRIORITY_NORMAL); in camperiphfree() 818 switch(ccb->ccb_h.func_code) { in cam_periph_mapmem() 847 if ((ccb->ccb_h.flags & CAM_DIR_MASK) == CAM_DIR_NONE) in cam_periph_mapmem() 849 if ((ccb->ccb_h.flags & CAM_DATA_MASK) != CAM_DATA_VADDR) in cam_periph_mapmem() 853 dirs[0] = ccb->ccb_h.flags & CAM_DIR_MASK; in cam_periph_mapmem() 857 if ((ccb->ccb_h.flags & CAM_DIR_MASK) == CAM_DIR_NONE) in cam_periph_mapmem() 859 if ((ccb->ccb_h.flags & CAM_DATA_MASK) != CAM_DATA_VADDR) in cam_periph_mapmem() 863 dirs[0] = ccb->ccb_h.flags & CAM_DIR_MASK; in cam_periph_mapmem() 867 if ((ccb->ccb_h.flags & CAM_DIR_MASK) == CAM_DIR_NONE) in cam_periph_mapmem() [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; 390 struct ccb_hdr ccb_h; 415 struct ccb_hdr ccb_h; 579 struct ccb_hdr ccb_h; 666 struct ccb_hdr ccb_h; 706 struct ccb_hdr ccb_h; 726 struct ccb_hdr ccb_h; 756 struct ccb_hdr ccb_h; 377 struct ccb_hdr ccb_h; global() member 389 struct ccb_hdr ccb_h; global() member 414 struct ccb_hdr ccb_h; global() member 578 struct ccb_hdr ccb_h; global() member 659 struct ccb_hdr ccb_h; global() member 698 struct ccb_hdr ccb_h; global() member 718 struct ccb_hdr ccb_h; global() member 748 struct ccb_hdr ccb_h; global() member 790 struct ccb_hdr ccb_h; global() member 809 struct ccb_hdr ccb_h; global() member 816 struct ccb_hdr ccb_h; global() member 836 struct ccb_hdr ccb_h; global() member 851 struct ccb_hdr ccb_h; global() member 906 struct ccb_hdr ccb_h; global() member 914 struct ccb_hdr ccb_h; global() member 922 struct ccb_hdr ccb_h; global() member 928 struct ccb_hdr ccb_h; global() member 933 struct ccb_hdr ccb_h; global() member 938 struct ccb_hdr ccb_h; global() member 1104 struct ccb_hdr ccb_h; global() member 1133 struct ccb_hdr ccb_h; global() member 1174 struct ccb_hdr ccb_h; global() member 1188 struct ccb_hdr ccb_h; global() member 1196 struct ccb_hdr ccb_h; global() member 1203 struct ccb_hdr ccb_h; global() member 1211 struct ccb_hdr ccb_h; global() member 1219 struct ccb_hdr ccb_h; global() member 1225 struct ccb_hdr ccb_h; global() member 1233 struct ccb_hdr ccb_h; global() member 1267 struct ccb_hdr ccb_h; global() member 1275 struct ccb_hdr ccb_h; global() member 1307 struct ccb_hdr ccb_h; global() member 1331 struct ccb_hdr ccb_h; global() member 1344 struct ccb_hdr ccb_h; /* For convenience */ global() member [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) in xptdoioctl() 425 if (inccb->ccb_h.flags & CAM_UNLOCKED) in xptdoioctl() 428 bus = xpt_find_bus(inccb->ccb_h.path_id); in xptdoioctl() 432 switch (inccb->ccb_h.func_code) { in xptdoioctl() 435 if (inccb->ccb_h.target_id != CAM_TARGET_WILDCARD || in xptdoioctl() 436 inccb->ccb_h.target_lun != CAM_LUN_WILDCARD) { in xptdoioctl() 442 if (inccb->ccb_h.target_id == CAM_TARGET_WILDCARD || in xptdoioctl() 443 inccb->ccb_h.target_lun != CAM_LUN_WILDCARD) { in xptdoioctl() 452 switch(inccb->ccb_h.func_code) { in xptdoioctl() [all …]
|
H A D | cam.c | 337 switch (ccb->ccb_h.func_code) { in cam_error_string() 387 xpt_path_string(ccb->csio.ccb_h.path, path_str, sizeof(path_str)); in cam_error_string() 396 switch (ccb->ccb_h.func_code) { in cam_error_string() 418 ccb->ccb_h.func_code); in cam_error_string() 430 status = ccb->ccb_h.status & CAM_STATUS_MASK; in cam_error_string() 436 ccb->ccb_h.status); in cam_error_string() 444 switch (ccb->ccb_h.func_code) { in cam_error_string() 446 if ((ccb->ccb_h.status & CAM_STATUS_MASK) != in cam_error_string() 463 if ((ccb->ccb_h.status & CAM_STATUS_MASK) != in cam_error_string() 475 && (ccb->ccb_h.status & CAM_AUTOSNS_VALID)) { in cam_error_string() [all …]
|
/freebsd/sys/cam/mmc/ |
H A D | mmc_xpt.c | 239 if (cpi.ccb_h.status != CAM_REQ_CMP) { in mmc_scan_lun() 241 request_ccb->ccb_h.status = cpi.ccb_h.status; in mmc_scan_lun() 249 request_ccb->ccb_h.status = CAM_REQ_CMP; /* XXX signal error ? */ in mmc_scan_lun() 268 request_ccb->ccb_h.status = CAM_REQ_CMP_ERR; in mmc_scan_lun() 271 request_ccb->ccb_h.status = CAM_REQ_CMP_ERR; in mmc_scan_lun() 289 request_ccb->ccb_h.status = status; in mmc_scan_lun() 300 CAM_DEBUG(start_ccb->ccb_h.path, CAM_DEBUG_TRACE, in mmc_action() 301 ("mmc_action! func_code=%x, action %s\n", start_ccb->ccb_h.func_code, in mmc_action() 302 xpt_action_name(start_ccb->ccb_h.func_code))); in mmc_action() 303 switch (start_ccb->ccb_h.func_code) { in mmc_action() [all …]
|
H A D | mmc_sim.c | 63 switch (mmc_sim->ccb->ccb_h.func_code) { in mmc_sim_task() 67 mmc_sim->ccb->ccb_h.status = CAM_REQ_INVALID; in mmc_sim_task() 69 mmc_sim->ccb->ccb_h.status = CAM_REQ_CMP; in mmc_sim_task() 74 mmc_sim->ccb->ccb_h.status = CAM_REQ_INVALID; in mmc_sim_task() 76 mmc_sim->ccb->ccb_h.status = CAM_REQ_CMP; in mmc_sim_task() 79 panic("Unsupported ccb func %x\n", mmc_sim->ccb->ccb_h.func_code); in mmc_sim_task() 100 ccb->ccb_h.status = CAM_BUSY; in mmc_cam_sim_default_action() 105 switch (ccb->ccb_h.func_code) { in mmc_cam_sim_default_action() 109 ccb->ccb_h.status = CAM_REQ_INVALID; in mmc_cam_sim_default_action() 121 ccb->ccb_h.status = CAM_REQ_INVALID; in mmc_cam_sim_default_action() [all …]
|
/freebsd/sys/dev/nvmf/host/ |
H A D | nvmf_sim.c | 31 return ((u_int *)&ccb->ccb_h.spriv_field0); in ccb_refs() 43 struct cam_sim *sim = xpt_path_sim(ccb->ccb_h.path); in nvmf_ccb_done() 47 ccb->ccb_h.status = CAM_DEV_NOT_THERE; in nvmf_ccb_done() 49 ccb->ccb_h.status = CAM_REQUEUE_REQ; in nvmf_ccb_done() 52 ccb->ccb_h.status = CAM_NVME_STATUS_ERROR; in nvmf_ccb_done() 54 } else if (ccb->ccb_h.spriv_ioerror != 0) { in nvmf_ccb_done() 55 KASSERT(ccb->ccb_h.spriv_ioerror != EJUSTRETURN, in nvmf_ccb_done() 57 ccb->ccb_h.status = CAM_REQ_CMP_ERR; in nvmf_ccb_done() 60 ccb->ccb_h.status = CAM_REQ_CMP; in nvmf_ccb_done() 76 ccb->ccb_h.spriv_ioerror = error; in nvmf_ccb_io_complete() [all …]
|
/freebsd/sys/dev/aacraid/ |
H A D | aacraid_cam.c | 148 ccb->ccb_h.status = CAM_SCSI_STATUS_ERROR; in aac_set_scsi_error() 151 ccb->ccb_h.status |= CAM_AUTOSNS_VALID; in aac_set_scsi_error() 187 if (xpt_create_path(&ccb->ccb_h.path, xpt_periph, in aac_cam_rescan() 209 camsc = ccb->ccb_h.sim_priv.entries[0].ptr; in aac_cam_event() 212 ccb->ccb_h.status = CAM_REQUEUE_REQ; in aac_cam_event() 365 ccb->ccb_h.status = CAM_RESRC_UNAVAIL; in aac_container_rw_command() 366 ccb->ccb_h.sim_priv.entries[0].ptr = camsc; in aac_container_rw_command() 382 switch (ccb->ccb_h.flags & CAM_DIR_MASK) { in aac_container_rw_command() 424 raw->ldNum = ccb->ccb_h.target_id; in aac_container_rw_command() 439 raw->ContainerId = ccb->ccb_h.target_id; in aac_container_rw_command() [all …]
|
/freebsd/sys/cam/ctl/ |
H A D | ctl_frontend_cam_sim.c | 250 if (xpt_create_path(&ccb->ccb_h.path, NULL, in cfcs_onoffline() 301 KASSERT(((ccb->ccb_h.flags & CFCS_BAD_CCB_FLAGS) == 0), ("invalid " in cfcs_datamove() 302 "CAM flags %#x", (ccb->ccb_h.flags & CFCS_BAD_CCB_FLAGS))); in cfcs_datamove() 308 switch ((ccb->ccb_h.flags & CAM_DATA_MASK)) { in cfcs_datamove() 338 panic("Invalid CAM flags %#x", ccb->ccb_h.flags); in cfcs_datamove() 410 ccb->ccb_h.status &= ~CAM_STATUS_MASK; in cfcs_datamove() 411 ccb->ccb_h.status |= CAM_REQ_CMP; in cfcs_datamove() 438 if (ccb->ccb_h.func_code == XPT_SCSI_IO) { in cfcs_done() 442 ccb->ccb_h.status &= ~CAM_STATUS_MASK; in cfcs_done() 445 ccb->ccb_h.status |= CAM_REQ_CMP; in cfcs_done() [all …]
|
H A D | scsi_ctl.c | 322 softc->path_id = cpi->ccb_h.path_id; in ctlfeasync() 480 xpt_setup_ccb(&ccb.ccb_h, periph->path, CAM_PRIORITY_NONE); in ctlferegister() 481 ccb.ccb_h.func_code = XPT_EN_LUN; in ctlferegister() 486 status = (ccb.ccb_h.status & CAM_STATUS_MASK); in ctlferegister() 489 __func__, ccb.ccb_h.status); in ctlferegister() 522 new_ccb->ccb_h.io_ptr = new_io; in ctlferegister() 523 LIST_INSERT_HEAD(&softc->atio_list, &new_ccb->ccb_h, periph_links.le); in ctlferegister() 525 xpt_setup_ccb(&new_ccb->ccb_h, periph->path, CAM_PRIORITY_NONE); in ctlferegister() 526 new_ccb->ccb_h.func_code = XPT_ACCEPT_TARGET_IO; in ctlferegister() 527 new_ccb->ccb_h in ctlferegister() 767 struct ccb_hdr *ccb_h; ctlfestart() local [all...] |
/freebsd/sys/dev/aic7xxx/ |
H A D | aic79xx_osm.c | 268 xpt_setup_ccb(&csa.ccb_h, path, /*priority*/5); in ahd_attach() 269 csa.ccb_h.func_code = XPT_SASYNC_CB; in ahd_attach() 311 if (ccb->ccb_h.func_code == XPT_CONT_TARGET_IO) 316 if ((ccb->ccb_h.flags & CAM_DIR_MASK) == rdmask) in ahd_done() 334 CAM_DEBUG(scb->io_ctx->ccb_h.path, CAM_DEBUG_TRACE, in ahd_done() 344 if ((ccb->ccb_h.flags & CAM_DIR_MASK) != CAM_DIR_NONE) { in ahd_done() 350 if (ccb->ccb_h.func_code == XPT_CONT_TARGET_IO) { in ahd_done() 359 ccb_path = ccb->ccb_h.path; in ahd_done() 362 if ((ccb->ccb_h.flags & CAM_SEND_STATUS) != 0) { in ahd_done() 365 xpt_print_path(ccb->ccb_h in ahd_done() 1065 struct ccb_hdr *ccb_h; ahd_setup_data() local [all...] |
H A D | aic7xxx_osm.c | 214 xpt_setup_ccb(&csa.ccb_h, path, /*priority*/5); in ahc_attach() 215 csa.ccb_h.func_code = XPT_SASYNC_CB; in ahc_attach() 255 xpt_setup_ccb(&csa.ccb_h, path2, /*priority*/5); in ahc_attach() 256 csa.ccb_h.func_code = XPT_SASYNC_CB; in ahc_attach() 310 if (ccb->ccb_h.func_code == XPT_CONT_TARGET_IO) 315 if ((ccb->ccb_h.flags & CAM_DIR_MASK) == rdmask) in ahc_done() 333 CAM_DEBUG(scb->io_ctx->ccb_h.path, CAM_DEBUG_TRACE, in ahc_done() 353 if ((ccb->ccb_h.flags & CAM_DIR_MASK) != CAM_DIR_NONE) { in ahc_done() 358 if (ccb->ccb_h.func_code == XPT_CONT_TARGET_IO) { in ahc_done() 367 ccb_path = ccb->ccb_h in ahc_done() 1128 struct ccb_hdr *ccb_h; ahc_setup_data() local [all...] |
/freebsd/sys/powerpc/mpc85xx/ |
H A D | fsl_sata.c | 692 if (xpt_create_path(&ccb->ccb_h.path, NULL, in fsl_sata_phy_check_events() 729 if ((ccb->ccb_h.func_code & XPT_FC_QUEUED) == 0 || in fsl_sata_done() 735 STAILQ_INSERT_TAIL(&ch->doneq, &ccb->ccb_h, sim_links.stqe); in fsl_sata_done() 742 struct ccb_hdr *ccb_h; in fsl_sata_intr() local 761 while ((ccb_h = STAILQ_FIRST(&tmp_doneq)) != NULL) { in fsl_sata_intr() 763 xpt_done_direct((union ccb *)ccb_h); in fsl_sata_intr() 827 fccb->ccb_h.status = CAM_REQUEUE_REQ | CAM_RELEASE_SIMQ; in fsl_sata_intr_main() 828 if (!(fccb->ccb_h.status & CAM_DEV_QFRZN)) { in fsl_sata_intr_main() 829 xpt_freeze_devq(fccb->ccb_h.path, 1); in fsl_sata_intr_main() 830 fccb->ccb_h.status |= CAM_DEV_QFRZN; in fsl_sata_intr_main() [all …]
|
/freebsd/sys/cam/ata/ |
H A D | ata_xpt.c | 282 TAILQ_INSERT_TAIL(&softc->request_ccbs, &request_ccb->ccb_h, in aproberegister() 332 CAM_DEBUG(start_ccb->ccb_h.path, CAM_DEBUG_TRACE, ("aprobestart\n")); in aprobestart() 335 path = start_ccb->ccb_h.path; in aprobestart() 395 xpt_setup_ccb(&cts.ccb_h, path, CAM_PRIORITY_NONE); in aprobestart() 396 cts.ccb_h.func_code = XPT_GET_TRAN_SETTINGS; in aprobestart() 418 xpt_setup_ccb(&cts.ccb_h, path, CAM_PRIORITY_NONE); in aprobestart() 419 cts.ccb_h.func_code = XPT_SET_TRAN_SETTINGS; in aprobestart() 431 xpt_setup_ccb(&cts.ccb_h, path, CAM_PRIORITY_NONE); in aprobestart() 432 cts.ccb_h.func_code = XPT_GET_TRAN_SETTINGS; in aprobestart() 531 xpt_setup_ccb(&cts.ccb_h, path, CAM_PRIORITY_NONE); in aprobestart() [all …]
|
/freebsd/sys/dev/ocs_fc/ |
H A D | ocs_cam.c | 589 atio->ccb_h.status = CAM_CDB_RECVD; in ocs_scsi_recv_cmd() 590 atio->ccb_h.target_lun = lun; in ocs_scsi_recv_cmd() 595 atio->ccb_h.ccb_io_ptr = io; in ocs_scsi_recv_cmd() 736 inot->ccb_h.status = CAM_MESSAGE_RECV; in ocs_scsi_recv_tmf() 737 inot->ccb_h.target_lun = lun; in ocs_scsi_recv_tmf() 752 STAILQ_INSERT_TAIL(&trsrc->inot, &inot->ccb_h, sim_links.stqe); in ocs_scsi_recv_tmf() 777 STAILQ_INSERT_TAIL(&trsrc->inot, &inot->ccb_h, sim_links.stqe); in ocs_scsi_recv_tmf() 783 xpt_print(inot->ccb_h.path, "%s: func=%#x stat=%#x id=%#x lun=%#x" in ocs_scsi_recv_tmf() 785 __func__, inot->ccb_h.func_code, inot->ccb_h.status, in ocs_scsi_recv_tmf() 786 inot->ccb_h.target_id, in ocs_scsi_recv_tmf() [all …]
|
/freebsd/sys/dev/ata/ |
H A D | ata-all.c | 272 if (xpt_create_path(&ccb->ccb_h.path, NULL, in ata_conn_event() 741 request->unit = ccb->ccb_h.target_id; in ata_cam_begin_transaction() 742 if (ccb->ccb_h.func_code == XPT_ATA_IO) { in ata_cam_begin_transaction() 765 if ((ccb->ccb_h.flags & CAM_DIR_MASK) != CAM_DIR_NONE && in ata_cam_begin_transaction() 768 if ((ccb->ccb_h.flags & CAM_DIR_MASK) == CAM_DIR_IN) in ata_cam_begin_transaction() 770 if ((ccb->ccb_h.flags & CAM_DIR_MASK) == CAM_DIR_OUT) in ata_cam_begin_transaction() 777 ch->curr[ccb->ccb_h.target_id].bytecount); in ata_cam_begin_transaction() 783 bcopy((ccb->ccb_h.flags & CAM_CDB_POINTER) ? in ata_cam_begin_transaction() 787 if (ch->curr[ccb->ccb_h.target_id].atapi == 16) in ata_cam_begin_transaction() 789 if ((ccb->ccb_h.flags & CAM_DIR_MASK) != CAM_DIR_NONE && in ata_cam_begin_transaction() [all …]
|
/freebsd/sys/dev/siis/ |
H A D | siis.c | 826 if (xpt_create_path(&ccb->ccb_h.path, NULL, in siis_phy_check_events() 895 fccb->ccb_h.status &= ~CAM_STATUS_MASK; in siis_ch_intr() 896 fccb->ccb_h.status |= CAM_REQUEUE_REQ | CAM_RELEASE_SIMQ; in siis_ch_intr() 897 if (!(fccb->ccb_h.status & CAM_DEV_QFRZN)) { in siis_ch_intr() 898 xpt_freeze_devq(fccb->ccb_h.path, 1); in siis_ch_intr() 899 fccb->ccb_h.status |= CAM_DEV_QFRZN; in siis_ch_intr() 911 if (ch->slot[i].ccb->ccb_h.target_id != port) in siis_ch_intr() 956 if ((ccb->ccb_h.func_code == XPT_ATA_IO) && in siis_check_collision() 960 ch->curr[ccb->ccb_h.target_id].tags))) == 0) in siis_check_collision() 963 if ((ccb->ccb_h.func_code == XPT_ATA_IO) && in siis_check_collision() [all …]
|
/freebsd/sys/dev/aac/ |
H A D | aac_cam.c | 130 if (xpt_create_path(&ccb->ccb_h.path, NULL, in aac_cam_rescan() 152 camsc = ccb->ccb_h.sim_priv.entries[0].ptr; in aac_cam_event() 155 ccb->ccb_h.status = CAM_REQUEUE_REQ; in aac_cam_event() 267 switch(ccb->ccb_h.func_code) { in aac_cam_action() 294 ccb->ccb_h.status = CAM_REQ_CMP; in aac_cam_action() 325 ccb->ccb_h.status = CAM_REQ_CMP; in aac_cam_action() 339 if (ccb->ccb_h.target_lun != CAM_LUN_WILDCARD) { in aac_cam_action() 345 ccb->ccb_h.status = CAM_REQ_CMP; in aac_cam_action() 350 ccb->ccb_h.status = CAM_FUNC_NOTAVAIL; in aac_cam_action() 355 ccb->ccb_h.status = aac_cam_reset_bus(sim, ccb); in aac_cam_action() [all …]
|
/freebsd/sys/dev/mvs/ |
H A D | mvs.c | 612 if (xpt_create_path(&ccb->ccb_h.path, NULL, in mvs_phy_check_events() 776 ch->slot[i].ccb->ccb_h.target_id != port) in mvs_ch_intr() 866 if (ccb->ccb_h.func_code == XPT_ATA_IO) { /* ATA PIO */ in mvs_legacy_intr() 869 if ((ccb->ccb_h.flags & CAM_DIR_MASK) != CAM_DIR_NONE) { in mvs_legacy_intr() 871 if ((ccb->ccb_h.flags & CAM_DIR_MASK) == CAM_DIR_IN) { in mvs_legacy_intr() 891 if ((ccb->ccb_h.flags & CAM_DIR_MASK) == CAM_DIR_OUT) { in mvs_legacy_intr() 906 if ((ccb->ccb_h.flags & CAM_DIR_MASK) == CAM_DIR_IN) in mvs_legacy_intr() 931 if ((ccb->ccb_h.flags & CAM_DIR_MASK) == CAM_DIR_IN) { in mvs_legacy_intr() 946 ch->curr[ccb->ccb_h.target_id].bytecount); in mvs_legacy_intr() 951 if ((ccb->ccb_h.flags & CAM_DIR_MASK) == CAM_DIR_OUT) { in mvs_legacy_intr() [all …]
|