/freebsd-11-stable/sys/dev/virtio/scsi/ |
H A D | virtio_scsi.c | 702 struct ccb_hdr *ccbh; local 705 ccbh = &ccb->ccb_h; 715 ccbh->status = CAM_NO_HBA; 720 switch (ccbh->func_code) { 726 ccbh->status = CAM_FUNC_NOTAVAIL; 757 "invalid ccb=%p func=%#x\n", ccb, ccbh->func_code); 759 ccbh->status = CAM_REQ_INVALID; 779 struct ccb_hdr *ccbh; local 783 ccbh = &ccb->ccb_h; 788 ccbh 850 struct ccb_hdr *ccbh; local 887 struct ccb_hdr *ccbh; local 973 struct ccb_hdr *ccbh; local 1018 struct ccb_hdr *ccbh; local 1075 struct ccb_hdr *ccbh; local 1348 struct ccb_hdr *ccbh; local 1434 struct ccb_hdr *ccbh; local 1463 struct ccb_hdr *ccbh; local 1520 struct ccb_hdr *ccbh; local 1547 struct ccb_hdr *ccbh; local 1591 vtscsi_set_request_lun(struct ccb_hdr *ccbh, uint8_t lun[]) argument 1632 vtscsi_init_ctrl_tmf_req(struct ccb_hdr *ccbh, uint32_t subtype, uintptr_t tag, struct virtio_scsi_ctrl_tmf_req *tmf_req) argument [all...] |
/freebsd-11-stable/sys/dev/mfi/ |
H A D | mfi_cam.c | 270 struct ccb_hdr *ccbh = &ccb->ccb_h; local 273 ccbh->status = CAM_REQ_INPROG; 275 ccbh->status = CAM_REQ_INVALID; 278 ccbh->ccb_mfip_ptr = sc; 279 TAILQ_INSERT_TAIL(&mfisc->mfi_cam_ccbq, ccbh, sim_links.tqe); 343 struct ccb_hdr *ccbh = &ccb->ccb_h; local 350 sc = ccbh->ccb_mfip_ptr; 364 pt->header.target_id = ccbh->target_id; 365 pt->header.lun_id = ccbh->target_lun; 373 if (ccbh 406 struct ccb_hdr *ccbh = &ccb->ccb_h; local [all...] |
H A D | mfi.c | 2272 struct ccb_hdr *ccbh; local 2283 if ((ccbh = TAILQ_FIRST(&sc->mfi_cam_ccbq)) != NULL) 2284 cm = sc->mfi_cam_start(ccbh);
|
/freebsd-11-stable/tools/tools/vhba/mptest/ |
H A D | vhba_mptest.c | 109 struct ccb_hdr *ccbh; local 113 while ((ccbh = TAILQ_FIRST(&vhbas->vhba->actv)) != NULL) { 114 TAILQ_REMOVE(&vhbas->vhba->actv, ccbh, sim_links.tqe); 115 mptest_act(vhbas, (struct ccb_scsiio *)ccbh); 117 ccbh->sim_priv.entries[0].ptr = vhbas; 118 callout_handle_init(&ccbh->timeout_ch); 123 while ((ccbh = TAILQ_FIRST(&vhbas->vhba->done)) != NULL) { 124 TAILQ_REMOVE(&vhbas->vhba->done, ccbh, sim_links.tqe); 125 xpt_done((union ccb *)ccbh); 398 struct ccb_hdr *ccbh local [all...] |
/freebsd-11-stable/sys/dev/amr/ |
H A D | amr_cam.c | 254 struct ccb_hdr *ccbh = &ccb->ccb_h; local 258 ccbh->status = CAM_REQ_INPROG; 262 ccbh->status = CAM_REQ_INVALID; 266 ccbh->status = CAM_REQ_INVALID; 269 if ((ccbh->flags & CAM_CDB_POINTER) && 270 (ccbh->flags & CAM_CDB_PHYS)) 271 ccbh->status = CAM_REQ_INVALID; 276 if ((ccbh->flags & CAM_DIR_MASK) != CAM_DIR_NONE) { 277 if ((ccbh->flags & CAM_DATA_MASK) != CAM_DATA_VADDR) 279 ccbh [all...] |
/freebsd-11-stable/tools/tools/vhba/faulty/ |
H A D | vhba_faulty.c | 86 struct ccb_hdr *ccbh; local 89 while ((ccbh = TAILQ_FIRST(&vhbas->vhba->actv)) != NULL) { 90 TAILQ_REMOVE(&vhbas->vhba->actv, ccbh, sim_links.tqe); 91 faulty_act(vhbas, (struct ccb_scsiio *)ccbh); 97 while ((ccbh = TAILQ_FIRST(&vhbas->vhba->done)) != NULL) { 98 TAILQ_REMOVE(&vhbas->vhba->done, ccbh, sim_links.tqe); 99 xpt_done((union ccb *)ccbh);
|
/freebsd-11-stable/tools/tools/vhba/lots/ |
H A D | vhba_lots.c | 83 struct ccb_hdr *ccbh; local 86 while ((ccbh = TAILQ_FIRST(&vhbas->vhba->actv)) != NULL) { 87 TAILQ_REMOVE(&vhbas->vhba->actv, ccbh, sim_links.tqe); 88 vhbalots_act(vhbas, (struct ccb_scsiio *)ccbh); 90 while ((ccbh = TAILQ_FIRST(&vhbas->vhba->done)) != NULL) { 91 TAILQ_REMOVE(&vhbas->vhba->done, ccbh, sim_links.tqe); 92 xpt_done((union ccb *)ccbh);
|
/freebsd-11-stable/tools/tools/vhba/medium/ |
H A D | vhba_medium.c | 83 struct ccb_hdr *ccbh; local 86 while ((ccbh = TAILQ_FIRST(&vhbas->vhba->actv)) != NULL) { 87 TAILQ_REMOVE(&vhbas->vhba->actv, ccbh, sim_links.tqe); 88 vhbamedium_act(vhbas, (struct ccb_scsiio *)ccbh); 90 while ((ccbh = TAILQ_FIRST(&vhbas->vhba->done)) != NULL) { 91 TAILQ_REMOVE(&vhbas->vhba->done, ccbh, sim_links.tqe); 92 xpt_done((union ccb *)ccbh);
|
/freebsd-11-stable/tools/tools/vhba/rptluns/ |
H A D | vhba_rptluns.c | 104 struct ccb_hdr *ccbh; local 107 while ((ccbh = TAILQ_FIRST(&vhbas->vhba->actv)) != NULL) { 108 TAILQ_REMOVE(&vhbas->vhba->actv, ccbh, sim_links.tqe); 109 vhbarptluns_act(vhbas, (struct ccb_scsiio *)ccbh); 111 while ((ccbh = TAILQ_FIRST(&vhbas->vhba->done)) != NULL) { 112 TAILQ_REMOVE(&vhbas->vhba->done, ccbh, sim_links.tqe); 113 xpt_done((union ccb *)ccbh);
|
/freebsd-11-stable/tools/tools/vhba/simple/ |
H A D | vhba_simple.c | 83 struct ccb_hdr *ccbh; local 86 while ((ccbh = TAILQ_FIRST(&vhbas->vhba->actv)) != NULL) { 87 TAILQ_REMOVE(&vhbas->vhba->actv, ccbh, sim_links.tqe); 88 vhbasimple_act(vhbas, (struct ccb_scsiio *)ccbh); 90 while ((ccbh = TAILQ_FIRST(&vhbas->vhba->done)) != NULL) { 91 TAILQ_REMOVE(&vhbas->vhba->done, ccbh, sim_links.tqe); 92 xpt_done((union ccb *)ccbh);
|
/freebsd-11-stable/tools/tools/vhba/ |
H A D | vhba.c | 387 vhba_set_status(struct ccb_hdr *ccbh, cam_status status) argument 389 ccbh->status &= ~CAM_STATUS_MASK; 390 ccbh->status |= status; 392 if ((ccbh->status & CAM_DEV_QFRZN) == 0) { 393 ccbh->status |= CAM_DEV_QFRZN; 394 xpt_freeze_devq(ccbh->path, 1);
|
/freebsd-11-stable/sys/cam/scsi/ |
H A D | scsi_targ_bh.c | 443 struct ccb_hdr *ccbh; local 451 ccbh = TAILQ_FIRST(&softc->work_queue); 452 if (ccbh == NULL) { 455 TAILQ_REMOVE(&softc->work_queue, ccbh, periph_links.tqe); 456 TAILQ_INSERT_HEAD(&softc->pending_queue, ccbh, 458 atio = (struct ccb_accept_tio*)ccbh; 518 ccbh = TAILQ_FIRST(&softc->work_queue); 520 if (ccbh != NULL)
|
H A D | scsi_pt.c | 401 struct ccb_hdr *ccbh; local 409 LIST_FOREACH(ccbh, &softc->pending_ccbs, periph_links.le) 410 ccbh->ccb_state |= PT_CCB_RETRY_UA;
|
H A D | scsi_da.c | 1979 struct ccb_hdr *ccbh; local 1987 LIST_FOREACH(ccbh, &softc->pending_ccbs, periph_links.le) 1988 ccbh->ccb_state |= DA_CCB_RETRY_UA;
|
H A D | scsi_cd.c | 468 struct ccb_hdr *ccbh; local 476 LIST_FOREACH(ccbh, &softc->pending_ccbs, periph_links.le) 477 ccbh->ccb_state |= CD_CCB_RETRY_UA;
|
/freebsd-11-stable/sys/dev/iser/ |
H A D | iser_initiator.c | 326 struct ccb_hdr *ccbh; local 329 ccbh = &csio->ccb_h; 330 switch ((ccbh->flags & CAM_DATA_MASK)) { 346 ISER_ERR("flags 0x%X unimplemented", ccbh->flags);
|
/freebsd-11-stable/sys/dev/pms/freebsd/driver/ini/src/ |
H A D | agtiapi.c | 2451 struct ccb_hdr *ccbh = &ccb->ccb_h; local 2457 if ((ccbh->flags & CAM_DIR_MASK) != CAM_DIR_NONE) 2459 switch((ccbh->flags & CAM_DATA_MASK)) 2483 ccbh->status |= CAM_RELEASE_SIMQ; 2527 struct ccb_hdr *ccbh = &ccb->ccb_h; local 2532 if ((ccbh->flags & CAM_DIR_MASK) != CAM_DIR_NONE) 2534 if ((ccbh->flags & CAM_SCATTER_VALID) == 0) 2537 if ((ccbh->flags & CAM_DATA_PHYS) == 0) 2558 ccbh->status |= CAM_RELEASE_SIMQ; 3408 struct ccb_hdr *ccbh local 3540 struct ccb_hdr *ccbh = &ccb->ccb_h; local [all...] |
/freebsd-11-stable/sys/dev/buslogic/ |
H A D | bt.c | 1158 struct ccb_hdr *ccbh; local 1162 ccbh = &csio->ccb_h; 1174 if ((ccbh->flags & CAM_TAG_ACTION_VALID) != 0 1182 if ((ccbh->flags & CAM_CDB_POINTER) != 0) { 1183 if ((ccbh->flags & CAM_CDB_PHYS) == 0) { 1188 ccbh->status = CAM_REQ_INVALID;
|
/freebsd-11-stable/sys/dev/aha/ |
H A D | aha.c | 778 struct ccb_hdr *ccbh; local 782 ccbh = &csio->ccb_h; 794 if ((ccbh->flags & CAM_CDB_POINTER) != 0) { 795 if ((ccbh->flags & CAM_CDB_PHYS) == 0) { 800 ccbh->status = CAM_REQ_INVALID;
|
/freebsd-11-stable/sys/dev/iir/ |
H A D | iir.c | 697 struct ccb_hdr *ccbh; local 746 ccbh = &ccb->ccb_h; 749 if (csio->cdb_len > 12 || (ccbh->flags & CAM_CDB_PHYS)) { 750 ccbh->status = CAM_REQ_INVALID; 765 ccbh->status = CAM_DEV_NOT_THERE;
|
/freebsd-11-stable/sys/dev/aic7xxx/ |
H A D | aic7xxx.c | 6363 struct ccb_hdr *ccbh; local 6367 && (ccbh = SLIST_FIRST(&lstate->immed_notifies)) != NULL) { 6372 inot = (struct ccb_immediate_notify *)ccbh; 6375 ccbh->status = CAM_SCSI_BUS_RESET|CAM_DEV_QFRZN; 6378 ccbh->status = CAM_MESSAGE_RECV|CAM_DEV_QFRZN; 7585 struct ccb_hdr *ccbh; local 7587 ccbh = &scb->io_ctx->ccb_h; 7588 if (ccbh->func_code == XPT_CONT_TARGET_IO 7589 && !xpt_path_comp(ccbh->path, ccb->ccb_h.path)){
|
H A D | aic79xx.c | 8553 struct ccb_hdr *ccbh; local 8557 && (ccbh = SLIST_FIRST(&lstate->immed_notifies)) != NULL) { 8562 inot = (struct ccb_immediate_notify *)ccbh; 8565 ccbh->status = CAM_SCSI_BUS_RESET|CAM_DEV_QFRZN; 8568 ccbh->status = CAM_MESSAGE_RECV|CAM_DEV_QFRZN; 10107 struct ccb_hdr *ccbh; local 10109 ccbh = &scb->io_ctx->ccb_h; 10110 if (ccbh->func_code == XPT_CONT_TARGET_IO 10111 && !xpt_path_comp(ccbh->path, ccb->ccb_h.path)){
|
/freebsd-11-stable/sys/dev/dpt/ |
H A D | dpt_scsi.c | 832 struct ccb_hdr *ccbh; local 837 ccbh = &ccb->ccb_h; 912 if ((ccbh->flags & CAM_DIR_MASK) != CAM_DIR_NONE) {
|
/freebsd-11-stable/sys/dev/sym/ |
H A D | sym_hipd.c | 1659 ccb_p ccbh[CCB_HASH_SIZE]; /* CCB hashed by DSA value */ member in struct:sym_hcb 6527 cp->link_ccbh = np->ccbh[hcode]; 6528 np->ccbh[hcode] = cp; 6563 cp = np->ccbh[hcode];
|
/freebsd-11-stable/sys/dev/firewire/ |
H A D | sbp_targ.c | 528 struct ccb_hdr *ccbh;
|