Lines Matching refs:tt_global
616 struct batadv_tt_global_entry *tt_global, in batadv_tt_global_free() argument
621 tt_global->common.addr, in batadv_tt_global_free()
622 batadv_print_vid(tt_global->common.vid), message); in batadv_tt_global_free()
625 batadv_choose_tt, &tt_global->common); in batadv_tt_global_free()
626 batadv_tt_global_entry_put(tt_global); in batadv_tt_global_free()
647 struct batadv_tt_global_entry *tt_global = NULL; in batadv_tt_local_add() local
669 tt_global = batadv_tt_global_hash_find(bat_priv, addr, vid); in batadv_tt_local_add()
771 if (tt_global && !(tt_global->common.flags & BATADV_TT_CLIENT_ROAM)) { in batadv_tt_local_add()
773 head = &tt_global->orig_list; in batadv_tt_local_add()
776 batadv_send_roam_adv(bat_priv, tt_global->common.addr, in batadv_tt_local_add()
777 tt_global->common.vid, in batadv_tt_local_add()
782 batadv_tt_global_free(bat_priv, tt_global, in batadv_tt_local_add()
784 tt_global = NULL; in batadv_tt_local_add()
789 tt_global->common.flags |= BATADV_TT_CLIENT_ROAM; in batadv_tt_local_add()
790 tt_global->roam_at = jiffies; in batadv_tt_local_add()
829 if (tt_global) in batadv_tt_local_add()
830 batadv_tt_global_entry_put(tt_global); in batadv_tt_local_add()
1586 batadv_tt_global_sync_flags(struct batadv_tt_global_entry *tt_global) in batadv_tt_global_sync_flags() argument
1593 head = &tt_global->orig_list; in batadv_tt_global_sync_flags()
1598 flags |= tt_global->common.flags & (~BATADV_TT_SYNC_MASK); in batadv_tt_global_sync_flags()
1599 tt_global->common.flags = flags; in batadv_tt_global_sync_flags()
1610 batadv_tt_global_orig_entry_add(struct batadv_tt_global_entry *tt_global, in batadv_tt_global_orig_entry_add() argument
1616 spin_lock_bh(&tt_global->list_lock); in batadv_tt_global_orig_entry_add()
1618 orig_entry = batadv_tt_global_orig_entry_find(tt_global, orig_node); in batadv_tt_global_orig_entry_add()
1634 batadv_tt_global_size_inc(orig_node, tt_global->common.vid); in batadv_tt_global_orig_entry_add()
1642 &tt_global->orig_list); in batadv_tt_global_orig_entry_add()
1643 atomic_inc(&tt_global->orig_list_count); in batadv_tt_global_orig_entry_add()
1646 batadv_tt_global_sync_flags(tt_global); in batadv_tt_global_orig_entry_add()
1651 spin_unlock_bh(&tt_global->list_lock); in batadv_tt_global_orig_entry_add()
1972 struct batadv_tt_global_entry *tt_global; in batadv_tt_global_seq_print_text() local
1993 tt_global = container_of(tt_common_entry, in batadv_tt_global_seq_print_text()
1996 batadv_tt_global_print_entry(bat_priv, tt_global, seq); in batadv_tt_global_seq_print_text()
2421 struct batadv_tt_global_entry *tt_global; in batadv_tt_global_del_orig() local
2444 tt_global = container_of(tt_common_entry, in batadv_tt_global_del_orig()
2448 batadv_tt_global_del_orig_node(bat_priv, tt_global, in batadv_tt_global_del_orig()
2451 if (hlist_empty(&tt_global->orig_list)) { in batadv_tt_global_del_orig()
2452 vid = tt_global->common.vid; in batadv_tt_global_del_orig()
2455 tt_global->common.addr, in batadv_tt_global_del_orig()
2458 batadv_tt_global_entry_put(tt_global); in batadv_tt_global_del_orig()
2466 static bool batadv_tt_global_to_purge(struct batadv_tt_global_entry *tt_global, in batadv_tt_global_to_purge() argument
2473 if ((tt_global->common.flags & BATADV_TT_CLIENT_ROAM) && in batadv_tt_global_to_purge()
2474 batadv_has_timed_out(tt_global->roam_at, roam_timeout)) { in batadv_tt_global_to_purge()
2479 if ((tt_global->common.flags & BATADV_TT_CLIENT_TEMP) && in batadv_tt_global_to_purge()
2480 batadv_has_timed_out(tt_global->common.added_at, temp_timeout)) { in batadv_tt_global_to_purge()
2497 struct batadv_tt_global_entry *tt_global; in batadv_tt_global_purge() local
2506 tt_global = container_of(tt_common, in batadv_tt_global_purge()
2510 if (!batadv_tt_global_to_purge(tt_global, &msg)) in batadv_tt_global_purge()
2515 tt_global->common.addr, in batadv_tt_global_purge()
2516 batadv_print_vid(tt_global->common.vid), in batadv_tt_global_purge()
2521 batadv_tt_global_entry_put(tt_global); in batadv_tt_global_purge()
2532 struct batadv_tt_global_entry *tt_global; in batadv_tt_global_table_free() local
2550 tt_global = container_of(tt_common_entry, in batadv_tt_global_table_free()
2553 batadv_tt_global_entry_put(tt_global); in batadv_tt_global_table_free()
2670 struct batadv_tt_global_entry *tt_global; in batadv_tt_global_crc() local
2681 tt_global = container_of(tt_common, in batadv_tt_global_crc()
2707 tt_orig = batadv_tt_global_orig_entry_find(tt_global, in batadv_tt_global_crc()