Lines Matching refs:phy_index
362 bool sci_port_is_valid_phy_assignment(struct isci_port *iport, u32 phy_index) in sci_port_is_valid_phy_assignment() argument
371 if ((iport->physical_port_index == 1) && (phy_index != 1)) in sci_port_is_valid_phy_assignment()
374 if (iport->physical_port_index == 3 && phy_index != 3) in sci_port_is_valid_phy_assignment()
378 (phy_index == 0 || phy_index == 1)) in sci_port_is_valid_phy_assignment()
382 if (iport->phy_table[index] && index != phy_index) in sci_port_is_valid_phy_assignment()
389 user->phys[phy_index].max_speed_generation != in sci_port_is_valid_phy_assignment()
467 if (!iport->phy_table[iphy->phy_index] && in sci_port_set_phy()
469 sci_port_is_valid_phy_assignment(iport, iphy->phy_index)) { in sci_port_set_phy()
474 iport->phy_table[iphy->phy_index] = iphy; in sci_port_set_phy()
486 if (iport->phy_table[iphy->phy_index] == iphy && in sci_port_clear_phy()
492 iport->phy_table[iphy->phy_index] = NULL; in sci_port_clear_phy()
524 sas->low += iphy->phy_index; in sci_port_get_attached_sas_address()
618 iport->enabled_phy_mask |= 1 << iphy->phy_index; in sci_port_resume_phy()
630 iport->active_phy_mask |= 1 << iphy->phy_index; in sci_port_activate_phy()
643 iport->active_phy_mask &= ~(1 << iphy->phy_index); in sci_port_deactivate_phy()
644 iport->enabled_phy_mask &= ~(1 << iphy->phy_index); in sci_port_deactivate_phy()
646 iport->last_active_phy = iphy->phy_index; in sci_port_deactivate_phy()
655 writel(iphy->phy_index, in sci_port_deactivate_phy()
656 &iport->port_pe_configuration_register[iphy->phy_index]); in sci_port_deactivate_phy()
671 if ((ihost->invalid_phy_mask & (1 << iphy->phy_index)) == 0) { in sci_port_invalid_link_up()
672 ihost->invalid_phy_mask |= 1 << iphy->phy_index; in sci_port_invalid_link_up()
763 struct isci_port *dst_port = &(ihost->ports[iphy->phy_index]); in sci_port_link_detected()
764 writel(iphy->phy_index, in sci_port_link_detected()
765 &dst_port->port_pe_configuration_register[iphy->phy_index]); in sci_port_link_detected()
975 iport->phy_table[index]->phy_index]); in sci_port_ready_substate_operational_enter()
1151 u32 phy_index; in sci_port_hard_reset() local
1161 for (phy_index = 0; phy_index < SCI_MAX_PHYS && !iphy; phy_index++) { in sci_port_hard_reset()
1162 iphy = iport->phy_table[phy_index]; in sci_port_hard_reset()
1553 int phy_index; in sci_port_set_hang_detection_timeout() local
1564 for (phy_index = 0; phy_index < SCI_MAX_PHYS; phy_index++) { in sci_port_set_hang_detection_timeout()
1565 if ((phy_mask >> phy_index) & 1) { in sci_port_set_hang_detection_timeout()
1567 &iport->phy_table[phy_index] in sci_port_set_hang_detection_timeout()
1761 if (iport->active_phy_mask & 1 << iphy->phy_index) in isci_port_formed()