| /freebsd-10-stable/sys/dev/virtio/scsi/ |
| D | virtio_scsi.c | 679 struct ccb_hdr *ccbh; in vtscsi_cam_action() local 682 ccbh = &ccb->ccb_h; in vtscsi_cam_action() 692 ccbh->status = CAM_NO_HBA; in vtscsi_cam_action() 697 switch (ccbh->func_code) { in vtscsi_cam_action() 703 ccbh->status = CAM_FUNC_NOTAVAIL; in vtscsi_cam_action() 734 "invalid ccb=%p func=%#x\n", ccb, ccbh->func_code); in vtscsi_cam_action() 736 ccbh->status = CAM_REQ_INVALID; in vtscsi_cam_action() 756 struct ccb_hdr *ccbh; in vtscsi_cam_scsi_io() local 760 ccbh = &ccb->ccb_h; in vtscsi_cam_scsi_io() 765 ccbh->status = CAM_REQ_INVALID; in vtscsi_cam_scsi_io() [all …]
|
| /freebsd-10-stable/sys/dev/mfi/ |
| D | mfi_cam.c | 271 struct ccb_hdr *ccbh = &ccb->ccb_h; in mfip_cam_action() local 274 ccbh->status = CAM_REQ_INPROG; in mfip_cam_action() 276 ccbh->status = CAM_REQ_INVALID; in mfip_cam_action() 279 ccbh->ccb_mfip_ptr = sc; in mfip_cam_action() 280 TAILQ_INSERT_TAIL(&mfisc->mfi_cam_ccbq, ccbh, sim_links.tqe); in mfip_cam_action() 344 struct ccb_hdr *ccbh = &ccb->ccb_h; in mfip_start() local 351 sc = ccbh->ccb_mfip_ptr; in mfip_start() 365 pt->header.target_id = ccbh->target_id; in mfip_start() 366 pt->header.lun_id = ccbh->target_lun; in mfip_start() 374 if (ccbh->flags & CAM_CDB_POINTER) in mfip_start() [all …]
|
| D | mfi.c | 2278 struct ccb_hdr *ccbh; in mfi_startio() local 2289 if ((ccbh = TAILQ_FIRST(&sc->mfi_cam_ccbq)) != NULL) in mfi_startio() 2290 cm = sc->mfi_cam_start(ccbh); in mfi_startio()
|
| /freebsd-10-stable/tools/tools/vhba/mptest/ |
| D | vhba_mptest.c | 109 struct ccb_hdr *ccbh; in vhba_task() local 113 while ((ccbh = TAILQ_FIRST(&vhbas->vhba->actv)) != NULL) { in vhba_task() 114 TAILQ_REMOVE(&vhbas->vhba->actv, ccbh, sim_links.tqe); in vhba_task() 115 mptest_act(vhbas, (struct ccb_scsiio *)ccbh); in vhba_task() 117 ccbh->sim_priv.entries[0].ptr = vhbas; in vhba_task() 118 callout_handle_init(&ccbh->timeout_ch); in vhba_task() 123 while ((ccbh = TAILQ_FIRST(&vhbas->vhba->done)) != NULL) { in vhba_task() 124 TAILQ_REMOVE(&vhbas->vhba->done, ccbh, sim_links.tqe); in vhba_task() 125 xpt_done((union ccb *)ccbh); in vhba_task() 398 struct ccb_hdr *ccbh = arg; in vhba_iodelay() local [all …]
|
| /freebsd-10-stable/sys/dev/amr/ |
| D | amr_cam.c | 254 struct ccb_hdr *ccbh = &ccb->ccb_h; in amr_cam_action() local 258 ccbh->status = CAM_REQ_INPROG; in amr_cam_action() 262 ccbh->status = CAM_REQ_INVALID; in amr_cam_action() 266 ccbh->status = CAM_REQ_INVALID; in amr_cam_action() 269 if ((ccbh->flags & CAM_CDB_POINTER) && in amr_cam_action() 270 (ccbh->flags & CAM_CDB_PHYS)) in amr_cam_action() 271 ccbh->status = CAM_REQ_INVALID; in amr_cam_action() 276 if ((ccbh->flags & CAM_DIR_MASK) != CAM_DIR_NONE) { in amr_cam_action() 277 if ((ccbh->flags & CAM_DATA_MASK) != CAM_DATA_VADDR) in amr_cam_action() 279 ccbh->status = CAM_REQ_INVALID; in amr_cam_action() [all …]
|
| /freebsd-10-stable/tools/tools/vhba/lots/ |
| D | vhba_lots.c | 83 struct ccb_hdr *ccbh; in vhba_task() local 86 while ((ccbh = TAILQ_FIRST(&vhbas->vhba->actv)) != NULL) { in vhba_task() 87 TAILQ_REMOVE(&vhbas->vhba->actv, ccbh, sim_links.tqe); in vhba_task() 88 vhbalots_act(vhbas, (struct ccb_scsiio *)ccbh); in vhba_task() 90 while ((ccbh = TAILQ_FIRST(&vhbas->vhba->done)) != NULL) { in vhba_task() 91 TAILQ_REMOVE(&vhbas->vhba->done, ccbh, sim_links.tqe); in vhba_task() 92 xpt_done((union ccb *)ccbh); in vhba_task()
|
| /freebsd-10-stable/tools/tools/vhba/medium/ |
| D | vhba_medium.c | 83 struct ccb_hdr *ccbh; in vhba_task() local 86 while ((ccbh = TAILQ_FIRST(&vhbas->vhba->actv)) != NULL) { in vhba_task() 87 TAILQ_REMOVE(&vhbas->vhba->actv, ccbh, sim_links.tqe); in vhba_task() 88 vhbamedium_act(vhbas, (struct ccb_scsiio *)ccbh); in vhba_task() 90 while ((ccbh = TAILQ_FIRST(&vhbas->vhba->done)) != NULL) { in vhba_task() 91 TAILQ_REMOVE(&vhbas->vhba->done, ccbh, sim_links.tqe); in vhba_task() 92 xpt_done((union ccb *)ccbh); in vhba_task()
|
| /freebsd-10-stable/tools/tools/vhba/simple/ |
| D | vhba_simple.c | 83 struct ccb_hdr *ccbh; in vhba_task() local 86 while ((ccbh = TAILQ_FIRST(&vhbas->vhba->actv)) != NULL) { in vhba_task() 87 TAILQ_REMOVE(&vhbas->vhba->actv, ccbh, sim_links.tqe); in vhba_task() 88 vhbasimple_act(vhbas, (struct ccb_scsiio *)ccbh); in vhba_task() 90 while ((ccbh = TAILQ_FIRST(&vhbas->vhba->done)) != NULL) { in vhba_task() 91 TAILQ_REMOVE(&vhbas->vhba->done, ccbh, sim_links.tqe); in vhba_task() 92 xpt_done((union ccb *)ccbh); in vhba_task()
|
| /freebsd-10-stable/tools/tools/vhba/rptluns/ |
| D | vhba_rptluns.c | 104 struct ccb_hdr *ccbh; in vhba_task() local 107 while ((ccbh = TAILQ_FIRST(&vhbas->vhba->actv)) != NULL) { in vhba_task() 108 TAILQ_REMOVE(&vhbas->vhba->actv, ccbh, sim_links.tqe); in vhba_task() 109 vhbarptluns_act(vhbas, (struct ccb_scsiio *)ccbh); in vhba_task() 111 while ((ccbh = TAILQ_FIRST(&vhbas->vhba->done)) != NULL) { in vhba_task() 112 TAILQ_REMOVE(&vhbas->vhba->done, ccbh, sim_links.tqe); in vhba_task() 113 xpt_done((union ccb *)ccbh); in vhba_task()
|
| /freebsd-10-stable/tools/tools/vhba/faulty/ |
| D | vhba_faulty.c | 86 struct ccb_hdr *ccbh; in vhba_task() local 89 while ((ccbh = TAILQ_FIRST(&vhbas->vhba->actv)) != NULL) { in vhba_task() 90 TAILQ_REMOVE(&vhbas->vhba->actv, ccbh, sim_links.tqe); in vhba_task() 91 faulty_act(vhbas, (struct ccb_scsiio *)ccbh); in vhba_task() 97 while ((ccbh = TAILQ_FIRST(&vhbas->vhba->done)) != NULL) { in vhba_task() 98 TAILQ_REMOVE(&vhbas->vhba->done, ccbh, sim_links.tqe); in vhba_task() 99 xpt_done((union ccb *)ccbh); in vhba_task()
|
| /freebsd-10-stable/tools/tools/vhba/ |
| D | vhba.c | 387 vhba_set_status(struct ccb_hdr *ccbh, cam_status status) in vhba_set_status() argument 389 ccbh->status &= ~CAM_STATUS_MASK; in vhba_set_status() 390 ccbh->status |= status; in vhba_set_status() 392 if ((ccbh->status & CAM_DEV_QFRZN) == 0) { in vhba_set_status() 393 ccbh->status |= CAM_DEV_QFRZN; in vhba_set_status() 394 xpt_freeze_devq(ccbh->path, 1); in vhba_set_status()
|
| /freebsd-10-stable/sys/cam/scsi/ |
| D | scsi_targ_bh.c | 443 struct ccb_hdr *ccbh; in targbhstart() local 451 ccbh = TAILQ_FIRST(&softc->work_queue); in targbhstart() 452 if (ccbh == NULL) { in targbhstart() 455 TAILQ_REMOVE(&softc->work_queue, ccbh, periph_links.tqe); in targbhstart() 456 TAILQ_INSERT_HEAD(&softc->pending_queue, ccbh, in targbhstart() 458 atio = (struct ccb_accept_tio*)ccbh; in targbhstart() 518 ccbh = TAILQ_FIRST(&softc->work_queue); in targbhstart() 520 if (ccbh != NULL) in targbhstart()
|
| D | scsi_pt.c | 404 struct ccb_hdr *ccbh; in ptasync() local 412 LIST_FOREACH(ccbh, &softc->pending_ccbs, periph_links.le) in ptasync() 413 ccbh->ccb_state |= PT_CCB_RETRY_UA; in ptasync()
|
| D | scsi_da.c | 1782 struct ccb_hdr *ccbh; in daasync() local 1790 LIST_FOREACH(ccbh, &softc->pending_ccbs, periph_links.le) in daasync() 1791 ccbh->ccb_state |= DA_CCB_RETRY_UA; in daasync()
|
| D | scsi_cd.c | 452 struct ccb_hdr *ccbh; in cdasync() local 460 LIST_FOREACH(ccbh, &softc->pending_ccbs, periph_links.le) in cdasync() 461 ccbh->ccb_state |= CD_CCB_RETRY_UA; in cdasync()
|
| /freebsd-10-stable/sys/dev/pms/freebsd/driver/ini/src/ |
| D | agtiapi.c | 2452 struct ccb_hdr *ccbh = &ccb->ccb_h; in agtiapi_PrepareSGList() local 2458 if ((ccbh->flags & CAM_DIR_MASK) != CAM_DIR_NONE) in agtiapi_PrepareSGList() 2460 switch((ccbh->flags & CAM_DATA_MASK)) in agtiapi_PrepareSGList() 2484 ccbh->status |= CAM_RELEASE_SIMQ; in agtiapi_PrepareSGList() 2528 struct ccb_hdr *ccbh = &ccb->ccb_h; in agtiapi_PrepareSGList() local 2533 if ((ccbh->flags & CAM_DIR_MASK) != CAM_DIR_NONE) in agtiapi_PrepareSGList() 2535 if ((ccbh->flags & CAM_SCATTER_VALID) == 0) in agtiapi_PrepareSGList() 2538 if ((ccbh->flags & CAM_DATA_PHYS) == 0) in agtiapi_PrepareSGList() 2559 ccbh->status |= CAM_RELEASE_SIMQ; in agtiapi_PrepareSGList() 3409 struct ccb_hdr *ccbh = &ccb->ccb_h; in agtiapi_PrepareSMPSGList() local [all …]
|
| /freebsd-10-stable/sys/dev/aha/ |
| D | aha.c | 780 struct ccb_hdr *ccbh; in ahaaction() local 784 ccbh = &csio->ccb_h; in ahaaction() 796 if ((ccbh->flags & CAM_CDB_POINTER) != 0) { in ahaaction() 797 if ((ccbh->flags & CAM_CDB_PHYS) == 0) { in ahaaction() 802 ccbh->status = CAM_REQ_INVALID; in ahaaction()
|
| /freebsd-10-stable/sys/dev/buslogic/ |
| D | bt.c | 1160 struct ccb_hdr *ccbh; in btaction() local 1164 ccbh = &csio->ccb_h; in btaction() 1176 if ((ccbh->flags & CAM_TAG_ACTION_VALID) != 0 in btaction() 1184 if ((ccbh->flags & CAM_CDB_POINTER) != 0) { in btaction() 1185 if ((ccbh->flags & CAM_CDB_PHYS) == 0) { in btaction() 1190 ccbh->status = CAM_REQ_INVALID; in btaction()
|
| /freebsd-10-stable/sys/dev/iir/ |
| D | iir.c | 697 struct ccb_hdr *ccbh; in gdt_next() local 746 ccbh = &ccb->ccb_h; in gdt_next() 749 if (csio->cdb_len > 12 || (ccbh->flags & CAM_CDB_PHYS)) { in gdt_next() 750 ccbh->status = CAM_REQ_INVALID; in gdt_next() 765 ccbh->status = CAM_DEV_NOT_THERE; in gdt_next()
|
| /freebsd-10-stable/sys/dev/aic7xxx/ |
| D | aic7xxx.c | 6369 struct ccb_hdr *ccbh; in ahc_send_lstate_events() local 6373 && (ccbh = SLIST_FIRST(&lstate->immed_notifies)) != NULL) { in ahc_send_lstate_events() 6378 inot = (struct ccb_immediate_notify *)ccbh; in ahc_send_lstate_events() 6381 ccbh->status = CAM_SCSI_BUS_RESET|CAM_DEV_QFRZN; in ahc_send_lstate_events() 6384 ccbh->status = CAM_MESSAGE_RECV|CAM_DEV_QFRZN; in ahc_send_lstate_events() 7591 struct ccb_hdr *ccbh; in ahc_handle_en_lun() local 7593 ccbh = &scb->io_ctx->ccb_h; in ahc_handle_en_lun() 7594 if (ccbh->func_code == XPT_CONT_TARGET_IO in ahc_handle_en_lun() 7595 && !xpt_path_comp(ccbh->path, ccb->ccb_h.path)){ in ahc_handle_en_lun()
|
| D | aic79xx.c | 8562 struct ccb_hdr *ccbh; in ahd_send_lstate_events() local 8566 && (ccbh = SLIST_FIRST(&lstate->immed_notifies)) != NULL) { in ahd_send_lstate_events() 8571 inot = (struct ccb_immediate_notify *)ccbh; in ahd_send_lstate_events() 8574 ccbh->status = CAM_SCSI_BUS_RESET|CAM_DEV_QFRZN; in ahd_send_lstate_events() 8577 ccbh->status = CAM_MESSAGE_RECV|CAM_DEV_QFRZN; in ahd_send_lstate_events() 10116 struct ccb_hdr *ccbh; in ahd_handle_en_lun() local 10118 ccbh = &scb->io_ctx->ccb_h; in ahd_handle_en_lun() 10119 if (ccbh->func_code == XPT_CONT_TARGET_IO in ahd_handle_en_lun() 10120 && !xpt_path_comp(ccbh->path, ccb->ccb_h.path)){ in ahd_handle_en_lun()
|
| /freebsd-10-stable/sys/dev/advansys/ |
| D | adwcam.c | 347 struct ccb_hdr *ccbh; in adw_action() local 352 ccbh = &ccb->ccb_h; in adw_action()
|
| /freebsd-10-stable/sys/dev/dpt/ |
| D | dpt_scsi.c | 832 struct ccb_hdr *ccbh; in dpt_action() local 837 ccbh = &ccb->ccb_h; in dpt_action() 912 if ((ccbh->flags & CAM_DIR_MASK) != CAM_DIR_NONE) { in dpt_action()
|
| /freebsd-10-stable/sys/dev/sym/ |
| D | sym_hipd.c | 1661 ccb_p ccbh[CCB_HASH_SIZE]; /* CCB hashed by DSA value */ member 6529 cp->link_ccbh = np->ccbh[hcode]; in sym_alloc_ccb() 6530 np->ccbh[hcode] = cp; in sym_alloc_ccb() 6565 cp = np->ccbh[hcode]; in sym_ccb_from_dsa()
|
| /freebsd-10-stable/sys/dev/firewire/ |
| D | sbp_targ.c | 535 struct ccb_hdr *ccbh; in sbp_targ_send_lstate_events()
|