Searched refs:np_port (Results 1 – 2 of 2) sorted by relevance
1264 if (!rdev->np_port) in rswitch_etha_get_params()1267 err = of_get_phy_mode(rdev->np_port, &rdev->etha->phy_interface); in rswitch_etha_get_params()1271 err = of_property_read_u32(rdev->np_port, "max-speed", &max_speed); in rswitch_etha_get_params()1312 mdio_np = of_get_child_by_name(rdev->np_port, "mdio"); in rswitch_mii_register()1392 if (!rdev->np_port) in rswitch_phy_device_init()1395 phy = of_parse_phandle(rdev->np_port, "phy-handle", 0); in rswitch_phy_device_init()1467 rdev->serdes = devm_of_phy_get(&rdev->priv->pdev->dev, rdev->np_port, NULL); in rswitch_ether_port_init_one()1889 rdev->np_port = rswitch_get_port_node(rdev); in rswitch_device_alloc()1890 rdev->disabled = !rdev->np_port; in rswitch_device_alloc()1891 err = of_get_ethdev_address(rdev->np_port, ndev); in rswitch_device_alloc()[all …]
1012 struct device_node *np_port; member