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

12

/freebsd-11-stable/sys/dev/virtio/scsi/
H A Dvirtio_scsi.c702 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 Dmfi_cam.c270 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 Dmfi.c2272 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 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-11-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-11-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-11-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-11-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-11-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-11-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-11-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-11-stable/sys/cam/scsi/
H A Dscsi_targ_bh.c443 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 Dscsi_pt.c401 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 Dscsi_da.c1979 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 Dscsi_cd.c468 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 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-11-stable/sys/dev/pms/freebsd/driver/ini/src/
H A Dagtiapi.c2451 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 Dbt.c1158 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 Daha.c778 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 Diir.c697 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 Daic7xxx.c6363 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 Daic79xx.c8553 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 Ddpt_scsi.c832 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 Dsym_hipd.c1659 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 Dsbp_targ.c528 struct ccb_hdr *ccbh;

Completed in 323 milliseconds

12