Lines Matching refs:common

95 					      common);
109 common);
116 if (atomic_dec_and_test(&tt_local_entry->common.refcount))
117 kfree_rcu(tt_local_entry, common.rcu);
127 struct batadv_tt_global_entry, common);
135 if (atomic_dec_and_test(&tt_global_entry->common.refcount)) {
137 call_rcu(&tt_global_entry->common.rcu,
250 tt_global->common.addr, message);
253 batadv_choose_orig, tt_global->common.addr);
273 if (tt_local->common.flags & BATADV_TT_CLIENT_PENDING) {
281 tt_local->common.flags &= ~BATADV_TT_CLIENT_PENDING;
285 if (tt_local->common.flags & BATADV_TT_CLIENT_ROAM) {
294 tt_local->common.flags &= ~BATADV_TT_CLIENT_ROAM;
308 memcpy(tt_local->common.addr, addr, ETH_ALEN);
313 tt_local->common.flags = BATADV_TT_CLIENT_NEW;
315 tt_local->common.flags |= BATADV_TT_CLIENT_WIFI;
316 atomic_set(&tt_local->common.refcount, 2);
318 tt_local->common.added_at = tt_local->last_seen;
322 tt_local->common.flags |= BATADV_TT_CLIENT_NOPURGE;
325 batadv_choose_orig, &tt_local->common,
326 &tt_local->common.hash_entry);
335 batadv_tt_local_event(bat_priv, addr, tt_local->common.flags);
341 if (tt_global && !(tt_global->common.flags & BATADV_TT_CLIENT_ROAM)) {
346 batadv_send_roam_adv(bat_priv, tt_global->common.addr,
358 tt_global->common.flags |= BATADV_TT_CLIENT_ROAM;
497 common);
532 batadv_tt_local_event(bat_priv, tt_local_entry->common.addr,
533 tt_local_entry->common.flags | flags);
539 tt_local_entry->common.flags |= BATADV_TT_CLIENT_PENDING;
543 tt_local_entry->common.addr, message);
566 curr_flags = tt_local_entry->common.flags;
576 tt_local_entry->common.flags |= BATADV_TT_CLIENT_ROAM;
579 if (!(tt_local_entry->common.flags & BATADV_TT_CLIENT_NEW)) {
587 batadv_tt_local_event(bat_priv, tt_local_entry->common.addr,
589 hlist_del_rcu(&tt_local_entry->common.hash_entry);
610 common);
611 if (tt_local_entry->common.flags & BATADV_TT_CLIENT_NOPURGE)
615 if (tt_local_entry->common.flags & BATADV_TT_CLIENT_PENDING)
669 common);
804 struct batadv_tt_common_entry *common;
815 !(tt_local_entry->common.flags & BATADV_TT_CLIENT_NEW))
823 common = &tt_global_entry->common;
824 memcpy(common->addr, tt_addr, ETH_ALEN);
826 common->flags = flags;
834 atomic_set(&common->refcount, 2);
835 common->added_at = jiffies;
842 batadv_choose_orig, common,
843 &common->hash_entry);
851 common = &tt_global_entry->common;
863 if (!(common->flags & BATADV_TT_CLIENT_TEMP))
875 common->flags &= ~BATADV_TT_CLIENT_TEMP;
881 tt_global_entry->common.flags |= flags;
890 if (common->flags & BATADV_TT_CLIENT_ROAM) {
892 common->flags &= ~BATADV_TT_CLIENT_ROAM;
902 common->addr, orig_node->orig);
911 tt_global_entry->common.flags |= local_flags & BATADV_TT_CLIENT_WIFI;
917 tt_global_entry->common.flags &= ~BATADV_TT_CLIENT_ROAM;
975 tt_common_entry = &tt_global_entry->common;
983 '*', tt_global_entry->common.addr,
999 '+', tt_global_entry->common.addr,
1038 common);
1083 tt_global_entry->common.addr, message);
1121 tt_global_entry->common.flags |= BATADV_TT_CLIENT_ROAM;
1170 tt_global_entry->common.addr);
1212 common);
1220 tt_global->common.addr, message);
1237 if ((tt_global->common.flags & BATADV_TT_CLIENT_ROAM) &&
1243 if ((tt_global->common.flags & BATADV_TT_CLIENT_TEMP) &&
1244 batadv_has_timed_out(tt_global->common.added_at, temp_timeout)) {
1272 common);
1279 tt_global->common.addr, msg);
1314 common);
1331 if (tt_local_entry->common.flags & BATADV_TT_CLIENT_WIFI &&
1332 tt_global_entry->common.flags & BATADV_TT_CLIENT_WIFI)
1350 (tt_local_entry->common.flags & BATADV_TT_CLIENT_PENDING))
1402 common);
1574 common);
2044 if ((tt_local_entry->common.flags & BATADV_TT_CLIENT_PENDING) ||
2045 (tt_local_entry->common.flags & BATADV_TT_CLIENT_ROAM))
2351 common);
2523 ret = tt_global_entry->common.flags & BATADV_TT_CLIENT_ROAM;
2548 ret = tt_local_entry->common.flags & BATADV_TT_CLIENT_ROAM;