Lines Matching refs:phy_index
250 u8 phy_index; in sci_mpc_agent_validate_phy_configuration() local
269 for (phy_index = 0; phy_index < SCI_MAX_PHYS; phy_index++) { in sci_mpc_agent_validate_phy_configuration()
270 if ((phy_mask & (1 << phy_index)) == 0) in sci_mpc_agent_validate_phy_configuration()
272 sci_phy_get_sas_address(&ihost->phys[phy_index], in sci_mpc_agent_validate_phy_configuration()
279 port_agent->phy_valid_port_range[phy_index].min_index = port_index; in sci_mpc_agent_validate_phy_configuration()
280 port_agent->phy_valid_port_range[phy_index].max_index = phy_index; in sci_mpc_agent_validate_phy_configuration()
282 if (phy_index != port_index) { in sci_mpc_agent_validate_phy_configuration()
294 for (; phy_index < SCI_MAX_PHYS; phy_index++) { in sci_mpc_agent_validate_phy_configuration()
295 if ((phy_mask & (1 << phy_index)) == 0) in sci_mpc_agent_validate_phy_configuration()
297 sci_phy_get_sas_address(&ihost->phys[phy_index], in sci_mpc_agent_validate_phy_configuration()
307 port_agent->phy_valid_port_range[phy_index].min_index = port_index; in sci_mpc_agent_validate_phy_configuration()
308 port_agent->phy_valid_port_range[phy_index].max_index = phy_index; in sci_mpc_agent_validate_phy_configuration()
311 &ihost->phys[phy_index]); in sci_mpc_agent_validate_phy_configuration()
313 assigned_phy_mask |= (1 << phy_index); in sci_mpc_agent_validate_phy_configuration()
369 port_agent->phy_ready_mask |= (1 << iphy->phy_index); 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()
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()
435 u8 phy_index; in sci_apc_agent_validate_phy_configuration() local
440 phy_index = 0; in sci_apc_agent_validate_phy_configuration()
442 while (phy_index < SCI_MAX_PHYS) { in sci_apc_agent_validate_phy_configuration()
443 port_index = phy_index; in sci_apc_agent_validate_phy_configuration()
446 sci_phy_get_sas_address(&ihost->phys[phy_index], in sci_apc_agent_validate_phy_configuration()
449 while (++phy_index < SCI_MAX_PHYS) { in sci_apc_agent_validate_phy_configuration()
450 sci_phy_get_sas_address(&ihost->phys[phy_index], in sci_apc_agent_validate_phy_configuration()
455 port_agent->phy_valid_port_range[phy_index].min_index = port_index; in sci_apc_agent_validate_phy_configuration()
456 port_agent->phy_valid_port_range[phy_index].max_index = phy_index; in sci_apc_agent_validate_phy_configuration()
458 port_agent->phy_valid_port_range[phy_index].min_index = phy_index; in sci_apc_agent_validate_phy_configuration()
459 port_agent->phy_valid_port_range[phy_index].max_index = phy_index; in sci_apc_agent_validate_phy_configuration()
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()
575 port_agent->phy_configured_mask |= (1 << iphy->phy_index); in sci_apc_agent_configure_ports()
608 u8 phy_index = iphy->phy_index; in sci_apc_agent_link_up() local
612 port_agent->phy_ready_mask |= 1 << phy_index; in sci_apc_agent_link_up()
617 port_agent->phy_ready_mask |= 1 << phy_index; in sci_apc_agent_link_up()
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()
651 port_agent->phy_configured_mask &= ~(1 << iphy->phy_index); in sci_apc_agent_link_down()