| /linux/tools/testing/selftests/net/ |
| H A D | netdevice.sh | 19 netdev=$1 21 ip link show "$netdev" |grep -q UP 23 echo "SKIP: $netdev: interface already up" 27 ip link set "$netdev" up 29 echo "FAIL: $netdev: Fail to up interface" 32 echo "PASS: $netdev: set interface up" 43 netdev=$1 51 ip link set dev $netdev address "$MACADDR" 53 echo "FAIL: $netdev: Cannot set MAC address" 55 ip link show $netdev |grep -q "$MACADDR" [all …]
|
| /linux/net/core/ |
| H A D | dev_addr_lists_test.c | 22 static int dev_addr_test_sync(struct net_device *netdev, const unsigned char *a) in dev_addr_test_sync() 24 struct dev_addr_test_priv *datp = netdev_priv(netdev); in dev_addr_test_unsync() argument 33 static int dev_addr_test_unsync(struct net_device *netdev, 36 struct dev_addr_test_priv *datp = netdev_priv(netdev); in dev_addr_test_init() 45 static void dev_addr_test_reset(struct net_device *netdev) in dev_addr_test_init() 47 struct dev_addr_test_priv *datp = netdev_priv(netdev); in dev_addr_test_init() 57 struct net_device *netdev; in dev_addr_test_exit() local 60 netdev = alloc_etherdev(sizeof(*datp)); in dev_addr_test_exit() 61 KUNIT_ASSERT_TRUE(test, !!netdev); in dev_addr_test_exit() 63 test->priv = netdev; in dev_addr_test_basic() 15 dev_addr_test_sync(struct net_device * netdev,const unsigned char * a) dev_addr_test_sync() argument 37 struct net_device *netdev; dev_addr_test_init() local 65 struct net_device *netdev = test->priv; dev_addr_test_basic() local 83 struct net_device *netdev = test->priv; dev_addr_test_sync_one() local 112 struct net_device *netdev = test->priv; dev_addr_test_add_del() local 154 struct net_device *netdev = test->priv; dev_addr_test_del_main() local 174 struct net_device *netdev = test->priv; dev_addr_test_add_set() local 206 struct net_device *netdev = test->priv; dev_addr_test_add_excl() local [all...] |
| /linux/drivers/net/ethernet/netronome/nfp/ |
| H A D | nfp_net_repr.c | 27 nfp_repr_inc_tx_stats(struct net_device *netdev, unsigned int len, in nfp_repr_inc_tx_stats() argument 30 struct nfp_repr *repr = netdev_priv(netdev); in nfp_repr_inc_tx_stats() 46 void nfp_repr_inc_rx_stats(struct net_device *netdev, unsigned int len) in nfp_repr_inc_rx_stats() argument 48 struct nfp_repr *repr = netdev_priv(netdev); in nfp_repr_inc_rx_stats() 90 nfp_repr_get_stats64(struct net_device *netdev, struct rtnl_link_stats64 *stats) in nfp_repr_get_stats64() argument 92 struct nfp_repr *repr = netdev_priv(netdev); in nfp_repr_get_stats64() 124 nfp_repr_get_host_stats64(const struct net_device *netdev, in nfp_repr_get_host_stats64() argument 127 struct nfp_repr *repr = netdev_priv(netdev); in nfp_repr_get_host_stats64() 167 static int nfp_repr_change_mtu(struct net_device *netdev, int new_mtu) in nfp_repr_change_mtu() argument 169 struct nfp_repr *repr = netdev_priv(netdev); in nfp_repr_change_mtu() [all …]
|
| /linux/drivers/net/ethernet/qlogic/qede/ |
| H A D | qede_dcbnl.c | 13 static u8 qede_dcbnl_getstate(struct net_device *netdev) in qede_dcbnl_getstate() argument 15 struct qede_dev *edev = netdev_priv(netdev); in qede_dcbnl_getstate() 20 static u8 qede_dcbnl_setstate(struct net_device *netdev, u8 state) in qede_dcbnl_setstate() argument 22 struct qede_dev *edev = netdev_priv(netdev); in qede_dcbnl_setstate() 27 static void qede_dcbnl_getpermhwaddr(struct net_device *netdev, in qede_dcbnl_getpermhwaddr() argument 30 memcpy(perm_addr, netdev->dev_addr, netdev->addr_len); in qede_dcbnl_getpermhwaddr() 33 static void qede_dcbnl_getpgtccfgtx(struct net_device *netdev, int prio, in qede_dcbnl_getpgtccfgtx() argument 37 struct qede_dev *edev = netdev_priv(netdev); in qede_dcbnl_getpgtccfgtx() 43 static void qede_dcbnl_getpgbwgcfgtx(struct net_device *netdev, in qede_dcbnl_getpgbwgcfgtx() argument 46 struct qede_dev *edev = netdev_priv(netdev); in qede_dcbnl_getpgbwgcfgtx() [all …]
|
| /linux/net/openvswitch/ |
| H A D | vport-internal_dev.c | 27 static struct internal_dev *internal_dev_priv(struct net_device *netdev) in internal_dev_priv() argument 29 return netdev_priv(netdev); in internal_dev_priv() 34 internal_dev_xmit(struct sk_buff *skb, struct net_device *netdev) in internal_dev_xmit() argument 42 err = ovs_vport_receive(internal_dev_priv(netdev)->vport, skb, NULL); in internal_dev_xmit() 46 dev_sw_netstats_tx_add(netdev, 1, len); in internal_dev_xmit() 48 netdev->stats.tx_errors++; in internal_dev_xmit() 53 static int internal_dev_open(struct net_device *netdev) in internal_dev_open() argument 55 netif_start_queue(netdev); in internal_dev_open() 59 static int internal_dev_stop(struct net_device *netdev) in internal_dev_stop() argument 61 netif_stop_queue(netdev); in internal_dev_stop() [all …]
|
| /linux/drivers/net/can/usb/etas_es58x/ |
| H A D | es58x_core.c | 175 static void es58x_set_skb_timestamp(struct net_device *netdev, in es58x_set_skb_timestamp() argument 178 struct es58x_device *es58x_dev = es58x_priv(netdev)->es58x_dev; in es58x_set_skb_timestamp() 259 static bool es58x_is_can_state_active(struct net_device *netdev) in es58x_is_can_state_active() argument 261 return es58x_priv(netdev)->can.state < CAN_STATE_BUS_OFF; in es58x_is_can_state_active() 294 static void es58x_can_free_echo_skb_tail(struct net_device *netdev) in es58x_can_free_echo_skb_tail() argument 296 struct es58x_priv *priv = es58x_priv(netdev); in es58x_can_free_echo_skb_tail() 300 can_free_echo_skb(netdev, priv->tx_tail & fifo_mask, &frame_len); in es58x_can_free_echo_skb_tail() 301 netdev_completed_queue(netdev, 1, frame_len); in es58x_can_free_echo_skb_tail() 305 netdev->stats.tx_dropped++; in es58x_can_free_echo_skb_tail() 320 static int es58x_can_get_echo_skb_recovery(struct net_device *netdev, in es58x_can_get_echo_skb_recovery() argument [all …]
|
| /linux/drivers/net/ethernet/microchip/lan865x/ |
| H A D | lan865x.c | 41 struct net_device *netdev; member 77 priv->netdev->dev_addr); in lan865x_set_hw_macaddr() 89 static int lan865x_set_mac_address(struct net_device *netdev, void *addr) in lan865x_set_mac_address() argument 91 struct lan865x_priv *priv = netdev_priv(netdev); in lan865x_set_mac_address() 95 ret = eth_prepare_mac_addr_change(netdev, addr); in lan865x_set_mac_address() 99 if (ether_addr_equal(address->sa_data, netdev->dev_addr)) in lan865x_set_mac_address() 106 eth_commit_mac_addr_change(netdev, addr); in lan865x_set_mac_address() 139 netdev_for_each_mc_addr(ha, priv->netdev) { in lan865x_set_specific_multicast_addr() 151 netdev_err(priv->netdev, "Failed to write reg_hashh: %d\n", in lan865x_set_specific_multicast_addr() 158 netdev_err(priv->netdev, "Failed to write reg_hashl: %d\n", in lan865x_set_specific_multicast_addr() [all …]
|
| /linux/drivers/net/ethernet/actions/ |
| H A D | owl-emac.c | 63 return priv->netdev->dev.parent; in owl_emac_get_dev() 161 static struct sk_buff *owl_emac_alloc_skb(struct net_device *netdev) in owl_emac_alloc_skb() argument 166 skb = netdev_alloc_skb(netdev, OWL_EMAC_RX_FRAME_MAX_LEN + in owl_emac_alloc_skb() 183 struct net_device *netdev = priv->netdev; in owl_emac_ring_prepare_rx() local 190 skb = owl_emac_alloc_skb(netdev); in owl_emac_ring_prepare_rx() 342 static void owl_emac_set_hw_mac_addr(struct net_device *netdev) in owl_emac_set_hw_mac_addr() argument 344 struct owl_emac_priv *priv = netdev_priv(netdev); in owl_emac_set_hw_mac_addr() 345 const u8 *mac_addr = netdev->dev_addr; in owl_emac_set_hw_mac_addr() 394 static void owl_emac_adjust_link(struct net_device *netdev) in owl_emac_adjust_link() argument 396 struct owl_emac_priv *priv = netdev_priv(netdev); in owl_emac_adjust_link() [all …]
|
| /linux/drivers/net/usb/ |
| H A D | rtl8150.c | 134 struct net_device *netdev; member 210 netif_device_detach(dev->netdev); in async_set_registers() 273 eth_hw_addr_set(dev->netdev, node_id); in set_ethernet_addr() 275 eth_hw_addr_random(dev->netdev); in set_ethernet_addr() 276 netdev_notice(dev->netdev, "Assigned a random MAC address: %pM\n", in set_ethernet_addr() 277 dev->netdev->dev_addr); in set_ethernet_addr() 281 static int rtl8150_set_mac_address(struct net_device *netdev, void *p) in rtl8150_set_mac_address() argument 284 rtl8150_t *dev = netdev_priv(netdev); in rtl8150_set_mac_address() 286 if (netif_running(netdev)) in rtl8150_set_mac_address() 289 eth_hw_addr_set(netdev, addr->sa_data); in rtl8150_set_mac_address() [all …]
|
| /linux/drivers/net/ethernet/wangxun/libwx/ |
| H A D | wx_vf_common.c | 19 netif_device_detach(wx->netdev); in wxvf_suspend() 40 netif_device_attach(wx->netdev); in wxvf_resume() 49 struct net_device *netdev; in wxvf_remove() local 51 netdev = wx->netdev; in wxvf_remove() 52 unregister_netdev(netdev); in wxvf_remove() 71 if (netif_running(wx->netdev)) in wx_msix_misc_vf() 79 struct net_device *netdev = wx->netdev; in wx_request_msix_irqs_vf() local 88 "%s-TxRx-%d", netdev->name, entry->entry); in wx_request_msix_irqs_vf() 103 0, netdev->name, wx); in wx_request_msix_irqs_vf() 142 struct net_device *netdev = wx->netdev; in wx_reset_vf() local [all …]
|
| /linux/drivers/net/ethernet/faraday/ |
| H A D | ftgmac100.c | 108 struct net_device *netdev; member 142 struct net_device *netdev = priv->netdev; in ftgmac100_reset_mac() local 159 netdev_err(netdev, "Hardware reset failed\n"); in ftgmac100_reset_mac() 168 if (priv->is_aspeed && priv->netdev->phydev->interface == PHY_INTERFACE_MODE_RMII) { in ftgmac100_reset_and_config_mac() 197 netdev_err(priv->netdev, "Unknown speed %d !\n", in ftgmac100_reset_and_config_mac() 230 err = of_get_ethdev_address(priv->dev->of_node, priv->netdev); in ftgmac100_initial_mac() 235 priv->netdev->dev_addr); in ftgmac100_initial_mac() 250 eth_hw_addr_set(priv->netdev, mac); in ftgmac100_initial_mac() 253 eth_hw_addr_random(priv->netdev); in ftgmac100_initial_mac() 255 priv->netdev->dev_addr); in ftgmac100_initial_mac() [all …]
|
| /linux/drivers/net/can/usb/ |
| H A D | f81604.c | 134 struct net_device *netdev[F81604_MAX_DEV]; member 139 struct net_device *netdev; member 254 int port = priv->netdev->dev_port; in f81604_sja1000_write() 264 int port = priv->netdev->dev_port; in f81604_sja1000_read() 370 static void f81604_process_rx_packet(struct net_device *netdev, in f81604_process_rx_packet() argument 373 struct net_device_stats *stats = &netdev->stats; in f81604_process_rx_packet() 380 skb = alloc_can_skb(netdev, &cf); in f81604_process_rx_packet() 415 struct net_device *netdev = urb->context; in f81604_read_bulk_callback() local 416 struct f81604_port_priv *priv = netdev_priv(netdev); in f81604_read_bulk_callback() 419 if (!netif_device_present(netdev)) in f81604_read_bulk_callback() [all …]
|
| H A D | mcba_usb.c | 76 struct net_device *netdev; member 200 netif_stop_queue(priv->netdev); in mcba_usb_get_free_ctx() 216 netif_wake_queue(ctx->priv->netdev); in mcba_usb_free_ctx() 222 struct net_device *netdev; in mcba_usb_write_bulk_callback() local 226 netdev = ctx->priv->netdev; in mcba_usb_write_bulk_callback() 233 if (!netif_device_present(netdev)) in mcba_usb_write_bulk_callback() 236 netdev->stats.tx_packets++; in mcba_usb_write_bulk_callback() 237 netdev->stats.tx_bytes += can_get_echo_skb(netdev, ctx->ndx, in mcba_usb_write_bulk_callback() 242 netdev_info(netdev, "Tx URB aborted (%d)\n", urb->status); in mcba_usb_write_bulk_callback() 294 netif_device_detach(priv->netdev); in mcba_usb_xmit() [all …]
|
| H A D | ems_usb.c | 242 struct net_device *netdev; member 265 struct net_device *netdev = dev->netdev; in ems_usb_read_interrupt_callback() local 268 if (!netif_device_present(netdev)) in ems_usb_read_interrupt_callback() 275 netif_queue_stopped(netdev)) in ems_usb_read_interrupt_callback() 276 netif_wake_queue(netdev); in ems_usb_read_interrupt_callback() 287 netdev_info(netdev, "Rx interrupt aborted %d\n", urb->status); in ems_usb_read_interrupt_callback() 294 netif_device_detach(netdev); in ems_usb_read_interrupt_callback() 296 netdev_err(netdev, "failed resubmitting intr urb: %d\n", err); in ems_usb_read_interrupt_callback() 304 struct net_device_stats *stats = &dev->netdev->stats; in ems_usb_rx_can_msg() 306 skb = alloc_can_skb(dev->netdev, &cf); in ems_usb_rx_can_msg() [all …]
|
| H A D | usb_8dev.c | 124 struct net_device *netdev; member 200 struct net_device *netdev; in usb_8dev_send_cmd() local 202 netdev = priv->netdev; in usb_8dev_send_cmd() 215 netdev_err(netdev, "sending command message failed\n"); in usb_8dev_send_cmd() 223 netdev_err(netdev, "no command message answer\n"); in usb_8dev_send_cmd() 313 static int usb_8dev_set_mode(struct net_device *netdev, enum can_mode mode) in usb_8dev_set_mode() argument 315 struct usb_8dev_priv *priv = netdev_priv(netdev); in usb_8dev_set_mode() 322 netdev_warn(netdev, "couldn't start device"); in usb_8dev_set_mode() 338 struct net_device_stats *stats = &priv->netdev->stats; in usb_8dev_rx_err_msg() 354 skb = alloc_can_err_skb(priv->netdev, &cf); in usb_8dev_rx_err_msg() [all …]
|
| /linux/drivers/net/ethernet/huawei/hinic/ |
| H A D | hinic_main.c | 77 static int change_mac_addr(struct net_device *netdev, const u8 *addr); 132 struct net_device *netdev = nic_dev->netdev; in create_txqs() local 137 nic_dev->txqs = devm_kcalloc(&netdev->dev, num_txqs, in create_txqs() 147 err = hinic_init_txq(&nic_dev->txqs[i], sq, netdev); in create_txqs() 149 netif_err(nic_dev, drv, netdev, in create_txqs() 156 netif_err(nic_dev, drv, netdev, in create_txqs() 174 devm_kfree(&netdev->dev, nic_dev->txqs); in create_txqs() 204 struct net_device *netdev = nic_dev->netdev; in free_txqs() local 216 devm_kfree(&netdev->dev, nic_dev->txqs); in free_txqs() 229 struct net_device *netdev = nic_dev->netdev; in create_rxqs() local [all …]
|
| /linux/drivers/net/ethernet/intel/ice/ |
| H A D | ice_repr.c | 42 void ice_repr_inc_rx_stats(struct net_device *netdev, unsigned int len) in ice_repr_inc_rx_stats() argument 44 struct ice_repr *repr = ice_netdev_to_repr(netdev); in ice_repr_inc_rx_stats() 60 ice_repr_get_stats64(struct net_device *netdev, struct rtnl_link_stats64 *stats) in ice_repr_get_stats64() argument 62 struct ice_netdev_priv *np = netdev_priv(netdev); in ice_repr_get_stats64() 90 struct ice_repr *ice_netdev_to_repr(const struct net_device *netdev) in ice_netdev_to_repr() argument 92 struct ice_netdev_priv *np = netdev_priv(netdev); in ice_netdev_to_repr() 107 static int ice_repr_vf_open(struct net_device *netdev) in ice_repr_vf_open() argument 109 struct ice_repr *repr = ice_netdev_to_repr(netdev); in ice_repr_vf_open() 117 netif_carrier_on(netdev); in ice_repr_vf_open() 118 netif_tx_start_all_queues(netdev); in ice_repr_vf_open() [all …]
|
| H A D | ice_dcb_nl.c | 14 static void ice_dcbnl_devreset(struct net_device *netdev) in ice_dcbnl_devreset() argument 16 struct ice_pf *pf = ice_netdev_to_pf(netdev); in ice_dcbnl_devreset() 21 dev_close(netdev); in ice_dcbnl_devreset() 22 netdev_state_change(netdev); in ice_dcbnl_devreset() 23 dev_open(netdev, NULL); in ice_dcbnl_devreset() 24 netdev_state_change(netdev); in ice_dcbnl_devreset() 32 static int ice_dcbnl_getets(struct net_device *netdev, struct ieee_ets *ets) in ice_dcbnl_getets() argument 37 pf = ice_netdev_to_pf(netdev); in ice_dcbnl_getets() 62 static int ice_dcbnl_setets(struct net_device *netdev, struct ieee_ets *ets) in ice_dcbnl_setets() argument 64 struct ice_pf *pf = ice_netdev_to_pf(netdev); in ice_dcbnl_setets() [all …]
|
| /linux/drivers/net/ethernet/huawei/hinic3/ |
| H A D | hinic3_filter.c | 18 static int hinic3_filter_addr_sync(struct net_device *netdev, u8 *addr) in hinic3_filter_addr_sync() argument 20 struct hinic3_nic_dev *nic_dev = netdev_priv(netdev); in hinic3_filter_addr_sync() 26 static int hinic3_filter_addr_unsync(struct net_device *netdev, u8 *addr) in hinic3_filter_addr_unsync() argument 28 struct hinic3_nic_dev *nic_dev = netdev_priv(netdev); in hinic3_filter_addr_unsync() 31 if (ether_addr_equal(addr, netdev->dev_addr)) in hinic3_filter_addr_unsync() 38 void hinic3_clean_mac_list_filter(struct net_device *netdev) in hinic3_clean_mac_list_filter() argument 40 struct hinic3_nic_dev *nic_dev = netdev_priv(netdev); in hinic3_clean_mac_list_filter() 46 hinic3_filter_addr_unsync(netdev, f->addr); in hinic3_clean_mac_list_filter() 53 hinic3_filter_addr_unsync(netdev, f->addr); in hinic3_clean_mac_list_filter() 71 static void hinic3_add_filter(struct net_device *netdev, in hinic3_add_filter() argument [all …]
|
| /linux/drivers/scsi/fcoe/ |
| H A D | fcoe_transport.c | 119 struct net_device *netdev = fcoe_get_netdev(lport); in fcoe_link_speed_update() local 122 if (!__ethtool_get_link_ksettings(netdev, &ecmd)) { in fcoe_link_speed_update() 171 struct net_device *netdev) in __fcoe_get_lesb() argument 194 htonl(dev_get_stats(netdev, &temp)->rx_crc_errors); in __fcoe_get_lesb() 206 struct net_device *netdev = fcoe_get_netdev(lport); in fcoe_get_lesb() local 208 __fcoe_get_lesb(lport, fc_lesb, netdev); in fcoe_get_lesb() 221 struct net_device *netdev = fcoe_get_netdev(fip->lp); in fcoe_ctlr_get_lesb() local 225 __fcoe_get_lesb(fip->lp, fc_lesb, netdev); in fcoe_ctlr_get_lesb() 291 int fcoe_get_wwn(struct net_device *netdev, u64 *wwn, int type) in fcoe_get_wwn() argument 293 const struct net_device_ops *ops = netdev->netdev_ops; in fcoe_get_wwn() [all …]
|
| /linux/drivers/net/ethernet/qualcomm/emac/ |
| H A D | emac-ethtool.c | 66 static u32 emac_get_msglevel(struct net_device *netdev) in emac_get_msglevel() argument 68 struct emac_adapter *adpt = netdev_priv(netdev); in emac_get_msglevel() 73 static void emac_set_msglevel(struct net_device *netdev, u32 data) in emac_set_msglevel() argument 75 struct emac_adapter *adpt = netdev_priv(netdev); in emac_set_msglevel() 80 static int emac_get_sset_count(struct net_device *netdev, int sset) in emac_get_sset_count() argument 92 static void emac_get_strings(struct net_device *netdev, u32 stringset, u8 *data) in emac_get_strings() argument 111 static void emac_get_ethtool_stats(struct net_device *netdev, in emac_get_ethtool_stats() argument 115 struct emac_adapter *adpt = netdev_priv(netdev); in emac_get_ethtool_stats() 125 static int emac_nway_reset(struct net_device *netdev) in emac_nway_reset() argument 127 struct phy_device *phydev = netdev->phydev; in emac_nway_reset() [all …]
|
| /linux/drivers/net/ethernet/meta/fbnic/ |
| H A D | fbnic_netdev.c | 71 static int fbnic_open(struct net_device *netdev) in fbnic_open() argument 73 struct fbnic_net *fbn = netdev_priv(netdev); in fbnic_open() 85 static int fbnic_stop(struct net_device *netdev) in fbnic_stop() argument 87 struct fbnic_net *fbn = netdev_priv(netdev); in fbnic_stop() 104 static int fbnic_uc_sync(struct net_device *netdev, const unsigned char *addr) in fbnic_uc_sync() argument 106 struct fbnic_net *fbn = netdev_priv(netdev); in fbnic_uc_sync() 122 static int fbnic_uc_unsync(struct net_device *netdev, const unsigned char *addr) in fbnic_uc_unsync() argument 124 struct fbnic_net *fbn = netdev_priv(netdev); in fbnic_uc_unsync() 145 static int fbnic_mc_sync(struct net_device *netdev, const unsigned char *addr) in fbnic_mc_sync() argument 147 struct fbnic_net *fbn = netdev_priv(netdev); in fbnic_mc_sync() [all …]
|
| /linux/drivers/net/ethernet/amd/xgbe/ |
| H A D | xgbe-main.c | 66 struct net_device *netdev; in xgbe_alloc_pdata() local 68 netdev = alloc_etherdev_mq(sizeof(struct xgbe_prv_data), in xgbe_alloc_pdata() 70 if (!netdev) { in xgbe_alloc_pdata() 74 SET_NETDEV_DEV(netdev, dev); in xgbe_alloc_pdata() 75 pdata = netdev_priv(netdev); in xgbe_alloc_pdata() 76 pdata->netdev = netdev; in xgbe_alloc_pdata() 96 struct net_device *netdev = pdata->netdev; in xgbe_free_pdata() local 98 free_netdev(netdev); in xgbe_free_pdata() 154 struct net_device *netdev = pdata->netdev; in xgbe_config_netdev() local 158 netdev->irq = pdata->dev_irq; in xgbe_config_netdev() [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/en/rep/ |
| H A D | bond.c | 21 struct net_device *netdev; member 54 const struct net_device *netdev) in mlx5e_lookup_rep_bond_slave_entry() argument 60 if (cur->netdev == netdev) { in mlx5e_lookup_rep_bond_slave_entry() 80 int mlx5e_rep_bond_enslave(struct mlx5_eswitch *esw, struct net_device *netdev, in mlx5e_rep_bond_enslave() argument 119 s_entry->netdev = netdev; in mlx5e_rep_bond_enslave() 120 priv = netdev_priv(netdev); in mlx5e_rep_bond_enslave() 130 netdev_dbg(netdev, "enslave rep vport(%d) lag_dev(%s) metadata(0x%x)\n", in mlx5e_rep_bond_enslave() 145 const struct net_device *netdev, in mlx5e_rep_bond_unslave() argument 160 s_entry = mlx5e_lookup_rep_bond_slave_entry(mdata, netdev); in mlx5e_rep_bond_unslave() 164 priv = netdev_priv(netdev); in mlx5e_rep_bond_unslave() [all …]
|
| /linux/drivers/net/ethernet/cortina/ |
| H A D | gemini.c | 109 struct net_device *netdev; member 226 static void gmac_dump_dma_state(struct net_device *netdev); in gmac_update_config0_reg() 228 static void gmac_update_config0_reg(struct net_device *netdev, in gmac_update_config0_reg() 231 struct gemini_ethernet_port *port = netdev_priv(netdev); in gmac_update_config0_reg() 244 static void gmac_enable_tx_rx(struct net_device *netdev) in gmac_enable_tx_rx() 246 struct gemini_ethernet_port *port = netdev_priv(netdev); in gmac_enable_tx_rx() 259 static void gmac_disable_tx_rx(struct net_device *netdev) in gmac_disable_tx_rx() 261 struct gemini_ethernet_port *port = netdev_priv(netdev); in gmac_disable_tx_rx() 276 static void gmac_set_flow_control(struct net_device *netdev, bool tx, bool rx) in gmac_set_flow_control() 278 struct gemini_ethernet_port *port = netdev_priv(netdev); in gmac_set_flow_control() 225 gmac_update_config0_reg(struct net_device * netdev,u32 val,u32 vmask) gmac_update_config0_reg() argument 241 gmac_enable_tx_rx(struct net_device * netdev) gmac_enable_tx_rx() argument 256 gmac_disable_tx_rx(struct net_device * netdev) gmac_disable_tx_rx() argument 273 gmac_set_flow_control(struct net_device * netdev,bool tx,bool rx) gmac_set_flow_control() argument 292 gmac_adjust_link(struct net_device * netdev) gmac_adjust_link() argument 357 gmac_setup_phy(struct net_device * netdev) gmac_setup_phy() argument 461 gmac_init(struct net_device * netdev) gmac_init() argument 541 gmac_setup_txqs(struct net_device * netdev) gmac_setup_txqs() argument 599 gmac_clean_txq(struct net_device * netdev,struct gmac_txq * txq,unsigned int r) gmac_clean_txq() argument 671 gmac_cleanup_txqs(struct net_device * netdev) gmac_cleanup_txqs() argument 697 gmac_setup_rxq(struct net_device * netdev) gmac_setup_rxq() argument 749 gmac_cleanup_rxq(struct net_device * netdev) gmac_cleanup_rxq() argument 1036 struct net_device *netdev = port->netdev; geth_resize_freeq() local 1101 gmac_tx_irq_enable(struct net_device * netdev,unsigned int txq,int en) gmac_tx_irq_enable() argument 1125 gmac_tx_irq(struct net_device * netdev,unsigned int txq_num) gmac_tx_irq() argument 1133 gmac_map_tx_bufs(struct net_device * netdev,struct sk_buff * skb,struct gmac_txq * txq,unsigned short * desc) gmac_map_tx_bufs() argument 1272 gmac_start_xmit(struct sk_buff * skb,struct net_device * netdev) gmac_start_xmit() argument 1345 gmac_tx_timeout(struct net_device * netdev,unsigned int txqueue) gmac_tx_timeout() argument 1351 gmac_enable_irq(struct net_device * netdev,int enable) gmac_enable_irq() argument 1380 gmac_enable_rx_irq(struct net_device * netdev,int enable) gmac_enable_rx_irq() argument 1439 gmac_rx(struct net_device * netdev,unsigned int budget) gmac_rx() argument 1589 gmac_dump_dma_state(struct net_device * netdev) gmac_dump_dma_state() argument 1660 gmac_update_hw_stats(struct net_device * netdev) gmac_update_hw_stats() argument 1696 gmac_get_intr_flags(struct net_device * netdev,int i) gmac_get_intr_flags() argument 1727 struct net_device *netdev = data; gmac_irq() local 1818 gmac_open(struct net_device * netdev) gmac_open() argument 1875 gmac_stop(struct net_device * netdev) gmac_stop() argument 1896 gmac_set_rx_mode(struct net_device * netdev) gmac_set_rx_mode() argument 1931 gmac_write_mac_address(struct net_device * netdev) gmac_write_mac_address() argument 1944 gmac_set_mac_address(struct net_device * netdev,void * addr) gmac_set_mac_address() argument 1954 gmac_clear_hw_stats(struct net_device * netdev) gmac_clear_hw_stats() argument 1966 gmac_get_stats64(struct net_device * netdev,struct rtnl_link_stats64 * stats) gmac_get_stats64() argument 2015 gmac_change_mtu(struct net_device * netdev,int new_mtu) gmac_change_mtu() argument 2035 gmac_set_features(struct net_device * netdev,netdev_features_t features) gmac_set_features() argument 2053 gmac_get_sset_count(struct net_device * netdev,int sset) gmac_get_sset_count() argument 2058 gmac_get_strings(struct net_device * netdev,u32 stringset,u8 * data) gmac_get_strings() argument 2066 gmac_get_ethtool_stats(struct net_device * netdev,struct ethtool_stats * estats,u64 * values) gmac_get_ethtool_stats() argument 2116 gmac_get_ksettings(struct net_device * netdev,struct ethtool_link_ksettings * cmd) gmac_get_ksettings() argument 2126 gmac_set_ksettings(struct net_device * netdev,const struct ethtool_link_ksettings * cmd) gmac_set_ksettings() argument 2134 gmac_nway_reset(struct net_device * netdev) gmac_nway_reset() argument 2141 gmac_get_pauseparam(struct net_device * netdev,struct ethtool_pauseparam * pparam) gmac_get_pauseparam() argument 2154 gmac_set_pauseparam(struct net_device * netdev,struct ethtool_pauseparam * pparam) gmac_set_pauseparam() argument 2167 gmac_get_ringparam(struct net_device * netdev,struct ethtool_ringparam * rp,struct kernel_ethtool_ringparam * kernel_rp,struct netlink_ext_ack * extack) gmac_get_ringparam() argument 2187 gmac_set_ringparam(struct net_device * netdev,struct ethtool_ringparam * rp,struct kernel_ethtool_ringparam * kernel_rp,struct netlink_ext_ack * extack) gmac_set_ringparam() argument 2210 gmac_get_coalesce(struct net_device * netdev,struct ethtool_coalesce * ecmd,struct kernel_ethtool_coalesce * kernel_coal,struct netlink_ext_ack * extack) gmac_get_coalesce() argument 2224 gmac_set_coalesce(struct net_device * netdev,struct ethtool_coalesce * ecmd,struct kernel_ethtool_coalesce * kernel_coal,struct netlink_ext_ack * extack) gmac_set_coalesce() argument 2242 gmac_get_msglevel(struct net_device * netdev) gmac_get_msglevel() argument 2249 gmac_set_msglevel(struct net_device * netdev,u32 level) gmac_set_msglevel() argument 2256 gmac_get_drvinfo(struct net_device * netdev,struct ethtool_drvinfo * info) gmac_get_drvinfo() argument 2427 struct net_device *netdev; gemini_ethernet_port_probe() local [all...] |