/drivers/net/ |
D | net_failover.c | 73 struct net_device *slave_dev; in net_failover_close() local 77 slave_dev = rtnl_dereference(nfo_info->primary_dev); in net_failover_close() 78 if (slave_dev) in net_failover_close() 79 dev_close(slave_dev); in net_failover_close() 81 slave_dev = rtnl_dereference(nfo_info->standby_dev); in net_failover_close() 82 if (slave_dev) in net_failover_close() 83 dev_close(slave_dev); in net_failover_close() 187 struct net_device *slave_dev; in net_failover_get_stats() local 194 slave_dev = rcu_dereference(nfo_info->primary_dev); in net_failover_get_stats() 195 if (slave_dev) { in net_failover_get_stats() [all …]
|
D | eql.c | 340 struct net_device *slave_dev = slave->dev; in eql_slave_xmit() local 342 skb->dev = slave_dev; in eql_slave_xmit() 409 struct net_device *slave_dev; in eql_enslave() local 415 slave_dev = __dev_get_by_name(&init_net, srq.slave_name); in eql_enslave() 416 if (!slave_dev) in eql_enslave() 421 if (!eql_is_master(slave_dev) && !eql_is_slave(slave_dev)) { in eql_enslave() 430 s->dev = slave_dev; in eql_enslave() 452 struct net_device *slave_dev; in eql_emancipate() local 459 slave_dev = __dev_get_by_name(&init_net, srq.slave_name); in eql_emancipate() 460 if (!slave_dev) in eql_emancipate() [all …]
|
D | vrf.c | 1378 const struct net_device *slave_dev) in vrf_get_slave_size() argument 1385 const struct net_device *slave_dev) in vrf_fill_slave_info() argument
|
/drivers/net/bonding/ |
D | bond_main.c | 244 struct net_device *slave_dev) in bond_dev_queue_xmit() argument 246 skb->dev = slave_dev; in bond_dev_queue_xmit() 253 bond_netpoll_send_skb(bond_get_slave_by_dev(bond, slave_dev), skb); in bond_dev_queue_xmit() 373 struct net_device *slave_dev = slave->dev; in bond_update_speed_duplex() local 380 res = __ethtool_get_link_ksettings(slave_dev, &ecmd); in bond_update_speed_duplex() 431 struct net_device *slave_dev, int reporting) in bond_check_dev_link() argument 433 const struct net_device_ops *slave_ops = slave_dev->netdev_ops; in bond_check_dev_link() 438 if (!reporting && !netif_running(slave_dev)) in bond_check_dev_link() 442 return netif_carrier_ok(slave_dev) ? BMSR_LSTATUS : 0; in bond_check_dev_link() 445 if (slave_dev->ethtool_ops->get_link) in bond_check_dev_link() [all …]
|
D | bond_netlink.c | 19 const struct net_device *slave_dev) in bond_get_slave_size() argument 34 const struct net_device *slave_dev) in bond_fill_slave_info() argument 36 struct slave *slave = bond_slave_get_rtnl(slave_dev); in bond_fill_slave_info() 49 slave_dev->addr_len, slave->perm_hwaddr)) in bond_fill_slave_info() 131 struct net_device *slave_dev, in bond_slave_changelink() argument 148 slave_dev->name, queue_id); in bond_slave_changelink() 180 struct net_device *slave_dev; in bond_changelink() local 184 slave_dev = __dev_get_by_index(dev_net(bond_dev), in bond_changelink() 186 if (!slave_dev) in bond_changelink() 188 active_slave = slave_dev->name; in bond_changelink()
|
D | bond_options.c | 781 struct net_device *slave_dev; in bond_option_active_slave_set() local 786 slave_dev = NULL; in bond_option_active_slave_set() 788 slave_dev = __dev_get_by_name(dev_net(bond->dev), ifname); in bond_option_active_slave_set() 789 if (!slave_dev) in bond_option_active_slave_set() 793 if (slave_dev) { in bond_option_active_slave_set() 794 if (!netif_is_bond_slave(slave_dev)) { in bond_option_active_slave_set() 795 slave_err(bond->dev, slave_dev, "Device is not bonding slave\n"); in bond_option_active_slave_set() 799 if (bond->dev != netdev_master_upper_dev_get(slave_dev)) { in bond_option_active_slave_set() 800 slave_err(bond->dev, slave_dev, "Device is not our slave\n"); in bond_option_active_slave_set() 807 if (!slave_dev) { in bond_option_active_slave_set() [all …]
|
D | bond_sysfs.c | 463 struct net_device *slave_dev; in bonding_show_active_slave() local 467 slave_dev = bond_option_active_slave_get_rcu(bond); in bonding_show_active_slave() 468 if (slave_dev) in bonding_show_active_slave() 469 count = sprintf(buf, "%s\n", slave_dev->name); in bonding_show_active_slave()
|
/drivers/net/ethernet/qualcomm/rmnet/ |
D | rmnet_config.c | 404 struct net_device *slave_dev, in rmnet_add_bridge() argument 420 if (rmnet_is_real_dev_registered(slave_dev)) in rmnet_add_bridge() 423 err = rmnet_register_real_device(slave_dev); in rmnet_add_bridge() 427 slave_port = rmnet_get_port(slave_dev); in rmnet_add_bridge() 432 port->bridge_ep = slave_dev; in rmnet_add_bridge() 434 netdev_dbg(slave_dev, "registered with rmnet as slave\n"); in rmnet_add_bridge() 439 struct net_device *slave_dev) in rmnet_del_bridge() argument 449 slave_port = rmnet_get_port(slave_dev); in rmnet_del_bridge() 450 rmnet_unregister_real_device(slave_dev, slave_port); in rmnet_del_bridge() 452 netdev_dbg(slave_dev, "removed from rmnet as slave\n"); in rmnet_del_bridge()
|
D | rmnet_config.h | 71 struct net_device *slave_dev, 74 struct net_device *slave_dev);
|
/drivers/net/can/sja1000/ |
D | kvaser_pci.c | 44 struct net_device *slave_dev[MAX_NO_OF_CHANNELS-1]; member 181 if (board->slave_dev[i]) { in kvaser_pci_del_chan() 183 board->slave_dev[i]->name); in kvaser_pci_del_chan() 184 unregister_sja1000dev(board->slave_dev[i]); in kvaser_pci_del_chan() 185 free_sja1000dev(board->slave_dev[i]); in kvaser_pci_del_chan() 237 master_board->slave_dev[channel - 1] = dev; in kvaser_pci_add_chan()
|
/drivers/net/wan/ |
D | sbni.c | 1296 struct net_device *slave_dev; in sbni_ioctl() local 1351 slave_dev = dev_get_by_name(&init_net, slave_name ); in sbni_ioctl() 1352 if( !slave_dev || !(slave_dev->flags & IFF_UP) ) { in sbni_ioctl() 1355 if (slave_dev) in sbni_ioctl() 1356 dev_put(slave_dev); in sbni_ioctl() 1360 return enslave( dev, slave_dev ); in sbni_ioctl() 1381 enslave( struct net_device *dev, struct net_device *slave_dev ) in enslave() argument 1384 struct net_local *snl = netdev_priv(slave_dev); in enslave() 1397 nl->link = slave_dev; in enslave() 1403 memset( &slave_dev->stats, 0, sizeof(struct net_device_stats) ); in enslave() [all …]
|
/drivers/net/ethernet/broadcom/ |
D | bcmsysport.c | 2272 struct net_device *slave_dev; in bcm_sysport_map_queues() local 2293 slave_dev = info->info.dev; in bcm_sysport_map_queues() 2302 netif_set_real_num_tx_queues(slave_dev, in bcm_sysport_map_queues() 2303 slave_dev->num_tx_queues / 2); in bcm_sysport_map_queues() 2305 num_tx_queues = slave_dev->real_num_tx_queues; in bcm_sysport_map_queues() 2309 netdev_warn(slave_dev, "asymmetric number of per-port queues\n"); in bcm_sysport_map_queues() 2338 struct net_device *slave_dev; in bcm_sysport_unmap_queues() local 2353 slave_dev = info->info.dev; in bcm_sysport_unmap_queues() 2355 num_tx_queues = slave_dev->real_num_tx_queues; in bcm_sysport_unmap_queues()
|