Lines Matching defs:tt_global

597 				  struct batadv_tt_global_entry *tt_global,
605 tt_global->common.addr,
606 batadv_print_vid(tt_global->common.vid), message);
611 &tt_global->common);
640 struct batadv_tt_global_entry *tt_global = NULL;
662 tt_global = batadv_tt_global_hash_find(bat_priv, addr, vid);
764 if (tt_global && !(tt_global->common.flags & BATADV_TT_CLIENT_ROAM)) {
766 head = &tt_global->orig_list;
769 batadv_send_roam_adv(bat_priv, tt_global->common.addr,
770 tt_global->common.vid,
775 batadv_tt_global_free(bat_priv, tt_global,
781 tt_global->common.flags |= BATADV_TT_CLIENT_ROAM;
782 tt_global->roam_at = jiffies;
818 batadv_tt_global_entry_put(tt_global);
1498 * @tt_global: the TT global entry to update sync flags in
1500 * Updates the sync flag bits in the tt_global flag attribute with a logical
1504 batadv_tt_global_sync_flags(struct batadv_tt_global_entry *tt_global)
1511 head = &tt_global->orig_list;
1516 flags |= tt_global->common.flags & (~BATADV_TT_SYNC_MASK);
1517 tt_global->common.flags = flags;
1522 * @tt_global: the TT global entry to add an orig entry in
1528 batadv_tt_global_orig_entry_add(struct batadv_tt_global_entry *tt_global,
1534 spin_lock_bh(&tt_global->list_lock);
1536 orig_entry = batadv_tt_global_orig_entry_find(tt_global, orig_node);
1552 batadv_tt_global_size_inc(orig_node, tt_global->common.vid);
1560 &tt_global->orig_list);
1561 atomic_inc(&tt_global->orig_list_count);
1564 batadv_tt_global_sync_flags(tt_global);
1568 spin_unlock_bh(&tt_global->list_lock);
2079 * within tt_global entry. If yes, we set the BATADV_TT_CLIENT_ROAM flag and the
2197 struct batadv_tt_global_entry *tt_global;
2220 tt_global = container_of(tt_common_entry,
2224 batadv_tt_global_del_orig_node(bat_priv, tt_global,
2227 if (hlist_empty(&tt_global->orig_list)) {
2228 vid = tt_global->common.vid;
2231 tt_global->common.addr,
2234 batadv_tt_global_entry_put(tt_global);
2242 static bool batadv_tt_global_to_purge(struct batadv_tt_global_entry *tt_global,
2249 if ((tt_global->common.flags & BATADV_TT_CLIENT_ROAM) &&
2250 batadv_has_timed_out(tt_global->roam_at, roam_timeout)) {
2255 if ((tt_global->common.flags & BATADV_TT_CLIENT_TEMP) &&
2256 batadv_has_timed_out(tt_global->common.added_at, temp_timeout)) {
2273 struct batadv_tt_global_entry *tt_global;
2282 tt_global = container_of(tt_common,
2286 if (!batadv_tt_global_to_purge(tt_global, &msg))
2291 tt_global->common.addr,
2292 batadv_print_vid(tt_global->common.vid),
2297 batadv_tt_global_entry_put(tt_global);
2308 struct batadv_tt_global_entry *tt_global;
2326 tt_global = container_of(tt_common_entry,
2329 batadv_tt_global_entry_put(tt_global);
2444 struct batadv_tt_global_entry *tt_global;
2455 tt_global = container_of(tt_common,
2481 tt_orig = batadv_tt_global_orig_entry_find(tt_global,