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()
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()
436 u8 phy_index; in sci_apc_agent_validate_phy_configuration() local
441 phy_index = 0; in sci_apc_agent_validate_phy_configuration()
443 while (phy_index < SCI_MAX_PHYS) { in sci_apc_agent_validate_phy_configuration()
444 port_index = phy_index; in sci_apc_agent_validate_phy_configuration()
447 sci_phy_get_sas_address(&ihost->phys[phy_index], in sci_apc_agent_validate_phy_configuration()
450 while (++phy_index < SCI_MAX_PHYS) { in sci_apc_agent_validate_phy_configuration()
451 sci_phy_get_sas_address(&ihost->phys[phy_index], in sci_apc_agent_validate_phy_configuration()
456 port_agent->phy_valid_port_range[phy_index].min_index = port_index; in sci_apc_agent_validate_phy_configuration()
457 port_agent->phy_valid_port_range[phy_index].max_index = phy_index; in sci_apc_agent_validate_phy_configuration()
459 port_agent->phy_valid_port_range[phy_index].min_index = phy_index; in sci_apc_agent_validate_phy_configuration()
460 port_agent->phy_valid_port_range[phy_index].max_index = phy_index; in sci_apc_agent_validate_phy_configuration()
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()
576 port_agent->phy_configured_mask |= (1 << iphy->phy_index); in sci_apc_agent_configure_ports()
610 u8 phy_index = iphy->phy_index; in sci_apc_agent_link_up() local
614 port_agent->phy_ready_mask |= 1 << phy_index; in sci_apc_agent_link_up()
619 port_agent->phy_ready_mask |= 1 << phy_index; in sci_apc_agent_link_up()
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()
654 port_agent->phy_configured_mask &= ~(1 << iphy->phy_index); in sci_apc_agent_link_down()