Lines Matching refs:phy_index

363 bool sci_port_is_valid_phy_assignment(struct isci_port *iport, u32 phy_index)  in sci_port_is_valid_phy_assignment()  argument
372 if ((iport->physical_port_index == 1) && (phy_index != 1)) in sci_port_is_valid_phy_assignment()
375 if (iport->physical_port_index == 3 && phy_index != 3) in sci_port_is_valid_phy_assignment()
379 (phy_index == 0 || phy_index == 1)) in sci_port_is_valid_phy_assignment()
383 if (iport->phy_table[index] && index != phy_index) in sci_port_is_valid_phy_assignment()
390 user->phys[phy_index].max_speed_generation != in sci_port_is_valid_phy_assignment()
469 if (!iport->phy_table[iphy->phy_index] && in sci_port_set_phy()
471 sci_port_is_valid_phy_assignment(iport, iphy->phy_index)) { in sci_port_set_phy()
476 iport->phy_table[iphy->phy_index] = iphy; in sci_port_set_phy()
488 if (iport->phy_table[iphy->phy_index] == iphy && in sci_port_clear_phy()
494 iport->phy_table[iphy->phy_index] = NULL; in sci_port_clear_phy()
526 sas->low += iphy->phy_index; in sci_port_get_attached_sas_address()
620 iport->enabled_phy_mask |= 1 << iphy->phy_index; in sci_port_resume_phy()
632 iport->active_phy_mask |= 1 << iphy->phy_index; in sci_port_activate_phy()
645 iport->active_phy_mask &= ~(1 << iphy->phy_index); in sci_port_deactivate_phy()
646 iport->enabled_phy_mask &= ~(1 << iphy->phy_index); in sci_port_deactivate_phy()
648 iport->last_active_phy = iphy->phy_index; in sci_port_deactivate_phy()
657 writel(iphy->phy_index, in sci_port_deactivate_phy()
658 &iport->port_pe_configuration_register[iphy->phy_index]); in sci_port_deactivate_phy()
673 if ((ihost->invalid_phy_mask & (1 << iphy->phy_index)) == 0) { in sci_port_invalid_link_up()
674 ihost->invalid_phy_mask |= 1 << iphy->phy_index; in sci_port_invalid_link_up()
767 struct isci_port *dst_port = &(ihost->ports[iphy->phy_index]); in sci_port_link_detected()
768 writel(iphy->phy_index, in sci_port_link_detected()
769 &dst_port->port_pe_configuration_register[iphy->phy_index]); in sci_port_link_detected()
978 iport->phy_table[index]->phy_index]); in sci_port_ready_substate_operational_enter()
1154 u32 phy_index; in sci_port_hard_reset() local
1164 for (phy_index = 0; phy_index < SCI_MAX_PHYS && !iphy; phy_index++) { in sci_port_hard_reset()
1165 iphy = iport->phy_table[phy_index]; in sci_port_hard_reset()
1556 int phy_index; in sci_port_set_hang_detection_timeout() local
1567 for (phy_index = 0; phy_index < SCI_MAX_PHYS; phy_index++) { in sci_port_set_hang_detection_timeout()
1568 if ((phy_mask >> phy_index) & 1) { in sci_port_set_hang_detection_timeout()
1570 &iport->phy_table[phy_index] in sci_port_set_hang_detection_timeout()
1764 if (iport->active_phy_mask & 1 << iphy->phy_index) in isci_port_formed()