Lines Matching refs:tt_global
551 struct batadv_tt_global_entry *tt_global,
559 tt_global->common.addr,
560 batadv_print_vid(tt_global->common.vid), message);
565 &tt_global->common);
594 struct batadv_tt_global_entry *tt_global = NULL;
616 tt_global = batadv_tt_global_hash_find(bat_priv, addr, vid);
718 if (tt_global && !(tt_global->common.flags & BATADV_TT_CLIENT_ROAM)) {
720 head = &tt_global->orig_list;
723 batadv_send_roam_adv(bat_priv, tt_global->common.addr,
724 tt_global->common.vid,
729 batadv_tt_global_free(bat_priv, tt_global,
735 tt_global->common.flags |= BATADV_TT_CLIENT_ROAM;
736 tt_global->roam_at = jiffies;
772 batadv_tt_global_entry_put(tt_global);
1457 * @tt_global: the TT global entry to update sync flags in
1459 * Updates the sync flag bits in the tt_global flag attribute with a logical
1463 batadv_tt_global_sync_flags(struct batadv_tt_global_entry *tt_global)
1470 head = &tt_global->orig_list;
1475 flags |= tt_global->common.flags & (~BATADV_TT_SYNC_MASK);
1476 tt_global->common.flags = flags;
1481 * @tt_global: the TT global entry to add an orig entry in
1487 batadv_tt_global_orig_entry_add(struct batadv_tt_global_entry *tt_global,
1493 spin_lock_bh(&tt_global->list_lock);
1495 orig_entry = batadv_tt_global_orig_entry_find(tt_global, orig_node);
1511 batadv_tt_global_size_inc(orig_node, tt_global->common.vid);
1519 &tt_global->orig_list);
1520 atomic_inc(&tt_global->orig_list_count);
1523 batadv_tt_global_sync_flags(tt_global);
1527 spin_unlock_bh(&tt_global->list_lock);
2030 * within tt_global entry. If yes, we set the BATADV_TT_CLIENT_ROAM flag and the
2148 struct batadv_tt_global_entry *tt_global;
2171 tt_global = container_of(tt_common_entry,
2175 batadv_tt_global_del_orig_node(bat_priv, tt_global,
2178 if (hlist_empty(&tt_global->orig_list)) {
2179 vid = tt_global->common.vid;
2182 tt_global->common.addr,
2185 batadv_tt_global_entry_put(tt_global);
2193 static bool batadv_tt_global_to_purge(struct batadv_tt_global_entry *tt_global,
2200 if ((tt_global->common.flags & BATADV_TT_CLIENT_ROAM) &&
2201 batadv_has_timed_out(tt_global->roam_at, roam_timeout)) {
2206 if ((tt_global->common.flags & BATADV_TT_CLIENT_TEMP) &&
2207 batadv_has_timed_out(tt_global->common.added_at, temp_timeout)) {
2224 struct batadv_tt_global_entry *tt_global;
2233 tt_global = container_of(tt_common,
2237 if (!batadv_tt_global_to_purge(tt_global, &msg))
2242 tt_global->common.addr,
2243 batadv_print_vid(tt_global->common.vid),
2248 batadv_tt_global_entry_put(tt_global);
2259 struct batadv_tt_global_entry *tt_global;
2277 tt_global = container_of(tt_common_entry,
2280 batadv_tt_global_entry_put(tt_global);
2395 struct batadv_tt_global_entry *tt_global;
2406 tt_global = container_of(tt_common,
2432 tt_orig = batadv_tt_global_orig_entry_find(tt_global,