Lines Matching refs:tt_local

639 	struct batadv_tt_local_entry *tt_local;  in batadv_tt_local_add()  local
659 tt_local = batadv_tt_local_hash_find(bat_priv, addr, vid); in batadv_tt_local_add()
664 if (tt_local) { in batadv_tt_local_add()
665 tt_local->last_seen = jiffies; in batadv_tt_local_add()
666 if (tt_local->common.flags & BATADV_TT_CLIENT_PENDING) { in batadv_tt_local_add()
675 tt_local->common.flags &= ~BATADV_TT_CLIENT_PENDING; in batadv_tt_local_add()
679 if (tt_local->common.flags & BATADV_TT_CLIENT_ROAM) { in batadv_tt_local_add()
688 tt_local->common.flags &= ~BATADV_TT_CLIENT_ROAM; in batadv_tt_local_add()
705 tt_local = kmem_cache_alloc(batadv_tl_cache, GFP_ATOMIC); in batadv_tt_local_add()
706 if (!tt_local) in batadv_tt_local_add()
715 kmem_cache_free(batadv_tl_cache, tt_local); in batadv_tt_local_add()
716 tt_local = NULL; in batadv_tt_local_add()
725 ether_addr_copy(tt_local->common.addr, addr); in batadv_tt_local_add()
730 tt_local->common.flags = BATADV_TT_CLIENT_NEW; in batadv_tt_local_add()
731 tt_local->common.vid = vid; in batadv_tt_local_add()
733 tt_local->common.flags |= BATADV_TT_CLIENT_WIFI; in batadv_tt_local_add()
734 kref_init(&tt_local->common.refcount); in batadv_tt_local_add()
735 tt_local->last_seen = jiffies; in batadv_tt_local_add()
736 tt_local->common.added_at = tt_local->last_seen; in batadv_tt_local_add()
737 tt_local->vlan = vlan; in batadv_tt_local_add()
744 tt_local->common.flags |= BATADV_TT_CLIENT_NOPURGE; in batadv_tt_local_add()
746 kref_get(&tt_local->common.refcount); in batadv_tt_local_add()
748 batadv_choose_tt, &tt_local->common, in batadv_tt_local_add()
749 &tt_local->common.hash_entry); in batadv_tt_local_add()
753 batadv_tt_local_entry_put(tt_local); in batadv_tt_local_add()
758 batadv_tt_local_event(bat_priv, tt_local, BATADV_NO_FLAGS); in batadv_tt_local_add()
790 remote_flags = tt_local->common.flags & BATADV_TT_REMOTE_MASK; in batadv_tt_local_add()
793 tt_local->common.flags |= BATADV_TT_CLIENT_WIFI; in batadv_tt_local_add()
795 tt_local->common.flags &= ~BATADV_TT_CLIENT_WIFI; in batadv_tt_local_add()
804 tt_local->common.flags |= BATADV_TT_CLIENT_ISOLA; in batadv_tt_local_add()
806 tt_local->common.flags &= ~BATADV_TT_CLIENT_ISOLA; in batadv_tt_local_add()
811 if (remote_flags ^ (tt_local->common.flags & BATADV_TT_REMOTE_MASK)) in batadv_tt_local_add()
812 batadv_tt_local_event(bat_priv, tt_local, BATADV_NO_FLAGS); in batadv_tt_local_add()
818 batadv_tt_local_entry_put(tt_local); in batadv_tt_local_add()
1366 struct batadv_tt_local_entry *tt_local; in batadv_tt_local_table_free() local
1384 tt_local = container_of(tt_common_entry, in batadv_tt_local_table_free()
1388 batadv_tt_local_entry_put(tt_local); in batadv_tt_local_table_free()
3642 struct batadv_tt_local_entry *tt_local; in batadv_tt_local_purge_pending_clients() local
3668 tt_local = container_of(tt_common, in batadv_tt_local_purge_pending_clients()
3672 batadv_tt_local_entry_put(tt_local); in batadv_tt_local_purge_pending_clients()