Lines Matching refs:ccb

74 static void mvs_softreset(device_t dev, union ccb *ccb);
79 static void mvs_tfd_read(device_t dev, union ccb *ccb);
80 static void mvs_tfd_write(device_t dev, union ccb *ccb);
83 static void mvs_begin_transaction(device_t dev, union ccb *ccb);
93 static void mvs_process_read_log(device_t dev, union ccb *ccb);
94 static void mvs_process_request_sense(device_t dev, union ccb *ccb);
96 static void mvsaction(struct cam_sim *sim, union ccb *ccb);
441 slot->ccb = NULL; in mvs_slotsalloc()
604 union ccb *ccb; in mvs_phy_check_events() local
615 if ((ccb = xpt_alloc_ccb_nowait()) == NULL) in mvs_phy_check_events()
617 if (xpt_create_path(&ccb->ccb_h.path, NULL, in mvs_phy_check_events()
620 xpt_free_ccb(ccb); in mvs_phy_check_events()
623 xpt_rescan(ccb); in mvs_phy_check_events()
781 ch->slot[i].ccb->ccb_h.target_id != port) in mvs_ch_intr()
845 union ccb *ccb = slot->ccb; in mvs_legacy_intr() local
856 port = ccb->ccb_h.target_id & 0x0f; in mvs_legacy_intr()
873 if (ccb->ccb_h.func_code == XPT_ATA_IO) { /* ATA PIO */ in mvs_legacy_intr()
874 ccb->ataio.res.status = status; in mvs_legacy_intr()
876 if ((ccb->ccb_h.flags & CAM_DIR_MASK) != CAM_DIR_NONE) { in mvs_legacy_intr()
878 if ((ccb->ccb_h.flags & CAM_DIR_MASK) == CAM_DIR_IN) { in mvs_legacy_intr()
887 (uint16_t *)(ccb->ataio.data_ptr + ch->donecount), in mvs_legacy_intr()
893 if (ccb->ataio.dxfer_len > ch->donecount) { in mvs_legacy_intr()
895 ch->transfersize = min(ccb->ataio.dxfer_len - ch->donecount, in mvs_legacy_intr()
898 if ((ccb->ccb_h.flags & CAM_DIR_MASK) == CAM_DIR_OUT) { in mvs_legacy_intr()
908 (uint16_t *)(ccb->ataio.data_ptr + ch->donecount), in mvs_legacy_intr()
913 if ((ccb->ccb_h.flags & CAM_DIR_MASK) == CAM_DIR_IN) in mvs_legacy_intr()
938 if ((ccb->ccb_h.flags & CAM_DIR_MASK) == CAM_DIR_IN) { in mvs_legacy_intr()
945 (uint16_t *)(ccb->csio.data_ptr + ch->donecount), in mvs_legacy_intr()
952 ch->transfersize = min(ccb->csio.dxfer_len - ch->donecount, in mvs_legacy_intr()
953 ch->curr[ccb->ccb_h.target_id].bytecount); in mvs_legacy_intr()
958 if ((ccb->ccb_h.flags & CAM_DIR_MASK) == CAM_DIR_OUT) { in mvs_legacy_intr()
965 (uint16_t *)(ccb->csio.data_ptr + ch->donecount), in mvs_legacy_intr()
970 ((uint8_t *)ccb->csio.data_ptr + ch->donecount + in mvs_legacy_intr()
978 ch->transfersize = min(ccb->csio.dxfer_len - ch->donecount, in mvs_legacy_intr()
979 ch->curr[ccb->ccb_h.target_id].bytecount); in mvs_legacy_intr()
986 if ((ccb->ccb_h.flags & CAM_DIR_MASK) == CAM_DIR_IN) { in mvs_legacy_intr()
988 (uint16_t *)(ccb->csio.data_ptr + ch->donecount), in mvs_legacy_intr()
992 else if ((ccb->ccb_h.flags & CAM_DIR_MASK) == CAM_DIR_OUT) { in mvs_legacy_intr()
994 (uint16_t *)(ccb->csio.data_ptr + ch->donecount), in mvs_legacy_intr()
1025 union ccb *ccb; in mvs_crbq_intr() local
1063 ccb = ch->slot[slot].ccb; in mvs_crbq_intr()
1064 ccb->ataio.res.status = in mvs_crbq_intr()
1091 mvs_check_collision(device_t dev, union ccb *ccb) in mvs_check_collision() argument
1095 if (ccb->ccb_h.func_code == XPT_ATA_IO) { in mvs_check_collision()
1097 if (ccb->ataio.cmd.flags & CAM_ATAIO_FPDMA) { in mvs_check_collision()
1108 ch->taggedtarget != ccb->ccb_h.target_id) in mvs_check_collision()
1112 } else if (ccb->ataio.cmd.flags & CAM_ATAIO_DMA) { in mvs_check_collision()
1125 if (ccb->ataio.cmd.flags & (CAM_ATAIO_CONTROL | CAM_ATAIO_NEEDRESULT)) { in mvs_check_collision()
1142 mvs_tfd_read(device_t dev, union ccb *ccb) in mvs_tfd_read() argument
1145 struct ata_res *res = &ccb->ataio.res; in mvs_tfd_read()
1163 mvs_tfd_write(device_t dev, union ccb *ccb) in mvs_tfd_write() argument
1166 struct ata_cmd *cmd = &ccb->ataio.cmd; in mvs_tfd_write()
1185 mvs_begin_transaction(device_t dev, union ccb *ccb) in mvs_begin_transaction() argument
1194 if (ccb->ccb_h.func_code == XPT_ATA_IO && in mvs_begin_transaction()
1195 (ccb->ataio.cmd.flags & CAM_ATAIO_CONTROL)) { in mvs_begin_transaction()
1196 mvs_softreset(dev, ccb); in mvs_begin_transaction()
1201 if ((ccb->ccb_h.func_code == XPT_ATA_IO) && in mvs_begin_transaction()
1202 (ccb->ataio.cmd.flags & CAM_ATAIO_FPDMA)) { in mvs_begin_transaction()
1204 tag = ffs(~ch->otagspd[ccb->ccb_h.target_id]) - 1; in mvs_begin_transaction()
1211 slot->ccb = ccb; in mvs_begin_transaction()
1219 ch->numrslotspd[ccb->ccb_h.target_id]++; in mvs_begin_transaction()
1220 if (ccb->ccb_h.func_code == XPT_ATA_IO) { in mvs_begin_transaction()
1221 if (ccb->ataio.cmd.flags & CAM_ATAIO_FPDMA) { in mvs_begin_transaction()
1222 ch->otagspd[ccb->ccb_h.target_id] |= (1 << slot->tag); in mvs_begin_transaction()
1224 ch->numtslotspd[ccb->ccb_h.target_id]++; in mvs_begin_transaction()
1225 ch->taggedtarget = ccb->ccb_h.target_id; in mvs_begin_transaction()
1227 } else if (ccb->ataio.cmd.flags & CAM_ATAIO_DMA) { in mvs_begin_transaction()
1234 if (ccb->ataio.cmd.flags & in mvs_begin_transaction()
1239 uint8_t *cdb = (ccb->ccb_h.flags & CAM_CDB_POINTER) ? in mvs_begin_transaction()
1240 ccb->csio.cdb_io.cdb_ptr : ccb->csio.cdb_io.cdb_bytes; in mvs_begin_transaction()
1243 if ((ccb->ccb_h.flags & CAM_DIR_MASK) != CAM_DIR_NONE && in mvs_begin_transaction()
1244 ch->curr[ccb->ccb_h.target_id].mode >= ATA_DMA && in mvs_begin_transaction()
1262 ccb, mvs_dmasetprd, slot, 0); in mvs_begin_transaction()
1299 ((slot->ccb->ccb_h.flags & CAM_DIR_IN) ? in mvs_dmasetprd()
1313 union ccb *ccb = slot->ccb; in mvs_legacy_execute_transaction() local
1314 int port = ccb->ccb_h.target_id & 0x0f; in mvs_legacy_execute_transaction()
1320 if (ccb->ccb_h.func_code == XPT_ATA_IO) { in mvs_legacy_execute_transaction()
1321 mvs_tfd_write(dev, ccb); in mvs_legacy_execute_transaction()
1323 if (ccb->ataio.cmd.command == ATA_DEVICE_RESET) { in mvs_legacy_execute_transaction()
1327 ccb->ataio.res.status = ATA_INB(ch->r_mem, ATA_STATUS); in mvs_legacy_execute_transaction()
1328 } while (ccb->ataio.res.status & ATA_S_BUSY && timeout--); in mvs_legacy_execute_transaction()
1333 if (ccb->ataio.cmd.command == ATA_READ_MUL || in mvs_legacy_execute_transaction()
1334 ccb->ataio.cmd.command == ATA_READ_MUL48 || in mvs_legacy_execute_transaction()
1335 ccb->ataio.cmd.command == ATA_WRITE_MUL || in mvs_legacy_execute_transaction()
1336 ccb->ataio.cmd.command == ATA_WRITE_MUL48) { in mvs_legacy_execute_transaction()
1337 ch->transfersize = min(ccb->ataio.dxfer_len, in mvs_legacy_execute_transaction()
1340 ch->transfersize = min(ccb->ataio.dxfer_len, 512); in mvs_legacy_execute_transaction()
1341 if ((ccb->ccb_h.flags & CAM_DIR_MASK) != CAM_DIR_NONE) in mvs_legacy_execute_transaction()
1344 if ((ccb->ccb_h.flags & CAM_DIR_MASK) == CAM_DIR_OUT) { in mvs_legacy_execute_transaction()
1354 (uint16_t *)(ccb->ataio.data_ptr + ch->donecount), in mvs_legacy_execute_transaction()
1359 ch->transfersize = min(ccb->csio.dxfer_len, in mvs_legacy_execute_transaction()
1401 (uint16_t *)((ccb->ccb_h.flags & CAM_CDB_POINTER) ? in mvs_legacy_execute_transaction()
1402 ccb->csio.cdb_io.cdb_ptr : ccb->csio.cdb_io.cdb_bytes), in mvs_legacy_execute_transaction()
1411 (((ccb->ccb_h.flags & CAM_DIR_MASK) == CAM_DIR_IN) ? in mvs_legacy_execute_transaction()
1416 callout_reset_sbt(&slot->timeout, SBT_1MS * ccb->ccb_h.timeout, 0, in mvs_legacy_execute_transaction()
1429 union ccb *ccb = slot->ccb; in mvs_execute_transaction() local
1430 int port = ccb->ccb_h.target_id & 0x0f; in mvs_execute_transaction()
1440 ((ccb->ccb_h.flags & CAM_DIR_IN) ? MVS_CRQB2E_READ : 0) | in mvs_execute_transaction()
1454 crqb2e->cmd[2] = ccb->ataio.cmd.command; in mvs_execute_transaction()
1455 crqb2e->cmd[3] = ccb->ataio.cmd.features; in mvs_execute_transaction()
1456 crqb2e->cmd[4] = ccb->ataio.cmd.lba_low; in mvs_execute_transaction()
1457 crqb2e->cmd[5] = ccb->ataio.cmd.lba_mid; in mvs_execute_transaction()
1458 crqb2e->cmd[6] = ccb->ataio.cmd.lba_high; in mvs_execute_transaction()
1459 crqb2e->cmd[7] = ccb->ataio.cmd.device; in mvs_execute_transaction()
1460 crqb2e->cmd[8] = ccb->ataio.cmd.lba_low_exp; in mvs_execute_transaction()
1461 crqb2e->cmd[9] = ccb->ataio.cmd.lba_mid_exp; in mvs_execute_transaction()
1462 crqb2e->cmd[10] = ccb->ataio.cmd.lba_high_exp; in mvs_execute_transaction()
1463 crqb2e->cmd[11] = ccb->ataio.cmd.features_exp; in mvs_execute_transaction()
1464 if (ccb->ataio.cmd.flags & CAM_ATAIO_FPDMA) { in mvs_execute_transaction()
1468 crqb2e->cmd[12] = ccb->ataio.cmd.sector_count; in mvs_execute_transaction()
1469 crqb2e->cmd[13] = ccb->ataio.cmd.sector_count_exp; in mvs_execute_transaction()
1479 ((ccb->ccb_h.flags & CAM_DIR_IN) ? MVS_CRQB_READ : 0) | in mvs_execute_transaction()
1487 if (ccb->ataio.cmd.flags & CAM_ATAIO_FPDMA) { in mvs_execute_transaction()
1488 crqb->cmd[i++] = ccb->ataio.cmd.features_exp; in mvs_execute_transaction()
1491 crqb->cmd[i++] = ccb->ataio.cmd.features; in mvs_execute_transaction()
1493 if (ccb->ataio.cmd.flags & CAM_ATAIO_FPDMA) { in mvs_execute_transaction()
1495 (ccb->ataio.cmd.sector_count & 0x07); in mvs_execute_transaction()
1498 crqb->cmd[i++] = ccb->ataio.cmd.sector_count_exp; in mvs_execute_transaction()
1500 crqb->cmd[i++] = ccb->ataio.cmd.sector_count; in mvs_execute_transaction()
1503 crqb->cmd[i++] = ccb->ataio.cmd.lba_low_exp; in mvs_execute_transaction()
1505 crqb->cmd[i++] = ccb->ataio.cmd.lba_low; in mvs_execute_transaction()
1507 crqb->cmd[i++] = ccb->ataio.cmd.lba_mid_exp; in mvs_execute_transaction()
1509 crqb->cmd[i++] = ccb->ataio.cmd.lba_mid; in mvs_execute_transaction()
1511 crqb->cmd[i++] = ccb->ataio.cmd.lba_high_exp; in mvs_execute_transaction()
1513 crqb->cmd[i++] = ccb->ataio.cmd.lba_high; in mvs_execute_transaction()
1515 crqb->cmd[i++] = ccb->ataio.cmd.device; in mvs_execute_transaction()
1517 crqb->cmd[i++] = ccb->ataio.cmd.command; in mvs_execute_transaction()
1531 callout_reset_sbt(&slot->timeout, SBT_1MS * ccb->ccb_h.timeout, 0, in mvs_execute_transaction()
1570 SBT_1MS * slot->ccb->ccb_h.timeout / 2, 0, in mvs_rearm_timeout()
1613 union ccb *ccb = slot->ccb; in mvs_end_transaction() local
1622 if (ccb->ccb_h.func_code == XPT_ATA_IO) { in mvs_end_transaction()
1623 struct ata_res *res = &ccb->ataio.res; in mvs_end_transaction()
1626 (ccb->ataio.cmd.flags & CAM_ATAIO_NEEDRESULT)) { in mvs_end_transaction()
1627 mvs_tfd_read(dev, ccb); in mvs_end_transaction()
1631 if ((ccb->ccb_h.flags & CAM_DIR_MASK) != CAM_DIR_NONE && in mvs_end_transaction()
1633 ccb->csio.resid = ccb->csio.dxfer_len - ch->donecount; in mvs_end_transaction()
1636 if ((ccb->ccb_h.flags & CAM_DIR_MASK) != CAM_DIR_NONE) { in mvs_end_transaction()
1638 (ccb->ccb_h.flags & CAM_DIR_IN) ? in mvs_end_transaction()
1647 !(ccb->ccb_h.status & CAM_DEV_QFRZN)) { in mvs_end_transaction()
1648 xpt_freeze_devq(ccb->ccb_h.path, 1); in mvs_end_transaction()
1649 ccb->ccb_h.status |= CAM_DEV_QFRZN; in mvs_end_transaction()
1652 ccb->ccb_h.status &= ~CAM_STATUS_MASK; in mvs_end_transaction()
1655 ccb->ccb_h.status |= CAM_REQ_CMP; in mvs_end_transaction()
1656 if (ccb->ccb_h.func_code == XPT_SCSI_IO) in mvs_end_transaction()
1657 ccb->csio.scsi_status = SCSI_STATUS_OK; in mvs_end_transaction()
1661 ccb->ccb_h.status |= CAM_REQ_INVALID; in mvs_end_transaction()
1664 ccb->ccb_h.status |= CAM_REQUEUE_REQ; in mvs_end_transaction()
1668 if (ccb->ccb_h.func_code == XPT_SCSI_IO) { in mvs_end_transaction()
1669 ccb->ccb_h.status |= CAM_SCSI_STATUS_ERROR; in mvs_end_transaction()
1670 ccb->csio.scsi_status = SCSI_STATUS_CHECK_COND; in mvs_end_transaction()
1672 ccb->ccb_h.status |= CAM_ATA_STATUS_ERROR; in mvs_end_transaction()
1679 ccb->ccb_h.status &= ~CAM_STATUS_MASK; in mvs_end_transaction()
1680 ccb->ccb_h.status |= CAM_RELEASE_SIMQ; in mvs_end_transaction()
1682 ccb->ccb_h.status |= CAM_UNCOR_PARITY; in mvs_end_transaction()
1687 ccb->ccb_h.status &= ~CAM_STATUS_MASK; in mvs_end_transaction()
1688 ccb->ccb_h.status |= CAM_RELEASE_SIMQ; in mvs_end_transaction()
1690 ccb->ccb_h.status |= CAM_CMD_TIMEOUT; in mvs_end_transaction()
1694 ccb->ccb_h.status |= CAM_REQ_CMP_ERR; in mvs_end_transaction()
1701 slot->ccb = NULL; in mvs_end_transaction()
1704 ch->numrslotspd[ccb->ccb_h.target_id]--; in mvs_end_transaction()
1705 if (ccb->ccb_h.func_code == XPT_ATA_IO) { in mvs_end_transaction()
1706 if (ccb->ataio.cmd.flags & CAM_ATAIO_FPDMA) { in mvs_end_transaction()
1707 ch->otagspd[ccb->ccb_h.target_id] &= ~(1 << slot->tag); in mvs_end_transaction()
1709 ch->numtslotspd[ccb->ccb_h.target_id]--; in mvs_end_transaction()
1710 } else if (ccb->ataio.cmd.flags & CAM_ATAIO_DMA) { in mvs_end_transaction()
1727 if (ccb->ccb_h.recovery_type == RECOVERY_READ_LOG) { in mvs_end_transaction()
1728 mvs_process_read_log(dev, ccb); in mvs_end_transaction()
1730 } else if (ccb->ccb_h.recovery_type == RECOVERY_REQUEST_SENSE) { in mvs_end_transaction()
1731 mvs_process_request_sense(dev, ccb); in mvs_end_transaction()
1734 ((ccb->ccb_h.status & CAM_STATUS_MASK) == CAM_SCSI_STATUS_ERROR && in mvs_end_transaction()
1735 (ccb->ccb_h.flags & CAM_DIS_AUTOSENSE) == 0)) { in mvs_end_transaction()
1736 ch->hold[slot->slot] = ccb; in mvs_end_transaction()
1740 xpt_done(ccb); in mvs_end_transaction()
1762 union ccb *fccb = ch->frozen; in mvs_end_transaction()
1779 union ccb *ccb; in mvs_issue_recovery() local
1789 ccb = xpt_alloc_ccb_nowait(); in mvs_issue_recovery()
1790 if (ccb == NULL) { in mvs_issue_recovery()
1806 ccb->ccb_h = ch->hold[i]->ccb_h; /* Reuse old header. */ in mvs_issue_recovery()
1807 if (ccb->ccb_h.func_code == XPT_ATA_IO) { in mvs_issue_recovery()
1809 ccb->ccb_h.recovery_type = RECOVERY_READ_LOG; in mvs_issue_recovery()
1810 ccb->ccb_h.func_code = XPT_ATA_IO; in mvs_issue_recovery()
1811 ccb->ccb_h.flags = CAM_DIR_IN; in mvs_issue_recovery()
1812 ccb->ccb_h.timeout = 1000; /* 1s should be enough. */ in mvs_issue_recovery()
1813 ataio = &ccb->ataio; in mvs_issue_recovery()
1816 xpt_free_ccb(ccb); in mvs_issue_recovery()
1832 ccb->ccb_h.recovery_type = RECOVERY_REQUEST_SENSE; in mvs_issue_recovery()
1833 ccb->ccb_h.recovery_slot = i; in mvs_issue_recovery()
1834 ccb->ccb_h.func_code = XPT_SCSI_IO; in mvs_issue_recovery()
1835 ccb->ccb_h.flags = CAM_DIR_IN; in mvs_issue_recovery()
1836 ccb->ccb_h.status = 0; in mvs_issue_recovery()
1837 ccb->ccb_h.timeout = 1000; /* 1s should be enough. */ in mvs_issue_recovery()
1838 csio = &ccb->csio; in mvs_issue_recovery()
1849 mvs_begin_transaction(dev, ccb); in mvs_issue_recovery()
1853 mvs_process_read_log(device_t dev, union ccb *ccb) in mvs_process_read_log() argument
1862 data = ccb->ataio.data_ptr; in mvs_process_read_log()
1863 if ((ccb->ccb_h.status & CAM_STATUS_MASK) == CAM_REQ_CMP && in mvs_process_read_log()
1868 if (ch->hold[i]->ccb_h.target_id != ccb->ccb_h.target_id) in mvs_process_read_log()
1892 if ((ccb->ccb_h.status & CAM_STATUS_MASK) != CAM_REQ_CMP) in mvs_process_read_log()
1901 if (ch->hold[i]->ccb_h.target_id != ccb->ccb_h.target_id) in mvs_process_read_log()
1908 free(ccb->ataio.data_ptr, M_MVS); in mvs_process_read_log()
1909 xpt_free_ccb(ccb); in mvs_process_read_log()
1914 mvs_process_request_sense(device_t dev, union ccb *ccb) in mvs_process_request_sense() argument
1921 i = ccb->ccb_h.recovery_slot; in mvs_process_request_sense()
1922 if ((ccb->ccb_h.status & CAM_STATUS_MASK) == CAM_REQ_CMP) { in mvs_process_request_sense()
1931 xpt_free_ccb(ccb); in mvs_process_request_sense()
1957 union ccb *fccb = ch->frozen; in mvs_requeue_frozen()
2113 mvs_softreset(device_t dev, union ccb *ccb) in mvs_softreset() argument
2116 int port = ccb->ccb_h.target_id & 0x0f; in mvs_softreset()
2125 ccb->ccb_h.status &= ~CAM_STATUS_MASK; in mvs_softreset()
2127 if ((i = mvs_wait(dev, 0, ATA_S_BUSY, ccb->ccb_h.timeout)) < 0) { in mvs_softreset()
2128 ccb->ccb_h.status |= CAM_CMD_TIMEOUT; in mvs_softreset()
2133 ccb->ccb_h.status |= CAM_ATA_STATUS_ERROR; in mvs_softreset()
2135 ccb->ccb_h.status |= CAM_REQ_CMP; in mvs_softreset()
2141 mvs_tfd_read(dev, ccb); in mvs_softreset()
2153 mvs_wait(dev, 0, ATA_S_BUSY | ATA_S_DRQ, ccb->ccb_h.timeout); in mvs_softreset()
2156 xpt_done(ccb); in mvs_softreset()
2234 mvs_check_ids(device_t dev, union ccb *ccb) in mvs_check_ids() argument
2238 if (ccb->ccb_h.target_id > ((ch->quirks & MVS_Q_GENI) ? 0 : 15)) { in mvs_check_ids()
2239 ccb->ccb_h.status = CAM_TID_INVALID; in mvs_check_ids()
2240 xpt_done(ccb); in mvs_check_ids()
2243 if (ccb->ccb_h.target_lun != 0) { in mvs_check_ids()
2244 ccb->ccb_h.status = CAM_LUN_INVALID; in mvs_check_ids()
2245 xpt_done(ccb); in mvs_check_ids()
2251 KASSERT(ccb->ccb_h.func_code != XPT_ATA_IO || in mvs_check_ids()
2252 ((ccb->ataio.ata_flags & ATA_FLAG_AUX) == 0), in mvs_check_ids()
2258 mvsaction(struct cam_sim *sim, union ccb *ccb) in mvsaction() argument
2263 CAM_DEBUG(ccb->ccb_h.path, CAM_DEBUG_TRACE, ("mvsaction func_code=%x\n", in mvsaction()
2264 ccb->ccb_h.func_code)); in mvsaction()
2268 switch (ccb->ccb_h.func_code) { in mvsaction()
2272 if (mvs_check_ids(dev, ccb)) in mvsaction()
2276 ccb->ccb_h.target_id > 0 && ccb->ccb_h.target_id < 15)) { in mvsaction()
2277 ccb->ccb_h.status = CAM_SEL_TIMEOUT; in mvsaction()
2280 ccb->ccb_h.recovery_type = RECOVERY_NONE; in mvsaction()
2282 if (mvs_check_collision(dev, ccb)) { in mvsaction()
2284 ch->frozen = ccb; in mvsaction()
2289 mvs_begin_transaction(dev, ccb); in mvsaction()
2293 ccb->ccb_h.status = CAM_REQ_INVALID; in mvsaction()
2297 struct ccb_trans_settings *cts = &ccb->cts; in mvsaction()
2300 if (mvs_check_ids(dev, ccb)) in mvsaction()
2303 d = &ch->curr[ccb->ccb_h.target_id]; in mvsaction()
2305 d = &ch->user[ccb->ccb_h.target_id]; in mvsaction()
2322 ccb->ccb_h.status = CAM_REQ_CMP; in mvsaction()
2328 struct ccb_trans_settings *cts = &ccb->cts; in mvsaction()
2332 if (mvs_check_ids(dev, ccb)) in mvsaction()
2335 d = &ch->curr[ccb->ccb_h.target_id]; in mvsaction()
2337 d = &ch->user[ccb->ccb_h.target_id]; in mvsaction()
2345 (ccb->ccb_h.target_id == 15 || in mvsaction()
2346 (ccb->ccb_h.target_id == 0 && !ch->pm_present))) { in mvsaction()
2359 ch->user[ccb->ccb_h.target_id].caps; in mvsaction()
2380 ccb->ccb_h.status = CAM_REQ_CMP; in mvsaction()
2386 ccb->ccb_h.status = CAM_REQ_CMP; in mvsaction()
2390 ccb->ccb_h.status = CAM_REQ_INVALID; in mvsaction()
2394 struct ccb_pathinq *cpi = &ccb->cpi; in mvsaction()
2435 ccb->ccb_h.status = CAM_REQ_INVALID; in mvsaction()
2438 xpt_done(ccb); in mvsaction()