Home
last modified time | relevance | path

Searched refs:slave_dev (Results 1 – 6 of 6) sorted by relevance

/net/core/
Dfailover.c46 static int failover_slave_register(struct net_device *slave_dev) in failover_slave_register() argument
53 if (slave_dev->type != ARPHRD_ETHER) in failover_slave_register()
58 failover_dev = failover_get_bymac(slave_dev->perm_addr, &fops); in failover_slave_register()
63 fops->slave_pre_register(slave_dev, failover_dev)) in failover_slave_register()
66 err = netdev_rx_handler_register(slave_dev, fops->slave_handle_frame, in failover_slave_register()
69 netdev_err(slave_dev, "can not register failover rx handler (err = %d)\n", in failover_slave_register()
75 err = netdev_master_upper_dev_link(slave_dev, failover_dev, NULL, in failover_slave_register()
78 netdev_err(slave_dev, "can not set failover device %s (err = %d)\n", in failover_slave_register()
83 slave_dev->priv_flags |= (IFF_FAILOVER_SLAVE | IFF_LIVE_RENAME_OK); in failover_slave_register()
86 !fops->slave_register(slave_dev, failover_dev)) in failover_slave_register()
[all …]
/net/dsa/
Dslave.c1277 static int dsa_slave_phy_connect(struct net_device *slave_dev, int addr) in dsa_slave_phy_connect() argument
1279 struct dsa_port *dp = dsa_slave_to_port(slave_dev); in dsa_slave_phy_connect()
1282 slave_dev->phydev = mdiobus_get_phy(ds->slave_mii_bus, addr); in dsa_slave_phy_connect()
1283 if (!slave_dev->phydev) { in dsa_slave_phy_connect()
1284 netdev_err(slave_dev, "no phy at %d\n", addr); in dsa_slave_phy_connect()
1288 return phylink_connect_phy(dp->pl, slave_dev->phydev); in dsa_slave_phy_connect()
1291 static int dsa_slave_phy_setup(struct net_device *slave_dev) in dsa_slave_phy_setup() argument
1293 struct dsa_port *dp = dsa_slave_to_port(slave_dev); in dsa_slave_phy_setup()
1303 dp->pl_config.dev = &slave_dev->dev; in dsa_slave_phy_setup()
1309 netdev_err(slave_dev, in dsa_slave_phy_setup()
[all …]
Ddsa_priv.h191 void dsa_slave_destroy(struct net_device *slave_dev);
192 int dsa_slave_suspend(struct net_device *slave_dev);
193 int dsa_slave_resume(struct net_device *slave_dev);
/net/bridge/
Dbr_device.c364 static int br_add_slave(struct net_device *dev, struct net_device *slave_dev, in br_add_slave() argument
370 return br_add_if(br, slave_dev, extack); in br_add_slave()
373 static int br_del_slave(struct net_device *dev, struct net_device *slave_dev) in br_del_slave() argument
377 return br_del_if(br, slave_dev); in br_del_slave()
/net/batman-adv/
Dsysfs.c378 struct net_device *slave_dev, in batadv_store_uint_attr() argument
409 if (slave_dev) in batadv_store_uint_attr()
410 snprintf(ifname, sizeof(ifname), "%s: ", slave_dev->name); in batadv_store_uint_attr()
425 struct net_device *slave_dev) in __batadv_store_uint_attr() argument
429 ret = batadv_store_uint_attr(buff, count, net_dev, slave_dev, in __batadv_store_uint_attr()
Dsoft-interface.c854 struct net_device *slave_dev, in batadv_softif_slave_add() argument
861 hard_iface = batadv_hardif_get_by_netdev(slave_dev); in batadv_softif_slave_add()
881 struct net_device *slave_dev) in batadv_softif_slave_del() argument
886 hard_iface = batadv_hardif_get_by_netdev(slave_dev); in batadv_softif_slave_del()