Lines Matching refs:iphy
117 struct isci_phy *iphy) in sci_port_configuration_agent_find_port() argument
130 sci_phy_get_sas_address(iphy, &phy_sas_address); in sci_port_configuration_agent_find_port()
131 sci_phy_get_attached_sas_address(iphy, &phy_attached_device_address); in sci_port_configuration_agent_find_port()
344 struct isci_phy *iphy = &ihost->phys[index]; in mpc_agent_timeout() local
348 phy_get_non_dummy_port(iphy), in mpc_agent_timeout()
349 iphy); in mpc_agent_timeout()
360 struct isci_phy *iphy) in sci_mpc_agent_link_up() argument
369 port_agent->phy_ready_mask |= (1 << iphy->phy_index); in sci_mpc_agent_link_up()
370 sci_port_link_up(iport, iphy); in sci_mpc_agent_link_up()
371 if ((iport->active_phy_mask & (1 << iphy->phy_index))) in sci_mpc_agent_link_up()
372 port_agent->phy_configured_mask |= (1 << iphy->phy_index); in sci_mpc_agent_link_up()
396 struct isci_phy *iphy) in sci_mpc_agent_link_down() argument
406 port_agent->phy_ready_mask &= ~(1 << iphy->phy_index); in sci_mpc_agent_link_down()
407 port_agent->phy_configured_mask &= ~(1 << iphy->phy_index); in sci_mpc_agent_link_down()
424 sci_port_link_down(iport, iphy); in sci_mpc_agent_link_down()
483 struct isci_phy *iphy, in sci_apc_agent_configure_ports() argument
491 iport = sci_port_configuration_agent_find_port(ihost, iphy); in sci_apc_agent_configure_ports()
494 if (sci_port_is_valid_phy_assignment(iport, iphy->phy_index)) in sci_apc_agent_configure_ports()
505 for (port_index = port_agent->phy_valid_port_range[iphy->phy_index].min_index; in sci_apc_agent_configure_ports()
506 port_index <= port_agent->phy_valid_port_range[iphy->phy_index].max_index; in sci_apc_agent_configure_ports()
512 if (sci_port_is_valid_phy_assignment(iport, iphy->phy_index)) { in sci_apc_agent_configure_ports()
517 if (iport->active_phy_mask > (1 << iphy->phy_index)) { in sci_apc_agent_configure_ports()
526 if (iport->physical_port_index == iphy->phy_index) { in sci_apc_agent_configure_ports()
572 status = sci_port_add_phy(iport, iphy); in sci_apc_agent_configure_ports()
575 port_agent->phy_configured_mask |= (1 << iphy->phy_index); in sci_apc_agent_configure_ports()
606 struct isci_phy *iphy) in sci_apc_agent_link_up() argument
608 u8 phy_index = iphy->phy_index; in sci_apc_agent_link_up()
618 sci_port_link_up(iport, iphy); in sci_apc_agent_link_up()
639 struct isci_phy *iphy) in sci_apc_agent_link_down() argument
641 port_agent->phy_ready_mask &= ~(1 << iphy->phy_index); in sci_apc_agent_link_down()
645 if (port_agent->phy_configured_mask & (1 << iphy->phy_index)) { in sci_apc_agent_link_down()
648 status = sci_port_remove_phy(iport, iphy); in sci_apc_agent_link_down()
651 port_agent->phy_configured_mask &= ~(1 << iphy->phy_index); in sci_apc_agent_link_down()