/net/batman-adv/ |
D | hard-interface.c | 56 dev_put(hard_iface->net_dev); in batadv_hardif_release() 62 batadv_hardif_get_by_netdev(const struct net_device *net_dev) in batadv_hardif_get_by_netdev() argument 68 if (hard_iface->net_dev == net_dev && in batadv_hardif_get_by_netdev() 115 static bool batadv_is_on_batman_iface(const struct net_device *net_dev) in batadv_is_on_batman_iface() argument 121 if (batadv_softif_is_valid(net_dev)) in batadv_is_on_batman_iface() 125 if (dev_get_iflink(net_dev) == 0 || in batadv_is_on_batman_iface() 126 dev_get_iflink(net_dev) == net_dev->ifindex) in batadv_is_on_batman_iface() 130 parent_dev = __dev_get_by_index(&init_net, dev_get_iflink(net_dev)); in batadv_is_on_batman_iface() 137 if (batadv_mutual_parents(net_dev, parent_dev)) in batadv_is_on_batman_iface() 145 static int batadv_is_valid_iface(const struct net_device *net_dev) in batadv_is_valid_iface() argument [all …]
|
D | sysfs.c | 57 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 …]
|
D | debugfs.c | 269 struct net_device *net_dev = (struct net_device *)inode->i_private; in batadv_originators_open() local 271 return single_open(file, batadv_orig_seq_print_text, net_dev); in batadv_originators_open() 283 struct net_device *net_dev = (struct net_device *)inode->i_private; in batadv_originators_hardif_open() local 285 return single_open(file, batadv_orig_hardif_seq_print_text, net_dev); in batadv_originators_hardif_open() 290 struct net_device *net_dev = (struct net_device *)inode->i_private; in batadv_gateways_open() local 292 return single_open(file, batadv_gw_client_seq_print_text, net_dev); in batadv_gateways_open() 297 struct net_device *net_dev = (struct net_device *)inode->i_private; in batadv_transtable_global_open() local 299 return single_open(file, batadv_tt_global_seq_print_text, net_dev); in batadv_transtable_global_open() 305 struct net_device *net_dev = (struct net_device *)inode->i_private; in batadv_bla_claim_table_open() local 308 net_dev); in batadv_bla_claim_table_open() [all …]
|
D | gateway_common.c | 43 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 …]
|
D | bridge_loop_avoidance.c | 314 primary_if->net_dev->dev_addr, in batadv_bla_send_claim() 478 primary_if->net_dev->dev_addr, in batadv_bla_update_own_backbone_gw() 510 primary_if->net_dev->dev_addr, in batadv_bla_answer_request() 792 if (!batadv_compare_eth(ethhdr->h_dest, primary_if->net_dev->dev_addr)) in batadv_handle_request() 813 primary_if->net_dev->dev_addr)) in batadv_handle_unclaim() 850 if (batadv_compare_eth(backbone_addr, primary_if->net_dev->dev_addr)) in batadv_handle_claim() 906 if (batadv_compare_eth(backbone_addr, primary_if->net_dev->dev_addr)) in batadv_check_claim_group() 1154 primary_if->net_dev->dev_addr)) in batadv_bla_purge_claims() 1195 group = htons(crc16(0, primary_if->net_dev->dev_addr, ETH_ALEN)); in batadv_bla_update_orig_address() 1219 oldif->net_dev->dev_addr)) in batadv_bla_update_orig_address() [all …]
|
D | fragmentation.c | 376 if (total_size > neigh_node->if_incoming->net_dev->mtu) { in batadv_frag_skb_fwd() 408 static struct sk_buff *batadv_frag_create(struct net_device *net_dev, in batadv_frag_create() argument 413 unsigned int ll_reserved = LL_RESERVED_SPACE(net_dev); in batadv_frag_create() 414 unsigned int tailroom = net_dev->needed_tailroom; in batadv_frag_create() 449 struct net_device *net_dev = neigh_node->if_incoming->net_dev; in batadv_frag_send_packet() local 454 unsigned mtu = net_dev->mtu; in batadv_frag_send_packet() 488 ether_addr_copy(frag_header.orig, primary_if->net_dev->dev_addr); in batadv_frag_send_packet() 497 skb_fragment = batadv_frag_create(net_dev, skb, &frag_header, in batadv_frag_send_packet()
|
D | originator.c | 497 neigh_addr, orig_node->orig, hard_iface->net_dev->name); in batadv_neigh_node_new() 758 neigh->addr, if_outgoing->net_dev->name); in batadv_purge_neigh_ifinfo() 802 orig_node->orig, if_outgoing->net_dev->name); in batadv_purge_orig_ifinfo() 854 if_incoming->net_dev->name); in batadv_purge_orig_neighbors() 1032 struct net_device *net_dev = (struct net_device *)seq->private; in batadv_orig_seq_print_text() local 1033 struct batadv_priv *bat_priv = netdev_priv(net_dev); in batadv_orig_seq_print_text() 1041 BATADV_SOURCE_VERSION, primary_if->net_dev->name, in batadv_orig_seq_print_text() 1042 primary_if->net_dev->dev_addr, net_dev->name, in batadv_orig_seq_print_text() 1069 struct net_device *net_dev = (struct net_device *)seq->private; in batadv_orig_hardif_seq_print_text() local 1073 hard_iface = batadv_hardif_get_by_netdev(net_dev); in batadv_orig_hardif_seq_print_text() [all …]
|
D | send.c | 65 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()
|
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 | main.h | 261 #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); \
|
D | bat_iv_ogm.c | 370 hard_iface->net_dev->dev_addr); in batadv_iv_ogm_iface_update_mac() 372 hard_iface->net_dev->dev_addr); in batadv_iv_ogm_iface_update_mac() 491 hard_iface->net_dev->name, in batadv_iv_ogm_send_to_if() 492 hard_iface->net_dev->dev_addr); in batadv_iv_ogm_send_to_if() 1292 batadv_is_wifi_netdev(if_outgoing->net_dev)) in batadv_iv_ogm_calc_tq() 1309 batadv_ogm_packet->tq, if_incoming->net_dev->name, in batadv_iv_ogm_calc_tq() 1310 if_outgoing ? if_outgoing->net_dev->name : "DEFAULT"); in batadv_iv_ogm_calc_tq() 1414 if_outgoing ? if_outgoing->net_dev->name : "DEFAULT", in batadv_iv_ogm_update_seqnos() 1671 ethhdr->h_source, if_incoming->net_dev->name, in batadv_iv_ogm_process() 1672 if_incoming->net_dev->dev_addr, ogm_packet->orig, in batadv_iv_ogm_process() [all …]
|
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 | gateway_client.c | 605 router->if_incoming->net_dev->name, in batadv_write_buffer_text() 624 struct net_device *net_dev = (struct net_device *)seq->private; in batadv_gw_client_seq_print_text() local 625 struct batadv_priv *bat_priv = netdev_priv(net_dev); in batadv_gw_client_seq_print_text() 637 BATADV_SOURCE_VERSION, primary_if->net_dev->name, in batadv_gw_client_seq_print_text() 638 primary_if->net_dev->dev_addr, net_dev->name); in batadv_gw_client_seq_print_text()
|
D | gateway_common.h | 47 ssize_t batadv_gw_bandwidth_set(struct net_device *net_dev, char *buff,
|
D | soft-interface.h | 34 int batadv_softif_is_valid(const struct net_device *net_dev);
|
D | routing.c | 251 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() 732 orig_addr = primary_if->net_dev->dev_addr; in batadv_reroute_unicast_packet() 866 ether_addr_copy(unicast_packet->dest, primary_if->net_dev->dev_addr); in batadv_check_unicast_ttvn() 1082 batadv_batman_skb_recv(skb, recv_if->net_dev, in batadv_recv_frag_packet()
|
D | distributed-arp-table.c | 704 void batadv_dat_status_update(struct net_device *net_dev) in batadv_dat_status_update() argument 706 struct batadv_priv *bat_priv = netdev_priv(net_dev); in batadv_dat_status_update() 790 struct net_device *net_dev = (struct net_device *)seq->private; in batadv_dat_cache_seq_print_text() local 791 struct batadv_priv *bat_priv = netdev_priv(net_dev); in batadv_dat_cache_seq_print_text() 804 seq_printf(seq, "Distributed ARP Table (%s):\n", net_dev->name); in batadv_dat_cache_seq_print_text()
|
/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()
|
D | op-msg.c | 145 wimax_dev->net_dev->ifindex); in wimax_msg_alloc() 402 dev_put(wimax_dev->net_dev); in wimax_gnl_doit_msg_from_user()
|
D | op-state-get.c | 61 dev_put(wimax_dev->net_dev); in wimax_gnl_doit_state_get()
|
/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 …]
|