• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/sys/dev/buslogic/

Lines Matching defs:ccb_h

1063 		LIST_REMOVE(&bccb->ccb->ccb_h, sim_links.le);
1065 && (bccb->ccb->ccb_h.status & CAM_RELEASE_SIMQ) == 0) {
1066 bccb->ccb->ccb_h.status |= CAM_RELEASE_SIMQ;
1101 CAM_DEBUG(ccb->ccb_h.path, CAM_DEBUG_TRACE, ("btaction\n"));
1106 switch (ccb->ccb_h.func_code) {
1121 ccb->ccb_h.status = CAM_REQUEUE_REQ;
1132 ccb->ccb_h.ccb_bccb_ptr = bccb;
1133 ccb->ccb_h.ccb_bt_ptr = bt;
1138 hccb->target_id = ccb->ccb_h.target_id;
1139 hccb->target_lun = ccb->ccb_h.target_lun;
1143 if (ccb->ccb_h.func_code == XPT_SCSI_IO) {
1149 ccbh = &csio->ccb_h;
1151 hccb->datain = (ccb->ccb_h.flags & CAM_DIR_IN) ? 1 : 0;
1152 hccb->dataout =(ccb->ccb_h.flags & CAM_DIR_OUT) ? 1 : 0;
1155 ccb->ccb_h.status = CAM_REQ_INVALID;
1208 csio->ccb_h.status |= CAM_RELEASE_SIMQ;
1225 ccb->ccb_h.status = CAM_REQ_INVALID;
1231 ccb->ccb_h.status = CAM_PROVIDE_FAIL;
1242 target_mask = 0x01 << ccb->ccb_h.target_id;
1282 if (cts->ccb_h.target_lun != CAM_LUN_WILDCARD) {
1291 ccb->ccb_h.status = CAM_REQ_CMP;
1319 ccb->ccb_h.status = CAM_REQ_CMP;
1326 ccb->ccb_h.status = CAM_REQ_CMP;
1332 ccb->ccb_h.status = CAM_REQ_INVALID;
1357 cpi->ccb_h.status = CAM_REQ_CMP;
1366 ccb->ccb_h.status = CAM_REQ_INVALID;
1381 bt = (struct bt_softc *)ccb->ccb_h.ccb_bt_ptr;
1388 if (ccb->ccb_h.status == CAM_REQ_INPROG) {
1389 xpt_freeze_devq(ccb->ccb_h.path, /*count*/1);
1390 ccb->ccb_h.status = CAM_REQ_TOO_BIG|CAM_DEV_QFRZN;
1422 if ((ccb->ccb_h.flags & CAM_DIR_MASK) == CAM_DIR_IN)
1439 if (ccb->ccb_h.status != CAM_REQ_INPROG) {
1448 ccb->ccb_h.status |= CAM_SIM_QUEUED;
1449 LIST_INSERT_HEAD(&bt->pending_ccbs, &ccb->ccb_h, sim_links.le);
1451 callout_reset_sbt(&bccb->timer, SBT_1MS * ccb->ccb_h.timeout, 0,
1474 ccb->ccb_h.status = CAM_REQUEUE_REQ;
1540 if ((ccb->ccb_h.flags & CAM_DIR_MASK) != CAM_DIR_NONE) {
1543 if ((ccb->ccb_h.flags & CAM_DIR_MASK) == CAM_DIR_IN)
1561 struct ccb_hdr *ccb_h;
1575 ccb_h = LIST_FIRST(&bt->pending_ccbs);
1576 while (ccb_h != NULL) {
1579 pending_bccb = (struct bt_ccb *)ccb_h->ccb_bccb_ptr;
1583 ccb_h = LIST_NEXT(ccb_h, sim_links.le);
1587 SBT_1MS * ccb_h->timeout, 0, bttimeout,
1589 ccb_h = LIST_NEXT(ccb_h, sim_links.le);
1625 csio->ccb_h.status = CAM_DATA_RUN_ERR;
1635 csio->ccb_h.status |= CAM_SCSI_STATUS_ERROR;
1639 csio->ccb_h.status |= CAM_AUTOSNS_VALID;
1649 csio->ccb_h.status = CAM_REQ_CMP;
1655 csio->ccb_h.status = CAM_SEL_TIMEOUT;
1658 csio->ccb_h.status = CAM_UNEXP_BUSFREE;
1661 csio->ccb_h.status = CAM_SEQUENCE_FAIL;
1677 csio->ccb_h.status = CAM_AUTOSENSE_FAIL;
1691 xpt_print_path(csio->ccb_h.path);
1694 xpt_setup_ccb(&neg.ccb_h, csio->ccb_h.path,
1696 xpt_async(AC_TRANSFER_NEG, csio->ccb_h.path, &neg);
1697 bt->tags_permitted &= ~(0x01 << csio->ccb_h.target_id);
1698 csio->ccb_h.status = CAM_MSG_REJECT_REC;
1706 csio->ccb_h.status = CAM_REQ_CMP_ERR;
1712 csio->ccb_h.status = CAM_NO_HBA;
1717 if ((csio->ccb_h.status & CAM_STATUS_MASK)
1719 csio->ccb_h.status = CAM_SCSI_BUS_RESET;
1723 csio->ccb_h.status = CAM_BDR_SENT;
1725 csio->ccb_h.status = CAM_CMD_TIMEOUT;
1729 csio->ccb_h.status = CAM_REQ_TERMIO;
1732 csio->ccb_h.status = CAM_UNCOR_PARITY;
1735 if (csio->ccb_h.status != CAM_REQ_CMP) {
1736 xpt_freeze_devq(csio->ccb_h.path, /*count*/1);
1737 csio->ccb_h.status |= CAM_DEV_QFRZN;
1740 ccb->ccb_h.status |= CAM_RELEASE_SIMQ;
1746 ccb->ccb_h.status |= CAM_REQ_CMP;
1748 ccb->ccb_h.status |= CAM_RELEASE_SIMQ;
1758 struct ccb_hdr *ccb_h;
1838 while ((ccb_h = LIST_FIRST(&bt->pending_ccbs)) != NULL) {
1841 pending_bccb = (struct bt_ccb *)ccb_h->ccb_bccb_ptr;
2138 target = cts->ccb_h.target_id;
2188 xpt_setup_ccb(&cgd.ccb_h, cts->ccb_h.path, /*priority*/1);
2189 cgd.ccb_h.func_code = XPT_GDEV_TYPE;
2191 if ((cgd.ccb_h.status & CAM_STATUS_MASK) == CAM_REQ_CMP
2232 if (cts->ccb_h.target_lun != CAM_LUN_WILDCARD) {
2238 xpt_async(AC_TRANSFER_NEG, cts->ccb_h.path, cts);
2284 bt = (struct bt_softc *)ccb->ccb_h.ccb_bt_ptr;
2286 xpt_print_path(ccb->ccb_h.path);
2290 xpt_print_path(ccb->ccb_h.path);
2307 struct ccb_hdr *ccb_h;
2314 ccb_h = LIST_FIRST(&bt->pending_ccbs);
2315 while (ccb_h != NULL) {
2318 pending_bccb = (struct bt_ccb *)ccb_h->ccb_bccb_ptr;
2320 ccb_h = LIST_NEXT(ccb_h, sim_links.le);
2340 ccb->ccb_h.status = CAM_CMD_TIMEOUT;
2365 bt->recovery_bccb->hccb.target_id = ccb->ccb_h.target_id;