Lines Matching refs:phy_mask
695 unsigned phy_mask, int devad, phy_interface_t interface) in create_phy_by_mask() argument
700 while (phy_mask) { in create_phy_by_mask()
701 int addr = ffs(phy_mask) - 1; in create_phy_by_mask()
709 phy_mask &= ~(1 << addr); in create_phy_by_mask()
715 unsigned phy_mask, phy_interface_t interface) in search_for_existing_phy() argument
718 while (phy_mask) { in search_for_existing_phy()
719 int addr = ffs(phy_mask) - 1; in search_for_existing_phy()
724 phy_mask &= ~(1 << addr); in search_for_existing_phy()
730 unsigned phy_mask, phy_interface_t interface) in get_phy_device_by_mask() argument
735 phydev = search_for_existing_phy(bus, phy_mask, interface); in get_phy_device_by_mask()
741 phydev = create_phy_by_mask(bus, phy_mask, in get_phy_device_by_mask()
750 while (phy_mask) { in get_phy_device_by_mask()
751 int addr = ffs(phy_mask) - 1; in get_phy_device_by_mask()
753 phy_mask &= ~(1 << addr); in get_phy_device_by_mask()
840 struct phy_device *phy_find_by_mask(struct mii_dev *bus, unsigned phy_mask, in phy_find_by_mask() argument
851 return get_phy_device_by_mask(bus, phy_mask, interface); in phy_find_by_mask()