if (!iport)
return;
- port_agent->phy_ready_mask |= (1 << sci_phy_get_index(iphy));
+ port_agent->phy_ready_mask |= (1 << iphy->phy_index);
sci_port_link_up(iport, iphy);
- if ((iport->active_phy_mask & (1 << sci_phy_get_index(iphy))))
- port_agent->phy_configured_mask |= (1 << sci_phy_get_index(iphy));
+ if ((iport->active_phy_mask & (1 << iphy->phy_index)))
+ port_agent->phy_configured_mask |= (1 << iphy->phy_index);
}
/**
* rebuilding the port with the phys that remain in the ready
* state.
*/
- port_agent->phy_ready_mask &=
- ~(1 << sci_phy_get_index(iphy));
- port_agent->phy_configured_mask &=
- ~(1 << sci_phy_get_index(iphy));
+ port_agent->phy_ready_mask &= ~(1 << iphy->phy_index);
+ port_agent->phy_configured_mask &= ~(1 << iphy->phy_index);
/*
* Check to see if there are more phys waiting to be
struct isci_port *iport,
struct isci_phy *iphy)
{
- port_agent->phy_ready_mask &= ~(1 << sci_phy_get_index(iphy));
+ port_agent->phy_ready_mask &= ~(1 << iphy->phy_index);
if (!iport)
return;