Lines Matching refs:tt_global

598 				  struct batadv_tt_global_entry *tt_global,
606 tt_global->common.addr,
607 batadv_print_vid(tt_global->common.vid), message);
612 &tt_global->common);
641 struct batadv_tt_global_entry *tt_global = NULL;
663 tt_global = batadv_tt_global_hash_find(bat_priv, addr, vid);
765 if (tt_global && !(tt_global->common.flags & BATADV_TT_CLIENT_ROAM)) {
767 head = &tt_global->orig_list;
770 batadv_send_roam_adv(bat_priv, tt_global->common.addr,
771 tt_global->common.vid,
776 batadv_tt_global_free(bat_priv, tt_global,
782 tt_global->common.flags |= BATADV_TT_CLIENT_ROAM;
783 tt_global->roam_at = jiffies;
822 if (tt_global)
823 batadv_tt_global_entry_put(tt_global);
1584 * @tt_global: the TT global entry to update sync flags in
1586 * Updates the sync flag bits in the tt_global flag attribute with a logical
1590 batadv_tt_global_sync_flags(struct batadv_tt_global_entry *tt_global)
1597 head = &tt_global->orig_list;
1602 flags |= tt_global->common.flags & (~BATADV_TT_SYNC_MASK);
1603 tt_global->common.flags = flags;
1608 * @tt_global: the TT global entry to add an orig entry in
1614 batadv_tt_global_orig_entry_add(struct batadv_tt_global_entry *tt_global,
1620 spin_lock_bh(&tt_global->list_lock);
1622 orig_entry = batadv_tt_global_orig_entry_find(tt_global, orig_node);
1638 batadv_tt_global_size_inc(orig_node, tt_global->common.vid);
1646 &tt_global->orig_list);
1647 atomic_inc(&tt_global->orig_list_count);
1650 batadv_tt_global_sync_flags(tt_global);
1655 spin_unlock_bh(&tt_global->list_lock);
1976 struct batadv_tt_global_entry *tt_global;
1997 tt_global = container_of(tt_common_entry,
2000 batadv_tt_global_print_entry(bat_priv, tt_global, seq);
2305 * within tt_global entry. If yes, we set the BATADV_TT_CLIENT_ROAM flag and the
2425 struct batadv_tt_global_entry *tt_global;
2448 tt_global = container_of(tt_common_entry,
2452 batadv_tt_global_del_orig_node(bat_priv, tt_global,
2455 if (hlist_empty(&tt_global->orig_list)) {
2456 vid = tt_global->common.vid;
2459 tt_global->common.addr,
2462 batadv_tt_global_entry_put(tt_global);
2470 static bool batadv_tt_global_to_purge(struct batadv_tt_global_entry *tt_global,
2477 if ((tt_global->common.flags & BATADV_TT_CLIENT_ROAM) &&
2478 batadv_has_timed_out(tt_global->roam_at, roam_timeout)) {
2483 if ((tt_global->common.flags & BATADV_TT_CLIENT_TEMP) &&
2484 batadv_has_timed_out(tt_global->common.added_at, temp_timeout)) {
2501 struct batadv_tt_global_entry *tt_global;
2510 tt_global = container_of(tt_common,
2514 if (!batadv_tt_global_to_purge(tt_global, &msg))
2519 tt_global->common.addr,
2520 batadv_print_vid(tt_global->common.vid),
2525 batadv_tt_global_entry_put(tt_global);
2536 struct batadv_tt_global_entry *tt_global;
2554 tt_global = container_of(tt_common_entry,
2557 batadv_tt_global_entry_put(tt_global);
2674 struct batadv_tt_global_entry *tt_global;
2685 tt_global = container_of(tt_common,
2711 tt_orig = batadv_tt_global_orig_entry_find(tt_global,