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

/freebsd-current/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-current/sys/dev/virtio/scsi/
H A Dvirtio_scsi.c729 struct ccb_hdr *ccbh; local
732 ccbh = &ccb->ccb_h;
742 ccbh->status = CAM_NO_HBA;
747 switch (ccbh->func_code) {
753 ccbh->status = CAM_FUNC_NOTAVAIL;
784 "invalid ccb=%p func=%#x\n", ccb, ccbh->func_code);
786 ccbh->status = CAM_REQ_INVALID;
806 struct ccb_hdr *ccbh; local
810 ccbh = &ccb->ccb_h;
815 ccbh
877 struct ccb_hdr *ccbh; local
914 struct ccb_hdr *ccbh; local
1000 struct ccb_hdr *ccbh; local
1045 struct ccb_hdr *ccbh; local
1102 struct ccb_hdr *ccbh; local
1377 struct ccb_hdr *ccbh; local
1463 struct ccb_hdr *ccbh; local
1492 struct ccb_hdr *ccbh; local
1549 struct ccb_hdr *ccbh; local
1576 struct ccb_hdr *ccbh; local
1620 vtscsi_set_request_lun(struct ccb_hdr *ccbh, uint8_t lun[]) argument
1661 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-current/tools/tools/vhba/mptest/
H A Dvhba_mptest.c108 struct ccb_hdr *ccbh; local
112 while ((ccbh = TAILQ_FIRST(&vhbas->vhba->actv)) != NULL) {
113 TAILQ_REMOVE(&vhbas->vhba->actv, ccbh, sim_links.tqe);
114 mptest_act(vhbas, (struct ccb_scsiio *)ccbh);
116 ccbh->sim_priv.entries[0].ptr = vhbas;
117 callout_handle_init(&ccbh->timeout_ch);
122 while ((ccbh = TAILQ_FIRST(&vhbas->vhba->done)) != NULL) {
123 TAILQ_REMOVE(&vhbas->vhba->done, ccbh, sim_links.tqe);
124 xpt_done((union ccb *)ccbh);
397 struct ccb_hdr *ccbh local
[all...]
/freebsd-current/tools/tools/vhba/faulty/
H A Dvhba_faulty.c85 struct ccb_hdr *ccbh; local
88 while ((ccbh = TAILQ_FIRST(&vhbas->vhba->actv)) != NULL) {
89 TAILQ_REMOVE(&vhbas->vhba->actv, ccbh, sim_links.tqe);
90 faulty_act(vhbas, (struct ccb_scsiio *)ccbh);
96 while ((ccbh = TAILQ_FIRST(&vhbas->vhba->done)) != NULL) {
97 TAILQ_REMOVE(&vhbas->vhba->done, ccbh, sim_links.tqe);
98 xpt_done((union ccb *)ccbh);
/freebsd-current/tools/tools/vhba/lots/
H A Dvhba_lots.c82 struct ccb_hdr *ccbh; local
85 while ((ccbh = TAILQ_FIRST(&vhbas->vhba->actv)) != NULL) {
86 TAILQ_REMOVE(&vhbas->vhba->actv, ccbh, sim_links.tqe);
87 vhbalots_act(vhbas, (struct ccb_scsiio *)ccbh);
89 while ((ccbh = TAILQ_FIRST(&vhbas->vhba->done)) != NULL) {
90 TAILQ_REMOVE(&vhbas->vhba->done, ccbh, sim_links.tqe);
91 xpt_done((union ccb *)ccbh);
/freebsd-current/tools/tools/vhba/medium/
H A Dvhba_medium.c82 struct ccb_hdr *ccbh; local
85 while ((ccbh = TAILQ_FIRST(&vhbas->vhba->actv)) != NULL) {
86 TAILQ_REMOVE(&vhbas->vhba->actv, ccbh, sim_links.tqe);
87 vhbamedium_act(vhbas, (struct ccb_scsiio *)ccbh);
89 while ((ccbh = TAILQ_FIRST(&vhbas->vhba->done)) != NULL) {
90 TAILQ_REMOVE(&vhbas->vhba->done, ccbh, sim_links.tqe);
91 xpt_done((union ccb *)ccbh);
/freebsd-current/tools/tools/vhba/rptluns/
H A Dvhba_rptluns.c103 struct ccb_hdr *ccbh; local
106 while ((ccbh = TAILQ_FIRST(&vhbas->vhba->actv)) != NULL) {
107 TAILQ_REMOVE(&vhbas->vhba->actv, ccbh, sim_links.tqe);
108 vhbarptluns_act(vhbas, (struct ccb_scsiio *)ccbh);
110 while ((ccbh = TAILQ_FIRST(&vhbas->vhba->done)) != NULL) {
111 TAILQ_REMOVE(&vhbas->vhba->done, ccbh, sim_links.tqe);
112 xpt_done((union ccb *)ccbh);
/freebsd-current/tools/tools/vhba/simple/
H A Dvhba_simple.c82 struct ccb_hdr *ccbh; local
85 while ((ccbh = TAILQ_FIRST(&vhbas->vhba->actv)) != NULL) {
86 TAILQ_REMOVE(&vhbas->vhba->actv, ccbh, sim_links.tqe);
87 vhbasimple_act(vhbas, (struct ccb_scsiio *)ccbh);
89 while ((ccbh = TAILQ_FIRST(&vhbas->vhba->done)) != NULL) {
90 TAILQ_REMOVE(&vhbas->vhba->done, ccbh, sim_links.tqe);
91 xpt_done((union ccb *)ccbh);
/freebsd-current/tools/tools/vhba/
H A Dvhba.c386 vhba_set_status(struct ccb_hdr *ccbh, cam_status status) argument
388 ccbh->status &= ~CAM_STATUS_MASK;
389 ccbh->status |= status;
391 if ((ccbh->status & CAM_DEV_QFRZN) == 0) {
392 ccbh->status |= CAM_DEV_QFRZN;
393 xpt_freeze_devq(ccbh->path, 1);
/freebsd-current/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.c398 struct ccb_hdr *ccbh; local
406 LIST_FOREACH(ccbh, &softc->pending_ccbs, periph_links.le)
407 ccbh->ccb_state |= PT_CCB_RETRY_UA;
H A Dscsi_cd.c487 struct ccb_hdr *ccbh; local
496 LIST_FOREACH(ccbh, &softc->pending_ccbs, periph_links.le)
497 ccbh->ccb_state |= CD_CCB_RETRY_UA;
H A Dscsi_da.c2228 struct ccb_hdr *ccbh; local
2237 LIST_FOREACH(ccbh, &softc->pending_ccbs, periph_links.le)
2238 ccbh->ccb_state |= DA_CCB_RETRY_UA;
/freebsd-current/sys/dev/iser/
H A Diser_initiator.c325 struct ccb_hdr *ccbh; local
328 ccbh = &csio->ccb_h;
329 switch ((ccbh->flags & CAM_DATA_MASK)) {
345 ISER_ERR("flags 0x%X unimplemented", ccbh->flags);
/freebsd-current/sys/dev/pms/freebsd/driver/ini/src/
H A Dagtiapi.c2447 struct ccb_hdr *ccbh = &ccb->ccb_h; local
2453 if ((ccbh->flags & CAM_DIR_MASK) != CAM_DIR_NONE)
2455 switch((ccbh->flags & CAM_DATA_MASK))
2479 ccbh->status |= CAM_RELEASE_SIMQ;
2523 struct ccb_hdr *ccbh = &ccb->ccb_h; local
2528 if ((ccbh->flags & CAM_DIR_MASK) != CAM_DIR_NONE)
2530 if ((ccbh->flags & CAM_SCATTER_VALID) == 0)
2533 if ((ccbh->flags & CAM_DATA_PHYS) == 0)
2554 ccbh->status |= CAM_RELEASE_SIMQ;
3404 struct ccb_hdr *ccbh local
3536 struct ccb_hdr *ccbh = &ccb->ccb_h; local
[all...]
/freebsd-current/sys/dev/aic7xxx/
H A Daic7xxx.c6314 struct ccb_hdr *ccbh; local
6318 && (ccbh = SLIST_FIRST(&lstate->immed_notifies)) != NULL) {
6323 inot = (struct ccb_immediate_notify *)ccbh;
6326 ccbh->status = CAM_SCSI_BUS_RESET|CAM_DEV_QFRZN;
6329 ccbh->status = CAM_MESSAGE_RECV|CAM_DEV_QFRZN;
7528 struct ccb_hdr *ccbh; local
7530 ccbh = &scb->io_ctx->ccb_h;
7531 if (ccbh->func_code == XPT_CONT_TARGET_IO
7532 && !xpt_path_comp(ccbh->path, ccb->ccb_h.path)){
H A Daic79xx.c8485 struct ccb_hdr *ccbh; local
8489 && (ccbh = SLIST_FIRST(&lstate->immed_notifies)) != NULL) {
8494 inot = (struct ccb_immediate_notify *)ccbh;
8497 ccbh->status = CAM_SCSI_BUS_RESET|CAM_DEV_QFRZN;
8500 ccbh->status = CAM_MESSAGE_RECV|CAM_DEV_QFRZN;
10028 struct ccb_hdr *ccbh; local
10030 ccbh = &scb->io_ctx->ccb_h;
10031 if (ccbh->func_code == XPT_CONT_TARGET_IO
10032 && !xpt_path_comp(ccbh->path, ccb->ccb_h.path)){
/freebsd-current/sys/dev/sym/
H A Dsym_hipd.c1650 ccb_p ccbh[CCB_HASH_SIZE]; /* CCB hashed by DSA value */ member in struct:sym_hcb
6512 cp->link_ccbh = np->ccbh[hcode];
6513 np->ccbh[hcode] = cp;
6548 cp = np->ccbh[hcode];
/freebsd-current/sys/dev/firewire/
H A Dsbp_targ.c528 struct ccb_hdr *ccbh;
/freebsd-current/sys/dev/mpt/
H A Dmpt_cam.c2040 struct ccb_hdr *ccbh = &ccb->ccb_h; local
2191 ccbh->status |= CAM_RELEASE_SIMQ;

Completed in 540 milliseconds