• Home
  • Raw
  • Download

Lines Matching refs:bat_priv

222 batadv_iv_ogm_orig_get(struct batadv_priv *bat_priv, const uint8_t *addr)  in batadv_iv_ogm_orig_get()  argument
227 orig_node = batadv_orig_hash_find(bat_priv, addr); in batadv_iv_ogm_orig_get()
231 orig_node = batadv_orig_node_new(bat_priv, addr); in batadv_iv_ogm_orig_get()
237 size = bat_priv->num_ifaces * sizeof(unsigned long) * BATADV_NUM_WORDS; in batadv_iv_ogm_orig_get()
242 size = bat_priv->num_ifaces * sizeof(uint8_t); in batadv_iv_ogm_orig_get()
247 hash_added = batadv_hash_add(bat_priv->orig_hash, batadv_compare_orig, in batadv_iv_ogm_orig_get()
269 struct batadv_priv *bat_priv = netdev_priv(hard_iface->soft_iface); in batadv_iv_ogm_neigh_new() local
298 batadv_dbg(BATADV_DBG_BATMAN, bat_priv, in batadv_iv_ogm_neigh_new()
370 batadv_iv_ogm_emit_send_time(const struct batadv_priv *bat_priv) in batadv_iv_ogm_emit_send_time() argument
374 msecs = atomic_read(&bat_priv->orig_interval) - BATADV_JITTER; in batadv_iv_ogm_emit_send_time()
388 const struct batadv_priv *bat_priv) in batadv_hop_penalty() argument
390 int hop_penalty = atomic_read(&bat_priv->hop_penalty); in batadv_hop_penalty()
416 struct batadv_priv *bat_priv = netdev_priv(hard_iface->soft_iface); in batadv_iv_ogm_send_to_if() local
449 batadv_dbg(BATADV_DBG_BATMAN, bat_priv, in batadv_iv_ogm_send_to_if()
470 batadv_inc_counter(bat_priv, BATADV_CNT_MGMT_TX); in batadv_iv_ogm_send_to_if()
471 batadv_add_counter(bat_priv, BATADV_CNT_MGMT_TX_BYTES, in batadv_iv_ogm_send_to_if()
481 struct batadv_priv *bat_priv; in batadv_iv_ogm_emit() local
490 bat_priv = netdev_priv(soft_iface); in batadv_iv_ogm_emit()
501 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_iv_ogm_emit()
529 struct batadv_priv *bat_priv, in batadv_iv_ogm_can_aggregate() argument
563 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_iv_ogm_can_aggregate()
630 struct batadv_priv *bat_priv = netdev_priv(if_incoming->soft_iface); in batadv_iv_ogm_aggregate_new() local
643 if (!batadv_atomic_dec_not_zero(&bat_priv->batman_queue_left)) { in batadv_iv_ogm_aggregate_new()
644 batadv_dbg(BATADV_DBG_BATMAN, bat_priv, in batadv_iv_ogm_aggregate_new()
653 atomic_inc(&bat_priv->batman_queue_left); in batadv_iv_ogm_aggregate_new()
657 if ((atomic_read(&bat_priv->aggregated_ogms)) && in batadv_iv_ogm_aggregate_new()
668 atomic_inc(&bat_priv->batman_queue_left); in batadv_iv_ogm_aggregate_new()
691 spin_lock_bh(&bat_priv->forw_bat_list_lock); in batadv_iv_ogm_aggregate_new()
692 hlist_add_head(&forw_packet_aggr->list, &bat_priv->forw_bat_list); in batadv_iv_ogm_aggregate_new()
693 spin_unlock_bh(&bat_priv->forw_bat_list_lock); in batadv_iv_ogm_aggregate_new()
739 static void batadv_iv_ogm_queue_add(struct batadv_priv *bat_priv, in batadv_iv_ogm_queue_add() argument
760 spin_lock_bh(&bat_priv->forw_bat_list_lock); in batadv_iv_ogm_queue_add()
762 if ((atomic_read(&bat_priv->aggregated_ogms)) && (!own_packet)) { in batadv_iv_ogm_queue_add()
764 &bat_priv->forw_bat_list, list) { in batadv_iv_ogm_queue_add()
766 bat_priv, packet_len, in batadv_iv_ogm_queue_add()
782 spin_unlock_bh(&bat_priv->forw_bat_list_lock); in batadv_iv_ogm_queue_add()
788 if (!own_packet && atomic_read(&bat_priv->aggregated_ogms)) in batadv_iv_ogm_queue_add()
798 spin_unlock_bh(&bat_priv->forw_bat_list_lock); in batadv_iv_ogm_queue_add()
810 struct batadv_priv *bat_priv = netdev_priv(if_incoming->soft_iface); in batadv_iv_ogm_forward() local
814 batadv_dbg(BATADV_DBG_BATMAN, bat_priv, "ttl exceeded\n"); in batadv_iv_ogm_forward()
838 bat_priv); in batadv_iv_ogm_forward()
840 batadv_dbg(BATADV_DBG_BATMAN, bat_priv, in batadv_iv_ogm_forward()
851 batadv_iv_ogm_queue_add(bat_priv, (unsigned char *)batadv_ogm_packet, in batadv_iv_ogm_forward()
865 struct batadv_priv *bat_priv = netdev_priv(hard_iface->soft_iface); in batadv_iv_ogm_slide_own_bcast_window() local
866 struct batadv_hashtable *hash = bat_priv->orig_hash; in batadv_iv_ogm_slide_own_bcast_window()
884 batadv_bit_get_packet(bat_priv, word, 1, 0); in batadv_iv_ogm_slide_own_bcast_window()
896 struct batadv_priv *bat_priv = netdev_priv(hard_iface->soft_iface); in batadv_iv_ogm_schedule() local
905 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_iv_ogm_schedule()
911 batadv_tt_local_commit_changes(bat_priv); in batadv_iv_ogm_schedule()
912 tvlv_len = batadv_tvlv_container_ogm_append(bat_priv, ogm_buff, in batadv_iv_ogm_schedule()
927 send_time = batadv_iv_ogm_emit_send_time(bat_priv); in batadv_iv_ogm_schedule()
933 batadv_iv_ogm_queue_add(bat_priv, *ogm_buff, *ogm_buff_len, in batadv_iv_ogm_schedule()
945 batadv_iv_ogm_queue_add(bat_priv, *ogm_buff, in batadv_iv_ogm_schedule()
969 batadv_iv_ogm_orig_update(struct batadv_priv *bat_priv, in batadv_iv_ogm_orig_update() argument
988 batadv_dbg(BATADV_DBG_BATMAN, bat_priv, in batadv_iv_ogm_orig_update()
1027 orig_tmp = batadv_iv_ogm_orig_get(bat_priv, ethhdr->h_source); in batadv_iv_ogm_orig_update()
1039 batadv_dbg(BATADV_DBG_BATMAN, bat_priv, in batadv_iv_ogm_orig_update()
1102 batadv_update_route(bat_priv, orig_node, if_outgoing, neigh_node); in batadv_iv_ogm_orig_update()
1134 struct batadv_priv *bat_priv = netdev_priv(if_incoming->soft_iface); in batadv_iv_ogm_calc_tq() local
1232 bat_priv); in batadv_iv_ogm_calc_tq()
1243 batadv_dbg(BATADV_DBG_BATMAN, bat_priv, in batadv_iv_ogm_calc_tq()
1278 struct batadv_priv *bat_priv = netdev_priv(if_incoming->soft_iface); in batadv_iv_ogm_update_seqnos() local
1293 orig_node = batadv_iv_ogm_orig_get(bat_priv, batadv_ogm_packet->orig); in batadv_iv_ogm_update_seqnos()
1308 batadv_window_protected(bat_priv, seq_diff, in batadv_iv_ogm_update_seqnos()
1339 need_update |= batadv_bit_get_packet(bat_priv, bitmap, in batadv_iv_ogm_update_seqnos()
1350 batadv_dbg(BATADV_DBG_BATMAN, bat_priv, in batadv_iv_ogm_update_seqnos()
1379 struct batadv_priv *bat_priv = netdev_priv(if_incoming->soft_iface); in batadv_iv_ogm_process_per_outif() local
1411 batadv_dbg(BATADV_DBG_BATMAN, bat_priv, in batadv_iv_ogm_process_per_outif()
1418 batadv_dbg(BATADV_DBG_BATMAN, bat_priv, in batadv_iv_ogm_process_per_outif()
1440 batadv_dbg(BATADV_DBG_BATMAN, bat_priv, in batadv_iv_ogm_process_per_outif()
1447 batadv_tvlv_ogm_receive(bat_priv, ogm_packet, orig_node); in batadv_iv_ogm_process_per_outif()
1455 orig_neigh_node = batadv_iv_ogm_orig_get(bat_priv, in batadv_iv_ogm_process_per_outif()
1462 batadv_nc_update_nc_node(bat_priv, orig_node, orig_neigh_node, in batadv_iv_ogm_process_per_outif()
1472 batadv_dbg(BATADV_DBG_BATMAN, bat_priv, in batadv_iv_ogm_process_per_outif()
1493 batadv_iv_ogm_orig_update(bat_priv, orig_node, in batadv_iv_ogm_process_per_outif()
1511 batadv_dbg(BATADV_DBG_BATMAN, bat_priv, in batadv_iv_ogm_process_per_outif()
1521 batadv_dbg(BATADV_DBG_BATMAN, bat_priv, in batadv_iv_ogm_process_per_outif()
1528 batadv_dbg(BATADV_DBG_BATMAN, bat_priv, in batadv_iv_ogm_process_per_outif()
1534 batadv_dbg(BATADV_DBG_BATMAN, bat_priv, in batadv_iv_ogm_process_per_outif()
1539 batadv_dbg(BATADV_DBG_BATMAN, bat_priv, in batadv_iv_ogm_process_per_outif()
1570 struct batadv_priv *bat_priv = netdev_priv(if_incoming->soft_iface); in batadv_iv_ogm_process() local
1607 batadv_dbg(BATADV_DBG_BATMAN, bat_priv, in batadv_iv_ogm_process()
1638 batadv_dbg(BATADV_DBG_BATMAN, bat_priv, in batadv_iv_ogm_process()
1651 orig_neigh_node = batadv_iv_ogm_orig_get(bat_priv, in batadv_iv_ogm_process()
1677 batadv_dbg(BATADV_DBG_BATMAN, bat_priv, in batadv_iv_ogm_process()
1684 batadv_dbg(BATADV_DBG_BATMAN, bat_priv, in batadv_iv_ogm_process()
1691 batadv_dbg(BATADV_DBG_BATMAN, bat_priv, in batadv_iv_ogm_process()
1697 orig_node = batadv_iv_ogm_orig_get(bat_priv, ogm_packet->orig); in batadv_iv_ogm_process()
1709 if (hard_iface->soft_iface != bat_priv->soft_iface) in batadv_iv_ogm_process()
1723 struct batadv_priv *bat_priv = netdev_priv(if_incoming->soft_iface); in batadv_iv_ogm_receive() local
1736 if (bat_priv->bat_algo_ops->bat_ogm_emit != batadv_iv_ogm_emit) in batadv_iv_ogm_receive()
1739 batadv_inc_counter(bat_priv, BATADV_CNT_MGMT_RX); in batadv_iv_ogm_receive()
1740 batadv_add_counter(bat_priv, BATADV_CNT_MGMT_RX_BYTES, in batadv_iv_ogm_receive()
1797 static void batadv_iv_ogm_orig_print(struct batadv_priv *bat_priv, in batadv_iv_ogm_orig_print() argument
1802 struct batadv_hashtable *hash = bat_priv->orig_hash; in batadv_iv_ogm_orig_print()