Searched refs:np_port (Results 1 – 2 of 2) sorted by relevance
1176 if (!rdev->np_port) in rswitch_etha_get_params()1179 err = of_get_phy_mode(rdev->np_port, &rdev->etha->phy_interface); in rswitch_etha_get_params()1183 err = of_property_read_u32(rdev->np_port, "max-speed", &max_speed); in rswitch_etha_get_params()1224 mdio_np = of_get_child_by_name(rdev->np_port, "mdio"); in rswitch_mii_register()1304 if (!rdev->np_port) in rswitch_phy_device_init()1307 phy = of_parse_phandle(rdev->np_port, "phy-handle", 0); in rswitch_phy_device_init()1378 rdev->serdes = devm_of_phy_get(&rdev->priv->pdev->dev, rdev->np_port, NULL); in rswitch_ether_port_init_one()1741 rdev->np_port = rswitch_get_port_node(rdev); in rswitch_device_alloc()1742 rdev->disabled = !rdev->np_port; in rswitch_device_alloc()1743 err = of_get_ethdev_address(rdev->np_port, ndev); in rswitch_device_alloc()[all …]
989 struct device_node *np_port; member