/dragonfly/sys/dev/raid/mfi/ |
H A D | mfi_cam.c | 225 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 D | mfi.c | 2121 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 D | ahci_cam.c | 793 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 D | sili_cam.c | 787 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 D | virtio_scsi.c | 760 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 D | amr_cam.c | 249 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 D | scsi_targ_bh.c | 430 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 D | scsi_pt.c | 427 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 D | scsi_da.c | 1015 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 D | scsi_cd.c | 565 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 D | bt.c | 951 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 D | adwcam.c | 349 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 D | dpt_scsi.c | 815 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 D | isp_freebsd.c | 3111 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 D | cam_periph.c | 104 #define RESTORE_CCB(saved, ccbh, field) \ argument 105 bcopy(&(saved)->field, &(ccbh)->field, sizeof((ccbh)->field))
|
H A D | cam_xpt.c | 4740 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 D | iir.c | 679 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 D | mpt_cam.c | 2062 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 D | sym_hipd.c | 1667 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()
|