Home
last modified time | relevance | path

Searched refs:net_dev (Results 1 – 106 of 106) sorted by relevance

/linux-4.4.14/drivers/net/wimax/i2400m/
Dnetdev.c101 int i2400m_open(struct net_device *net_dev) in i2400m_open() argument
104 struct i2400m *i2400m = net_dev_to_i2400m(net_dev); in i2400m_open()
107 d_fnstart(3, dev, "(net_dev %p [i2400m %p])\n", net_dev, i2400m); in i2400m_open()
116 net_dev, i2400m, result); in i2400m_open()
122 int i2400m_stop(struct net_device *net_dev) in i2400m_stop() argument
124 struct i2400m *i2400m = net_dev_to_i2400m(net_dev); in i2400m_stop()
127 d_fnstart(3, dev, "(net_dev %p [i2400m %p])\n", net_dev, i2400m); in i2400m_stop()
129 d_fnend(3, dev, "(net_dev %p [i2400m %p]) = 0\n", net_dev, i2400m); in i2400m_stop()
157 struct net_device *net_dev = i2400m->wimax_dev.net_dev; in i2400m_wake_tx_work() local
176 if (unlikely(!netif_carrier_ok(net_dev))) in i2400m_wake_tx_work()
[all …]
Ddriver.c224 struct net_device *net_dev = i2400m->wimax_dev.net_dev; in i2400m_check_mac_addr() local
239 if (!memcmp(net_dev->perm_addr, ddi->mac_address, in i2400m_check_mac_addr()
245 dev_warn(dev, "boot mode reported %pM\n", net_dev->perm_addr); in i2400m_check_mac_addr()
251 net_dev->addr_len = ETH_ALEN; in i2400m_check_mac_addr()
252 memcpy(net_dev->perm_addr, ddi->mac_address, ETH_ALEN); in i2400m_check_mac_addr()
253 memcpy(net_dev->dev_addr, ddi->mac_address, ETH_ALEN); in i2400m_check_mac_addr()
288 struct net_device *net_dev = wimax_dev->net_dev; in __i2400m_dev_start() local
343 net_dev, i2400m, result); in __i2400m_dev_start()
367 net_dev, i2400m, result); in __i2400m_dev_start()
510 netif_tx_disable(i2400m->wimax_dev.net_dev); in i2400m_pre_reset()
[all …]
Dusb.c342 static void i2400mu_get_drvinfo(struct net_device *net_dev, in i2400mu_get_drvinfo() argument
345 struct i2400m *i2400m = net_dev_to_i2400m(net_dev); in i2400mu_get_drvinfo()
361 void i2400mu_netdev_setup(struct net_device *net_dev) in i2400mu_netdev_setup() argument
363 struct i2400m *i2400m = net_dev_to_i2400m(net_dev); in i2400mu_netdev_setup()
366 i2400m_netdev_setup(net_dev); in i2400mu_netdev_setup()
367 net_dev->ethtool_ops = &i2400mu_ethtool_ops; in i2400mu_netdev_setup()
464 struct net_device *net_dev; in i2400mu_probe() local
475 net_dev = alloc_netdev(sizeof(*i2400mu), "wmx%d", NET_NAME_UNKNOWN, in i2400mu_probe()
477 if (net_dev == NULL) { in i2400mu_probe()
481 SET_NETDEV_DEV(net_dev, dev); in i2400mu_probe()
[all …]
Di2400m.h672 struct i2400m *net_dev_to_i2400m(struct net_device *net_dev) in net_dev_to_i2400m() argument
674 return wimax_dev_to_i2400m(netdev_priv(net_dev)); in net_dev_to_i2400m()
794 void i2400m_netdev_setup(struct net_device *net_dev);
865 dev_hold(i2400m->wimax_dev.net_dev); in i2400m_get()
872 dev_put(i2400m->wimax_dev.net_dev); in i2400m_put()
899 return i2400m->wimax_dev.net_dev->dev.parent; in i2400m_dev()
Dusb-rx.c337 struct net_device *net_dev = i2400m->wimax_dev.net_dev; in i2400mu_rxd() local
362 rx_skb = __netdev_alloc_skb(net_dev, rx_size, GFP_KERNEL); in i2400mu_rxd()
Dcontrol.c392 struct net_device *net_dev = wimax_dev->net_dev; in i2400m_report_tlv_media_status() local
399 netif_carrier_on(net_dev); in i2400m_report_tlv_media_status()
402 netif_carrier_off(net_dev); in i2400m_report_tlv_media_status()
410 netif_carrier_on(net_dev); in i2400m_report_tlv_media_status()
Dfw.c1029 struct net_device *net_dev = i2400m->wimax_dev.net_dev; in i2400m_read_mac_addr() local
1057 net_dev->addr_len = ETH_ALEN; in i2400m_read_mac_addr()
1058 memcpy(net_dev->dev_addr, ack_buf.ack_pl, ETH_ALEN); in i2400m_read_mac_addr()
Drx.c985 struct net_device *net_dev = i2400m->wimax_dev.net_dev; in i2400m_rx_edata() local
1011 net_dev->stats.rx_dropped++; in i2400m_rx_edata()
Ddebugfs.c40 *val = netif_queue_stopped(i2400m->wimax_dev.net_dev); in debugfs_netdev_queue_stopped_get()
/linux-4.4.14/drivers/net/ethernet/sis/
Dsis900.c119 static void sis900_read_mode(struct net_device *net_dev, int *speed, int *duplex);
215 static int sis900_open(struct net_device *net_dev);
216 static int sis900_mii_probe (struct net_device * net_dev);
217 static void sis900_init_rxfilter (struct net_device * net_dev);
219 static int mdio_read(struct net_device *net_dev, int phy_id, int location);
220 static void mdio_write(struct net_device *net_dev, int phy_id, int location, int val);
222 static void sis900_check_mode (struct net_device *net_dev, struct mii_phy *mii_phy);
223 static void sis900_tx_timeout(struct net_device *net_dev);
224 static void sis900_init_tx_ring(struct net_device *net_dev);
225 static void sis900_init_rx_ring(struct net_device *net_dev);
[all …]
/linux-4.4.14/net/batman-adv/
Dhard-interface.c54 dev_put(hard_iface->net_dev); in batadv_hardif_free_rcu()
59 batadv_hardif_get_by_netdev(const struct net_device *net_dev) in batadv_hardif_get_by_netdev() argument
65 if (hard_iface->net_dev == net_dev && in batadv_hardif_get_by_netdev()
90 static bool batadv_is_on_batman_iface(const struct net_device *net_dev) in batadv_is_on_batman_iface() argument
96 if (batadv_softif_is_valid(net_dev)) in batadv_is_on_batman_iface()
100 if (dev_get_iflink(net_dev) == 0 || in batadv_is_on_batman_iface()
101 dev_get_iflink(net_dev) == net_dev->ifindex) in batadv_is_on_batman_iface()
105 parent_dev = __dev_get_by_index(&init_net, dev_get_iflink(net_dev)); in batadv_is_on_batman_iface()
115 static int batadv_is_valid_iface(const struct net_device *net_dev) in batadv_is_valid_iface() argument
117 if (net_dev->flags & IFF_LOOPBACK) in batadv_is_valid_iface()
[all …]
Dsysfs.c57 struct net_device *net_dev = batadv_kobj_to_netdev(obj); in batadv_kobj_to_batpriv() local
59 return netdev_priv(net_dev); in batadv_kobj_to_batpriv()
146 struct net_device *net_dev = batadv_kobj_to_netdev(kobj); \
147 struct batadv_priv *bat_priv = netdev_priv(net_dev); \
150 &bat_priv->_name, net_dev); \
178 struct net_device *net_dev = batadv_kobj_to_netdev(kobj); \
179 struct batadv_priv *bat_priv = netdev_priv(net_dev); \
183 &bat_priv->_var, net_dev); \
243 struct net_device *net_dev, in batadv_store_bool_attr() argument
262 batadv_info(net_dev, "%s: Invalid parameter received: %s\n", in batadv_store_bool_attr()
[all …]
Dgateway_common.c43 static bool batadv_parse_gw_bandwidth(struct net_device *net_dev, char *buff, in batadv_parse_gw_bandwidth() argument
68 batadv_err(net_dev, in batadv_parse_gw_bandwidth()
78 batadv_err(net_dev, in batadv_parse_gw_bandwidth()
93 batadv_err(net_dev, in batadv_parse_gw_bandwidth()
118 batadv_err(net_dev, in batadv_parse_gw_bandwidth()
128 batadv_err(net_dev, in batadv_parse_gw_bandwidth()
143 batadv_err(net_dev, in batadv_parse_gw_bandwidth()
184 ssize_t batadv_gw_bandwidth_set(struct net_device *net_dev, char *buff, in batadv_gw_bandwidth_set() argument
187 struct batadv_priv *bat_priv = netdev_priv(net_dev); in batadv_gw_bandwidth_set()
197 ret = batadv_parse_gw_bandwidth(net_dev, buff, &down_new, &up_new); in batadv_gw_bandwidth_set()
[all …]
Ddebugfs.c267 struct net_device *net_dev = (struct net_device *)inode->i_private; in batadv_originators_open() local
269 return single_open(file, batadv_orig_seq_print_text, net_dev); in batadv_originators_open()
281 struct net_device *net_dev = (struct net_device *)inode->i_private; in batadv_originators_hardif_open() local
283 return single_open(file, batadv_orig_hardif_seq_print_text, net_dev); in batadv_originators_hardif_open()
288 struct net_device *net_dev = (struct net_device *)inode->i_private; in batadv_gateways_open() local
290 return single_open(file, batadv_gw_client_seq_print_text, net_dev); in batadv_gateways_open()
295 struct net_device *net_dev = (struct net_device *)inode->i_private; in batadv_transtable_global_open() local
297 return single_open(file, batadv_tt_global_seq_print_text, net_dev); in batadv_transtable_global_open()
303 struct net_device *net_dev = (struct net_device *)inode->i_private; in batadv_bla_claim_table_open() local
306 net_dev); in batadv_bla_claim_table_open()
[all …]
Dbridge_loop_avoidance.c299 primary_if->net_dev->dev_addr, in batadv_bla_send_claim()
456 primary_if->net_dev->dev_addr, in batadv_bla_update_own_backbone_gw()
488 primary_if->net_dev->dev_addr, in batadv_bla_answer_request()
717 if (!batadv_compare_eth(ethhdr->h_dest, primary_if->net_dev->dev_addr)) in batadv_handle_request()
738 primary_if->net_dev->dev_addr)) in batadv_handle_unclaim()
775 if (batadv_compare_eth(backbone_addr, primary_if->net_dev->dev_addr)) in batadv_handle_claim()
831 if (batadv_compare_eth(backbone_addr, primary_if->net_dev->dev_addr)) in batadv_check_claim_group()
1076 primary_if->net_dev->dev_addr)) in batadv_bla_purge_claims()
1114 group = htons(crc16(0, primary_if->net_dev->dev_addr, ETH_ALEN)); in batadv_bla_update_orig_address()
1138 oldif->net_dev->dev_addr)) in batadv_bla_update_orig_address()
[all …]
Ddistributed-arp-table.h38 void batadv_dat_status_update(struct net_device *net_dev);
74 addr = batadv_choose_orig(primary_if->net_dev->dev_addr, in batadv_dat_init_own_addr()
108 static inline void batadv_dat_status_update(struct net_device *net_dev) in batadv_dat_status_update() argument
Doriginator.c502 neigh_addr, orig_node->orig, hard_iface->net_dev->name); in batadv_neigh_node_new()
746 neigh->addr, if_outgoing->net_dev->name); in batadv_purge_neigh_ifinfo()
790 orig_node->orig, if_outgoing->net_dev->name); in batadv_purge_orig_ifinfo()
842 if_incoming->net_dev->name); in batadv_purge_orig_neighbors()
1020 struct net_device *net_dev = (struct net_device *)seq->private; in batadv_orig_seq_print_text() local
1021 struct batadv_priv *bat_priv = netdev_priv(net_dev); in batadv_orig_seq_print_text()
1029 BATADV_SOURCE_VERSION, primary_if->net_dev->name, in batadv_orig_seq_print_text()
1030 primary_if->net_dev->dev_addr, net_dev->name, in batadv_orig_seq_print_text()
1057 struct net_device *net_dev = (struct net_device *)seq->private; in batadv_orig_hardif_seq_print_text() local
1061 hard_iface = batadv_hardif_get_by_netdev(net_dev); in batadv_orig_hardif_seq_print_text()
[all …]
Dsend.c65 if (unlikely(!hard_iface->net_dev)) in batadv_send_skb_packet()
68 if (!(hard_iface->net_dev->flags & IFF_UP)) { in batadv_send_skb_packet()
70 hard_iface->net_dev->name); in batadv_send_skb_packet()
81 ether_addr_copy(ethhdr->h_source, hard_iface->net_dev->dev_addr); in batadv_send_skb_packet()
88 skb->dev = hard_iface->net_dev; in batadv_send_skb_packet()
134 skb->len > neigh_node->if_incoming->net_dev->mtu) { in batadv_send_skb_to_orig()
242 ether_addr_copy(uc_4addr_packet->src, primary_if->net_dev->dev_addr); in batadv_send_skb_prepare_unicast_4addr()
606 hard_iface->net_dev->name); in batadv_purge_outstanding_packets()
Dnetwork-coding.h32 void batadv_nc_status_update(struct net_device *net_dev);
58 static inline void batadv_nc_status_update(struct net_device *net_dev) in batadv_nc_status_update() argument
Dmain.h261 #define batadv_info(net_dev, fmt, arg...) \ argument
263 struct net_device *_netdev = (net_dev); \
268 #define batadv_err(net_dev, fmt, arg...) \ argument
270 struct net_device *_netdev = (net_dev); \
Dbat_iv_ogm.c352 hard_iface->net_dev->dev_addr); in batadv_iv_ogm_iface_update_mac()
354 hard_iface->net_dev->dev_addr); in batadv_iv_ogm_iface_update_mac()
456 hard_iface->net_dev->name, in batadv_iv_ogm_send_to_if()
457 hard_iface->net_dev->dev_addr); in batadv_iv_ogm_send_to_if()
1233 batadv_is_wifi_netdev(if_outgoing->net_dev)) in batadv_iv_ogm_calc_tq()
1250 batadv_ogm_packet->tq, if_incoming->net_dev->name, in batadv_iv_ogm_calc_tq()
1251 if_outgoing ? if_outgoing->net_dev->name : "DEFAULT"); in batadv_iv_ogm_calc_tq()
1355 if_outgoing ? if_outgoing->net_dev->name : "DEFAULT", in batadv_iv_ogm_update_seqnos()
1612 ethhdr->h_source, if_incoming->net_dev->name, in batadv_iv_ogm_process()
1613 if_incoming->net_dev->dev_addr, ogm_packet->orig, in batadv_iv_ogm_process()
[all …]
Dgateway_client.c597 router->if_incoming->net_dev->name, in batadv_write_buffer_text()
616 struct net_device *net_dev = (struct net_device *)seq->private; in batadv_gw_client_seq_print_text() local
617 struct batadv_priv *bat_priv = netdev_priv(net_dev); in batadv_gw_client_seq_print_text()
629 BATADV_SOURCE_VERSION, primary_if->net_dev->name, in batadv_gw_client_seq_print_text()
630 primary_if->net_dev->dev_addr, net_dev->name); in batadv_gw_client_seq_print_text()
Dgateway_common.h47 ssize_t batadv_gw_bandwidth_set(struct net_device *net_dev, char *buff,
Dsoft-interface.h34 int batadv_softif_is_valid(const struct net_device *net_dev);
Dfragmentation.c373 if (total_size > neigh_node->if_incoming->net_dev->mtu) { in batadv_frag_skb_fwd()
446 unsigned mtu = neigh_node->if_incoming->net_dev->mtu; in batadv_frag_send_packet()
475 ether_addr_copy(frag_header.orig, primary_if->net_dev->dev_addr); in batadv_frag_send_packet()
Dhard-interface.h56 batadv_hardif_get_by_netdev(const struct net_device *net_dev);
Drouting.c251 ether_addr_copy(icmph->orig, primary_if->net_dev->dev_addr); in batadv_recv_my_icmp_packet()
305 ether_addr_copy(icmp_packet->orig, primary_if->net_dev->dev_addr); in batadv_recv_icmp_ttl_exceeded()
676 orig_addr = primary_if->net_dev->dev_addr; in batadv_reroute_unicast_packet()
802 ether_addr_copy(unicast_packet->dest, primary_if->net_dev->dev_addr); in batadv_check_unicast_ttvn()
1009 batadv_batman_skb_recv(skb, recv_if->net_dev, in batadv_recv_frag_packet()
Ddistributed-arp-table.c702 void batadv_dat_status_update(struct net_device *net_dev) in batadv_dat_status_update() argument
704 struct batadv_priv *bat_priv = netdev_priv(net_dev); in batadv_dat_status_update()
788 struct net_device *net_dev = (struct net_device *)seq->private; in batadv_dat_cache_seq_print_text() local
789 struct batadv_priv *bat_priv = netdev_priv(net_dev); in batadv_dat_cache_seq_print_text()
802 seq_printf(seq, "Distributed ARP Table (%s):\n", net_dev->name); in batadv_dat_cache_seq_print_text()
Dmain.c251 if (batadv_compare_eth(hard_iface->net_dev->dev_addr, addr)) { in batadv_is_my_mac()
270 struct net_device *net_dev = (struct net_device *)seq->private; in batadv_seq_print_text_primary_if_get() local
271 struct batadv_priv *bat_priv = netdev_priv(net_dev); in batadv_seq_print_text_primary_if_get()
279 net_dev->name); in batadv_seq_print_text_primary_if_get()
288 net_dev->name); in batadv_seq_print_text_primary_if_get()
Dicmp_socket.c257 addr = neigh_node->if_incoming->net_dev->dev_addr; in batadv_socket_write()
279 ether_addr_copy(icmp_header->orig, primary_if->net_dev->dev_addr); in batadv_socket_write()
Dsoft-interface.c330 primary_if->net_dev->dev_addr); in batadv_interface_tx()
1017 int batadv_softif_is_valid(const struct net_device *net_dev) in batadv_softif_is_valid() argument
1019 if (net_dev->netdev_ops->ndo_start_xmit == batadv_interface_tx) in batadv_softif_is_valid()
Dtranslation-table.c937 struct net_device *net_dev = (struct net_device *)seq->private; in batadv_tt_local_seq_print_text() local
938 struct batadv_priv *bat_priv = netdev_priv(net_dev); in batadv_tt_local_seq_print_text()
959 net_dev->name, (u8)atomic_read(&bat_priv->tt.vn)); in batadv_tt_local_seq_print_text()
1627 struct net_device *net_dev = (struct net_device *)seq->private; in batadv_tt_global_seq_print_text() local
1628 struct batadv_priv *bat_priv = netdev_priv(net_dev); in batadv_tt_global_seq_print_text()
1642 net_dev->name); in batadv_tt_global_seq_print_text()
2555 batadv_tvlv_unicast_send(bat_priv, primary_if->net_dev->dev_addr, in batadv_send_tt_request()
2806 batadv_tvlv_unicast_send(bat_priv, primary_if->net_dev->dev_addr, in batadv_send_my_tt_response()
3131 batadv_tvlv_unicast_send(bat_priv, primary_if->net_dev->dev_addr, in batadv_send_roam_adv()
Dnetwork-coding.c116 void batadv_nc_status_update(struct net_device *net_dev) in batadv_nc_status_update() argument
118 struct batadv_priv *bat_priv = netdev_priv(net_dev); in batadv_nc_status_update()
1873 struct net_device *net_dev = (struct net_device *)seq->private; in batadv_nc_nodes_seq_print_text() local
1874 struct batadv_priv *bat_priv = netdev_priv(net_dev); in batadv_nc_nodes_seq_print_text()
Dtypes.h108 struct net_device *net_dev; member
/linux-4.4.14/drivers/net/ethernet/sfc/
Dsriov.c14 int efx_sriov_set_vf_mac(struct net_device *net_dev, int vf_i, u8 *mac) in efx_sriov_set_vf_mac() argument
16 struct efx_nic *efx = netdev_priv(net_dev); in efx_sriov_set_vf_mac()
24 int efx_sriov_set_vf_vlan(struct net_device *net_dev, int vf_i, u16 vlan, in efx_sriov_set_vf_vlan() argument
27 struct efx_nic *efx = netdev_priv(net_dev); in efx_sriov_set_vf_vlan()
40 int efx_sriov_set_vf_spoofchk(struct net_device *net_dev, int vf_i, in efx_sriov_set_vf_spoofchk() argument
43 struct efx_nic *efx = netdev_priv(net_dev); in efx_sriov_set_vf_spoofchk()
51 int efx_sriov_get_vf_config(struct net_device *net_dev, int vf_i, in efx_sriov_get_vf_config() argument
54 struct efx_nic *efx = netdev_priv(net_dev); in efx_sriov_get_vf_config()
62 int efx_sriov_set_vf_link_state(struct net_device *net_dev, int vf_i, in efx_sriov_set_vf_link_state() argument
65 struct efx_nic *efx = netdev_priv(net_dev); in efx_sriov_set_vf_link_state()
[all …]
Defx.c226 netif_err(efx, drv, efx->net_dev, in efx_check_disabled()
294 netif_vdbg(efx, intr, efx->net_dev, in efx_poll()
347 netif_dbg(efx, probe, efx->net_dev, in efx_probe_eventq()
367 netif_dbg(efx, drv, efx->net_dev, in efx_init_eventq()
382 netif_dbg(channel->efx, ifup, channel->efx->net_dev, in efx_start_eventq()
411 netif_dbg(channel->efx, drv, channel->efx->net_dev, in efx_fini_eventq()
420 netif_dbg(channel->efx, drv, channel->efx->net_dev, in efx_remove_eventq()
507 netif_dbg(channel->efx, probe, channel->efx->net_dev, in efx_probe_channel()
582 netif_err(efx, probe, efx->net_dev, in efx_probe_channels()
614 EFX_MAX_FRAME_LEN(efx->net_dev->mtu) + in efx_start_datapath()
[all …]
Dethtool.c96 static int efx_ethtool_phys_id(struct net_device *net_dev, in efx_ethtool_phys_id() argument
99 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_phys_id()
121 static int efx_ethtool_get_settings(struct net_device *net_dev, in efx_ethtool_get_settings() argument
124 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_settings()
143 static int efx_ethtool_set_settings(struct net_device *net_dev, in efx_ethtool_set_settings() argument
146 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_set_settings()
152 netif_dbg(efx, drv, efx->net_dev, in efx_ethtool_set_settings()
163 static void efx_ethtool_get_drvinfo(struct net_device *net_dev, in efx_ethtool_get_drvinfo() argument
166 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_drvinfo()
176 static int efx_ethtool_get_regs_len(struct net_device *net_dev) in efx_ethtool_get_regs_len() argument
[all …]
Dselftest.c139 netif_dbg(efx, drv, efx->net_dev, "testing interrupts\n"); in efx_test_interrupts()
147 netif_dbg(efx, drv, efx->net_dev, "waiting for test interrupt\n"); in efx_test_interrupts()
156 netif_err(efx, drv, efx->net_dev, "timed out waiting for interrupt\n"); in efx_test_interrupts()
160 netif_dbg(efx, drv, efx->net_dev, "%s test interrupt seen on CPU%d\n", in efx_test_interrupts()
220 netif_dbg(efx, drv, efx->net_dev, in efx_test_eventq_irq()
229 netif_err(efx, drv, efx->net_dev, in efx_test_eventq_irq()
233 netif_err(efx, drv, efx->net_dev, in efx_test_eventq_irq()
238 netif_err(efx, drv, efx->net_dev, in efx_test_eventq_irq()
262 netif_info(efx, drv, efx->net_dev, in efx_test_phy()
300 netif_err(efx, drv, efx->net_dev, in efx_loopback_rx_packet()
[all …]
Dsriov.h17 int efx_sriov_set_vf_mac(struct net_device *net_dev, int vf_i, u8 *mac);
18 int efx_sriov_set_vf_vlan(struct net_device *net_dev, int vf_i, u16 vlan,
20 int efx_sriov_set_vf_spoofchk(struct net_device *net_dev, int vf_i,
22 int efx_sriov_get_vf_config(struct net_device *net_dev, int vf_i,
24 int efx_sriov_set_vf_link_state(struct net_device *net_dev, int vf_i,
26 int efx_sriov_get_phys_port_id(struct net_device *net_dev,
Def10_sriov.c241 struct net_device *net_dev = efx->net_dev; in efx_ef10_vswitching_probe_pf() local
261 rc = efx_ef10_vport_add_mac(efx, nic_data->vport_id, net_dev->dev_addr); in efx_ef10_vswitching_probe_pf()
264 ether_addr_copy(nic_data->vport_mac, net_dev->dev_addr); in efx_ef10_vswitching_probe_pf()
340 efx->net_dev->dev_addr); in efx_ef10_vswitching_remove_pf()
376 netif_err(efx, probe, efx->net_dev, in efx_ef10_pci_sriov_enable()
389 netif_info(efx, drv, efx->net_dev, "VFs are assigned to guests; " in efx_ef10_pci_sriov_disable()
438 netif_dbg(efx, drv, efx->net_dev, in efx_ef10_sriov_fini()
441 netif_dbg(efx, drv, efx->net_dev, "SRIOV disabled\n"); in efx_ef10_sriov_fini()
476 efx_net_stop(vf->efx->net_dev); in efx_ef10_sriov_set_vf_mac()
505 ether_addr_copy(vf->efx->net_dev->dev_addr, mac); in efx_ef10_sriov_set_vf_mac()
[all …]
Dfalcon.c440 netif_vdbg(efx, intr, efx->net_dev, in falcon_legacy_interrupt_a1()
446 netif_vdbg(efx, intr, efx->net_dev, in falcon_legacy_interrupt_a1()
541 netif_err(efx, hw, efx->net_dev, in falcon_spi_wait()
678 netif_err(efx, hw, efx->net_dev, in falcon_spi_wait_write()
1034 netif_err(efx, hw, efx->net_dev, in falcon_reset_xaui()
1131 max_frame_len = EFX_MAX_FRAME_LEN(efx->net_dev->mtu); in falcon_reconfigure_xmac_core()
1145 memcpy(&reg, &efx->net_dev->dev_addr[0], 4); in falcon_reconfigure_xmac_core()
1147 memcpy(&reg, &efx->net_dev->dev_addr[4], 2); in falcon_reconfigure_xmac_core()
1204 netif_dbg(efx, hw, efx->net_dev, "bashing xaui\n"); in falcon_xmac_link_ok_retry()
1289 netif_err(efx, hw, efx->net_dev, in falcon_reset_macs()
[all …]
Defx.h22 int efx_net_open(struct net_device *net_dev);
23 int efx_net_stop(struct net_device *net_dev);
32 struct net_device *net_dev);
35 int efx_setup_tc(struct net_device *net_dev, u8 num_tc);
170 int efx_filter_rfs(struct net_device *net_dev, const struct sk_buff *skb,
246 netif_vdbg(channel->efx, intr, channel->efx->net_dev, in efx_schedule_channel()
265 struct net_device *dev = efx->net_dev; in efx_device_detach_sync()
Dmdio_10g.c62 netif_err(efx, hw, efx->net_dev, in efx_mdio_check_mmd()
91 netif_err(efx, hw, efx->net_dev, in efx_mdio_wait_reset_mmds()
108 netif_err(efx, hw, efx->net_dev, in efx_mdio_wait_reset_mmds()
131 netif_err(efx, hw, efx->net_dev, in efx_mdio_check_mmds()
137 netif_err(efx, hw, efx->net_dev, in efx_mdio_check_mmds()
142 netif_vdbg(efx, hw, efx->net_dev, "Devices present: %x\n", devices); in efx_mdio_check_mmds()
206 netif_vdbg(efx, drv, efx->net_dev, "Setting low power mode for MMD %d to %d\n", in efx_mdio_set_mmd_lpower()
314 netif_err(efx, hw, efx->net_dev, in efx_mdio_test_alive()
Def10.c168 netif_err(efx, drv, efx->net_dev, in efx_ef10_init_datapath_caps()
185 netif_err(efx, drv, efx->net_dev, in efx_ef10_init_datapath_caps()
192 netif_err(efx, probe, efx->net_dev, in efx_ef10_init_datapath_caps()
292 struct net_device *net_dev = efx->net_dev; in efx_ef10_probe() local
382 net_dev->dev_port = rc; in efx_ef10_probe()
384 rc = efx->type->get_mac_address(efx, efx->net_dev->perm_addr); in efx_ef10_probe()
411 netif_dbg(efx, probe, efx->net_dev, in efx_ef10_probe()
429 ether_addr_copy(nic_data->port_id, efx->net_dev->perm_addr); in efx_ef10_probe()
506 netif_dbg(efx, probe, efx->net_dev, in efx_ef10_alloc_piobufs()
543 netif_err(efx, drv, efx->net_dev, in efx_ef10_link_piobufs()
[all …]
Dqt202x_phy.c96 netif_err(efx, hw, efx->net_dev, in qt2025c_wait_heartbeat()
151 netif_dbg(efx, hw, efx->net_dev, in qt2025c_wait_reset()
172 netif_info(efx, probe, efx->net_dev, in qt2025c_firmware_id()
206 netif_dbg(efx, hw, efx->net_dev, "bashing QT2025C PMA/PMD\n"); in qt2025c_bug17190_workaround()
239 netif_dbg(efx, hw, efx->net_dev, "Switching PHY to mode 0x%04x\n", in qt2025c_select_phy_mode()
300 netif_err(efx, hw, efx->net_dev, in qt2025c_select_phy_mode()
338 netif_err(efx, hw, efx->net_dev, "PHY reset timed out\n"); in qt202x_reset_phy()
367 netif_err(efx, probe, efx->net_dev, "PHY init failed\n"); in qt202x_phy_init()
372 netif_info(efx, probe, efx->net_dev, in qt202x_phy_init()
Dfarch.c149 netif_err(efx, hw, efx->net_dev, in efx_farch_test_registers()
185 netif_dbg(efx, probe, efx->net_dev, in efx_init_special_buffer()
207 netif_dbg(efx, hw, efx->net_dev, "unmapping special buffers %d-%d\n", in efx_fini_special_buffer()
249 netif_dbg(efx, probe, efx->net_dev, in efx_alloc_special_buffer()
265 netif_dbg(efx, hw, efx->net_dev, in efx_free_special_buffer()
530 netif_dbg(efx, hw, efx->net_dev, in efx_farch_rx_init()
625 netif_dbg(efx, hw, efx->net_dev, in efx_check_tx_flush_complete()
634 netif_dbg(efx, hw, efx->net_dev, in efx_check_tx_flush_complete()
710 netif_err(efx, hw, efx->net_dev, "failed to flush %d queues " in efx_farch_do_flush()
859 netif_tx_lock(efx->net_dev); in efx_farch_handle_tx_event()
[all …]
Dio.h109 netif_vdbg(efx, hw, efx->net_dev, in efx_writeo()
134 netif_vdbg(efx, hw, efx->net_dev, in efx_sram_writeq()
153 netif_vdbg(efx, hw, efx->net_dev, in efx_writed()
174 netif_vdbg(efx, hw, efx->net_dev, in efx_reado()
195 netif_vdbg(efx, hw, efx->net_dev, in efx_sram_readq()
205 netif_vdbg(efx, hw, efx->net_dev, in efx_readd()
238 netif_vdbg(efx, hw, efx->net_dev, in _efx_writeo_page()
Dnic.c90 netif_err(efx, drv, efx->net_dev, in efx_nic_init_interrupt()
100 efx->net_dev->rx_cpu_rmap = in efx_nic_init_interrupt()
102 if (!efx->net_dev->rx_cpu_rmap) { in efx_nic_init_interrupt()
117 netif_err(efx, drv, efx->net_dev, in efx_nic_init_interrupt()
126 rc = irq_cpu_rmap_add(efx->net_dev->rx_cpu_rmap, in efx_nic_init_interrupt()
138 free_irq_cpu_rmap(efx->net_dev->rx_cpu_rmap); in efx_nic_init_interrupt()
139 efx->net_dev->rx_cpu_rmap = NULL; in efx_nic_init_interrupt()
155 free_irq_cpu_rmap(efx->net_dev->rx_cpu_rmap); in efx_nic_fini_interrupt()
156 efx->net_dev->rx_cpu_rmap = NULL; in efx_nic_fini_interrupt()
528 if (!(efx->net_dev->flags & IFF_UP) || !efx->rx_nodesc_drops_prev_state) in efx_nic_fix_nodesc_drop_stat()
[all …]
Dtx.c82 netif_vdbg(tx_queue->efx, tx_done, tx_queue->efx->net_dev, in efx_dequeue_buffer()
454 netif_err(efx, tx_err, efx->net_dev, in efx_enqueue_skb()
504 netif_err(efx, tx_err, efx->net_dev, in efx_dequeue_buffers()
528 struct net_device *net_dev) in efx_hard_start_xmit() argument
530 struct efx_nic *efx = netdev_priv(net_dev); in efx_hard_start_xmit()
534 EFX_WARN_ON_PARANOID(!netif_device_present(net_dev)); in efx_hard_start_xmit()
559 netdev_get_tx_queue(efx->net_dev, in efx_init_tx_queue_core_txq()
565 int efx_setup_tc(struct net_device *net_dev, u8 num_tc) in efx_setup_tc() argument
567 struct efx_nic *efx = netdev_priv(net_dev); in efx_setup_tc()
576 if (num_tc == net_dev->num_tc) in efx_setup_tc()
[all …]
Drx.c352 netif_vdbg(rx_queue->efx, rx_status, rx_queue->efx->net_dev, in efx_fast_push_rx_descriptors()
369 netif_vdbg(rx_queue->efx, rx_status, rx_queue->efx->net_dev, in efx_fast_push_rx_descriptors()
405 netif_err(efx, rx_err, efx->net_dev, in efx_rx_packet__check_len()
413 netif_err(efx, rx_err, efx->net_dev, in efx_rx_packet__check_len()
443 if (efx->net_dev->features & NETIF_F_RXHASH) in efx_rx_packet_gro()
482 skb = netdev_alloc_skb(efx->net_dev, in efx_rx_mk_skb()
523 skb->protocol = eth_type_trans(skb, efx->net_dev); in efx_rx_mk_skb()
557 netif_vdbg(efx, rx_status, efx->net_dev, in efx_rx_packet()
677 if (unlikely(!(efx->net_dev->features & NETIF_F_RXCSUM))) in __efx_rx_packet()
700 netif_dbg(efx, probe, efx->net_dev, in efx_probe_rx_queue()
[all …]
Dmcdi.c106 netif_err(efx, probe, efx->net_dev, in efx_mcdi_init()
112 netif_err(efx, probe, efx->net_dev, in efx_mcdi_init()
220 netif_info(efx, hw, efx->net_dev, "MCDI RPC REQ:%s\n", buf); in efx_mcdi_send_request()
314 netif_info(efx, hw, efx->net_dev, "MCDI RPC RESP:%s\n", buf); in efx_mcdi_read_response_header()
319 netif_err(efx, hw, efx->net_dev, "MC rebooted\n"); in efx_mcdi_read_response_header()
322 netif_err(efx, hw, efx->net_dev, in efx_mcdi_read_response_header()
570 netif_err(efx, hw, efx->net_dev, in efx_mcdi_ev_cpl()
638 netif_err(efx, hw, efx->net_dev, in _efx_mcdi_rpc_finish()
643 netif_err(efx, hw, efx->net_dev, in _efx_mcdi_rpc_finish()
689 netif_err(efx, hw, efx->net_dev, "MC fatal error %d\n", in _efx_mcdi_rpc_finish()
[all …]
Dmdio_10g.h27 return efx->mdio.mdio_read(efx->net_dev, efx->mdio.prtad, devad, addr); in efx_mdio_read()
33 efx->mdio.mdio_write(efx->net_dev, efx->mdio.prtad, devad, addr, value); in efx_mdio_write()
54 netif_dbg(efx, hw, efx->net_dev, "XGXS lane status: %x\n", in efx_mdio_phyxgxs_lane_sync()
Dsiena_sriov.c313 netif_dbg(efx, hw, efx->net_dev, "Removed vf %s tx filter %d\n", in efx_siena_sriov_reset_tx_filter()
336 netif_warn(efx, hw, efx->net_dev, in efx_siena_sriov_reset_tx_filter()
340 netif_dbg(efx, hw, efx->net_dev, "Inserted vf %s tx filter %d\n", in efx_siena_sriov_reset_tx_filter()
357 netif_dbg(efx, hw, efx->net_dev, "Removed vf %s rx filter %d\n", in efx_siena_sriov_reset_rx_filter()
376 netif_warn(efx, hw, efx->net_dev, in efx_siena_sriov_reset_rx_filter()
380 netif_dbg(efx, hw, efx->net_dev, "Inserted vf %s rx filter %d\n", in efx_siena_sriov_reset_rx_filter()
544 netif_err(efx, hw, efx->net_dev, in efx_vfdi_init_evq()
587 netif_err(efx, hw, efx->net_dev, in efx_vfdi_init_rxq()
628 netif_err(efx, hw, efx->net_dev, in efx_vfdi_init_txq()
772 netif_err(efx, hw, efx->net_dev, in efx_vfdi_insert_filter()
[all …]
Dfalcon_boards.c164 netif_err(efx, hw, efx->net_dev, in efx_check_lm87()
304 netif_info(efx, hw, efx->net_dev, "power-cycling PHY\n"); in sfe4001_poweron()
330 netif_info(efx, hw, efx->net_dev, in sfe4001_poweron()
353 netif_info(efx, hw, efx->net_dev, "timed out waiting for DSP boot\n"); in sfe4001_poweron()
383 } else if (efx->state != STATE_READY || netif_running(efx->net_dev)) { in set_phy_flash_cfg()
408 netif_info(efx, drv, efx->net_dev, "%s\n", __func__); in sfe4001_fini()
493 netif_info(efx, hw, efx->net_dev, "PHY is powered on\n"); in sfe4001_init()
760 netif_err(efx, probe, efx->net_dev, "unknown board type %d\n", in falcon_probe_board()
Dtxc43128_phy.c203 netif_err(efx, hw, efx->net_dev, TXCNAME ": reset timed out!\n"); in txc_reset_phy()
248 netif_err(efx, hw, efx->net_dev, TXCNAME": BIST error. " in txc_bist_one()
254 netif_err(efx, hw, efx->net_dev, TXCNAME": BIST error. " in txc_bist_one()
261 netif_info(efx, hw, efx->net_dev, TXCNAME": BIST pass\n"); in txc_bist_one()
428 netif_info(efx, hw, efx->net_dev, in txc_reset_logic_mmd()
Dmcdi_port.c73 netif_err(efx, hw, efx->net_dev, "%s: failed rc=%d\n", __func__, rc); in efx_mcdi_get_phy_cfg()
118 netif_err(efx, hw, efx->net_dev, "%s: failed rc=%d\n", __func__, rc); in efx_mcdi_loopback_modes()
122 static int efx_mcdi_mdio_read(struct net_device *net_dev, in efx_mcdi_mdio_read() argument
125 struct efx_nic *efx = netdev_priv(net_dev); in efx_mcdi_mdio_read()
148 static int efx_mcdi_mdio_write(struct net_device *net_dev, in efx_mcdi_mdio_write() argument
151 struct efx_nic *efx = netdev_priv(net_dev); in efx_mcdi_mdio_write()
470 netif_err(efx, link, efx->net_dev, in efx_mcdi_phy_check_fcntl()
870 efx->net_dev->dev_addr); in efx_mcdi_set_mac()
873 EFX_MAX_FRAME_LEN(efx->net_dev->mtu)); in efx_mcdi_set_mac()
1013 netif_dbg(efx, probe, efx->net_dev, in efx_mcdi_port_probe()
Dptp.c497 netif_info(efx, probe, efx->net_dev, "no PTP support\n"); in efx_ptp_get_attributes()
616 netif_info(efx, probe, efx->net_dev, "no PTP support\n"); in efx_ptp_disable()
637 netif_err(efx, drv, efx->net_dev, in efx_ptp_handle_no_channel()
774 netif_warn(efx, drv, efx->net_dev, in efx_ptp_process_times()
789 netif_warn(efx, hw, efx->net_dev, in efx_ptp_process_times()
946 netif_warn(efx, hw, efx->net_dev, in efx_ptp_drop_time_expired_events()
1500 if (netif_running(efx->net_dev)) in efx_ptp_change_mode()
1593 netif_err(efx, hw, efx->net_dev, in ptp_event_failure()
1639 netif_err(efx, rx_err, efx->net_dev, "PTP event queue overflow\n"); in ptp_event_rx()
1652 netif_err(efx, hw, efx->net_dev, "PTP error %d\n", code); in ptp_event_fault()
[all …]
Dsiena.c220 rc = efx_mcdi_get_board_cfg(efx, efx->net_dev->perm_addr, NULL, &caps); in siena_probe_nvconfig()
258 netif_err(efx, probe, efx->net_dev, in siena_probe_nic()
277 netif_err(efx, probe, efx->net_dev, "failed to reset NIC\n"); in siena_probe_nic()
290 netif_dbg(efx, probe, efx->net_dev, in siena_probe_nic()
299 netif_err(efx, probe, efx->net_dev, in siena_probe_nic()
651 rc = efx_mcdi_wol_filter_set_magic(efx, efx->net_dev->dev_addr, in siena_set_wol()
667 netif_err(efx, hw, efx->net_dev, "%s failed: type=%d rc=%d\n", in siena_set_wol()
Dnet_driver.h1003 struct net_device *net_dev; member
1067 return efx->net_dev->reg_state == NETREG_REGISTERED; in efx_dev_registered()
1424 return !(tx_queue->efx->net_dev->num_tc < 2 && in efx_tx_queue_used()
Dtenxpress.c288 netif_err(efx, link, efx->net_dev, in sfx7101_check_bad_lp()
Dmcdi_mon.c131 netif_err(efx, hw, efx->net_dev, in efx_mcdi_sensor_event()
/linux-4.4.14/drivers/net/ethernet/qualcomm/
Dqca_spi.c83 netdev_dbg(qca->net_dev, "interrupts: 0x%04x\n", *intr_cause); in start_spi_intr_handling()
96 netdev_dbg(qca->net_dev, "acking int: 0x%04x\n", intr_cause); in end_spi_intr_handling()
238 struct net_device_stats *n_stats = &qca->net_dev->stats; in qcaspi_transmit()
272 netif_tx_lock_bh(qca->net_dev); in qcaspi_transmit()
280 if (netif_queue_stopped(qca->net_dev)) in qcaspi_transmit()
281 netif_wake_queue(qca->net_dev); in qcaspi_transmit()
282 netif_tx_unlock_bh(qca->net_dev); in qcaspi_transmit()
291 struct net_device *net_dev = qca->net_dev; in qcaspi_receive() local
292 struct net_device_stats *n_stats = &net_dev->stats; in qcaspi_receive()
299 qca->rx_skb = netdev_alloc_skb(net_dev, in qcaspi_receive()
[all …]
Dqca_spi.h79 struct net_device *net_dev; member
Dqca_debug.c146 device_root = debugfs_create_dir(dev_name(&qca->net_dev->dev), NULL); in qcaspi_init_device_debugfs()
151 dev_name(&qca->net_dev->dev)); in qcaspi_init_device_debugfs()
Dqca_7k.c40 netdev_err(qca->net_dev, "spi error\n"); in qcaspi_spi_error()
/linux-4.4.14/net/atm/
Dbr2684.c83 struct net_device *net_dev; member
102 static inline struct br2684_dev *BRPRIV(const struct net_device *net_dev) in BRPRIV() argument
104 return netdev_priv(net_dev); in BRPRIV()
109 return list_entry(le, struct br2684_dev, br2684_devs)->net_dev; in list_entry_brdev()
126 struct net_device *net_dev; in br2684_find_dev() local
130 net_dev = list_entry_brdev(lh); in br2684_find_dev()
131 if (BRPRIV(net_dev)->number == s->spec.devnum) in br2684_find_dev()
132 return net_dev; in br2684_find_dev()
137 net_dev = list_entry_brdev(lh); in br2684_find_dev()
138 if (!strncmp(net_dev->name, s->spec.ifname, IFNAMSIZ)) in br2684_find_dev()
[all …]
/linux-4.4.14/drivers/net/ethernet/
Dec_bhf.c132 struct net_device *net_dev; member
194 if (unlikely(netif_queue_stopped(priv->net_dev))) { in ec_bhf_process_tx()
199 netif_wake_queue(priv->net_dev); in ec_bhf_process_tx()
224 skb = netdev_alloc_skb_ip_align(priv->net_dev, pkt_size); in ec_bhf_process_rx()
227 skb->protocol = eth_type_trans(skb, priv->net_dev); in ec_bhf_process_rx()
253 if (!netif_running(priv->net_dev)) in ec_bhf_timer_fun()
292 struct net_device *net_dev) in ec_bhf_start_xmit() argument
294 struct ec_bhf_priv *priv = netdev_priv(net_dev); in ec_bhf_start_xmit()
317 netif_stop_queue(net_dev); in ec_bhf_start_xmit()
401 static int ec_bhf_open(struct net_device *net_dev) in ec_bhf_open() argument
[all …]
/linux-4.4.14/drivers/isdn/i4l/
Disdn_concap.c44 struct net_device *ndev = concap->net_dev; in isdn_concap_dl_data_req()
48 IX25DEBUG("isdn_concap_dl_data_req: %s \n", concap->net_dev->name); in isdn_concap_dl_data_req()
50 …IX25DEBUG("isdn_concap_dl_data_req: %s : isdn_net_send_skb returned %d\n", concap->net_dev->name, … in isdn_concap_dl_data_req()
56 …IX25DEBUG("isdn_concap_dl_data_req: %s : isdn_net_send_skb returned %d\n", concap->net_dev->name, … in isdn_concap_dl_data_req()
63 struct net_device *ndev = concap->net_dev; in isdn_concap_dl_connect_req()
76 IX25DEBUG("isdn_concap_dl_disconn_req: %s \n", concap->net_dev->name); in isdn_concap_dl_disconn_req()
78 isdn_net_hangup(concap->net_dev); in isdn_concap_dl_disconn_req()
Disdn_x25iface.c95 tmp->priv.net_dev = NULL; in isdn_x25iface_proto_new()
117 IX25DEBUG("isdn_x25iface_proto_close %s \n", MY_DEVNAME(cprot->net_dev)); in isdn_x25iface_proto_close()
120 cprot->net_dev = NULL; in isdn_x25iface_proto_close()
181 cprot->net_dev = ndev; in isdn_x25iface_proto_restart()
193 IX25DEBUG("isdn_x25iface_receive %s \n", MY_DEVNAME(cprot->net_dev)); in isdn_x25iface_receive()
198 skb->protocol = x25_type_trans(skb, cprot->net_dev); in isdn_x25iface_receive()
203 …KERN_WARNING "isdn_x25iface_receive %s: not connected, skb dropped\n", MY_DEVNAME(cprot->net_dev)); in isdn_x25iface_receive()
216 , MY_DEVNAME(cprot->net_dev)); in isdn_x25iface_connect_ind()
220 , MY_DEVNAME(cprot->net_dev)); in isdn_x25iface_connect_ind()
228 skb->protocol = x25_type_trans(skb, cprot->net_dev); in isdn_x25iface_connect_ind()
[all …]
Disdn_ppp.c31 static void isdn_ppp_push_higher(isdn_net_dev *net_dev, isdn_net_local *lp,
37 static void isdn_ppp_receive_ccp(isdn_net_dev *net_dev, isdn_net_local *lp,
41 static void isdn_ppp_send_ccp(isdn_net_dev *net_dev, isdn_net_local *lp,
68 static void isdn_ppp_mp_receive(isdn_net_dev *net_dev, isdn_net_local *lp,
164 isdn_net_dev *net_dev = dev->netdev; in isdn_ppp_bind() local
167 while (net_dev) { /* step through net devices to find exclusive minors */ in isdn_ppp_bind()
168 isdn_net_local *lp = net_dev->local; in isdn_ppp_bind()
171 net_dev = net_dev->next; in isdn_ppp_bind()
998 void isdn_ppp_receive(isdn_net_dev *net_dev, isdn_net_local *lp, struct sk_buff *skb) in isdn_ppp_receive() argument
1004 BUG_ON(net_dev->local->master); // we're called with the master device always in isdn_ppp_receive()
[all …]
/linux-4.4.14/drivers/net/ethernet/broadcom/
Dbgmac.c144 struct net_device *net_dev = bgmac->net_dev; in bgmac_dma_tx_add() local
166 netif_stop_queue(net_dev); in bgmac_dma_tx_add()
201 netdev_sent_queue(net_dev, skb->len); in bgmac_dma_tx_add()
214 netif_stop_queue(net_dev); in bgmac_dma_tx_add()
291 netdev_completed_queue(bgmac->net_dev, pkts_compl, bytes_compl); in bgmac_dma_tx_free()
293 if (netif_queue_stopped(bgmac->net_dev)) in bgmac_dma_tx_free()
294 netif_wake_queue(bgmac->net_dev); in bgmac_dma_tx_free()
475 skb->protocol = eth_type_trans(skb, bgmac->net_dev); in bgmac_dma_rx_read()
909 static void bgmac_set_rx_mode(struct net_device *net_dev) in bgmac_set_rx_mode() argument
911 struct bgmac *bgmac = netdev_priv(net_dev); in bgmac_set_rx_mode()
[all …]
Dbcm63xx_enet.h324 struct net_device *net_dev; member
Dbgmac.h441 struct net_device *net_dev; member
Dbcm63xx_enet.c492 dev = priv->net_dev; in bcm_enet_poll()
1403 if (netif_running(priv->net_dev)) in bcm_enet_update_mib_counters_defer()
1909 priv->net_dev = dev; in bcm_enet_probe()
2801 priv->net_dev = dev; in bcm_enetsw_probe()
/linux-4.4.14/net/wimax/
Dstack.c139 wimax_dev->net_dev->ifindex); in wimax_gnl_re_state_change_alloc()
279 netif_tx_disable(wimax_dev->net_dev); in __wimax_state_change()
280 netif_carrier_off(wimax_dev->net_dev); in __wimax_state_change()
312 netif_carrier_on(wimax_dev->net_dev); in __wimax_state_change()
313 netif_wake_queue(wimax_dev->net_dev); in __wimax_state_change()
480 int wimax_dev_add(struct wimax_dev *wimax_dev, struct net_device *net_dev) in wimax_dev_add() argument
483 struct device *dev = net_dev->dev.parent; in wimax_dev_add()
486 d_fnstart(3, dev, "(wimax_dev %p net_dev %p)\n", wimax_dev, net_dev); in wimax_dev_add()
490 wimax_dev->net_dev = net_dev; in wimax_dev_add()
509 net_dev->dev_addr, net_dev->addr_len); in wimax_dev_add()
[all …]
Ddebugfs.c42 struct net_device *net_dev = wimax_dev->net_dev; in wimax_debugfs_add() local
43 struct device *dev = net_dev->dev.parent; in wimax_debugfs_add()
47 snprintf(buf, sizeof(buf), "wimax:%s", net_dev->name); in wimax_debugfs_add()
Did-table.c95 if (wimax_dev->net_dev->ifindex == ifindex) { in wimax_dev_get_by_genl_info()
96 dev_hold(wimax_dev->net_dev); in wimax_dev_get_by_genl_info()
141 __func__, wimax_dev, wimax_dev->net_dev->ifindex); in wimax_id_table_release()
Dop-reset.c78 dev_hold(wimax_dev->net_dev); in wimax_reset()
87 dev_put(wimax_dev->net_dev); in wimax_reset()
119 dev_put(wimax_dev->net_dev); in wimax_gnl_doit_reset()
Dop-state-get.c61 dev_put(wimax_dev->net_dev); in wimax_gnl_doit_state_get()
Dop-msg.c145 wimax_dev->net_dev->ifindex); in wimax_msg_alloc()
402 dev_put(wimax_dev->net_dev); in wimax_gnl_doit_msg_from_user()
Dop-rfkill.c442 dev_put(wimax_dev->net_dev); in wimax_gnl_doit_rfkill()
/linux-4.4.14/drivers/net/ethernet/hisilicon/hns/
Dhns_ethtool.c44 static u32 hns_nic_get_link(struct net_device *net_dev) in hns_nic_get_link() argument
46 struct hns_nic_priv *priv = netdev_priv(net_dev); in hns_nic_get_link()
68 static void hns_get_mdix_mode(struct net_device *net_dev, in hns_get_mdix_mode() argument
72 struct hns_nic_priv *priv = netdev_priv(net_dev); in hns_get_mdix_mode()
123 static int hns_nic_get_settings(struct net_device *net_dev, in hns_nic_get_settings() argument
126 struct hns_nic_priv *priv = netdev_priv(net_dev); in hns_nic_get_settings()
142 netdev_err(net_dev, "%s get_info error!\n", __func__); in hns_nic_get_settings()
154 link_stat = hns_nic_get_link(net_dev); in hns_nic_get_settings()
181 hns_get_mdix_mode(net_dev, cmd); in hns_nic_get_settings()
192 static int hns_nic_set_settings(struct net_device *net_dev, in hns_nic_set_settings() argument
[all …]
Dhns_dsaf_mac.h424 void mac_adjust_link(struct net_device *net_dev);
/linux-4.4.14/include/net/
Dwimax.h411 struct net_device *net_dev; member
446 struct wimax_dev *net_dev_to_wimax(struct net_device *net_dev) in net_dev_to_wimax() argument
448 return netdev_priv(net_dev); in net_dev_to_wimax()
454 return wimax_dev->net_dev->dev.parent; in wimax_dev_to_dev()
/linux-4.4.14/drivers/net/wireless/ipw2x00/
Dipw2100.c558 read_nic_dword(priv->net_dev, in ipw2100_get_ordinal()
560 read_nic_dword(priv->net_dev, addr, val); in ipw2100_get_ordinal()
572 read_nic_dword(priv->net_dev, in ipw2100_get_ordinal()
577 read_nic_dword(priv->net_dev, in ipw2100_get_ordinal()
599 read_nic_memory(priv->net_dev, addr, total_length, val); in ipw2100_get_ordinal()
623 read_nic_dword(priv->net_dev, in ipw2100_set_ordinal()
626 write_nic_dword(priv->net_dev, addr, *val); in ipw2100_set_ordinal()
708 priv->net_dev->name, priv->reset_backoff); in schedule_reset()
709 netif_carrier_off(priv->net_dev); in schedule_reset()
710 netif_stop_queue(priv->net_dev); in schedule_reset()
[all …]
Dipw2200.c1495 struct net_device *dev = priv->net_dev; in store_scan_age()
1968 wireless_send_event(priv->net_dev, SIOCGIWAP, &wrqu, NULL); in notify_wx_assoc_event()
2337 priv->net_dev->name, mac); in ipw_send_adapter_address()
4005 netif_carrier_off(priv->net_dev); in ipw_disassociate()
4477 wireless_send_event(priv->net_dev, SIOCGIWSCAN, &wrqu, NULL); in ipw_scan_event()
5052 netif_wake_queue(priv->net_dev); in ipw_queue_tx_reclaim()
5216 priv->net_dev->name); in ipw_rx_queue_replenish()
7705 struct net_device *dev = priv->net_dev; in ipw_handle_data_packet()
7720 } else if (unlikely(!netif_running(priv->net_dev))) { in ipw_handle_data_packet()
7755 struct net_device *dev = priv->net_dev; in ipw_handle_data_packet_monitor()
[all …]
Dipw2100.h568 struct net_device *net_dev; member
Dipw2200.h1184 struct net_device *net_dev; member
/linux-4.4.14/drivers/net/hyperv/
Drndis_filter.c243 ret = netvsc_send(dev->net_dev->dev, packet); in rndis_filter_send_request()
271 ndev = dev->net_dev->ndev; in rndis_filter_receive_response()
372 netdev_err(dev->net_dev->ndev, "rndis message buffer " in rndis_filter_receive_data()
396 netvsc_recv_callback(dev->net_dev->dev, pkt, csum_info); in rndis_filter_receive_data()
402 struct netvsc_device *net_dev = hv_get_drvdata(dev); in rndis_filter_receive() local
408 if (!net_dev) { in rndis_filter_receive()
413 ndev = net_dev->ndev; in rndis_filter_receive()
416 if (!net_dev->extension) { in rndis_filter_receive()
423 rndis_dev = (struct rndis_device *)net_dev->extension; in rndis_filter_receive()
433 if (netif_msg_rx_err(net_dev->nd_ctx)) in rndis_filter_receive()
[all …]
Dhyperv_net.h176 struct netvsc_device *net_dev; member
/linux-4.4.14/drivers/net/can/sja1000/
Dems_pcmcia.c40 struct net_device *net_dev[EMS_PCMCIA_MAX_CHAN]; member
106 dev = card->net_dev[i]; in ems_pcmcia_interrupt()
148 dev = card->net_dev[i]; in ems_pcmcia_del_card()
210 card->net_dev[i] = dev; in ems_pcmcia_add_card()
Dems_pci.c47 struct net_device *net_dev[EMS_PCI_MAX_CHAN]; member
190 dev = card->net_dev[i]; in ems_pci_del_card()
301 card->net_dev[i] = dev; in ems_pci_add_card()
Dplx_pci.c55 struct net_device *net_dev[PLX_PCI_MAX_CHAN]; member
471 dev = card->net_dev[i]; in plx_pci_del_card()
561 card->net_dev[i] = dev; in plx_pci_add_card()
609 card->net_dev[i] = NULL; in plx_pci_add_card()
/linux-4.4.14/drivers/infiniband/core/
Dcma.c1105 static bool validate_ipv4_net_dev(struct net_device *net_dev, in validate_ipv4_net_dev() argument
1123 fl4.flowi4_iif = net_dev->ifindex; in validate_ipv4_net_dev()
1128 err = fib_lookup(dev_net(net_dev), &fl4, &res, 0); in validate_ipv4_net_dev()
1129 ret = err == 0 && FIB_RES_DEV(res) == net_dev; in validate_ipv4_net_dev()
1135 static bool validate_ipv6_net_dev(struct net_device *net_dev, in validate_ipv6_net_dev() argument
1142 struct rt6_info *rt = rt6_lookup(dev_net(net_dev), &dst_addr->sin6_addr, in validate_ipv6_net_dev()
1143 &src_addr->sin6_addr, net_dev->ifindex, in validate_ipv6_net_dev()
1150 ret = rt->rt6i_idev->dev == net_dev; in validate_ipv6_net_dev()
1159 static bool validate_net_dev(struct net_device *net_dev, in validate_net_dev() argument
1171 validate_ipv4_net_dev(net_dev, daddr4, saddr4); in validate_net_dev()
[all …]
Ddevice.c920 struct net_device *net_dev = NULL; in ib_get_net_dev_by_params() local
935 net_dev = client->get_net_dev_by_params(dev, port, pkey, in ib_get_net_dev_by_params()
938 if (net_dev) in ib_get_net_dev_by_params()
945 return net_dev; in ib_get_net_dev_by_params()
/linux-4.4.14/drivers/infiniband/ulp/ipoib/
Dipoib_main.c339 struct net_device *net_dev = NULL; in ipoib_match_gid_pkey_addr() local
345 net_dev = ipoib_get_master_net_dev(priv->dev); in ipoib_match_gid_pkey_addr()
349 net_dev = ipoib_get_net_dev_match_addr(addr, priv->dev); in ipoib_match_gid_pkey_addr()
351 if (net_dev) { in ipoib_match_gid_pkey_addr()
353 *found_net_dev = net_dev; in ipoib_match_gid_pkey_addr()
355 dev_put(net_dev); in ipoib_match_gid_pkey_addr()
382 struct net_device **net_dev) in __ipoib_get_net_dev_by_params() argument
387 *net_dev = NULL; in __ipoib_get_net_dev_by_params()
394 addr, 0, net_dev); in __ipoib_get_net_dev_by_params()
407 struct net_device *net_dev; in ipoib_get_net_dev_by_params() local
[all …]
/linux-4.4.14/include/linux/
Dconcap.h31 struct net_device *net_dev; /* net device using our service */ member
/linux-4.4.14/drivers/net/ethernet/adi/
Dbfin_mac.c1770 struct net_device *net_dev = platform_get_drvdata(pdev); in bfin_mac_suspend() local
1771 struct bfin_mac_local *lp = netdev_priv(net_dev); in bfin_mac_suspend()
1778 if (netif_running(net_dev)) in bfin_mac_suspend()
1779 bfin_mac_close(net_dev); in bfin_mac_suspend()
1787 struct net_device *net_dev = platform_get_drvdata(pdev); in bfin_mac_resume() local
1788 struct bfin_mac_local *lp = netdev_priv(net_dev); in bfin_mac_resume()
1795 if (netif_running(net_dev)) in bfin_mac_resume()
1796 bfin_mac_open(net_dev); in bfin_mac_resume()
/linux-4.4.14/drivers/net/ethernet/hisilicon/
Dhix5hd2_gmac.c753 static int hix5hd2_get_settings(struct net_device *net_dev, in hix5hd2_get_settings() argument
756 struct hix5hd2_priv *priv = netdev_priv(net_dev); in hix5hd2_get_settings()
764 static int hix5hd2_set_settings(struct net_device *net_dev, in hix5hd2_set_settings() argument
767 struct hix5hd2_priv *priv = netdev_priv(net_dev); in hix5hd2_set_settings()
/linux-4.4.14/Documentation/isdn/
DREADME.concap177 struct net_device *net_dev; /* net device using our service */
191 be reset (opend). The network interface must provide the net_dev and
202 struct net_device net_dev;
/linux-4.4.14/drivers/net/ethernet/sun/
Dsunqe.c938 struct net_device *net_dev = qp->dev; in qec_sbus_remove() local
940 unregister_netdev(net_dev); in qec_sbus_remove()
949 free_netdev(net_dev); in qec_sbus_remove()
Dsunbmac.c1243 struct net_device *net_dev = bp->dev; in bigmac_sbus_remove() local
1248 unregister_netdev(net_dev); in bigmac_sbus_remove()
1259 free_netdev(net_dev); in bigmac_sbus_remove()
Dsunhme.c3215 struct net_device *net_dev = hp->dev; in happy_meal_pci_remove() local
3217 unregister_netdev(net_dev); in happy_meal_pci_remove()
3224 free_netdev(net_dev); in happy_meal_pci_remove()
3285 struct net_device *net_dev = hp->dev; in hme_sbus_remove() local
3287 unregister_netdev(net_dev); in hme_sbus_remove()
3301 free_netdev(net_dev); in hme_sbus_remove()
/linux-4.4.14/drivers/net/ethernet/amd/
Dsunlance.c1504 struct net_device *net_dev = lp->dev; in sunlance_sbus_remove() local
1506 unregister_netdev(net_dev); in sunlance_sbus_remove()
1510 free_netdev(net_dev); in sunlance_sbus_remove()
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx4/
Den_netdev.c299 mlx4_en_filter_rfs(struct net_device *net_dev, const struct sk_buff *skb, in mlx4_en_filter_rfs() argument
302 struct mlx4_en_priv *priv = netdev_priv(net_dev); in mlx4_en_filter_rfs()
/linux-4.4.14/drivers/net/ethernet/toshiba/
Dps3_gelic_wireless.c1390 static int gelic_wl_get_nick(struct net_device *net_dev, in gelic_wl_get_nick() argument