/kernel/linux/linux-5.10/net/batman-adv/ |
D | multicast.c | 70 static void batadv_mcast_start_timer(struct batadv_priv *bat_priv) in batadv_mcast_start_timer() argument 72 queue_delayed_work(batadv_event_workqueue, &bat_priv->mcast.work, in batadv_mcast_start_timer() 167 static u8 batadv_mcast_mla_rtr_flags_softif_get(struct batadv_priv *bat_priv, in batadv_mcast_mla_rtr_flags_softif_get() argument 170 struct net_device *dev = bridge ? bridge : bat_priv->soft_iface; in batadv_mcast_mla_rtr_flags_softif_get() 198 static u8 batadv_mcast_mla_rtr_flags_bridge_get(struct batadv_priv *bat_priv, in batadv_mcast_mla_rtr_flags_bridge_get() argument 202 struct net_device *dev = bat_priv->soft_iface; in batadv_mcast_mla_rtr_flags_bridge_get() 235 batadv_mcast_mla_rtr_flags_bridge_get(struct batadv_priv *bat_priv, in batadv_mcast_mla_rtr_flags_bridge_get() argument 260 static u8 batadv_mcast_mla_rtr_flags_get(struct batadv_priv *bat_priv, in batadv_mcast_mla_rtr_flags_get() argument 265 flags &= batadv_mcast_mla_rtr_flags_softif_get(bat_priv, bridge); in batadv_mcast_mla_rtr_flags_get() 266 flags &= batadv_mcast_mla_rtr_flags_bridge_get(bat_priv, bridge); in batadv_mcast_mla_rtr_flags_get() [all …]
|
D | soft-interface.c | 102 static u64 batadv_sum_counter(struct batadv_priv *bat_priv, size_t idx) in batadv_sum_counter() argument 108 counters = per_cpu_ptr(bat_priv->bat_counters, cpu); in batadv_sum_counter() 117 struct batadv_priv *bat_priv = netdev_priv(dev); in batadv_interface_stats() local 120 stats->tx_packets = batadv_sum_counter(bat_priv, BATADV_CNT_TX); in batadv_interface_stats() 121 stats->tx_bytes = batadv_sum_counter(bat_priv, BATADV_CNT_TX_BYTES); in batadv_interface_stats() 122 stats->tx_dropped = batadv_sum_counter(bat_priv, BATADV_CNT_TX_DROPPED); in batadv_interface_stats() 123 stats->rx_packets = batadv_sum_counter(bat_priv, BATADV_CNT_RX); in batadv_interface_stats() 124 stats->rx_bytes = batadv_sum_counter(bat_priv, BATADV_CNT_RX_BYTES); in batadv_interface_stats() 130 struct batadv_priv *bat_priv = netdev_priv(dev); in batadv_interface_set_mac_addr() local 142 if (atomic_read(&bat_priv->mesh_state) != BATADV_MESH_ACTIVE) in batadv_interface_set_mac_addr() [all …]
|
D | main.c | 158 struct batadv_priv *bat_priv = netdev_priv(soft_iface); in batadv_mesh_init() local 161 spin_lock_init(&bat_priv->forw_bat_list_lock); in batadv_mesh_init() 162 spin_lock_init(&bat_priv->forw_bcast_list_lock); in batadv_mesh_init() 163 spin_lock_init(&bat_priv->tt.changes_list_lock); in batadv_mesh_init() 164 spin_lock_init(&bat_priv->tt.req_list_lock); in batadv_mesh_init() 165 spin_lock_init(&bat_priv->tt.roam_list_lock); in batadv_mesh_init() 166 spin_lock_init(&bat_priv->tt.last_changeset_lock); in batadv_mesh_init() 167 spin_lock_init(&bat_priv->tt.commit_lock); in batadv_mesh_init() 168 spin_lock_init(&bat_priv->gw.list_lock); in batadv_mesh_init() 170 spin_lock_init(&bat_priv->mcast.mla_lock); in batadv_mesh_init() [all …]
|
D | gateway_client.c | 80 batadv_gw_get_selected_gw_node(struct batadv_priv *bat_priv) in batadv_gw_get_selected_gw_node() argument 85 gw_node = rcu_dereference(bat_priv->gw.curr_gw); in batadv_gw_get_selected_gw_node() 104 batadv_gw_get_selected_orig(struct batadv_priv *bat_priv) in batadv_gw_get_selected_orig() argument 109 gw_node = batadv_gw_get_selected_gw_node(bat_priv); in batadv_gw_get_selected_orig() 129 static void batadv_gw_select(struct batadv_priv *bat_priv, in batadv_gw_select() argument 134 spin_lock_bh(&bat_priv->gw.list_lock); in batadv_gw_select() 139 curr_gw_node = rcu_replace_pointer(bat_priv->gw.curr_gw, new_gw_node, in batadv_gw_select() 145 spin_unlock_bh(&bat_priv->gw.list_lock); in batadv_gw_select() 159 void batadv_gw_reselect(struct batadv_priv *bat_priv) in batadv_gw_reselect() argument 161 atomic_set(&bat_priv->gw.reselect, 1); in batadv_gw_reselect() [all …]
|
D | bridge_loop_avoidance.c | 57 batadv_bla_send_announce(struct batadv_priv *bat_priv, 219 batadv_claim_hash_find(struct batadv_priv *bat_priv, in batadv_claim_hash_find() argument 222 struct batadv_hashtable *hash = bat_priv->bla.claim_hash; in batadv_claim_hash_find() 259 batadv_backbone_hash_find(struct batadv_priv *bat_priv, u8 *addr, in batadv_backbone_hash_find() argument 262 struct batadv_hashtable *hash = bat_priv->bla.backbone_hash; in batadv_backbone_hash_find() 308 hash = backbone_gw->bat_priv->bla.claim_hash; in batadv_bla_del_backbone_claims() 341 static void batadv_bla_send_claim(struct batadv_priv *bat_priv, u8 *mac, in batadv_bla_send_claim() argument 352 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_bla_send_claim() 356 memcpy(&local_claim_dest, &bat_priv->bla.claim_dest, in batadv_bla_send_claim() 391 batadv_dbg(BATADV_DBG_BLA, bat_priv, in batadv_bla_send_claim() [all …]
|
D | distributed-arp-table.h | 28 bool batadv_dat_snoop_outgoing_arp_request(struct batadv_priv *bat_priv, 30 bool batadv_dat_snoop_incoming_arp_request(struct batadv_priv *bat_priv, 32 void batadv_dat_snoop_outgoing_arp_reply(struct batadv_priv *bat_priv, 34 bool batadv_dat_snoop_incoming_arp_reply(struct batadv_priv *bat_priv, 36 void batadv_dat_snoop_outgoing_dhcp_ack(struct batadv_priv *bat_priv, 40 void batadv_dat_snoop_incoming_dhcp_ack(struct batadv_priv *bat_priv, 42 bool batadv_dat_drop_broadcast_packet(struct batadv_priv *bat_priv, 64 batadv_dat_init_own_addr(struct batadv_priv *bat_priv, in batadv_dat_init_own_addr() argument 72 bat_priv->dat.addr = (batadv_dat_addr_t)addr; in batadv_dat_init_own_addr() 75 int batadv_dat_init(struct batadv_priv *bat_priv); [all …]
|
D | distributed-arp-table.c | 103 static void batadv_dat_start_timer(struct batadv_priv *bat_priv) in batadv_dat_start_timer() argument 105 INIT_DELAYED_WORK(&bat_priv->dat.work, batadv_dat_purge); in batadv_dat_start_timer() 106 queue_delayed_work(batadv_event_workqueue, &bat_priv->dat.work, in batadv_dat_start_timer() 160 static void __batadv_dat_purge(struct batadv_priv *bat_priv, in __batadv_dat_purge() argument 169 if (!bat_priv->dat.hash) in __batadv_dat_purge() 172 for (i = 0; i < bat_priv->dat.hash->size; i++) { in __batadv_dat_purge() 173 head = &bat_priv->dat.hash->table[i]; in __batadv_dat_purge() 174 list_lock = &bat_priv->dat.hash->list_locks[i]; in __batadv_dat_purge() 201 struct batadv_priv *bat_priv; in batadv_dat_purge() local 205 bat_priv = container_of(priv_dat, struct batadv_priv, dat); in batadv_dat_purge() [all …]
|
D | network-coding.c | 77 static void batadv_nc_start_timer(struct batadv_priv *bat_priv) in batadv_nc_start_timer() argument 79 queue_delayed_work(batadv_event_workqueue, &bat_priv->nc.work, in batadv_nc_start_timer() 88 static void batadv_nc_tvlv_container_update(struct batadv_priv *bat_priv) in batadv_nc_tvlv_container_update() argument 92 nc_mode = atomic_read(&bat_priv->network_coding); in batadv_nc_tvlv_container_update() 96 batadv_tvlv_container_unregister(bat_priv, BATADV_TVLV_NC, 1); in batadv_nc_tvlv_container_update() 99 batadv_tvlv_container_register(bat_priv, BATADV_TVLV_NC, 1, in batadv_nc_tvlv_container_update() 112 struct batadv_priv *bat_priv = netdev_priv(net_dev); in batadv_nc_status_update() local 114 batadv_nc_tvlv_container_update(bat_priv); in batadv_nc_status_update() 125 static void batadv_nc_tvlv_ogm_handler_v1(struct batadv_priv *bat_priv, in batadv_nc_tvlv_ogm_handler_v1() argument 142 int batadv_nc_mesh_init(struct batadv_priv *bat_priv) in batadv_nc_mesh_init() argument [all …]
|
D | translation-table.c | 66 static void batadv_send_roam_adv(struct batadv_priv *bat_priv, u8 *client, 72 static void batadv_tt_global_del(struct batadv_priv *bat_priv, 172 batadv_tt_local_hash_find(struct batadv_priv *bat_priv, const u8 *addr, in batadv_tt_local_hash_find() argument 178 tt_common_entry = batadv_tt_hash_find(bat_priv->tt.local_hash, addr, in batadv_tt_local_hash_find() 197 batadv_tt_global_hash_find(struct batadv_priv *bat_priv, const u8 *addr, in batadv_tt_global_hash_find() argument 203 tt_common_entry = batadv_tt_hash_find(bat_priv->tt.global_hash, addr, in batadv_tt_global_hash_find() 298 int batadv_tt_global_hash_count(struct batadv_priv *bat_priv, in batadv_tt_global_hash_count() argument 304 tt_global_entry = batadv_tt_global_hash_find(bat_priv, addr, vid); in batadv_tt_global_hash_count() 321 static void batadv_tt_local_size_mod(struct batadv_priv *bat_priv, in batadv_tt_local_size_mod() argument 326 vlan = batadv_softif_vlan_get(bat_priv, vid); in batadv_tt_local_size_mod() [all …]
|
D | bat_v_ogm.c | 55 struct batadv_orig_node *batadv_v_ogm_orig_get(struct batadv_priv *bat_priv, in batadv_v_ogm_orig_get() argument 61 orig_node = batadv_orig_hash_find(bat_priv, addr); in batadv_v_ogm_orig_get() 65 orig_node = batadv_orig_node_new(bat_priv, addr); in batadv_v_ogm_orig_get() 70 hash_added = batadv_hash_add(bat_priv->orig_hash, batadv_compare_orig, in batadv_v_ogm_orig_get() 101 static void batadv_v_ogm_start_timer(struct batadv_priv *bat_priv) in batadv_v_ogm_start_timer() argument 107 if (delayed_work_pending(&bat_priv->bat_v.ogm_wq)) in batadv_v_ogm_start_timer() 110 msecs = atomic_read(&bat_priv->orig_interval) - BATADV_JITTER; in batadv_v_ogm_start_timer() 112 queue_delayed_work(batadv_event_workqueue, &bat_priv->bat_v.ogm_wq, in batadv_v_ogm_start_timer() 124 struct batadv_priv *bat_priv = netdev_priv(hard_iface->soft_iface); in batadv_v_ogm_send_to_if() local 129 batadv_inc_counter(bat_priv, BATADV_CNT_MGMT_TX); in batadv_v_ogm_send_to_if() [all …]
|
D | tvlv.c | 69 batadv_tvlv_handler_get(struct batadv_priv *bat_priv, u8 type, u8 version) in batadv_tvlv_handler_get() argument 75 &bat_priv->tvlv.handler_list, list) { in batadv_tvlv_handler_get() 131 batadv_tvlv_container_get(struct batadv_priv *bat_priv, u8 type, u8 version) in batadv_tvlv_container_get() argument 135 lockdep_assert_held(&bat_priv->tvlv.container_list_lock); in batadv_tvlv_container_get() 137 hlist_for_each_entry(tvlv_tmp, &bat_priv->tvlv.container_list, list) { in batadv_tvlv_container_get() 162 static u16 batadv_tvlv_container_list_size(struct batadv_priv *bat_priv) in batadv_tvlv_container_list_size() argument 167 lockdep_assert_held(&bat_priv->tvlv.container_list_lock); in batadv_tvlv_container_list_size() 169 hlist_for_each_entry(tvlv, &bat_priv->tvlv.container_list, list) { in batadv_tvlv_container_list_size() 186 static void batadv_tvlv_container_remove(struct batadv_priv *bat_priv, in batadv_tvlv_container_remove() argument 189 lockdep_assert_held(&bat_priv->tvlv.container_list_lock); in batadv_tvlv_container_remove() [all …]
|
D | gateway_common.c | 134 void batadv_gw_tvlv_container_update(struct batadv_priv *bat_priv) in batadv_gw_tvlv_container_update() argument 140 gw_mode = atomic_read(&bat_priv->gw.mode); in batadv_gw_tvlv_container_update() 145 batadv_tvlv_container_unregister(bat_priv, BATADV_TVLV_GW, 1); in batadv_gw_tvlv_container_update() 148 down = atomic_read(&bat_priv->gw.bandwidth_down); in batadv_gw_tvlv_container_update() 149 up = atomic_read(&bat_priv->gw.bandwidth_up); in batadv_gw_tvlv_container_update() 152 batadv_tvlv_container_register(bat_priv, BATADV_TVLV_GW, 1, in batadv_gw_tvlv_container_update() 170 struct batadv_priv *bat_priv = netdev_priv(net_dev); in batadv_gw_bandwidth_set() local 177 down_curr = (unsigned int)atomic_read(&bat_priv->gw.bandwidth_down); in batadv_gw_bandwidth_set() 178 up_curr = (unsigned int)atomic_read(&bat_priv->gw.bandwidth_up); in batadv_gw_bandwidth_set() 196 batadv_gw_reselect(bat_priv); in batadv_gw_bandwidth_set() [all …]
|
D | netlink.c | 178 struct batadv_priv *bat_priv) in batadv_netlink_mesh_fill_ap_isolation() argument 183 vlan = batadv_softif_vlan_get(bat_priv, BATADV_NO_FLAGS); in batadv_netlink_mesh_fill_ap_isolation() 202 struct batadv_priv *bat_priv) in batadv_netlink_set_mesh_ap_isolation() argument 206 vlan = batadv_softif_vlan_get(bat_priv, BATADV_NO_FLAGS); in batadv_netlink_set_mesh_ap_isolation() 228 struct batadv_priv *bat_priv, in batadv_netlink_mesh_fill() argument 232 struct net_device *soft_iface = bat_priv->soft_iface; in batadv_netlink_mesh_fill() 243 bat_priv->algo_ops->name) || in batadv_netlink_mesh_fill() 249 (u8)atomic_read(&bat_priv->tt.vn))) in batadv_netlink_mesh_fill() 254 ntohs(bat_priv->bla.claim_dest.group))) in batadv_netlink_mesh_fill() 258 if (batadv_mcast_mesh_info_put(msg, bat_priv)) in batadv_netlink_mesh_fill() [all …]
|
D | sysfs.c | 98 batadv_kobj_to_vlan(struct batadv_priv *bat_priv, struct kobject *obj) in batadv_kobj_to_vlan() argument 103 hlist_for_each_entry_rcu(vlan_tmp, &bat_priv->softif_vlan_list, list) { in batadv_kobj_to_vlan() 142 struct batadv_priv *bat_priv = netdev_priv(net_dev); \ 147 &bat_priv->_name, net_dev); \ 149 batadv_netlink_notify_mesh(bat_priv); \ 158 struct batadv_priv *bat_priv = batadv_kobj_to_batpriv(kobj); \ 162 atomic_read(&bat_priv->_name) == 0 ? \ 181 struct batadv_priv *bat_priv = netdev_priv(net_dev); \ 187 &bat_priv->_var, net_dev, \ 190 batadv_netlink_notify_mesh(bat_priv); \ [all …]
|
D | routing.c | 54 static void _batadv_update_route(struct batadv_priv *bat_priv, in _batadv_update_route() argument 86 batadv_dbg(BATADV_DBG_ROUTES, bat_priv, in _batadv_update_route() 88 batadv_tt_global_del_orig(bat_priv, orig_node, -1, in _batadv_update_route() 93 batadv_dbg(BATADV_DBG_ROUTES, bat_priv, in _batadv_update_route() 98 batadv_dbg(BATADV_DBG_ROUTES, bat_priv, in _batadv_update_route() 116 void batadv_update_route(struct batadv_priv *bat_priv, in batadv_update_route() argument 129 _batadv_update_route(bat_priv, orig_node, recv_if, neigh_node); in batadv_update_route() 152 bool batadv_window_protected(struct batadv_priv *bat_priv, s32 seq_num_diff, in batadv_window_protected() argument 165 batadv_dbg(BATADV_DBG_BATMAN, bat_priv, in batadv_window_protected() 219 static int batadv_recv_my_icmp_packet(struct batadv_priv *bat_priv, in batadv_recv_my_icmp_packet() argument [all …]
|
D | network-coding.h | 22 int batadv_nc_mesh_init(struct batadv_priv *bat_priv); 23 void batadv_nc_mesh_free(struct batadv_priv *bat_priv); 24 void batadv_nc_update_nc_node(struct batadv_priv *bat_priv, 29 void batadv_nc_purge_orig(struct batadv_priv *bat_priv, 33 void batadv_nc_init_bat_priv(struct batadv_priv *bat_priv); 37 void batadv_nc_skb_store_for_decoding(struct batadv_priv *bat_priv, 39 void batadv_nc_skb_store_sniffed_unicast(struct batadv_priv *bat_priv, 42 void batadv_nc_init_debugfs(struct batadv_priv *bat_priv); 55 static inline int batadv_nc_mesh_init(struct batadv_priv *bat_priv) in batadv_nc_mesh_init() argument 60 static inline void batadv_nc_mesh_free(struct batadv_priv *bat_priv) in batadv_nc_mesh_free() argument [all …]
|
D | bridge_loop_avoidance.h | 37 bool batadv_bla_rx(struct batadv_priv *bat_priv, struct sk_buff *skb, 39 bool batadv_bla_tx(struct batadv_priv *bat_priv, struct sk_buff *skb, 49 bool batadv_bla_is_backbone_gw_orig(struct batadv_priv *bat_priv, u8 *orig, 51 bool batadv_bla_check_bcast_duplist(struct batadv_priv *bat_priv, 53 void batadv_bla_update_orig_address(struct batadv_priv *bat_priv, 57 int batadv_bla_init(struct batadv_priv *bat_priv); 58 void batadv_bla_free(struct batadv_priv *bat_priv); 61 bool batadv_bla_check_claim(struct batadv_priv *bat_priv, u8 *addr, 67 static inline bool batadv_bla_rx(struct batadv_priv *bat_priv, in batadv_bla_rx() argument 74 static inline bool batadv_bla_tx(struct batadv_priv *bat_priv, in batadv_bla_tx() argument [all …]
|
D | tp_meter.c | 214 const u8 *dst, struct batadv_priv *bat_priv, in batadv_tp_batctl_notify() argument 232 batadv_netlink_tpmeter_notify(bat_priv, dst, result, test_time, in batadv_tp_batctl_notify() 245 struct batadv_priv *bat_priv, in batadv_tp_batctl_error_notify() argument 248 batadv_tp_batctl_notify(reason, dst, bat_priv, 0, 0, cookie); in batadv_tp_batctl_error_notify() 261 static struct batadv_tp_vars *batadv_tp_list_find(struct batadv_priv *bat_priv, in batadv_tp_list_find() argument 267 hlist_for_each_entry_rcu(pos, &bat_priv->tp_list, list) { in batadv_tp_list_find() 300 batadv_tp_list_find_session(struct batadv_priv *bat_priv, const u8 *dst, in batadv_tp_list_find_session() argument 306 hlist_for_each_entry_rcu(pos, &bat_priv->tp_list, list) { in batadv_tp_list_find_session() 371 static void batadv_tp_sender_cleanup(struct batadv_priv *bat_priv, in batadv_tp_sender_cleanup() argument 376 spin_lock_bh(&tp_vars->bat_priv->tp_list_lock); in batadv_tp_sender_cleanup() [all …]
|
D | send.c | 67 struct batadv_priv *bat_priv; in batadv_send_skb_packet() local 71 bat_priv = netdev_priv(hard_iface->soft_iface); in batadv_send_skb_packet() 102 batadv_nc_skb_store_for_decoding(bat_priv, skb); in batadv_send_skb_packet() 181 struct batadv_priv *bat_priv = orig_node->bat_priv; in batadv_send_skb_to_orig() local 186 neigh_node = batadv_find_router(bat_priv, orig_node, recv_if); in batadv_send_skb_to_orig() 195 if (atomic_read(&bat_priv->fragmentation) && in batadv_send_skb_to_orig() 283 bool batadv_send_skb_prepare_unicast_4addr(struct batadv_priv *bat_priv, in batadv_send_skb_prepare_unicast_4addr() argument 292 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_send_skb_prepare_unicast_4addr() 333 int batadv_send_skb_unicast(struct batadv_priv *bat_priv, in batadv_send_skb_unicast() argument 352 if (!batadv_send_skb_prepare_unicast_4addr(bat_priv, skb, in batadv_send_skb_unicast() [all …]
|
D | originator.c | 58 batadv_orig_hash_find(struct batadv_priv *bat_priv, const void *data) in batadv_orig_hash_find() argument 60 struct batadv_hashtable *hash = bat_priv->orig_hash; in batadv_orig_hash_find() 196 int batadv_originator_init(struct batadv_priv *bat_priv) in batadv_originator_init() argument 198 if (bat_priv->orig_hash) in batadv_originator_init() 201 bat_priv->orig_hash = batadv_hash_new(1024); in batadv_originator_init() 203 if (!bat_priv->orig_hash) in batadv_originator_init() 206 batadv_hash_set_lock_class(bat_priv->orig_hash, in batadv_originator_init() 209 INIT_DELAYED_WORK(&bat_priv->orig_work, batadv_purge_orig); in batadv_originator_init() 211 &bat_priv->orig_work, in batadv_originator_init() 519 struct batadv_priv *bat_priv = netdev_priv(hard_iface->soft_iface); in batadv_hardif_neigh_create() local [all …]
|
D | translation-table.h | 19 int batadv_tt_init(struct batadv_priv *bat_priv); 22 u16 batadv_tt_local_remove(struct batadv_priv *bat_priv, 29 void batadv_tt_global_del_orig(struct batadv_priv *bat_priv, 33 batadv_tt_global_hash_find(struct batadv_priv *bat_priv, const u8 *addr, 36 int batadv_tt_global_hash_count(struct batadv_priv *bat_priv, 38 struct batadv_orig_node *batadv_transtable_search(struct batadv_priv *bat_priv, 41 void batadv_tt_free(struct batadv_priv *bat_priv); 42 bool batadv_is_my_client(struct batadv_priv *bat_priv, const u8 *addr, 44 bool batadv_is_ap_isolated(struct batadv_priv *bat_priv, u8 *src, u8 *dst, 46 void batadv_tt_local_commit_changes(struct batadv_priv *bat_priv); [all …]
|
D | gateway_client.h | 19 void batadv_gw_check_client_stop(struct batadv_priv *bat_priv); 20 void batadv_gw_reselect(struct batadv_priv *bat_priv); 21 void batadv_gw_election(struct batadv_priv *bat_priv); 23 batadv_gw_get_selected_orig(struct batadv_priv *bat_priv); 24 void batadv_gw_check_election(struct batadv_priv *bat_priv, 26 void batadv_gw_node_update(struct batadv_priv *bat_priv, 29 void batadv_gw_node_delete(struct batadv_priv *bat_priv, 31 void batadv_gw_node_free(struct batadv_priv *bat_priv); 34 batadv_gw_get_selected_gw_node(struct batadv_priv *bat_priv); 37 bool batadv_gw_out_of_range(struct batadv_priv *bat_priv, struct sk_buff *skb); [all …]
|
D | multicast.h | 46 batadv_mcast_forw_mode(struct batadv_priv *bat_priv, struct sk_buff *skb, 50 int batadv_mcast_forw_send_orig(struct batadv_priv *bat_priv, 55 int batadv_mcast_forw_send(struct batadv_priv *bat_priv, struct sk_buff *skb, 58 void batadv_mcast_init(struct batadv_priv *bat_priv); 63 struct batadv_priv *bat_priv); 67 void batadv_mcast_free(struct batadv_priv *bat_priv); 74 batadv_mcast_forw_mode(struct batadv_priv *bat_priv, struct sk_buff *skb, in batadv_mcast_forw_mode() argument 82 batadv_mcast_forw_send_orig(struct batadv_priv *bat_priv, in batadv_mcast_forw_send_orig() argument 92 batadv_mcast_forw_send(struct batadv_priv *bat_priv, struct sk_buff *skb, in batadv_mcast_forw_send() argument 99 static inline int batadv_mcast_init(struct batadv_priv *bat_priv) in batadv_mcast_init() argument [all …]
|
D | log.c | 112 struct batadv_priv *bat_priv = file->private_data; in batadv_log_read() local 113 struct batadv_priv_debug_log *debug_log = bat_priv->debug_log; in batadv_log_read() 166 struct batadv_priv *bat_priv = file->private_data; in batadv_log_poll() local 167 struct batadv_priv_debug_log *debug_log = bat_priv->debug_log; in batadv_log_poll() 192 int batadv_debug_log_setup(struct batadv_priv *bat_priv) in batadv_debug_log_setup() argument 194 bat_priv->debug_log = kzalloc(sizeof(*bat_priv->debug_log), GFP_ATOMIC); in batadv_debug_log_setup() 195 if (!bat_priv->debug_log) in batadv_debug_log_setup() 198 spin_lock_init(&bat_priv->debug_log->lock); in batadv_debug_log_setup() 199 init_waitqueue_head(&bat_priv->debug_log->queue_wait); in batadv_debug_log_setup() 201 debugfs_create_file("log", 0400, bat_priv->debug_dir, bat_priv, in batadv_debug_log_setup() [all …]
|
D | log.h | 19 int batadv_debug_log_setup(struct batadv_priv *bat_priv); 20 void batadv_debug_log_cleanup(struct batadv_priv *bat_priv); 24 static inline int batadv_debug_log_setup(struct batadv_priv *bat_priv) in batadv_debug_log_setup() argument 29 static inline void batadv_debug_log_cleanup(struct batadv_priv *bat_priv) in batadv_debug_log_cleanup() argument 68 int batadv_debug_log(struct batadv_priv *bat_priv, const char *fmt, ...) 79 #define _batadv_dbg(type, bat_priv, ratelimited, fmt, arg...) \ argument 81 struct batadv_priv *__batpriv = (bat_priv); \ 90 struct batadv_priv *bat_priv __always_unused, in _batadv_dbg() 103 #define batadv_dbg(type, bat_priv, arg...) \ argument 104 _batadv_dbg(type, bat_priv, 0, ## arg) [all …]
|