/net/batman-adv/ |
D | hard-interface.c | 64 dev_put(hard_iface->net_dev); in batadv_hardif_release() 70 batadv_hardif_get_by_netdev(const struct net_device *net_dev) in batadv_hardif_get_by_netdev() argument 76 if (hard_iface->net_dev == net_dev && in batadv_hardif_get_by_netdev() 153 static bool batadv_is_on_batman_iface(const struct net_device *net_dev) in batadv_is_on_batman_iface() argument 155 struct net *net = dev_net(net_dev); in batadv_is_on_batman_iface() 161 if (batadv_softif_is_valid(net_dev)) in batadv_is_on_batman_iface() 165 if (dev_get_iflink(net_dev) == 0 || in batadv_is_on_batman_iface() 166 dev_get_iflink(net_dev) == net_dev->ifindex) in batadv_is_on_batman_iface() 169 parent_net = batadv_getlink_net(net_dev, net); in batadv_is_on_batman_iface() 173 dev_get_iflink(net_dev)); in batadv_is_on_batman_iface() [all …]
|
D | debugfs.c | 56 struct net_device *net_dev = (struct net_device *)inode->i_private; in neighbors_open() local 58 return single_open(file, batadv_hardif_neigh_seq_print_text, net_dev); in neighbors_open() 63 struct net_device *net_dev = (struct net_device *)inode->i_private; in batadv_originators_open() local 65 return single_open(file, batadv_orig_seq_print_text, net_dev); in batadv_originators_open() 79 struct net_device *net_dev = (struct net_device *)inode->i_private; in batadv_originators_hardif_open() local 81 return single_open(file, batadv_orig_hardif_seq_print_text, net_dev); in batadv_originators_hardif_open() 86 struct net_device *net_dev = (struct net_device *)inode->i_private; in batadv_gateways_open() local 88 return single_open(file, batadv_gw_client_seq_print_text, net_dev); in batadv_gateways_open() 93 struct net_device *net_dev = (struct net_device *)inode->i_private; in batadv_transtable_global_open() local 95 return single_open(file, batadv_tt_global_seq_print_text, net_dev); in batadv_transtable_global_open() [all …]
|
D | sysfs.c | 61 struct net_device *net_dev = batadv_kobj_to_netdev(obj); in batadv_kobj_to_batpriv() local 63 return netdev_priv(net_dev); in batadv_kobj_to_batpriv() 153 struct net_device *net_dev = batadv_kobj_to_netdev(kobj); \ 154 struct batadv_priv *bat_priv = netdev_priv(net_dev); \ 157 &bat_priv->_name, net_dev); \ 185 struct net_device *net_dev = batadv_kobj_to_netdev(kobj); \ 186 struct batadv_priv *bat_priv = netdev_priv(net_dev); \ 190 &bat_priv->_var, net_dev); \ 254 struct net_device *net_dev = batadv_kobj_to_netdev(kobj); \ 258 hard_iface = batadv_hardif_get_by_netdev(net_dev); \ [all …]
|
D | gateway_common.c | 45 bool batadv_parse_throughput(struct net_device *net_dev, char *buff, in batadv_parse_throughput() argument 66 batadv_err(net_dev, in batadv_parse_throughput() 76 batadv_err(net_dev, in batadv_parse_throughput() 91 batadv_err(net_dev, in batadv_parse_throughput() 112 static bool batadv_parse_gw_bandwidth(struct net_device *net_dev, char *buff, in batadv_parse_gw_bandwidth() argument 122 ret = batadv_parse_throughput(net_dev, buff, "download gateway speed", in batadv_parse_gw_bandwidth() 129 ret = batadv_parse_throughput(net_dev, slash_ptr + 1, in batadv_parse_gw_bandwidth() 167 ssize_t batadv_gw_bandwidth_set(struct net_device *net_dev, char *buff, in batadv_gw_bandwidth_set() argument 170 struct batadv_priv *bat_priv = netdev_priv(net_dev); in batadv_gw_bandwidth_set() 180 ret = batadv_parse_gw_bandwidth(net_dev, buff, &down_new, &up_new); in batadv_gw_bandwidth_set() [all …]
|
D | bat_v_elp.c | 92 if (batadv_is_wifi_netdev(hard_iface->net_dev)) { in batadv_v_elp_get_throughput() 93 if (hard_iface->net_dev->ieee80211_ptr) { in batadv_v_elp_get_throughput() 94 ret = cfg80211_get_station(hard_iface->net_dev, in batadv_v_elp_get_throughput() 116 ret = __ethtool_get_link_ksettings(hard_iface->net_dev, &link_settings); in batadv_v_elp_get_throughput() 134 hard_iface->net_dev->name, in batadv_v_elp_get_throughput() 190 if (!batadv_is_wifi_netdev(hard_iface->net_dev)) in batadv_v_elp_wifi_neigh_probe() 223 hard_iface->net_dev->name, neigh->addr); in batadv_v_elp_wifi_neigh_probe() 274 hard_iface->net_dev->name, in batadv_v_elp_periodic_work() 355 if (batadv_is_wifi_netdev(hard_iface->net_dev)) in batadv_v_elp_iface_enable() 397 primary_iface->net_dev->dev_addr); in batadv_v_elp_iface_activate()
|
D | bridge_loop_avoidance.c | 376 primary_if->net_dev->dev_addr, in batadv_bla_send_claim() 580 primary_if->net_dev->dev_addr, in batadv_bla_update_own_backbone_gw() 612 primary_if->net_dev->dev_addr, in batadv_bla_answer_request() 903 if (!batadv_compare_eth(ethhdr->h_dest, primary_if->net_dev->dev_addr)) in batadv_handle_request() 933 primary_if->net_dev->dev_addr)) in batadv_handle_unclaim() 979 if (batadv_compare_eth(backbone_addr, primary_if->net_dev->dev_addr)) in batadv_handle_claim() 1035 if (batadv_compare_eth(backbone_addr, primary_if->net_dev->dev_addr)) in batadv_check_claim_group() 1291 primary_if->net_dev->dev_addr)) in batadv_bla_purge_claims() 1331 group = htons(crc16(0, primary_if->net_dev->dev_addr, ETH_ALEN)); in batadv_bla_update_orig_address() 1355 oldif->net_dev->dev_addr)) in batadv_bla_update_orig_address() [all …]
|
D | log.h | 96 #define batadv_info(net_dev, fmt, arg...) \ argument 98 struct net_device *_netdev = (net_dev); \ 103 #define batadv_err(net_dev, fmt, arg...) \ argument 105 struct net_device *_netdev = (net_dev); \
|
D | originator.c | 663 neigh_addr, orig_node->orig, hard_iface->net_dev->name); in batadv_neigh_node_create() 706 struct net_device *net_dev = (struct net_device *)seq->private; in batadv_hardif_neigh_seq_print_text() local 707 struct batadv_priv *bat_priv = netdev_priv(net_dev); in batadv_hardif_neigh_seq_print_text() 715 BATADV_SOURCE_VERSION, primary_if->net_dev->name, in batadv_hardif_neigh_seq_print_text() 716 primary_if->net_dev->dev_addr, net_dev->name, in batadv_hardif_neigh_seq_print_text() 1067 neigh->addr, if_outgoing->net_dev->name); in batadv_purge_neigh_ifinfo() 1111 orig_node->orig, if_outgoing->net_dev->name); in batadv_purge_orig_ifinfo() 1163 if_incoming->net_dev->name); in batadv_purge_orig_neighbors() 1347 struct net_device *net_dev = (struct net_device *)seq->private; in batadv_orig_seq_print_text() local 1348 struct batadv_priv *bat_priv = netdev_priv(net_dev); in batadv_orig_seq_print_text() [all …]
|
D | send.c | 83 if (unlikely(!hard_iface->net_dev)) in batadv_send_skb_packet() 86 if (!(hard_iface->net_dev->flags & IFF_UP)) { in batadv_send_skb_packet() 88 hard_iface->net_dev->name); in batadv_send_skb_packet() 99 ether_addr_copy(ethhdr->h_source, hard_iface->net_dev->dev_addr); in batadv_send_skb_packet() 106 skb->dev = hard_iface->net_dev; in batadv_send_skb_packet() 191 skb->len > neigh_node->if_incoming->net_dev->mtu) { in batadv_send_skb_to_orig() 295 ether_addr_copy(uc_4addr_packet->src, primary_if->net_dev->dev_addr); in batadv_send_skb_prepare_unicast_4addr() 675 hard_iface->net_dev->name); in batadv_purge_outstanding_packets()
|
D | distributed-arp-table.h | 38 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
|
D | gateway_common.h | 47 ssize_t batadv_gw_bandwidth_set(struct net_device *net_dev, char *buff, 52 bool batadv_parse_throughput(struct net_device *net_dev, char *buff,
|
D | bat_v_ogm.c | 189 hard_iface->net_dev->name, in batadv_v_ogm_send() 190 hard_iface->net_dev->dev_addr); in batadv_v_ogm_send() 242 ether_addr_copy(ogm_packet->orig, primary_iface->net_dev->dev_addr); in batadv_v_ogm_primary_iface_set() 353 skb = netdev_alloc_skb_ip_align(if_outgoing->net_dev, in batadv_v_ogm_forward() 369 if_outgoing->net_dev->name, ntohl(ogm_forward->throughput), in batadv_v_ogm_forward() 370 ogm_forward->ttl, if_incoming->net_dev->name); in batadv_v_ogm_forward() 662 ethhdr->h_source, if_incoming->net_dev->name, in batadv_v_ogm_process() 663 if_incoming->net_dev->dev_addr, ogm_packet->orig, in batadv_v_ogm_process()
|
D | bat_iv_ogm.c | 404 hard_iface->net_dev->dev_addr); in batadv_iv_ogm_iface_update_mac() 406 hard_iface->net_dev->dev_addr); in batadv_iv_ogm_iface_update_mac() 514 hard_iface->net_dev->name, in batadv_iv_ogm_send_to_if() 515 hard_iface->net_dev->dev_addr); in batadv_iv_ogm_send_to_if() 1275 batadv_is_wifi_netdev(if_outgoing->net_dev)) in batadv_iv_ogm_calc_tq() 1292 batadv_ogm_packet->tq, if_incoming->net_dev->name, in batadv_iv_ogm_calc_tq() 1293 if_outgoing ? if_outgoing->net_dev->name : "DEFAULT"); in batadv_iv_ogm_calc_tq() 1398 if_outgoing ? if_outgoing->net_dev->name : "DEFAULT", in batadv_iv_ogm_update_seqnos() 1665 ethhdr->h_source, if_incoming->net_dev->name, in batadv_iv_ogm_process() 1666 if_incoming->net_dev->dev_addr, ogm_packet->orig, in batadv_iv_ogm_process() [all …]
|
D | netlink.c | 155 hard_iface = primary_if->net_dev; in batadv_netlink_mesh_info_put() 450 struct net_device *net_dev = hard_iface->net_dev; in batadv_netlink_dump_hardif_entry() local 459 net_dev->ifindex) || in batadv_netlink_dump_hardif_entry() 461 net_dev->name) || in batadv_netlink_dump_hardif_entry() 463 net_dev->dev_addr)) in batadv_netlink_dump_hardif_entry()
|
D | bat_v.c | 181 throughput % 10, hardif_neigh->if_incoming->net_dev->name); in batadv_v_hardif_neigh_print() 192 struct net_device *net_dev = (struct net_device *)seq->private; in batadv_v_neigh_print() local 202 if (hard_iface->soft_iface != net_dev) in batadv_v_neigh_print() 247 hardif_neigh->if_incoming->net_dev->ifindex) || in batadv_v_neigh_dump_neigh() 400 neigh_node->if_incoming->net_dev->name); in batadv_v_orig_print() 469 neigh_node->if_incoming->net_dev->ifindex) || in batadv_v_orig_dump_subentry() 860 router->if_incoming->net_dev->name, in batadv_v_gw_write_buffer_text() 970 router->if_incoming->net_dev->name)) { in batadv_v_gw_dump_entry()
|
D | network-coding.h | 32 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
|
D | main.c | 276 if (batadv_compare_eth(hard_iface->net_dev->dev_addr, addr)) { in batadv_is_my_mac() 296 struct net_device *net_dev = (struct net_device *)seq->private; in batadv_seq_print_text_primary_if_get() local 297 struct batadv_priv *bat_priv = netdev_priv(net_dev); in batadv_seq_print_text_primary_if_get() 305 net_dev->name); in batadv_seq_print_text_primary_if_get() 314 net_dev->name); in batadv_seq_print_text_primary_if_get()
|
D | gateway_client.c | 488 struct net_device *net_dev = (struct net_device *)seq->private; in batadv_gw_client_seq_print_text() local 489 struct batadv_priv *bat_priv = netdev_priv(net_dev); in batadv_gw_client_seq_print_text() 497 BATADV_SOURCE_VERSION, primary_if->net_dev->name, in batadv_gw_client_seq_print_text() 498 primary_if->net_dev->dev_addr, net_dev->name, in batadv_gw_client_seq_print_text()
|
D | fragmentation.c | 374 if (total_size > neigh_node->if_incoming->net_dev->mtu) { in batadv_frag_skb_fwd() 447 unsigned int mtu = neigh_node->if_incoming->net_dev->mtu; in batadv_frag_send_packet() 485 ether_addr_copy(frag_header.orig, primary_if->net_dev->dev_addr); in batadv_frag_send_packet()
|
/net/atm/ |
D | br2684.c | 83 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 …]
|
/net/wimax/ |
D | stack.c | 139 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 …]
|
D | debugfs.c | 42 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()
|
D | id-table.c | 95 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()
|
D | op-reset.c | 78 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()
|
/net/netfilter/ |
D | xt_qtaguid.c | 751 stats = dev_get_stats(iface_entry->net_dev, in iface_stat_fmt_proc_show() 829 struct net_device *net_dev, in _iface_stat_set_active() argument 833 entry->net_dev = net_dev; in _iface_stat_set_active() 838 __this_cpu_read(*net_dev->pcpu_refcnt)); in _iface_stat_set_active() 841 entry->net_dev = NULL; in _iface_stat_set_active() 845 __this_cpu_read(*net_dev->pcpu_refcnt)); in _iface_stat_set_active() 851 static struct iface_stat *iface_alloc(struct net_device *net_dev) in iface_alloc() argument 859 "iface_stat alloc failed\n", net_dev->name); in iface_alloc() 862 new_iface->ifname = kstrdup(net_dev->name, GFP_ATOMIC); in iface_alloc() 865 "ifname alloc failed\n", net_dev->name); in iface_alloc() [all …]
|