aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/isci/host.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/isci/host.c')
-rw-r--r--drivers/scsi/isci/host.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/drivers/scsi/isci/host.c b/drivers/scsi/isci/host.c
index c5c2733a5197..4e11f9e6d766 100644
--- a/drivers/scsi/isci/host.c
+++ b/drivers/scsi/isci/host.c
@@ -1054,9 +1054,9 @@ static enum sci_status scic_controller_start(struct scic_sds_controller *scic,
1054 1054
1055 /* Start all of the ports on this controller */ 1055 /* Start all of the ports on this controller */
1056 for (index = 0; index < scic->logical_port_entries; index++) { 1056 for (index = 0; index < scic->logical_port_entries; index++) {
1057 struct scic_sds_port *sci_port = &ihost->ports[index].sci; 1057 struct isci_port *iport = &ihost->ports[index];
1058 1058
1059 result = scic_sds_port_start(sci_port); 1059 result = scic_sds_port_start(iport);
1060 if (result) 1060 if (result)
1061 return result; 1061 return result;
1062 } 1062 }
@@ -1306,8 +1306,8 @@ void isci_host_deinit(struct isci_host *ihost)
1306 1306
1307 /* Cancel any/all outstanding port timers */ 1307 /* Cancel any/all outstanding port timers */
1308 for (i = 0; i < ihost->sci.logical_port_entries; i++) { 1308 for (i = 0; i < ihost->sci.logical_port_entries; i++) {
1309 struct scic_sds_port *sci_port = &ihost->ports[i].sci; 1309 struct isci_port *iport = &ihost->ports[i];
1310 del_timer_sync(&sci_port->timer.timer); 1310 del_timer_sync(&iport->timer.timer);
1311 } 1311 }
1312 1312
1313 /* Cancel any/all outstanding phy timers */ 1313 /* Cancel any/all outstanding phy timers */
@@ -1552,9 +1552,9 @@ static enum sci_status scic_sds_controller_stop_ports(struct scic_sds_controller
1552 struct isci_host *ihost = scic_to_ihost(scic); 1552 struct isci_host *ihost = scic_to_ihost(scic);
1553 1553
1554 for (index = 0; index < scic->logical_port_entries; index++) { 1554 for (index = 0; index < scic->logical_port_entries; index++) {
1555 struct scic_sds_port *sci_port = &ihost->ports[index].sci; 1555 struct isci_port *iport = &ihost->ports[index];
1556 1556
1557 port_status = scic_sds_port_stop(sci_port); 1557 port_status = scic_sds_port_stop(iport);
1558 1558
1559 if ((port_status != SCI_SUCCESS) && 1559 if ((port_status != SCI_SUCCESS) &&
1560 (port_status != SCI_FAILURE_INVALID_STATE)) { 1560 (port_status != SCI_FAILURE_INVALID_STATE)) {
@@ -1564,7 +1564,7 @@ static enum sci_status scic_sds_controller_stop_ports(struct scic_sds_controller
1564 "%s: Controller stop operation failed to " 1564 "%s: Controller stop operation failed to "
1565 "stop port %d because of status %d.\n", 1565 "stop port %d because of status %d.\n",
1566 __func__, 1566 __func__,
1567 sci_port->logical_port_index, 1567 iport->logical_port_index,
1568 port_status); 1568 port_status);
1569 } 1569 }
1570 } 1570 }
@@ -1780,14 +1780,14 @@ static enum sci_status scic_controller_construct(struct scic_sds_controller *sci
1780 1780
1781 /* Construct the ports for this controller */ 1781 /* Construct the ports for this controller */
1782 for (i = 0; i < SCI_MAX_PORTS; i++) 1782 for (i = 0; i < SCI_MAX_PORTS; i++)
1783 scic_sds_port_construct(&ihost->ports[i].sci, i, scic); 1783 scic_sds_port_construct(&ihost->ports[i], i, scic);
1784 scic_sds_port_construct(&ihost->ports[i].sci, SCIC_SDS_DUMMY_PORT, scic); 1784 scic_sds_port_construct(&ihost->ports[i], SCIC_SDS_DUMMY_PORT, scic);
1785 1785
1786 /* Construct the phys for this controller */ 1786 /* Construct the phys for this controller */
1787 for (i = 0; i < SCI_MAX_PHYS; i++) { 1787 for (i = 0; i < SCI_MAX_PHYS; i++) {
1788 /* Add all the PHYs to the dummy port */ 1788 /* Add all the PHYs to the dummy port */
1789 scic_sds_phy_construct(&ihost->phys[i], 1789 scic_sds_phy_construct(&ihost->phys[i],
1790 &ihost->ports[SCI_MAX_PORTS].sci, i); 1790 &ihost->ports[SCI_MAX_PORTS], i);
1791 } 1791 }
1792 1792
1793 scic->invalid_phy_mask = 0; 1793 scic->invalid_phy_mask = 0;
@@ -2233,7 +2233,7 @@ static enum sci_status scic_controller_initialize(struct scic_sds_controller *sc
2233 } 2233 }
2234 2234
2235 for (i = 0; i < scic->logical_port_entries; i++) { 2235 for (i = 0; i < scic->logical_port_entries; i++) {
2236 result = scic_sds_port_initialize(&ihost->ports[i].sci, 2236 result = scic_sds_port_initialize(&ihost->ports[i],
2237 &scic->scu_registers->peg0.ptsg.port[i], 2237 &scic->scu_registers->peg0.ptsg.port[i],
2238 &scic->scu_registers->peg0.ptsg.protocol_engine, 2238 &scic->scu_registers->peg0.ptsg.protocol_engine,
2239 &scic->scu_registers->peg0.viit[i]); 2239 &scic->scu_registers->peg0.viit[i]);
@@ -2484,19 +2484,19 @@ int isci_host_init(struct isci_host *isci_host)
2484} 2484}
2485 2485
2486void scic_sds_controller_link_up(struct scic_sds_controller *scic, 2486void scic_sds_controller_link_up(struct scic_sds_controller *scic,
2487 struct scic_sds_port *port, struct isci_phy *iphy) 2487 struct isci_port *iport, struct isci_phy *iphy)
2488{ 2488{
2489 switch (scic->sm.current_state_id) { 2489 switch (scic->sm.current_state_id) {
2490 case SCIC_STARTING: 2490 case SCIC_STARTING:
2491 sci_del_timer(&scic->phy_timer); 2491 sci_del_timer(&scic->phy_timer);
2492 scic->phy_startup_timer_pending = false; 2492 scic->phy_startup_timer_pending = false;
2493 scic->port_agent.link_up_handler(scic, &scic->port_agent, 2493 scic->port_agent.link_up_handler(scic, &scic->port_agent,
2494 port, iphy); 2494 iport, iphy);
2495 scic_sds_controller_start_next_phy(scic); 2495 scic_sds_controller_start_next_phy(scic);
2496 break; 2496 break;
2497 case SCIC_READY: 2497 case SCIC_READY:
2498 scic->port_agent.link_up_handler(scic, &scic->port_agent, 2498 scic->port_agent.link_up_handler(scic, &scic->port_agent,
2499 port, iphy); 2499 iport, iphy);
2500 break; 2500 break;
2501 default: 2501 default:
2502 dev_dbg(scic_to_dev(scic), 2502 dev_dbg(scic_to_dev(scic),
@@ -2507,13 +2507,13 @@ void scic_sds_controller_link_up(struct scic_sds_controller *scic,
2507} 2507}
2508 2508
2509void scic_sds_controller_link_down(struct scic_sds_controller *scic, 2509void scic_sds_controller_link_down(struct scic_sds_controller *scic,
2510 struct scic_sds_port *port, struct isci_phy *iphy) 2510 struct isci_port *iport, struct isci_phy *iphy)
2511{ 2511{
2512 switch (scic->sm.current_state_id) { 2512 switch (scic->sm.current_state_id) {
2513 case SCIC_STARTING: 2513 case SCIC_STARTING:
2514 case SCIC_READY: 2514 case SCIC_READY:
2515 scic->port_agent.link_down_handler(scic, &scic->port_agent, 2515 scic->port_agent.link_down_handler(scic, &scic->port_agent,
2516 port, iphy); 2516 iport, iphy);
2517 break; 2517 break;
2518 default: 2518 default:
2519 dev_dbg(scic_to_dev(scic), 2519 dev_dbg(scic_to_dev(scic),