Lines Matching defs:iphy
107 * @iphy: The phy object to match.
117 struct isci_phy *iphy)
130 sci_phy_get_sas_address(iphy, &phy_sas_address);
131 sci_phy_get_attached_sas_address(iphy, &phy_attached_device_address);
344 struct isci_phy *iphy = &ihost->phys[index];
348 phy_get_non_dummy_port(iphy),
349 iphy);
360 struct isci_phy *iphy)
369 port_agent->phy_ready_mask |= (1 << iphy->phy_index);
370 sci_port_link_up(iport, iphy);
371 if ((iport->active_phy_mask & (1 << iphy->phy_index)))
372 port_agent->phy_configured_mask |= (1 << iphy->phy_index);
385 * @iphy: This is the phy object which has gone link down.
397 struct isci_phy *iphy)
407 port_agent->phy_ready_mask &= ~(1 << iphy->phy_index);
408 port_agent->phy_configured_mask &= ~(1 << iphy->phy_index);
425 sci_port_link_down(iport, iphy);
484 struct isci_phy *iphy,
492 iport = sci_port_configuration_agent_find_port(ihost, iphy);
495 if (sci_port_is_valid_phy_assignment(iport, iphy->phy_index))
506 for (port_index = port_agent->phy_valid_port_range[iphy->phy_index].min_index;
507 port_index <= port_agent->phy_valid_port_range[iphy->phy_index].max_index;
513 if (sci_port_is_valid_phy_assignment(iport, iphy->phy_index)) {
518 if (iport->active_phy_mask > (1 << iphy->phy_index)) {
527 if (iport->physical_port_index == iphy->phy_index) {
573 status = sci_port_add_phy(iport, iphy);
576 port_agent->phy_configured_mask |= (1 << iphy->phy_index);
599 * @iphy: This is the phy object which has gone link up.
608 struct isci_phy *iphy)
610 u8 phy_index = iphy->phy_index;
620 sci_port_link_up(iport, iphy);
631 * @iphy: This is the phy object which has gone link down.
642 struct isci_phy *iphy)
644 port_agent->phy_ready_mask &= ~(1 << iphy->phy_index);
648 if (port_agent->phy_configured_mask & (1 << iphy->phy_index)) {
651 status = sci_port_remove_phy(iport, iphy);
654 port_agent->phy_configured_mask &= ~(1 << iphy->phy_index);