Lines Matching refs:phy_index

363 bool sci_port_is_valid_phy_assignment(struct isci_port *iport, u32 phy_index)
372 if ((iport->physical_port_index == 1) && (phy_index != 1))
375 if (iport->physical_port_index == 3 && phy_index != 3)
379 (phy_index == 0 || phy_index == 1))
383 if (iport->phy_table[index] && index != phy_index)
390 user->phys[phy_index].max_speed_generation !=
468 if (!iport->phy_table[iphy->phy_index] &&
470 sci_port_is_valid_phy_assignment(iport, iphy->phy_index)) {
475 iport->phy_table[iphy->phy_index] = iphy;
487 if (iport->phy_table[iphy->phy_index] == iphy &&
493 iport->phy_table[iphy->phy_index] = NULL;
525 sas->low += iphy->phy_index;
619 iport->enabled_phy_mask |= 1 << iphy->phy_index;
631 iport->active_phy_mask |= 1 << iphy->phy_index;
644 iport->active_phy_mask &= ~(1 << iphy->phy_index);
645 iport->enabled_phy_mask &= ~(1 << iphy->phy_index);
647 iport->last_active_phy = iphy->phy_index;
656 writel(iphy->phy_index,
657 &iport->port_pe_configuration_register[iphy->phy_index]);
672 if ((ihost->invalid_phy_mask & (1 << iphy->phy_index)) == 0) {
673 ihost->invalid_phy_mask |= 1 << iphy->phy_index;
764 struct isci_port *dst_port = &(ihost->ports[iphy->phy_index]);
765 writel(iphy->phy_index,
766 &dst_port->port_pe_configuration_register[iphy->phy_index]);
976 iport->phy_table[index]->phy_index]);
1152 u32 phy_index;
1162 for (phy_index = 0; phy_index < SCI_MAX_PHYS && !iphy; phy_index++) {
1163 iphy = iport->phy_table[phy_index];
1554 int phy_index;
1565 for (phy_index = 0; phy_index < SCI_MAX_PHYS; phy_index++) {
1566 if ((phy_mask >> phy_index) & 1) {
1568 &iport->phy_table[phy_index]
1762 if (iport->active_phy_mask & 1 << iphy->phy_index)