Home
last modified time | relevance | path

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

/net/dsa/
Dslave.c339 struct net_device *slave_dev; in dsa_slave_create() local
343 slave_dev = alloc_netdev(sizeof(struct dsa_slave_priv), in dsa_slave_create()
345 if (slave_dev == NULL) in dsa_slave_create()
346 return slave_dev; in dsa_slave_create()
348 slave_dev->features = master->vlan_features; in dsa_slave_create()
349 SET_ETHTOOL_OPS(slave_dev, &dsa_slave_ethtool_ops); in dsa_slave_create()
350 memcpy(slave_dev->dev_addr, master->dev_addr, ETH_ALEN); in dsa_slave_create()
351 slave_dev->tx_queue_len = 0; in dsa_slave_create()
356 slave_dev->netdev_ops = &dsa_netdev_ops; in dsa_slave_create()
361 slave_dev->netdev_ops = &edsa_netdev_ops; in dsa_slave_create()
[all …]
Ddsa.c183 struct net_device *slave_dev; in dsa_switch_setup() local
188 slave_dev = dsa_slave_create(ds, parent, i, pd->port_names[i]); in dsa_switch_setup()
189 if (slave_dev == NULL) { in dsa_switch_setup()
197 ds->ports[i] = slave_dev; in dsa_switch_setup()
/net/bridge/
Dbr_device.c278 static int br_add_slave(struct net_device *dev, struct net_device *slave_dev) in br_add_slave() argument
283 return br_add_if(br, slave_dev); in br_add_slave()
286 static int br_del_slave(struct net_device *dev, struct net_device *slave_dev) in br_del_slave() argument
290 return br_del_if(br, slave_dev); in br_del_slave()
/net/batman-adv/
Dsoft-interface.c521 struct net_device *slave_dev) in batadv_softif_slave_add() argument
526 hard_iface = batadv_hardif_get_by_netdev(slave_dev); in batadv_softif_slave_add()
546 struct net_device *slave_dev) in batadv_softif_slave_del() argument
551 hard_iface = batadv_hardif_get_by_netdev(slave_dev); in batadv_softif_slave_del()