Home
last modified time | relevance | path

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

/linux-3.4.99/drivers/net/
Deql.c342 struct net_device *slave_dev = slave->dev; in eql_slave_xmit() local
344 skb->dev = slave_dev; in eql_slave_xmit()
410 struct net_device *slave_dev; in eql_enslave() local
416 slave_dev = dev_get_by_name(&init_net, srq.slave_name); in eql_enslave()
417 if (slave_dev) { in eql_enslave()
420 if (!eql_is_master(slave_dev) && in eql_enslave()
421 !eql_is_slave(slave_dev)) { in eql_enslave()
427 dev_put(slave_dev); in eql_enslave()
432 s->dev = slave_dev; in eql_enslave()
440 dev_put(slave_dev); in eql_enslave()
[all …]
/linux-3.4.99/drivers/net/bonding/
Dbond_main.c393 struct net_device *slave_dev) in bond_dev_queue_xmit() argument
395 skb->dev = slave_dev; in bond_dev_queue_xmit()
401 if (unlikely(netpoll_tx_running(slave_dev))) in bond_dev_queue_xmit()
402 bond_netpoll_send_skb(bond_get_slave_by_dev(bond, slave_dev), skb); in bond_dev_queue_xmit()
485 static void bond_add_vlans_on_slave(struct bonding *bond, struct net_device *slave_dev) in bond_add_vlans_on_slave() argument
491 res = vlan_vid_add(slave_dev, vlan->vlan_id); in bond_add_vlans_on_slave()
495 slave_dev->name); in bond_add_vlans_on_slave()
500 struct net_device *slave_dev) in bond_del_vlans_from_slave() argument
507 vlan_vid_del(slave_dev, vlan->vlan_id); in bond_del_vlans_from_slave()
557 struct net_device *slave_dev = slave->dev; in bond_update_speed_duplex() local
[all …]
Dbonding.h267 struct net_device *slave_dev) in bond_get_slave_by_dev() argument
273 if (slave->dev == slave_dev) { in bond_get_slave_by_dev()
399 int bond_dev_queue_xmit(struct bonding *bond, struct sk_buff *skb, struct net_device *slave_dev);
406 int bond_enslave(struct net_device *bond_dev, struct net_device *slave_dev);
407 int bond_release(struct net_device *bond_dev, struct net_device *slave_dev);
/linux-3.4.99/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.c173 struct net_device *slave_dev; in dsa_switch_setup() local
178 slave_dev = dsa_slave_create(ds, parent, i, pd->port_names[i]); in dsa_switch_setup()
179 if (slave_dev == NULL) { in dsa_switch_setup()
187 ds->ports[i] = slave_dev; in dsa_switch_setup()
/linux-3.4.99/drivers/net/can/sja1000/
Dkvaser_pci.c56 struct net_device *slave_dev[MAX_NO_OF_CHANNELS-1]; member
193 if (board->slave_dev[i]) { in kvaser_pci_del_chan()
195 board->slave_dev[i]->name); in kvaser_pci_del_chan()
196 unregister_sja1000dev(board->slave_dev[i]); in kvaser_pci_del_chan()
197 free_sja1000dev(board->slave_dev[i]); in kvaser_pci_del_chan()
250 master_board->slave_dev[channel - 1] = dev; in kvaser_pci_add_chan()
/linux-3.4.99/net/bridge/
Dbr_device.c282 static int br_add_slave(struct net_device *dev, struct net_device *slave_dev) in br_add_slave() argument
287 return br_add_if(br, slave_dev); in br_add_slave()
290 static int br_del_slave(struct net_device *dev, struct net_device *slave_dev) in br_del_slave() argument
294 return br_del_if(br, slave_dev); in br_del_slave()
/linux-3.4.99/drivers/net/wan/
Dsbni.c1304 struct net_device *slave_dev; in sbni_ioctl() local
1359 slave_dev = dev_get_by_name(&init_net, slave_name ); in sbni_ioctl()
1360 if( !slave_dev || !(slave_dev->flags & IFF_UP) ) { in sbni_ioctl()
1366 return enslave( dev, slave_dev ); in sbni_ioctl()
1387 enslave( struct net_device *dev, struct net_device *slave_dev ) in enslave() argument
1390 struct net_local *snl = netdev_priv(slave_dev); in enslave()
1403 nl->link = slave_dev; in enslave()
1409 memset( &slave_dev->stats, 0, sizeof(struct net_device_stats) ); in enslave()
1410 netif_stop_queue( slave_dev ); in enslave()
1415 netdev_notice(dev, "slave device (%s) attached\n", slave_dev->name); in enslave()
/linux-3.4.99/include/linux/
Dnetdevice.h996 struct net_device *slave_dev);
998 struct net_device *slave_dev);