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 !=
469 if (!iport->phy_table[iphy->phy_index] &&
471 sci_port_is_valid_phy_assignment(iport, iphy->phy_index)) {
476 iport->phy_table[iphy->phy_index] = iphy;
488 if (iport->phy_table[iphy->phy_index] == iphy &&
494 iport->phy_table[iphy->phy_index] = NULL;
526 sas->low += iphy->phy_index;
620 iport->enabled_phy_mask |= 1 << iphy->phy_index;
632 iport->active_phy_mask |= 1 << iphy->phy_index;
645 iport->active_phy_mask &= ~(1 << iphy->phy_index);
646 iport->enabled_phy_mask &= ~(1 << iphy->phy_index);
648 iport->last_active_phy = iphy->phy_index;
657 writel(iphy->phy_index,
658 &iport->port_pe_configuration_register[iphy->phy_index]);
673 if ((ihost->invalid_phy_mask & (1 << iphy->phy_index)) == 0) {
674 ihost->invalid_phy_mask |= 1 << iphy->phy_index;
767 struct isci_port *dst_port = &(ihost->ports[iphy->phy_index]);
768 writel(iphy->phy_index,
769 &dst_port->port_pe_configuration_register[iphy->phy_index]);
978 iport->phy_table[index]->phy_index]);
1154 u32 phy_index;
1164 for (phy_index = 0; phy_index < SCI_MAX_PHYS && !iphy; phy_index++) {
1165 iphy = iport->phy_table[phy_index];
1556 int phy_index;
1567 for (phy_index = 0; phy_index < SCI_MAX_PHYS; phy_index++) {
1568 if ((phy_mask >> phy_index) & 1) {
1570 &iport->phy_table[phy_index]
1764 if (iport->active_phy_mask & 1 << iphy->phy_index)