Searched refs:np_port (Results 1 – 2 of 2) sorted by relevance
1336 if (!rdev->np_port) in rswitch_etha_get_params()1339 err = of_get_phy_mode(rdev->np_port, &rdev->etha->phy_interface); in rswitch_etha_get_params()1343 err = of_property_read_u32(rdev->np_port, "max-speed", &max_speed); in rswitch_etha_get_params()1386 mdio_np = of_get_child_by_name(rdev->np_port, "mdio"); in rswitch_mii_register()1466 if (!rdev->np_port) in rswitch_phy_device_init()1469 phy = of_parse_phandle(rdev->np_port, "phy-handle", 0); in rswitch_phy_device_init()1541 rdev->serdes = devm_of_phy_get(&rdev->priv->pdev->dev, rdev->np_port, NULL); in rswitch_ether_port_init_one()1967 rdev->np_port = rswitch_get_port_node(rdev); in rswitch_device_alloc()1968 rdev->disabled = !rdev->np_port; in rswitch_device_alloc()1969 err = of_get_ethdev_address(rdev->np_port, ndev); in rswitch_device_alloc()[all …]
1026 struct device_node *np_port; member