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

12

/freebsd-10.3-release/sys/dev/virtio/scsi/
H A Dvirtio_scsi.c679 struct ccb_hdr *ccbh; local
682 ccbh = &ccb->ccb_h;
692 ccbh->status = CAM_NO_HBA;
697 switch (ccbh->func_code) {
703 ccbh->status = CAM_FUNC_NOTAVAIL;
734 "invalid ccb=%p func=%#x\n", ccb, ccbh->func_code);
736 ccbh->status = CAM_REQ_INVALID;
756 struct ccb_hdr *ccbh; local
760 ccbh = &ccb->ccb_h;
765 ccbh
827 struct ccb_hdr *ccbh; local
864 struct ccb_hdr *ccbh; local
950 struct ccb_hdr *ccbh; local
995 struct ccb_hdr *ccbh; local
1052 struct ccb_hdr *ccbh; local
1326 struct ccb_hdr *ccbh; local
1412 struct ccb_hdr *ccbh; local
1441 struct ccb_hdr *ccbh; local
1498 struct ccb_hdr *ccbh; local
1525 struct ccb_hdr *ccbh; local
1569 vtscsi_set_request_lun(struct ccb_hdr *ccbh, uint8_t lun[]) argument
1610 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-10.3-release/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.c2278 struct ccb_hdr *ccbh; local
2289 if ((ccbh = TAILQ_FIRST(&sc->mfi_cam_ccbq)) != NULL)
2290 cm = sc->mfi_cam_start(ccbh);
/freebsd-10.3-release/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-10.3-release/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-10.3-release/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-10.3-release/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-10.3-release/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-10.3-release/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-10.3-release/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-10.3-release/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-10.3-release/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.c404 struct ccb_hdr *ccbh; local
412 LIST_FOREACH(ccbh, &softc->pending_ccbs, periph_links.le)
413 ccbh->ccb_state |= PT_CCB_RETRY_UA;
H A Dscsi_da.c1754 struct ccb_hdr *ccbh; local
1762 LIST_FOREACH(ccbh, &softc->pending_ccbs, periph_links.le)
1763 ccbh->ccb_state |= DA_CCB_RETRY_UA;
H A Dscsi_cd.c452 struct ccb_hdr *ccbh; local
460 LIST_FOREACH(ccbh, &softc->pending_ccbs, periph_links.le)
461 ccbh->ccb_state |= CD_CCB_RETRY_UA;
/freebsd-10.3-release/sys/dev/pms/freebsd/driver/ini/src/
H A Dagtiapi.c2452 struct ccb_hdr *ccbh = &ccb->ccb_h; local
2458 if ((ccbh->flags & CAM_DIR_MASK) != CAM_DIR_NONE)
2460 switch((ccbh->flags & CAM_DATA_MASK))
2484 ccbh->status |= CAM_RELEASE_SIMQ;
2528 struct ccb_hdr *ccbh = &ccb->ccb_h; local
2533 if ((ccbh->flags & CAM_DIR_MASK) != CAM_DIR_NONE)
2535 if ((ccbh->flags & CAM_SCATTER_VALID) == 0)
2538 if ((ccbh->flags & CAM_DATA_PHYS) == 0)
2559 ccbh->status |= CAM_RELEASE_SIMQ;
3409 struct ccb_hdr *ccbh local
3541 struct ccb_hdr *ccbh = &ccb->ccb_h; local
[all...]
/freebsd-10.3-release/sys/dev/buslogic/
H A Dbt.c1160 struct ccb_hdr *ccbh; local
1164 ccbh = &csio->ccb_h;
1176 if ((ccbh->flags & CAM_TAG_ACTION_VALID) != 0
1184 if ((ccbh->flags & CAM_CDB_POINTER) != 0) {
1185 if ((ccbh->flags & CAM_CDB_PHYS) == 0) {
1190 ccbh->status = CAM_REQ_INVALID;
/freebsd-10.3-release/sys/dev/aha/
H A Daha.c780 struct ccb_hdr *ccbh; local
784 ccbh = &csio->ccb_h;
796 if ((ccbh->flags & CAM_CDB_POINTER) != 0) {
797 if ((ccbh->flags & CAM_CDB_PHYS) == 0) {
802 ccbh->status = CAM_REQ_INVALID;
/freebsd-10.3-release/sys/dev/iir/
H A Diir.c697 struct ccb_hdr *ccbh; local
746 ccbh = &ccb->ccb_h;
750 ccbh->status = CAM_REQ_INVALID;
765 ccbh->status = CAM_DEV_NOT_THERE;
/freebsd-10.3-release/sys/dev/advansys/
H A Dadwcam.c347 struct ccb_hdr *ccbh; local
352 ccbh = &ccb->ccb_h;
/freebsd-10.3-release/sys/dev/aic7xxx/
H A Daic7xxx.c6369 struct ccb_hdr *ccbh; local
6373 && (ccbh = SLIST_FIRST(&lstate->immed_notifies)) != NULL) {
6378 inot = (struct ccb_immediate_notify *)ccbh;
6381 ccbh->status = CAM_SCSI_BUS_RESET|CAM_DEV_QFRZN;
6384 ccbh->status = CAM_MESSAGE_RECV|CAM_DEV_QFRZN;
7590 struct ccb_hdr *ccbh; local
7592 ccbh = &scb->io_ctx->ccb_h;
7593 if (ccbh->func_code == XPT_CONT_TARGET_IO
7594 && !xpt_path_comp(ccbh->path, ccb->ccb_h.path)){
H A Daic79xx.c8562 struct ccb_hdr *ccbh; local
8566 && (ccbh = SLIST_FIRST(&lstate->immed_notifies)) != NULL) {
8571 inot = (struct ccb_immediate_notify *)ccbh;
8574 ccbh->status = CAM_SCSI_BUS_RESET|CAM_DEV_QFRZN;
8577 ccbh->status = CAM_MESSAGE_RECV|CAM_DEV_QFRZN;
10115 struct ccb_hdr *ccbh; local
10117 ccbh = &scb->io_ctx->ccb_h;
10118 if (ccbh->func_code == XPT_CONT_TARGET_IO
10119 && !xpt_path_comp(ccbh->path, ccb->ccb_h.path)){
/freebsd-10.3-release/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-10.3-release/sys/dev/sym/
H A Dsym_hipd.c1661 ccb_p ccbh[CCB_HASH_SIZE]; /* CCB hashed by DSA value */ member in struct:sym_hcb
6529 cp->link_ccbh = np->ccbh[hcode];
6530 np->ccbh[hcode] = cp;
6565 cp = np->ccbh[hcode];
/freebsd-10.3-release/sys/dev/firewire/
H A Dsbp_targ.c535 struct ccb_hdr *ccbh;

Completed in 481 milliseconds

12