Home
last modified time | relevance | path

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

/linux-4.1.27/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.1.27/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.1.27/net/batman-adv/
Dhard-interface.c40 dev_put(hard_iface->net_dev); in batadv_hardif_free_rcu()
45 batadv_hardif_get_by_netdev(const struct net_device *net_dev) in batadv_hardif_get_by_netdev() argument
51 if (hard_iface->net_dev == net_dev && in batadv_hardif_get_by_netdev()
76 static bool batadv_is_on_batman_iface(const struct net_device *net_dev) in batadv_is_on_batman_iface() argument
82 if (batadv_softif_is_valid(net_dev)) in batadv_is_on_batman_iface()
86 if (dev_get_iflink(net_dev) == 0 || in batadv_is_on_batman_iface()
87 dev_get_iflink(net_dev) == net_dev->ifindex) in batadv_is_on_batman_iface()
91 parent_dev = __dev_get_by_index(&init_net, dev_get_iflink(net_dev)); in batadv_is_on_batman_iface()
101 static int batadv_is_valid_iface(const struct net_device *net_dev) in batadv_is_valid_iface() argument
103 if (net_dev->flags & IFF_LOOPBACK) in batadv_is_valid_iface()
[all …]
Dsysfs.c38 struct net_device *net_dev = batadv_kobj_to_netdev(obj); in batadv_kobj_to_batpriv() local
40 return netdev_priv(net_dev); in batadv_kobj_to_batpriv()
127 struct net_device *net_dev = batadv_kobj_to_netdev(kobj); \
128 struct batadv_priv *bat_priv = netdev_priv(net_dev); \
131 &bat_priv->_name, net_dev); \
159 struct net_device *net_dev = batadv_kobj_to_netdev(kobj); \
160 struct batadv_priv *bat_priv = netdev_priv(net_dev); \
164 &bat_priv->_name, net_dev); \
224 struct net_device *net_dev, in batadv_store_bool_attr() argument
243 batadv_info(net_dev, "%s: Invalid parameter received: %s\n", in batadv_store_bool_attr()
[all …]
Ddebugfs.c246 struct net_device *net_dev = (struct net_device *)inode->i_private; in batadv_originators_open() local
248 return single_open(file, batadv_orig_seq_print_text, net_dev); in batadv_originators_open()
260 struct net_device *net_dev = (struct net_device *)inode->i_private; in batadv_originators_hardif_open() local
262 return single_open(file, batadv_orig_hardif_seq_print_text, net_dev); in batadv_originators_hardif_open()
267 struct net_device *net_dev = (struct net_device *)inode->i_private; in batadv_gateways_open() local
269 return single_open(file, batadv_gw_client_seq_print_text, net_dev); in batadv_gateways_open()
274 struct net_device *net_dev = (struct net_device *)inode->i_private; in batadv_transtable_global_open() local
276 return single_open(file, batadv_tt_global_seq_print_text, net_dev); in batadv_transtable_global_open()
282 struct net_device *net_dev = (struct net_device *)inode->i_private; in batadv_bla_claim_table_open() local
285 net_dev); in batadv_bla_claim_table_open()
[all …]
Dgateway_common.c32 static bool batadv_parse_gw_bandwidth(struct net_device *net_dev, char *buff, in batadv_parse_gw_bandwidth() argument
57 batadv_err(net_dev, in batadv_parse_gw_bandwidth()
90 batadv_err(net_dev, in batadv_parse_gw_bandwidth()
139 ssize_t batadv_gw_bandwidth_set(struct net_device *net_dev, char *buff, in batadv_gw_bandwidth_set() argument
142 struct batadv_priv *bat_priv = netdev_priv(net_dev); in batadv_gw_bandwidth_set()
149 ret = batadv_parse_gw_bandwidth(net_dev, buff, &down_new, &up_new); in batadv_gw_bandwidth_set()
166 batadv_info(net_dev, in batadv_gw_bandwidth_set()
Dbridge_loop_avoidance.c284 primary_if->net_dev->dev_addr, in batadv_bla_send_claim()
441 primary_if->net_dev->dev_addr, in batadv_bla_update_own_backbone_gw()
473 primary_if->net_dev->dev_addr, in batadv_bla_answer_request()
703 if (!batadv_compare_eth(ethhdr->h_dest, primary_if->net_dev->dev_addr)) in batadv_handle_request()
724 primary_if->net_dev->dev_addr)) in batadv_handle_unclaim()
761 if (batadv_compare_eth(backbone_addr, primary_if->net_dev->dev_addr)) in batadv_handle_claim()
817 if (batadv_compare_eth(backbone_addr, primary_if->net_dev->dev_addr)) in batadv_check_claim_group()
1062 primary_if->net_dev->dev_addr)) in batadv_bla_purge_claims()
1100 group = htons(crc16(0, primary_if->net_dev->dev_addr, ETH_ALEN)); in batadv_bla_update_orig_address()
1124 oldif->net_dev->dev_addr)) in batadv_bla_update_orig_address()
[all …]
Ddistributed-arp-table.h31 void batadv_dat_status_update(struct net_device *net_dev);
67 addr = batadv_choose_orig(primary_if->net_dev->dev_addr, in batadv_dat_init_own_addr()
101 static inline void batadv_dat_status_update(struct net_device *net_dev) in batadv_dat_status_update() argument
Dsend.c47 if (unlikely(!hard_iface->net_dev)) in batadv_send_skb_packet()
50 if (!(hard_iface->net_dev->flags & IFF_UP)) { in batadv_send_skb_packet()
52 hard_iface->net_dev->name); in batadv_send_skb_packet()
63 ether_addr_copy(ethhdr->h_source, hard_iface->net_dev->dev_addr); in batadv_send_skb_packet()
70 skb->dev = hard_iface->net_dev; in batadv_send_skb_packet()
116 skb->len > neigh_node->if_incoming->net_dev->mtu) { in batadv_send_skb_to_orig()
224 ether_addr_copy(uc_4addr_packet->src, primary_if->net_dev->dev_addr); in batadv_send_skb_prepare_unicast_4addr()
588 hard_iface->net_dev->name); in batadv_purge_outstanding_packets()
Doriginator.c707 neigh->addr, if_outgoing->net_dev->name); in batadv_purge_neigh_ifinfo()
751 orig_node->orig, if_outgoing->net_dev->name); in batadv_purge_orig_ifinfo()
803 if_incoming->net_dev->name); in batadv_purge_orig_neighbors()
982 struct net_device *net_dev = (struct net_device *)seq->private; in batadv_orig_seq_print_text() local
983 struct batadv_priv *bat_priv = netdev_priv(net_dev); in batadv_orig_seq_print_text()
991 BATADV_SOURCE_VERSION, primary_if->net_dev->name, in batadv_orig_seq_print_text()
992 primary_if->net_dev->dev_addr, net_dev->name, in batadv_orig_seq_print_text()
1019 struct net_device *net_dev = (struct net_device *)seq->private; in batadv_orig_hardif_seq_print_text() local
1023 hard_iface = batadv_hardif_get_by_netdev(net_dev); in batadv_orig_hardif_seq_print_text()
1043 BATADV_SOURCE_VERSION, hard_iface->net_dev->name, in batadv_orig_hardif_seq_print_text()
[all …]
Dnetwork-coding.h23 void batadv_nc_status_update(struct net_device *net_dev);
49 static inline void batadv_nc_status_update(struct net_device *net_dev) in batadv_nc_status_update() argument
Dmain.h263 #define batadv_info(net_dev, fmt, arg...) \ argument
265 struct net_device *_netdev = (net_dev); \
270 #define batadv_err(net_dev, fmt, arg...) \ argument
272 struct net_device *_netdev = (net_dev); \
Dbat_iv_ogm.c300 hard_iface->net_dev->name); in batadv_iv_ogm_neigh_new()
351 hard_iface->net_dev->dev_addr); in batadv_iv_ogm_iface_update_mac()
353 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()
1229 batadv_is_wifi_netdev(if_outgoing->net_dev)) in batadv_iv_ogm_calc_tq()
1246 batadv_ogm_packet->tq, if_incoming->net_dev->name, in batadv_iv_ogm_calc_tq()
1247 if_outgoing ? if_outgoing->net_dev->name : "DEFAULT"); in batadv_iv_ogm_calc_tq()
1351 if_outgoing ? if_outgoing->net_dev->name : "DEFAULT", in batadv_iv_ogm_update_seqnos()
1608 ethhdr->h_source, if_incoming->net_dev->name, in batadv_iv_ogm_process()
[all …]
Dgateway_client.c599 router->if_incoming->net_dev->name, in batadv_write_buffer_text()
618 struct net_device *net_dev = (struct net_device *)seq->private; in batadv_gw_client_seq_print_text() local
619 struct batadv_priv *bat_priv = netdev_priv(net_dev); in batadv_gw_client_seq_print_text()
631 BATADV_SOURCE_VERSION, primary_if->net_dev->name, in batadv_gw_client_seq_print_text()
632 primary_if->net_dev->dev_addr, net_dev->name); in batadv_gw_client_seq_print_text()
Dgateway_common.h41 ssize_t batadv_gw_bandwidth_set(struct net_device *net_dev, char *buff,
Dsoft-interface.h27 int batadv_softif_is_valid(const struct net_device *net_dev);
Dfragmentation.c354 if (total_size > neigh_node->if_incoming->net_dev->mtu) { in batadv_frag_skb_fwd()
427 unsigned mtu = neigh_node->if_incoming->net_dev->mtu; in batadv_frag_send_packet()
456 ether_addr_copy(frag_header.orig, primary_if->net_dev->dev_addr); in batadv_frag_send_packet()
Dhard-interface.h45 batadv_hardif_get_by_netdev(const struct net_device *net_dev);
Drouting.c226 ether_addr_copy(icmph->orig, primary_if->net_dev->dev_addr); in batadv_recv_my_icmp_packet()
280 ether_addr_copy(icmp_packet->orig, primary_if->net_dev->dev_addr); in batadv_recv_icmp_ttl_exceeded()
651 orig_addr = primary_if->net_dev->dev_addr; in batadv_reroute_unicast_packet()
777 ether_addr_copy(unicast_packet->dest, primary_if->net_dev->dev_addr); in batadv_check_unicast_ttvn()
973 batadv_batman_skb_recv(skb, recv_if->net_dev, in batadv_recv_frag_packet()
Dmain.c225 if (batadv_compare_eth(hard_iface->net_dev->dev_addr, addr)) { in batadv_is_my_mac()
244 struct net_device *net_dev = (struct net_device *)seq->private; in batadv_seq_print_text_primary_if_get() local
245 struct batadv_priv *bat_priv = netdev_priv(net_dev); in batadv_seq_print_text_primary_if_get()
253 net_dev->name); in batadv_seq_print_text_primary_if_get()
262 net_dev->name); in batadv_seq_print_text_primary_if_get()
Ddistributed-arp-table.c664 void batadv_dat_status_update(struct net_device *net_dev) in batadv_dat_status_update() argument
666 struct batadv_priv *bat_priv = netdev_priv(net_dev); in batadv_dat_status_update()
751 struct net_device *net_dev = (struct net_device *)seq->private; in batadv_dat_cache_seq_print_text() local
752 struct batadv_priv *bat_priv = netdev_priv(net_dev); in batadv_dat_cache_seq_print_text()
765 seq_printf(seq, "Distributed ARP Table (%s):\n", net_dev->name); in batadv_dat_cache_seq_print_text()
Dicmp_socket.c232 addr = neigh_node->if_incoming->net_dev->dev_addr; in batadv_socket_write()
254 ether_addr_copy(icmp_header->orig, primary_if->net_dev->dev_addr); in batadv_socket_write()
Dsoft-interface.c300 primary_if->net_dev->dev_addr); in batadv_interface_tx()
985 int batadv_softif_is_valid(const struct net_device *net_dev) in batadv_softif_is_valid() argument
987 if (net_dev->netdev_ops->ndo_start_xmit == batadv_interface_tx) in batadv_softif_is_valid()
Dtranslation-table.c905 struct net_device *net_dev = (struct net_device *)seq->private; in batadv_tt_local_seq_print_text() local
906 struct batadv_priv *bat_priv = netdev_priv(net_dev); in batadv_tt_local_seq_print_text()
927 net_dev->name, (uint8_t)atomic_read(&bat_priv->tt.vn)); in batadv_tt_local_seq_print_text()
1590 struct net_device *net_dev = (struct net_device *)seq->private; in batadv_tt_global_seq_print_text() local
1591 struct batadv_priv *bat_priv = netdev_priv(net_dev); in batadv_tt_global_seq_print_text()
1605 net_dev->name); in batadv_tt_global_seq_print_text()
2503 batadv_tvlv_unicast_send(bat_priv, primary_if->net_dev->dev_addr, in batadv_send_tt_request()
2753 batadv_tvlv_unicast_send(bat_priv, primary_if->net_dev->dev_addr, in batadv_send_my_tt_response()
3078 batadv_tvlv_unicast_send(bat_priv, primary_if->net_dev->dev_addr, in batadv_send_roam_adv()
Dnetwork-coding.c87 void batadv_nc_status_update(struct net_device *net_dev) in batadv_nc_status_update() argument
89 struct batadv_priv *bat_priv = netdev_priv(net_dev); in batadv_nc_status_update()
1847 struct net_device *net_dev = (struct net_device *)seq->private; in batadv_nc_nodes_seq_print_text() local
1848 struct batadv_priv *bat_priv = netdev_priv(net_dev); in batadv_nc_nodes_seq_print_text()
Dtypes.h94 struct net_device *net_dev; member
/linux-4.1.27/drivers/net/ethernet/sfc/
Defx.c224 netif_err(efx, drv, efx->net_dev, in efx_check_disabled()
278 netif_vdbg(efx, intr, efx->net_dev, in efx_poll()
331 netif_dbg(efx, probe, efx->net_dev, in efx_probe_eventq()
351 netif_dbg(efx, drv, efx->net_dev, in efx_init_eventq()
366 netif_dbg(channel->efx, ifup, channel->efx->net_dev, in efx_start_eventq()
395 netif_dbg(channel->efx, drv, channel->efx->net_dev, in efx_fini_eventq()
404 netif_dbg(channel->efx, drv, channel->efx->net_dev, in efx_remove_eventq()
491 netif_dbg(channel->efx, probe, channel->efx->net_dev, in efx_probe_channel()
566 netif_err(efx, probe, efx->net_dev, in efx_probe_channels()
598 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.c136 netif_dbg(efx, drv, efx->net_dev, "testing interrupts\n"); in efx_test_interrupts()
144 netif_dbg(efx, drv, efx->net_dev, "waiting for test interrupt\n"); in efx_test_interrupts()
153 netif_err(efx, drv, efx->net_dev, "timed out waiting for interrupt\n"); in efx_test_interrupts()
157 netif_dbg(efx, drv, efx->net_dev, "%s test interrupt seen on CPU%d\n", in efx_test_interrupts()
217 netif_dbg(efx, drv, efx->net_dev, in efx_test_eventq_irq()
226 netif_err(efx, drv, efx->net_dev, in efx_test_eventq_irq()
230 netif_err(efx, drv, efx->net_dev, in efx_test_eventq_irq()
235 netif_err(efx, drv, efx->net_dev, in efx_test_eventq_irq()
291 netif_err(efx, drv, efx->net_dev, in efx_loopback_rx_packet()
299 netif_err(efx, drv, efx->net_dev, in efx_loopback_rx_packet()
[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()
528 netif_err(efx, hw, efx->net_dev, in falcon_spi_wait()
665 netif_err(efx, hw, efx->net_dev, in falcon_spi_wait_write()
1021 netif_err(efx, hw, efx->net_dev, in falcon_reset_xaui()
1118 max_frame_len = EFX_MAX_FRAME_LEN(efx->net_dev->mtu); in falcon_reconfigure_xmac_core()
1132 memcpy(&reg, &efx->net_dev->dev_addr[0], 4); in falcon_reconfigure_xmac_core()
1134 memcpy(&reg, &efx->net_dev->dev_addr[4], 2); in falcon_reconfigure_xmac_core()
1191 netif_dbg(efx, hw, efx->net_dev, "bashing xaui\n"); in falcon_xmac_link_ok_retry()
1276 netif_err(efx, hw, efx->net_dev, in falcon_reset_macs()
[all …]
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()
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()
Dsiena_sriov.c312 netif_dbg(efx, hw, efx->net_dev, "Removed vf %s tx filter %d\n", in efx_siena_sriov_reset_tx_filter()
335 netif_warn(efx, hw, efx->net_dev, in efx_siena_sriov_reset_tx_filter()
339 netif_dbg(efx, hw, efx->net_dev, "Inserted vf %s tx filter %d\n", in efx_siena_sriov_reset_tx_filter()
356 netif_dbg(efx, hw, efx->net_dev, "Removed vf %s rx filter %d\n", in efx_siena_sriov_reset_rx_filter()
375 netif_warn(efx, hw, efx->net_dev, in efx_siena_sriov_reset_rx_filter()
379 netif_dbg(efx, hw, efx->net_dev, "Inserted vf %s rx filter %d\n", in efx_siena_sriov_reset_rx_filter()
542 netif_err(efx, hw, efx->net_dev, in efx_vfdi_init_evq()
585 netif_err(efx, hw, efx->net_dev, in efx_vfdi_init_rxq()
626 netif_err(efx, hw, efx->net_dev, in efx_vfdi_init_txq()
770 netif_err(efx, hw, efx->net_dev, in efx_vfdi_insert_filter()
[all …]
Dfarch.c147 netif_err(efx, hw, efx->net_dev, in efx_farch_test_registers()
183 netif_dbg(efx, probe, efx->net_dev, in efx_init_special_buffer()
205 netif_dbg(efx, hw, efx->net_dev, "unmapping special buffers %d-%d\n", in efx_fini_special_buffer()
247 netif_dbg(efx, probe, efx->net_dev, in efx_alloc_special_buffer()
263 netif_dbg(efx, hw, efx->net_dev, in efx_free_special_buffer()
528 netif_dbg(efx, hw, efx->net_dev, in efx_farch_rx_init()
623 netif_dbg(efx, hw, efx->net_dev, in efx_check_tx_flush_complete()
632 netif_dbg(efx, hw, efx->net_dev, in efx_check_tx_flush_complete()
708 netif_err(efx, hw, efx->net_dev, "failed to flush %d queues " in efx_farch_do_flush()
857 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 …]
Def10.c112 netif_err(efx, drv, efx->net_dev, in efx_ef10_init_datapath_caps()
122 netif_err(efx, drv, efx->net_dev, in efx_ef10_init_datapath_caps()
129 netif_err(efx, probe, efx->net_dev, in efx_ef10_init_datapath_caps()
245 rc = efx_ef10_get_mac_address(efx, efx->net_dev->perm_addr); in efx_ef10_probe()
260 netif_dbg(efx, probe, efx->net_dev, in efx_ef10_probe()
341 netif_dbg(efx, probe, efx->net_dev, in efx_ef10_alloc_piobufs()
376 netif_err(efx, drv, efx->net_dev, in efx_ef10_link_piobufs()
382 netif_dbg(efx, probe, efx->net_dev, in efx_ef10_link_piobufs()
424 netif_err(efx, drv, efx->net_dev, in efx_ef10_link_piobufs()
433 netif_dbg(efx, probe, efx->net_dev, in efx_ef10_link_piobufs()
[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.c91 netif_err(efx, probe, efx->net_dev, in efx_mcdi_init()
97 netif_err(efx, probe, efx->net_dev, in efx_mcdi_init()
227 netif_err(efx, hw, efx->net_dev, "MC rebooted\n"); in efx_mcdi_read_response_header()
230 netif_err(efx, hw, efx->net_dev, in efx_mcdi_read_response_header()
478 netif_err(efx, hw, efx->net_dev, in efx_mcdi_ev_cpl()
546 netif_err(efx, hw, efx->net_dev, in _efx_mcdi_rpc_finish()
551 netif_err(efx, hw, efx->net_dev, in _efx_mcdi_rpc_finish()
597 netif_err(efx, hw, efx->net_dev, "MC fatal error %d\n", in _efx_mcdi_rpc_finish()
798 netif_err(efx, hw, efx->net_dev, in efx_mcdi_display_error()
985 netif_dbg(efx, hw, efx->net_dev, "MCDI is timing out; trying to recover\n"); in efx_mcdi_abandon()
[all …]
Defx.h27 struct net_device *net_dev);
30 int efx_setup_tc(struct net_device *net_dev, u8 num_tc);
156 int efx_filter_rfs(struct net_device *net_dev, const struct sk_buff *skb,
225 netif_vdbg(channel->efx, intr, channel->efx->net_dev, in efx_schedule_channel()
244 struct net_device *dev = efx->net_dev; in efx_device_detach_sync()
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()
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()
869 efx->net_dev->dev_addr); in efx_mcdi_set_mac()
872 EFX_MAX_FRAME_LEN(efx->net_dev->mtu)); in efx_mcdi_set_mac()
1006 netif_dbg(efx, probe, efx->net_dev, in efx_mcdi_port_probe()
Dptp.c393 netif_err(efx, hw, efx->net_dev, in efx_ptp_update_stats()
627 netif_err(efx, drv, efx->net_dev, in efx_ptp_handle_no_channel()
764 netif_warn(efx, drv, efx->net_dev, in efx_ptp_process_times()
779 netif_warn(efx, hw, efx->net_dev, in efx_ptp_process_times()
936 netif_warn(efx, hw, efx->net_dev, in efx_ptp_drop_time_expired_events()
1490 if (netif_running(efx->net_dev)) in efx_ptp_change_mode()
1583 netif_err(efx, hw, efx->net_dev, in ptp_event_failure()
1629 netif_err(efx, rx_err, efx->net_dev, "PTP event queue overflow\n"); in ptp_event_rx()
1642 netif_err(efx, hw, efx->net_dev, "PTP error %d\n", code); in ptp_event_fault()
1658 netif_warn(efx, drv, efx->net_dev, in efx_ptp_event()
[all …]
Dsiena.c219 rc = efx_mcdi_get_board_cfg(efx, efx->net_dev->perm_addr, NULL, &caps); in siena_probe_nvconfig()
257 netif_err(efx, probe, efx->net_dev, in siena_probe_nic()
275 netif_err(efx, probe, efx->net_dev, "failed to reset NIC\n"); in siena_probe_nic()
288 netif_dbg(efx, probe, efx->net_dev, in siena_probe_nic()
297 netif_err(efx, probe, efx->net_dev, in siena_probe_nic()
642 rc = efx_mcdi_wol_filter_set_magic(efx, efx->net_dev->dev_addr, in siena_set_wol()
658 netif_err(efx, hw, efx->net_dev, "%s failed: type=%d rc=%d\n", in siena_set_wol()
Dnet_driver.h1016 struct net_device *net_dev; member
1079 return efx->net_dev->reg_state == NETREG_REGISTERED; in efx_dev_registered()
1413 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()
Dnic.h623 int efx_siena_sriov_set_vf_spoofchk(struct net_device *net_dev, int vf,
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.h440 struct net_device *net_dev; member
Dbcm63xx_enet.c492 dev = priv->net_dev; in bcm_enet_poll()
1404 if (netif_running(priv->net_dev)) in bcm_enet_update_mib_counters_defer()
1910 priv->net_dev = dev; in bcm_enet_probe()
2798 priv->net_dev = dev; in bcm_enetsw_probe()
/linux-4.1.27/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.c443 dev_put(wimax_dev->net_dev); in wimax_gnl_doit_rfkill()
/linux-4.1.27/drivers/staging/ozwpan/
Dozproto.c78 struct net_device *dev = pd->net_dev; in oz_send_conn_rsp()
164 const u8 *pd_addr, struct net_device *net_dev) in oz_connect_req() argument
202 if (pd->net_dev != net_dev) { in oz_connect_req()
203 old_net_dev = pd->net_dev; in oz_connect_req()
204 dev_hold(net_dev); in oz_connect_req()
205 pd->net_dev = net_dev; in oz_connect_req()
672 void oz_binding_add(const char *net_dev) in oz_binding_add() argument
682 if (net_dev && *net_dev) { in oz_binding_add()
683 memcpy(binding->name, net_dev, OZ_MAX_BINDING_LEN); in oz_binding_add()
684 oz_dbg(ON, "Adding binding: %s\n", net_dev); in oz_binding_add()
[all …]
Dozproto.h47 void oz_binding_add(const char *net_dev);
48 void oz_binding_remove(const char *net_dev);
Dozpd.c170 if (pd->net_dev) in oz_pd_free()
171 dev_put(pd->net_dev); in oz_pd_free()
411 struct net_device *dev = pd->net_dev; in oz_build_frame()
566 struct net_device *dev = pd->net_dev; in oz_send_isoc_frame()
712 struct net_device *dev = pd->net_dev; in oz_send_isoc_unit()
Dozpd.h99 struct net_device *net_dev; member
/linux-4.1.27/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.1.27/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.1.27/drivers/net/hyperv/
Drndis_filter.c242 ret = netvsc_send(dev->net_dev->dev, packet); in rndis_filter_send_request()
270 ndev = dev->net_dev->ndev; in rndis_filter_receive_response()
371 netdev_err(dev->net_dev->ndev, "rndis message buffer " in rndis_filter_receive_data()
395 netvsc_recv_callback(dev->net_dev->dev, pkt, csum_info); in rndis_filter_receive_data()
401 struct netvsc_device *net_dev = hv_get_drvdata(dev); in rndis_filter_receive() local
407 if (!net_dev) { in rndis_filter_receive()
412 ndev = net_dev->ndev; in rndis_filter_receive()
415 if (!net_dev->extension) { in rndis_filter_receive()
422 rndis_dev = (struct rndis_device *)net_dev->extension; in rndis_filter_receive()
432 if (netif_msg_rx_err(net_dev->nd_ctx)) in rndis_filter_receive()
[all …]
Dhyperv_net.h174 struct netvsc_device *net_dev; member
/linux-4.1.27/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.1.27/drivers/infiniband/hw/ocrdma/
Docrdma_main.c441 struct net_device *net_dev; in ocrdma_init_gid_table() local
443 for_each_netdev(&init_net, net_dev) { in ocrdma_init_gid_table()
444 struct net_device *real_dev = rdma_vlan_dev_real_dev(net_dev) ? in ocrdma_init_gid_table()
445 rdma_vlan_dev_real_dev(net_dev) : net_dev; in ocrdma_init_gid_table()
449 ocrdma_init_ipv4_gids(dev, net_dev); in ocrdma_init_gid_table()
450 ocrdma_init_ipv6_gids(dev, net_dev); in ocrdma_init_gid_table()
/linux-4.1.27/include/linux/
Dconcap.h31 struct net_device *net_dev; /* net device using our service */ member
/linux-4.1.27/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.1.27/drivers/net/ethernet/hisilicon/
Dhix5hd2_gmac.c754 static int hix5hd2_get_settings(struct net_device *net_dev, in hix5hd2_get_settings() argument
757 struct hix5hd2_priv *priv = netdev_priv(net_dev); in hix5hd2_get_settings()
765 static int hix5hd2_set_settings(struct net_device *net_dev, in hix5hd2_set_settings() argument
768 struct hix5hd2_priv *priv = netdev_priv(net_dev); in hix5hd2_set_settings()
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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