Home
last modified time | relevance | path

Searched refs:ccbh (Results 1 – 20 of 20) sorted by relevance

/freebsd/sys/dev/virtio/scsi/
H A Dvirtio_scsi.c729 struct ccb_hdr *ccbh; in vtscsi_cam_action() local
732 ccbh = &ccb->ccb_h; in vtscsi_cam_action()
742 ccbh->status = CAM_NO_HBA; in vtscsi_cam_action()
747 switch (ccbh->func_code) { in vtscsi_cam_action()
753 ccbh->status = CAM_FUNC_NOTAVAIL; in vtscsi_cam_action()
784 "invalid ccb=%p func=%#x\n", ccb, ccbh->func_code); in vtscsi_cam_action()
786 ccbh->status = CAM_REQ_INVALID; in vtscsi_cam_action()
806 struct ccb_hdr *ccbh; in vtscsi_cam_scsi_io() local
810 ccbh = &ccb->ccb_h; in vtscsi_cam_scsi_io()
815 ccbh->status = CAM_REQ_INVALID; in vtscsi_cam_scsi_io()
[all …]
/freebsd/sys/dev/mfi/
H A Dmfi_cam.c270 struct ccb_hdr *ccbh = &ccb->ccb_h; in mfip_cam_action() local
273 ccbh->status = CAM_REQ_INPROG; in mfip_cam_action()
275 ccbh->status = CAM_REQ_INVALID; in mfip_cam_action()
278 ccbh->ccb_mfip_ptr = sc; in mfip_cam_action()
279 TAILQ_INSERT_TAIL(&mfisc->mfi_cam_ccbq, ccbh, sim_links.tqe); in mfip_cam_action()
343 struct ccb_hdr *ccbh = &ccb->ccb_h; in mfip_start() local
350 sc = ccbh->ccb_mfip_ptr; in mfip_start()
364 pt->header.target_id = ccbh->target_id; in mfip_start()
365 pt->header.lun_id = ccbh->target_lun; in mfip_start()
373 if (ccbh->flags & CAM_CDB_POINTER) in mfip_start()
[all …]
H A Dmfi.c2272 struct ccb_hdr *ccbh; in mfi_startio() local
2283 if ((ccbh = TAILQ_FIRST(&sc->mfi_cam_ccbq)) != NULL) in mfi_startio()
2284 cm = sc->mfi_cam_start(ccbh); in mfi_startio()
/freebsd/tools/tools/vhba/mptest/
H A Dvhba_mptest.c108 struct ccb_hdr *ccbh; in vhba_task() local
112 while ((ccbh = TAILQ_FIRST(&vhbas->vhba->actv)) != NULL) { in vhba_task()
113 TAILQ_REMOVE(&vhbas->vhba->actv, ccbh, sim_links.tqe); in vhba_task()
114 mptest_act(vhbas, (struct ccb_scsiio *)ccbh); in vhba_task()
116 ccbh->sim_priv.entries[0].ptr = vhbas; in vhba_task()
117 callout_handle_init(&ccbh->timeout_ch); in vhba_task()
122 while ((ccbh = TAILQ_FIRST(&vhbas->vhba->done)) != NULL) { in vhba_task()
123 TAILQ_REMOVE(&vhbas->vhba->done, ccbh, sim_links.tqe); in vhba_task()
124 xpt_done((union ccb *)ccbh); in vhba_task()
397 struct ccb_hdr *ccbh = arg; in vhba_iodelay() local
[all …]
/freebsd/tools/tools/vhba/lots/
H A Dvhba_lots.c82 struct ccb_hdr *ccbh; in vhba_task() local
85 while ((ccbh = TAILQ_FIRST(&vhbas->vhba->actv)) != NULL) { in vhba_task()
86 TAILQ_REMOVE(&vhbas->vhba->actv, ccbh, sim_links.tqe); in vhba_task()
87 vhbalots_act(vhbas, (struct ccb_scsiio *)ccbh); in vhba_task()
89 while ((ccbh = TAILQ_FIRST(&vhbas->vhba->done)) != NULL) { in vhba_task()
90 TAILQ_REMOVE(&vhbas->vhba->done, ccbh, sim_links.tqe); in vhba_task()
91 xpt_done((union ccb *)ccbh); in vhba_task()
/freebsd/tools/tools/vhba/medium/
H A Dvhba_medium.c82 struct ccb_hdr *ccbh; in vhba_task() local
85 while ((ccbh = TAILQ_FIRST(&vhbas->vhba->actv)) != NULL) { in vhba_task()
86 TAILQ_REMOVE(&vhbas->vhba->actv, ccbh, sim_links.tqe); in vhba_task()
87 vhbamedium_act(vhbas, (struct ccb_scsiio *)ccbh); in vhba_task()
89 while ((ccbh = TAILQ_FIRST(&vhbas->vhba->done)) != NULL) { in vhba_task()
90 TAILQ_REMOVE(&vhbas->vhba->done, ccbh, sim_links.tqe); in vhba_task()
91 xpt_done((union ccb *)ccbh); in vhba_task()
/freebsd/tools/tools/vhba/simple/
H A Dvhba_simple.c82 struct ccb_hdr *ccbh; in vhba_task() local
85 while ((ccbh = TAILQ_FIRST(&vhbas->vhba->actv)) != NULL) { in vhba_task()
86 TAILQ_REMOVE(&vhbas->vhba->actv, ccbh, sim_links.tqe); in vhba_task()
87 vhbasimple_act(vhbas, (struct ccb_scsiio *)ccbh); in vhba_task()
89 while ((ccbh = TAILQ_FIRST(&vhbas->vhba->done)) != NULL) { in vhba_task()
90 TAILQ_REMOVE(&vhbas->vhba->done, ccbh, sim_links.tqe); in vhba_task()
91 xpt_done((union ccb *)ccbh); in vhba_task()
/freebsd/tools/tools/vhba/rptluns/
H A Dvhba_rptluns.c103 struct ccb_hdr *ccbh; in vhba_task() local
106 while ((ccbh = TAILQ_FIRST(&vhbas->vhba->actv)) != NULL) { in vhba_task()
107 TAILQ_REMOVE(&vhbas->vhba->actv, ccbh, sim_links.tqe); in vhba_task()
108 vhbarptluns_act(vhbas, (struct ccb_scsiio *)ccbh); in vhba_task()
110 while ((ccbh = TAILQ_FIRST(&vhbas->vhba->done)) != NULL) { in vhba_task()
111 TAILQ_REMOVE(&vhbas->vhba->done, ccbh, sim_links.tqe); in vhba_task()
112 xpt_done((union ccb *)ccbh); in vhba_task()
/freebsd/tools/tools/vhba/faulty/
H A Dvhba_faulty.c85 struct ccb_hdr *ccbh; in vhba_task() local
88 while ((ccbh = TAILQ_FIRST(&vhbas->vhba->actv)) != NULL) { in vhba_task()
89 TAILQ_REMOVE(&vhbas->vhba->actv, ccbh, sim_links.tqe); in vhba_task()
90 faulty_act(vhbas, (struct ccb_scsiio *)ccbh); in vhba_task()
96 while ((ccbh = TAILQ_FIRST(&vhbas->vhba->done)) != NULL) { in vhba_task()
97 TAILQ_REMOVE(&vhbas->vhba->done, ccbh, sim_links.tqe); in vhba_task()
98 xpt_done((union ccb *)ccbh); in vhba_task()
/freebsd/tools/tools/vhba/
H A Dvhba.c386 vhba_set_status(struct ccb_hdr *ccbh, cam_status status) in vhba_set_status() argument
388 ccbh->status &= ~CAM_STATUS_MASK; in vhba_set_status()
389 ccbh->status |= status; in vhba_set_status()
391 if ((ccbh->status & CAM_DEV_QFRZN) == 0) { in vhba_set_status()
392 ccbh->status |= CAM_DEV_QFRZN; in vhba_set_status()
393 xpt_freeze_devq(ccbh->path, 1); in vhba_set_status()
/freebsd/sys/cam/scsi/
H A Dscsi_targ_bh.c445 struct ccb_hdr *ccbh; in targbhstart() local
453 ccbh = TAILQ_FIRST(&softc->work_queue); in targbhstart()
454 if (ccbh == NULL) { in targbhstart()
457 TAILQ_REMOVE(&softc->work_queue, ccbh, periph_links.tqe); in targbhstart()
458 TAILQ_INSERT_HEAD(&softc->pending_queue, ccbh, in targbhstart()
460 atio = (struct ccb_accept_tio*)ccbh; in targbhstart()
519 ccbh = TAILQ_FIRST(&softc->work_queue); in targbhstart()
521 if (ccbh != NULL) in targbhstart()
H A Dscsi_pt.c398 struct ccb_hdr *ccbh; in ptasync() local
406 LIST_FOREACH(ccbh, &softc->pending_ccbs, periph_links.le) in ptasync()
407 ccbh->ccb_state |= PT_CCB_RETRY_UA; in ptasync()
H A Dscsi_cd.c484 struct ccb_hdr *ccbh; in cdasync() local
493 LIST_FOREACH(ccbh, &softc->pending_ccbs, periph_links.le) in cdasync()
494 ccbh->ccb_state |= CD_CCB_RETRY_UA; in cdasync()
H A Dscsi_da.c2259 struct ccb_hdr *ccbh; in daasync() local
2268 LIST_FOREACH(ccbh, &softc->pending_ccbs, periph_links.le) in daasync()
2269 ccbh->ccb_state |= DA_CCB_RETRY_UA; in daasync()
/freebsd/sys/dev/iser/
H A Diser_initiator.c325 struct ccb_hdr *ccbh; in iser_csio_to_sg() local
328 ccbh = &csio->ccb_h; in iser_csio_to_sg()
329 switch ((ccbh->flags & CAM_DATA_MASK)) { in iser_csio_to_sg()
345 ISER_ERR("flags 0x%X unimplemented", ccbh->flags); in iser_csio_to_sg()
/freebsd/sys/dev/pms/freebsd/driver/ini/src/
H A Dagtiapi.c2417 struct ccb_hdr *ccbh = &ccb->ccb_h; in agtiapi_PrepareSGList() local
2423 if ((ccbh->flags & CAM_DIR_MASK) != CAM_DIR_NONE) in agtiapi_PrepareSGList()
2425 switch((ccbh->flags & CAM_DATA_MASK)) in agtiapi_PrepareSGList()
2449 ccbh->status |= CAM_RELEASE_SIMQ; in agtiapi_PrepareSGList()
2493 struct ccb_hdr *ccbh = &ccb->ccb_h; in agtiapi_PrepareSGList() local
2498 if ((ccbh->flags & CAM_DIR_MASK) != CAM_DIR_NONE) in agtiapi_PrepareSGList()
2500 if ((ccbh->flags & CAM_SCATTER_VALID) == 0) in agtiapi_PrepareSGList()
2503 if ((ccbh->flags & CAM_DATA_PHYS) == 0) in agtiapi_PrepareSGList()
2524 ccbh->status |= CAM_RELEASE_SIMQ; in agtiapi_PrepareSGList()
3374 struct ccb_hdr *ccbh = &ccb->ccb_h; in agtiapi_PrepareSMPSGList() local
[all …]
/freebsd/sys/dev/aic7xxx/
H A Daic79xx.c8485 struct ccb_hdr *ccbh; in ahd_send_lstate_events() local
8489 && (ccbh = SLIST_FIRST(&lstate->immed_notifies)) != NULL) { in ahd_send_lstate_events()
8494 inot = (struct ccb_immediate_notify *)ccbh; in ahd_send_lstate_events()
8497 ccbh->status = CAM_SCSI_BUS_RESET|CAM_DEV_QFRZN; in ahd_send_lstate_events()
8500 ccbh->status = CAM_MESSAGE_RECV|CAM_DEV_QFRZN; in ahd_send_lstate_events()
10028 struct ccb_hdr *ccbh; in ahd_handle_en_lun() local
10030 ccbh = &scb->io_ctx->ccb_h; in ahd_handle_en_lun()
10031 if (ccbh->func_code == XPT_CONT_TARGET_IO in ahd_handle_en_lun()
10032 && !xpt_path_comp(ccbh->path, ccb->ccb_h.path)){ in ahd_handle_en_lun()
/freebsd/sys/dev/sym/
H A Dsym_hipd.c1650 ccb_p ccbh[CCB_HASH_SIZE]; /* CCB hashed by DSA value */ member
6512 cp->link_ccbh = np->ccbh[hcode]; in sym_alloc_ccb()
6513 np->ccbh[hcode] = cp; in sym_alloc_ccb()
6548 cp = np->ccbh[hcode]; in sym_ccb_from_dsa()
/freebsd/sys/dev/firewire/
H A Dsbp_targ.c528 struct ccb_hdr *ccbh; in sbp_targ_send_lstate_events()
/freebsd/sys/dev/mpt/
H A Dmpt_cam.c2041 struct ccb_hdr *ccbh = &ccb->ccb_h; in mpt_start() local
2192 ccbh->status |= CAM_RELEASE_SIMQ; in mpt_start()