Searched refs:ndev_dn (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/drivers/net/ethernet/broadcom/asp2/ |
H A D | bcmasp_intf.c | 1214 struct device_node *ndev_dn, int i) in bcmasp_interface_create() argument 1221 if (of_property_read_u32(ndev_dn, "reg", &port)) { in bcmasp_interface_create() 1222 dev_warn(dev, "%s: invalid port number\n", ndev_dn->name); in bcmasp_interface_create() 1226 if (of_property_read_u32(ndev_dn, "brcm,channel", &ch)) { in bcmasp_interface_create() 1227 dev_warn(dev, "%s: invalid ch number\n", ndev_dn->name); in bcmasp_interface_create() 1233 dev_warn(dev, "%s: unable to alloc ndev\n", ndev_dn->name); in bcmasp_interface_create() 1242 intf->ndev_dn = ndev_dn; in bcmasp_interface_create() 1245 ret = of_get_phy_mode(ndev_dn, &intf->phy_interface); in bcmasp_interface_create() 1254 intf->phy_dn = of_parse_phandle(ndev_dn, "phy-handle", 0); in bcmasp_interface_create() 1255 if (!intf->phy_dn && of_phy_is_fixed_link(ndev_dn)) { in bcmasp_interface_create() [all …]
|
H A D | bcmasp.h | 321 struct device_node *ndev_dn; member 536 struct device_node *ndev_dn, int i);
|