Home
last modified time | relevance | path

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

/dragonfly/sys/dev/raid/mfi/
H A Dmfi_cam.c225 ccbh->status = CAM_REQ_INPROG; in mfip_cam_action()
227 ccbh->status = CAM_REQ_INVALID; in mfip_cam_action()
232 ccbh->status = CAM_REQ_INVALID; in mfip_cam_action()
236 ccbh->status = CAM_REQ_INVALID; in mfip_cam_action()
241 ccbh->ccb_mfip_ptr = sc; in mfip_cam_action()
266 sc = ccbh->ccb_mfip_ptr; in mfip_start()
289 if (ccbh->flags & CAM_CDB_POINTER) in mfip_start()
333 ccbh->status = CAM_REQ_CMP; in mfip_done()
365 ccbh->status = CAM_SEL_TIMEOUT; in mfip_done()
368 ccbh->status = CAM_REQ_CMP_ERR; in mfip_done()
[all …]
H A Dmfi.c2121 struct ccb_hdr *ccbh; in mfi_startio() local
2132 if ((ccbh = TAILQ_FIRST(&sc->mfi_cam_ccbq)) != NULL) in mfi_startio()
2133 cm = sc->mfi_cam_start(ccbh); in mfi_startio()
/dragonfly/sys/dev/disk/ahci/
H A Dahci_cam.c793 struct ccb_hdr *ccbh; in ahci_xpt_action() local
799 ccbh = &ccb->ccb_h; in ahci_xpt_action()
825 if (ccbh->target_id < 0 || ccbh->target_id >= ap->ap_pmcount) { in ahci_xpt_action()
834 if (ccbh->target_lun != CAM_LUN_WILDCARD && ccbh->target_lun) { in ahci_xpt_action()
846 switch(ccbh->func_code) { in ahci_xpt_action()
852 ccbh->status = CAM_REQ_CMP; in ahci_xpt_action()
884 ccbh->status = CAM_REQ_CMP; in ahci_xpt_action()
1026 struct ccb_hdr *ccbh; in ahci_xpt_scsi_disk_io() local
1040 ccbh = &ccb->csio.ccb_h; in ahci_xpt_scsi_disk_io()
1437 struct ccb_hdr *ccbh; in ahci_xpt_scsi_atapi_io() local
[all …]
/dragonfly/sys/dev/disk/sili/
H A Dsili_cam.c787 struct ccb_hdr *ccbh; in sili_xpt_action() local
794 ccbh = &ccb->ccb_h; in sili_xpt_action()
820 if (ccbh->target_id < 0 || ccbh->target_id >= ap->ap_pmcount) { in sili_xpt_action()
825 at += ccbh->target_id; in sili_xpt_action()
829 if (ccbh->target_lun != CAM_LUN_WILDCARD && ccbh->target_lun) { in sili_xpt_action()
839 switch(ccbh->func_code) { in sili_xpt_action()
845 ccbh->status = CAM_REQ_CMP; in sili_xpt_action()
1005 struct ccb_hdr *ccbh; in sili_xpt_scsi_disk_io() local
1019 ccbh = &ccb->csio.ccb_h; in sili_xpt_scsi_disk_io()
1368 struct ccb_hdr *ccbh; in sili_xpt_scsi_atapi_io() local
[all …]
/dragonfly/sys/dev/virtual/virtio/scsi/
H A Dvirtio_scsi.c760 ccbh = &ccb->ccb_h; in vtscsi_cam_action()
838 ccbh = &ccb->ccb_h; in vtscsi_cam_scsi_io()
911 ccbh = &ccb->ccb_h; in vtscsi_cam_reset_dev()
947 ccbh = &ccb->ccb_h; in vtscsi_cam_abort()
1036 ccbh = &csio->ccb_h; in vtscsi_sg_append_scsi_buf()
1171 req, ccbh); in vtscsi_execute_scsi_cmd()
1417 ("ccb %p req mismatch %p/%p", ccbh, ccbh->ccbh_vtscsi_req, req)); in vtscsi_complete_scsi_cmd()
1497 ccbh = &ccb->ccb_h; in vtscsi_complete_abort_task_cmd()
1531 ccbh = &cab->ccb_h; in vtscsi_execute_abort_task_cmd()
1583 ccbh = &ccb->ccb_h; in vtscsi_complete_reset_dev_cmd()
[all …]
/dragonfly/sys/dev/raid/amr/
H A Damr_cam.c249 struct ccb_hdr *ccbh = &ccb->ccb_h; in amr_cam_action() local
253 ccbh->status = CAM_REQ_INPROG; in amr_cam_action()
257 ccbh->status = CAM_REQ_INVALID; in amr_cam_action()
261 ccbh->status = CAM_REQ_INVALID; in amr_cam_action()
265 (ccbh->flags & CAM_CDB_PHYS)) in amr_cam_action()
266 ccbh->status = CAM_REQ_INVALID; in amr_cam_action()
272 if (ccbh->flags & CAM_DATA_PHYS) in amr_cam_action()
274 ccbh->status = CAM_REQ_INVALID; in amr_cam_action()
275 if (ccbh->flags & CAM_SCATTER_VALID) in amr_cam_action()
277 ccbh->status = CAM_REQ_INVALID; in amr_cam_action()
[all …]
/dragonfly/sys/bus/cam/scsi/
H A Dscsi_targ_bh.c430 struct ccb_hdr *ccbh; in targbhstart() local
438 ccbh = TAILQ_FIRST(&softc->work_queue); in targbhstart()
445 } else if (ccbh == NULL) { in targbhstart()
448 TAILQ_REMOVE(&softc->work_queue, ccbh, periph_links.tqe); in targbhstart()
449 TAILQ_INSERT_HEAD(&softc->pending_queue, ccbh, in targbhstart()
451 atio = (struct ccb_accept_tio*)ccbh; in targbhstart()
511 ccbh = TAILQ_FIRST(&softc->work_queue); in targbhstart()
513 if (ccbh != NULL) in targbhstart()
H A Dscsi_pt.c427 struct ccb_hdr *ccbh; in ptasync() local
435 LIST_FOREACH(ccbh, &softc->pending_ccbs, periph_links.le) in ptasync()
436 ccbh->ccb_state |= PT_CCB_RETRY_UA; in ptasync()
H A Dscsi_da.c1015 struct ccb_hdr *ccbh; in daasync() local
1023 LIST_FOREACH(ccbh, &softc->pending_ccbs, periph_links.le) in daasync()
1024 ccbh->ccb_state |= DA_CCB_RETRY_UA; in daasync()
H A Dscsi_cd.c565 struct ccb_hdr *ccbh; in cdasync() local
573 LIST_FOREACH(ccbh, &softc->pending_ccbs, periph_links.le) in cdasync()
574 ccbh->ccb_state |= CD_CCB_RETRY_UA; in cdasync()
/dragonfly/sys/dev/disk/buslogic/
H A Dbt.c951 struct ccb_hdr *ccbh; in btaction() local
954 ccbh = &csio->ccb_h; in btaction()
966 if ((ccbh->flags & CAM_TAG_ACTION_VALID) != 0 in btaction()
974 if ((ccbh->flags & CAM_CDB_POINTER) != 0) { in btaction()
975 if ((ccbh->flags & CAM_CDB_PHYS) == 0) { in btaction()
980 ccbh->status = CAM_REQ_INVALID; in btaction()
1000 if ((ccbh->flags & CAM_DIR_MASK) != CAM_DIR_NONE) { in btaction()
1001 if ((ccbh->flags & CAM_SCATTER_VALID) == 0) { in btaction()
1006 if ((ccbh->flags & CAM_DATA_PHYS)==0) { in btaction()
1042 if ((ccbh->flags & CAM_DATA_PHYS) != 0) in btaction()
[all …]
/dragonfly/sys/dev/disk/advansys/
H A Dadwcam.c349 struct ccb_hdr *ccbh; in adw_action() local
353 ccbh = &ccb->ccb_h; in adw_action()
431 if ((ccbh->flags & CAM_DIR_MASK) != CAM_DIR_NONE) { in adw_action()
432 if ((ccbh->flags & CAM_SCATTER_VALID) == 0) { in adw_action()
437 if ((ccbh->flags & CAM_DATA_PHYS) == 0) { in adw_action()
471 if ((ccbh->flags & CAM_DATA_PHYS) != 0) in adw_action()
476 if ((ccbh->flags&CAM_SG_LIST_PHYS)==0) in adw_action()
/dragonfly/sys/dev/raid/dpt/
H A Ddpt_scsi.c815 struct ccb_hdr *ccbh; in dpt_action() local
820 ccbh = &ccb->ccb_h; in dpt_action()
897 if ((ccbh->flags & CAM_DIR_MASK) != CAM_DIR_NONE) { in dpt_action()
898 if ((ccbh->flags & CAM_SCATTER_VALID) == 0) { in dpt_action()
903 if ((ccbh->flags & CAM_DATA_PHYS) == 0) { in dpt_action()
937 if ((ccbh->flags & CAM_DATA_PHYS) != 0) in dpt_action()
942 if ((ccbh->flags&CAM_SG_LIST_PHYS)==0) in dpt_action()
/dragonfly/sys/dev/disk/isp/
H A Disp_freebsd.c3111 struct ccb_hdr *ccbh; in isptargstart() local
3119 ccbh = TAILQ_FIRST(&softc->inot_queue); in isptargstart()
3120 if (ccbh) { in isptargstart()
3121 TAILQ_REMOVE(&softc->inot_queue, ccbh, periph_links.tqe); in isptargstart()
3132 ccbh = TAILQ_FIRST(&softc->rework_queue); in isptargstart()
3133 if (ccbh) { in isptargstart()
3134 atio = (struct ccb_accept_tio *)ccbh; in isptargstart()
3138 ccbh = TAILQ_FIRST(&softc->work_queue); in isptargstart()
3139 if (ccbh == NULL) { in isptargstart()
3144 atio = (struct ccb_accept_tio *)ccbh; in isptargstart()
[all …]
/dragonfly/sys/bus/cam/
H A Dcam_periph.c104 #define RESTORE_CCB(saved, ccbh, field) \ argument
105 bcopy(&(saved)->field, &(ccbh)->field, sizeof((ccbh)->field))
H A Dcam_xpt.c4740 struct ccb_hdr *ccbh; in xpt_freeze_devq() local
4759 ccbh = TAILQ_LAST(&path->device->ccbq.active_ccbs, ccb_hdr_tailq); in xpt_freeze_devq()
4760 if (ccbh && ccbh->status == CAM_REQ_INPROG) in xpt_freeze_devq()
4761 ccbh->status = CAM_REQUEUE_REQ; in xpt_freeze_devq()
4774 struct ccb_hdr *ccbh; in xpt_freeze_simq() local
4776 ccbh = TAILQ_LAST(&sim->devq->active_dev->ccbq.active_ccbs, in xpt_freeze_simq()
4778 if (ccbh && ccbh->status == CAM_REQ_INPROG) in xpt_freeze_simq()
4779 ccbh->status = CAM_REQUEUE_REQ; in xpt_freeze_simq()
/dragonfly/sys/dev/raid/iir/
H A Diir.c679 struct ccb_hdr *ccbh; in gdt_next() local
729 ccbh = &ccb->ccb_h; in gdt_next()
733 ccbh->status = CAM_REQ_INVALID; in gdt_next()
748 ccbh->status = CAM_DEV_NOT_THERE; in gdt_next()
/dragonfly/sys/dev/disk/mpt/
H A Dmpt_cam.c2062 struct ccb_hdr *ccbh = &ccb->ccb_h; in mpt_start() local
2213 if ((ccbh->flags & CAM_DIR_MASK) != CAM_DIR_NONE) { in mpt_start()
2214 if ((ccbh->flags & CAM_SCATTER_VALID) == 0) { in mpt_start()
2218 if ((ccbh->flags & CAM_DATA_PHYS) == 0) { in mpt_start()
2237 ccbh->status |= CAM_RELEASE_SIMQ; in mpt_start()
2258 if ((ccbh->flags & CAM_SG_LIST_PHYS) == 0) { in mpt_start()
/dragonfly/sys/dev/disk/sym/
H A Dsym_hipd.c1667 ccb_p ccbh[CCB_HASH_SIZE]; /* CCB hashed by DSA value */ member
6553 cp->link_ccbh = np->ccbh[hcode]; in sym_alloc_ccb()
6554 np->ccbh[hcode] = cp; in sym_alloc_ccb()
6589 cp = np->ccbh[hcode]; in sym_ccb_from_dsa()