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()
397 struct isci_phy *iphy) in sci_mpc_agent_link_down() argument
407 port_agent->phy_ready_mask &= ~(1 << iphy->phy_index); in sci_mpc_agent_link_down()
408 port_agent->phy_configured_mask &= ~(1 << iphy->phy_index); in sci_mpc_agent_link_down()
425 sci_port_link_down(iport, iphy); in sci_mpc_agent_link_down()
484 struct isci_phy *iphy, in sci_apc_agent_configure_ports() argument
492 iport = sci_port_configuration_agent_find_port(ihost, iphy); in sci_apc_agent_configure_ports()
495 if (sci_port_is_valid_phy_assignment(iport, iphy->phy_index)) in sci_apc_agent_configure_ports()
506 for (port_index = port_agent->phy_valid_port_range[iphy->phy_index].min_index; in sci_apc_agent_configure_ports()
507 port_index <= port_agent->phy_valid_port_range[iphy->phy_index].max_index; in sci_apc_agent_configure_ports()
513 if (sci_port_is_valid_phy_assignment(iport, iphy->phy_index)) { in sci_apc_agent_configure_ports()
518 if (iport->active_phy_mask > (1 << iphy->phy_index)) { in sci_apc_agent_configure_ports()
527 if (iport->physical_port_index == iphy->phy_index) { in sci_apc_agent_configure_ports()
573 status = sci_port_add_phy(iport, iphy); in sci_apc_agent_configure_ports()
576 port_agent->phy_configured_mask |= (1 << iphy->phy_index); in sci_apc_agent_configure_ports()
608 struct isci_phy *iphy) in sci_apc_agent_link_up() argument
610 u8 phy_index = iphy->phy_index; in sci_apc_agent_link_up()
620 sci_port_link_up(iport, iphy); in sci_apc_agent_link_up()
642 struct isci_phy *iphy) in sci_apc_agent_link_down() argument
644 port_agent->phy_ready_mask &= ~(1 << iphy->phy_index); in sci_apc_agent_link_down()
648 if (port_agent->phy_configured_mask & (1 << iphy->phy_index)) { in sci_apc_agent_link_down()
651 status = sci_port_remove_phy(iport, iphy); in sci_apc_agent_link_down()
654 port_agent->phy_configured_mask &= ~(1 << iphy->phy_index); in sci_apc_agent_link_down()