Home
last modified time | relevance | path

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

/net/dsa/
Dslave.c332 struct net_device *slave_dev; in dsa_slave_create() local
336 slave_dev = alloc_netdev(sizeof(struct dsa_slave_priv), in dsa_slave_create()
338 if (slave_dev == NULL) in dsa_slave_create()
339 return slave_dev; in dsa_slave_create()
341 slave_dev->features = master->vlan_features; in dsa_slave_create()
342 SET_ETHTOOL_OPS(slave_dev, &dsa_slave_ethtool_ops); in dsa_slave_create()
343 memcpy(slave_dev->dev_addr, master->dev_addr, ETH_ALEN); in dsa_slave_create()
344 slave_dev->tx_queue_len = 0; in dsa_slave_create()
349 slave_dev->netdev_ops = &dsa_netdev_ops; in dsa_slave_create()
354 slave_dev->netdev_ops = &edsa_netdev_ops; in dsa_slave_create()
[all …]
Ddsa.c174 struct net_device *slave_dev; in dsa_switch_setup() local
179 slave_dev = dsa_slave_create(ds, parent, i, pd->port_names[i]); in dsa_switch_setup()
180 if (slave_dev == NULL) { in dsa_switch_setup()
187 ds->ports[i] = slave_dev; in dsa_switch_setup()