Searched refs:ccbh (Results 1 - 23 of 23) sorted by relevance

/freebsd-13-stable/sys/dev/virtio/scsi/
H A Dvirtio_scsi.c732 struct ccb_hdr *ccbh; local
735 ccbh = &ccb->ccb_h;
745 ccbh->status = CAM_NO_HBA;
750 switch (ccbh->func_code) {
756 ccbh->status = CAM_FUNC_NOTAVAIL;
787 "invalid ccb=%p func=%#x\n", ccb, ccbh->func_code);
789 ccbh->status = CAM_REQ_INVALID;
809 struct ccb_hdr *ccbh; local
813 ccbh = &ccb->ccb_h;
818 ccbh
880 struct ccb_hdr *ccbh; local
917 struct ccb_hdr *ccbh; local
1003 struct ccb_hdr *ccbh; local
1048 struct ccb_hdr *ccbh; local
1105 struct ccb_hdr *ccbh; local
1380 struct ccb_hdr *ccbh; local
1466 struct ccb_hdr *ccbh; local
1495 struct ccb_hdr *ccbh; local
1552 struct ccb_hdr *ccbh; local
1579 struct ccb_hdr *ccbh; local
1623 vtscsi_set_request_lun(struct ccb_hdr *ccbh, uint8_t lun[]) argument
1664 vtscsi_init_ctrl_tmf_req(struct vtscsi_softc *sc, struct ccb_hdr *ccbh, uint32_t subtype, uintptr_t tag, struct virtio_scsi_ctrl_tmf_req *tmf_req) argument
[all...]
/freebsd-13-stable/sys/dev/mfi/
H A Dmfi_cam.c271 struct ccb_hdr *ccbh = &ccb->ccb_h; local
274 ccbh->status = CAM_REQ_INPROG;
276 ccbh->status = CAM_REQ_INVALID;
279 ccbh->ccb_mfip_ptr = sc;
280 TAILQ_INSERT_TAIL(&mfisc->mfi_cam_ccbq, ccbh, sim_links.tqe);
344 struct ccb_hdr *ccbh = &ccb->ccb_h; local
351 sc = ccbh->ccb_mfip_ptr;
365 pt->header.target_id = ccbh->target_id;
366 pt->header.lun_id = ccbh->target_lun;
374 if (ccbh
407 struct ccb_hdr *ccbh = &ccb->ccb_h; local
[all...]
H A Dmfi.c2274 struct ccb_hdr *ccbh; local
2285 if ((ccbh = TAILQ_FIRST(&sc->mfi_cam_ccbq)) != NULL)
2286 cm = sc->mfi_cam_start(ccbh);
/freebsd-13-stable/tools/tools/vhba/mptest/
H A Dvhba_mptest.c109 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-13-stable/sys/dev/amr/
H A Damr_cam.c254 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-13-stable/tools/tools/vhba/faulty/
H A Dvhba_faulty.c86 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-13-stable/tools/tools/vhba/lots/
H A Dvhba_lots.c83 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-13-stable/tools/tools/vhba/medium/
H A Dvhba_medium.c83 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-13-stable/tools/tools/vhba/rptluns/
H A Dvhba_rptluns.c104 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-13-stable/tools/tools/vhba/simple/
H A Dvhba_simple.c83 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-13-stable/tools/tools/vhba/
H A Dvhba.c387 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-13-stable/sys/cam/scsi/
H A Dscsi_targ_bh.c445 struct ccb_hdr *ccbh; local
453 ccbh = TAILQ_FIRST(&softc->work_queue);
454 if (ccbh == NULL) {
457 TAILQ_REMOVE(&softc->work_queue, ccbh, periph_links.tqe);
458 TAILQ_INSERT_HEAD(&softc->pending_queue, ccbh,
460 atio = (struct ccb_accept_tio*)ccbh;
519 ccbh = TAILQ_FIRST(&softc->work_queue);
521 if (ccbh != NULL)
H A Dscsi_pt.c402 struct ccb_hdr *ccbh; local
410 LIST_FOREACH(ccbh, &softc->pending_ccbs, periph_links.le)
411 ccbh->ccb_state |= PT_CCB_RETRY_UA;
H A Dscsi_cd.c490 struct ccb_hdr *ccbh; local
498 LIST_FOREACH(ccbh, &softc->pending_ccbs, periph_links.le)
499 ccbh->ccb_state |= CD_CCB_RETRY_UA;
H A Dscsi_da.c2210 struct ccb_hdr *ccbh; local
2219 LIST_FOREACH(ccbh, &softc->pending_ccbs, periph_links.le)
2220 ccbh->ccb_state |= DA_CCB_RETRY_UA;
/freebsd-13-stable/sys/dev/iser/
H A Diser_initiator.c326 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-13-stable/sys/dev/pms/freebsd/driver/ini/src/
H A Dagtiapi.c2446 struct ccb_hdr *ccbh = &ccb->ccb_h; local
2452 if ((ccbh->flags & CAM_DIR_MASK) != CAM_DIR_NONE)
2454 switch((ccbh->flags & CAM_DATA_MASK))
2478 ccbh->status |= CAM_RELEASE_SIMQ;
2522 struct ccb_hdr *ccbh = &ccb->ccb_h; local
2527 if ((ccbh->flags & CAM_DIR_MASK) != CAM_DIR_NONE)
2529 if ((ccbh->flags & CAM_SCATTER_VALID) == 0)
2532 if ((ccbh->flags & CAM_DATA_PHYS) == 0)
2553 ccbh->status |= CAM_RELEASE_SIMQ;
3403 struct ccb_hdr *ccbh local
3535 struct ccb_hdr *ccbh = &ccb->ccb_h; local
[all...]
/freebsd-13-stable/sys/dev/iir/
H A Diir.c699 struct ccb_hdr *ccbh; local
748 ccbh = &ccb->ccb_h;
751 if (csio->cdb_len > 12 || (ccbh->flags & CAM_CDB_PHYS)) {
752 ccbh->status = CAM_REQ_INVALID;
767 ccbh->status = CAM_DEV_NOT_THERE;
/freebsd-13-stable/sys/dev/aic7xxx/
H A Daic7xxx.c6338 struct ccb_hdr *ccbh; local
6342 && (ccbh = SLIST_FIRST(&lstate->immed_notifies)) != NULL) {
6347 inot = (struct ccb_immediate_notify *)ccbh;
6350 ccbh->status = CAM_SCSI_BUS_RESET|CAM_DEV_QFRZN;
6353 ccbh->status = CAM_MESSAGE_RECV|CAM_DEV_QFRZN;
7551 struct ccb_hdr *ccbh; local
7553 ccbh = &scb->io_ctx->ccb_h;
7554 if (ccbh->func_code == XPT_CONT_TARGET_IO
7555 && !xpt_path_comp(ccbh->path, ccb->ccb_h.path)){
H A Daic79xx.c8511 struct ccb_hdr *ccbh; local
8515 && (ccbh = SLIST_FIRST(&lstate->immed_notifies)) != NULL) {
8520 inot = (struct ccb_immediate_notify *)ccbh;
8523 ccbh->status = CAM_SCSI_BUS_RESET|CAM_DEV_QFRZN;
8526 ccbh->status = CAM_MESSAGE_RECV|CAM_DEV_QFRZN;
10054 struct ccb_hdr *ccbh; local
10056 ccbh = &scb->io_ctx->ccb_h;
10057 if (ccbh->func_code == XPT_CONT_TARGET_IO
10058 && !xpt_path_comp(ccbh->path, ccb->ccb_h.path)){
/freebsd-13-stable/sys/dev/sym/
H A Dsym_hipd.c1651 ccb_p ccbh[CCB_HASH_SIZE]; /* CCB hashed by DSA value */ member in struct:sym_hcb
6514 cp->link_ccbh = np->ccbh[hcode];
6515 np->ccbh[hcode] = cp;
6550 cp = np->ccbh[hcode];
/freebsd-13-stable/sys/dev/firewire/
H A Dsbp_targ.c530 struct ccb_hdr *ccbh;
/freebsd-13-stable/sys/dev/mpt/
H A Dmpt_cam.c2042 struct ccb_hdr *ccbh = &ccb->ccb_h; local
2193 ccbh->status |= CAM_RELEASE_SIMQ;

Completed in 693 milliseconds