Lines Matching refs:tt_global

597 				  struct batadv_tt_global_entry *tt_global,  in batadv_tt_global_free()  argument
605 tt_global->common.addr, in batadv_tt_global_free()
606 batadv_print_vid(tt_global->common.vid), message); in batadv_tt_global_free()
611 &tt_global->common); in batadv_tt_global_free()
640 struct batadv_tt_global_entry *tt_global = NULL; in batadv_tt_local_add() local
662 tt_global = batadv_tt_global_hash_find(bat_priv, addr, vid); in batadv_tt_local_add()
764 if (tt_global && !(tt_global->common.flags & BATADV_TT_CLIENT_ROAM)) { in batadv_tt_local_add()
766 head = &tt_global->orig_list; in batadv_tt_local_add()
769 batadv_send_roam_adv(bat_priv, tt_global->common.addr, in batadv_tt_local_add()
770 tt_global->common.vid, in batadv_tt_local_add()
775 batadv_tt_global_free(bat_priv, tt_global, in batadv_tt_local_add()
777 tt_global = NULL; in batadv_tt_local_add()
782 tt_global->common.flags |= BATADV_TT_CLIENT_ROAM; in batadv_tt_local_add()
783 tt_global->roam_at = jiffies; in batadv_tt_local_add()
819 batadv_tt_global_entry_put(tt_global); in batadv_tt_local_add()
1505 batadv_tt_global_sync_flags(struct batadv_tt_global_entry *tt_global) in batadv_tt_global_sync_flags() argument
1512 head = &tt_global->orig_list; in batadv_tt_global_sync_flags()
1517 flags |= tt_global->common.flags & (~BATADV_TT_SYNC_MASK); in batadv_tt_global_sync_flags()
1518 tt_global->common.flags = flags; in batadv_tt_global_sync_flags()
1529 batadv_tt_global_orig_entry_add(struct batadv_tt_global_entry *tt_global, in batadv_tt_global_orig_entry_add() argument
1535 spin_lock_bh(&tt_global->list_lock); in batadv_tt_global_orig_entry_add()
1537 orig_entry = batadv_tt_global_orig_entry_find(tt_global, orig_node); in batadv_tt_global_orig_entry_add()
1553 batadv_tt_global_size_inc(orig_node, tt_global->common.vid); in batadv_tt_global_orig_entry_add()
1561 &tt_global->orig_list); in batadv_tt_global_orig_entry_add()
1562 atomic_inc(&tt_global->orig_list_count); in batadv_tt_global_orig_entry_add()
1565 batadv_tt_global_sync_flags(tt_global); in batadv_tt_global_orig_entry_add()
1569 spin_unlock_bh(&tt_global->list_lock); in batadv_tt_global_orig_entry_add()
2198 struct batadv_tt_global_entry *tt_global; in batadv_tt_global_del_orig() local
2221 tt_global = container_of(tt_common_entry, in batadv_tt_global_del_orig()
2225 batadv_tt_global_del_orig_node(bat_priv, tt_global, in batadv_tt_global_del_orig()
2228 if (hlist_empty(&tt_global->orig_list)) { in batadv_tt_global_del_orig()
2229 vid = tt_global->common.vid; in batadv_tt_global_del_orig()
2232 tt_global->common.addr, in batadv_tt_global_del_orig()
2235 batadv_tt_global_entry_put(tt_global); in batadv_tt_global_del_orig()
2243 static bool batadv_tt_global_to_purge(struct batadv_tt_global_entry *tt_global, in batadv_tt_global_to_purge() argument
2250 if ((tt_global->common.flags & BATADV_TT_CLIENT_ROAM) && in batadv_tt_global_to_purge()
2251 batadv_has_timed_out(tt_global->roam_at, roam_timeout)) { in batadv_tt_global_to_purge()
2256 if ((tt_global->common.flags & BATADV_TT_CLIENT_TEMP) && in batadv_tt_global_to_purge()
2257 batadv_has_timed_out(tt_global->common.added_at, temp_timeout)) { in batadv_tt_global_to_purge()
2274 struct batadv_tt_global_entry *tt_global; in batadv_tt_global_purge() local
2283 tt_global = container_of(tt_common, in batadv_tt_global_purge()
2287 if (!batadv_tt_global_to_purge(tt_global, &msg)) in batadv_tt_global_purge()
2292 tt_global->common.addr, in batadv_tt_global_purge()
2293 batadv_print_vid(tt_global->common.vid), in batadv_tt_global_purge()
2298 batadv_tt_global_entry_put(tt_global); in batadv_tt_global_purge()
2309 struct batadv_tt_global_entry *tt_global; in batadv_tt_global_table_free() local
2327 tt_global = container_of(tt_common_entry, in batadv_tt_global_table_free()
2330 batadv_tt_global_entry_put(tt_global); in batadv_tt_global_table_free()
2445 struct batadv_tt_global_entry *tt_global; in batadv_tt_global_crc() local
2456 tt_global = container_of(tt_common, in batadv_tt_global_crc()
2482 tt_orig = batadv_tt_global_orig_entry_find(tt_global, in batadv_tt_global_crc()