Searched refs:np_port (Results 1 – 2 of 2) sorted by relevance
1311 if (!rdev->np_port) in rswitch_etha_get_params()1314 err = of_get_phy_mode(rdev->np_port, &rdev->etha->phy_interface); in rswitch_etha_get_params()1318 err = of_property_read_u32(rdev->np_port, "max-speed", &max_speed); in rswitch_etha_get_params()1361 mdio_np = of_get_child_by_name(rdev->np_port, "mdio"); in rswitch_mii_register()1441 if (!rdev->np_port) in rswitch_phy_device_init()1444 phy = of_parse_phandle(rdev->np_port, "phy-handle", 0); in rswitch_phy_device_init()1940 rdev->np_port = rswitch_get_port_node(rdev); in rswitch_device_alloc()1941 rdev->disabled = !rdev->np_port; in rswitch_device_alloc()1942 err = of_get_ethdev_address(rdev->np_port, ndev); in rswitch_device_alloc()1969 of_node_put(rdev->np_port); in rswitch_device_alloc()[all …]
999 struct device_node *np_port; member