Lines Matching refs:vid

67 				 unsigned short vid,
75 unsigned short vid, const char *message,
94 return (tt1->vid == tt2->vid) && batadv_compare_eth(data1, data2); in batadv_compare_tt()
112 hash = jhash(&tt->vid, sizeof(tt->vid), hash); in batadv_choose_tt()
128 unsigned short vid) in batadv_tt_hash_find() argument
138 to_search.vid = vid; in batadv_tt_hash_find()
148 if (tt->vid != vid) in batadv_tt_hash_find()
173 unsigned short vid) in batadv_tt_local_hash_find() argument
179 vid); in batadv_tt_local_hash_find()
198 unsigned short vid) in batadv_tt_global_hash_find() argument
204 vid); in batadv_tt_global_hash_find()
307 const u8 *addr, unsigned short vid) in batadv_tt_global_hash_count() argument
312 tt_global_entry = batadv_tt_global_hash_find(bat_priv, addr, vid); in batadv_tt_global_hash_count()
330 unsigned short vid, int v) in batadv_tt_local_size_mod() argument
334 vlan = batadv_softif_vlan_get(bat_priv, vid); in batadv_tt_local_size_mod()
350 unsigned short vid) in batadv_tt_local_size_inc() argument
352 batadv_tt_local_size_mod(bat_priv, vid, 1); in batadv_tt_local_size_inc()
362 unsigned short vid) in batadv_tt_local_size_dec() argument
364 batadv_tt_local_size_mod(bat_priv, vid, -1); in batadv_tt_local_size_dec()
375 unsigned short vid, int v) in batadv_tt_global_size_mod() argument
379 vlan = batadv_orig_node_vlan_new(orig_node, vid); in batadv_tt_global_size_mod()
402 unsigned short vid) in batadv_tt_global_size_inc() argument
404 batadv_tt_global_size_mod(orig_node, vid, 1); in batadv_tt_global_size_inc()
414 unsigned short vid) in batadv_tt_global_size_dec() argument
416 batadv_tt_global_size_mod(orig_node, vid, -1); in batadv_tt_global_size_dec()
483 tt_change_node->change.vid = htons(common->vid); in batadv_tt_local_event()
612 batadv_print_vid(tt_global->common.vid), message); in batadv_tt_global_free()
642 unsigned short vid, int ifindex, u32 mark) in batadv_tt_local_add() argument
665 tt_local = batadv_tt_local_hash_find(bat_priv, addr, vid); in batadv_tt_local_add()
668 tt_global = batadv_tt_global_hash_find(bat_priv, addr, vid); in batadv_tt_local_add()
675 addr, batadv_print_vid(vid)); in batadv_tt_local_add()
688 addr, batadv_print_vid(vid)); in batadv_tt_local_add()
716 vlan = batadv_softif_vlan_get(bat_priv, vid); in batadv_tt_local_add()
720 addr, batadv_print_vid(vid)); in batadv_tt_local_add()
728 addr, batadv_print_vid(vid), in batadv_tt_local_add()
737 tt_local->common.vid = vid; in batadv_tt_local_add()
776 tt_global->common.vid, in batadv_tt_local_add()
892 tt_vlan->vid = htons(vlan->vid); in batadv_tt_prepare_tvlv_global_data()
975 tt_vlan->vid = htons(vlan->vid); in batadv_tt_prepare_tvlv_local_data()
1118 batadv_print_vid(tt_common_entry->vid), in batadv_tt_local_seq_print_text()
1168 vlan = batadv_softif_vlan_get(bat_priv, common->vid); in batadv_tt_local_dump_entry()
1186 nla_put_u16(msg, BATADV_ATTR_TT_VID, common->vid) || in batadv_tt_local_dump_entry()
1322 batadv_print_vid(tt_local_entry->common.vid), message); in batadv_tt_local_set_pending()
1336 unsigned short vid, const char *message, in batadv_tt_local_remove() argument
1344 tt_local_entry = batadv_tt_local_hash_find(bat_priv, addr, vid); in batadv_tt_local_remove()
1642 batadv_tt_global_size_inc(orig_node, tt_global->common.vid); in batadv_tt_global_orig_entry_add()
1684 unsigned short vid, u16 flags, u8 ttvn) in batadv_tt_global_add() argument
1694 if (batadv_bla_is_backbone_gw_orig(bat_priv, orig_node->orig, vid)) in batadv_tt_global_add()
1697 tt_global_entry = batadv_tt_global_hash_find(bat_priv, tt_addr, vid); in batadv_tt_global_add()
1698 tt_local_entry = batadv_tt_local_hash_find(bat_priv, tt_addr, vid); in batadv_tt_global_add()
1716 common->vid = vid; in batadv_tt_global_add()
1806 common->addr, batadv_print_vid(common->vid), in batadv_tt_global_add()
1818 local_flags = batadv_tt_local_remove(bat_priv, tt_addr, vid, in batadv_tt_global_add()
1910 tt_common_entry->vid); in batadv_tt_global_print_entry()
1914 batadv_print_vid(tt_common_entry->vid), in batadv_tt_global_print_entry()
1923 batadv_print_vid(tt_global_entry->common.vid), in batadv_tt_global_print_entry()
1942 tt_common_entry->vid); in batadv_tt_global_print_entry()
1946 batadv_print_vid(tt_common_entry->vid), in batadv_tt_global_print_entry()
1955 batadv_print_vid(tt_global_entry->common.vid), in batadv_tt_global_print_entry()
2039 common->vid); in batadv_tt_global_dump_subentry()
2061 nla_put_u16(msg, BATADV_ATTR_TT_VID, common->vid) || in batadv_tt_global_dump_subentry()
2246 tt_global_entry->common.vid); in _batadv_tt_global_del_orig_entry()
2289 unsigned short vid; in batadv_tt_global_del_orig_node() local
2295 vid = tt_global_entry->common.vid; in batadv_tt_global_del_orig_node()
2300 batadv_print_vid(vid), message); in batadv_tt_global_del_orig_node()
2361 const unsigned char *addr, unsigned short vid, in batadv_tt_global_del() argument
2367 tt_global_entry = batadv_tt_global_hash_find(bat_priv, addr, vid); in batadv_tt_global_del()
2397 vid); in batadv_tt_global_del()
2436 unsigned short vid; in batadv_tt_global_del_orig() local
2449 if (match_vid >= 0 && tt_common_entry->vid != match_vid) in batadv_tt_global_del_orig()
2460 vid = tt_global->common.vid; in batadv_tt_global_del_orig()
2464 batadv_print_vid(vid), message); in batadv_tt_global_del_orig()
2524 batadv_print_vid(tt_global->common.vid), in batadv_tt_global_purge()
2604 unsigned short vid) in batadv_transtable_search() argument
2611 if (src && batadv_vlan_ap_isola_get(bat_priv, vid)) { in batadv_transtable_search()
2612 tt_local_entry = batadv_tt_local_hash_find(bat_priv, src, vid); in batadv_transtable_search()
2618 tt_global_entry = batadv_tt_global_hash_find(bat_priv, addr, vid); in batadv_transtable_search()
2673 unsigned short vid) in batadv_tt_global_crc() argument
2695 if (tt_common->vid != vid) in batadv_tt_global_crc()
2723 tmp_vid = htons(tt_common->vid); in batadv_tt_global_crc()
2753 unsigned short vid) in batadv_tt_local_crc() argument
2770 if (tt_common->vid != vid) in batadv_tt_local_crc()
2782 tmp_vid = htons(tt_common->vid); in batadv_tt_local_crc()
3019 tt_change->vid = htons(tt_common_entry->vid); in batadv_tt_tvlv_generate()
3057 ntohs(tt_vlan_tmp->vid))) in batadv_tt_global_check_crc()
3061 ntohs(tt_vlan_tmp->vid)); in batadv_tt_global_check_crc()
3098 vlan->tt.crc = batadv_tt_local_crc(bat_priv, vlan->vid); in batadv_tt_local_update_crc()
3121 vlan->vid)) in batadv_tt_global_update_crc()
3124 crc = batadv_tt_global_crc(bat_priv, orig_node, vlan->vid); in batadv_tt_global_update_crc()
3180 tt_vlan_req->vid = tt_vlan->vid; in batadv_send_tt_request()
3502 ntohs((tt_change + i)->vid), in _batadv_tt_update_changes()
3508 ntohs((tt_change + i)->vid), in _batadv_tt_update_changes()
3575 unsigned short vid) in batadv_is_my_client() argument
3580 tt_local_entry = batadv_tt_local_hash_find(bat_priv, addr, vid); in batadv_is_my_client()
3757 unsigned short vid, in batadv_send_roam_adv() argument
3775 orig_node->orig, client, batadv_print_vid(vid)); in batadv_send_roam_adv()
3780 tvlv_roam.vid = htons(vid); in batadv_send_roam_adv()
3871 tt_common_entry->vid); in batadv_tt_local_set_flags()
3904 batadv_print_vid(tt_common->vid)); in batadv_tt_local_purge_pending_clients()
3906 batadv_tt_local_size_dec(bat_priv, tt_common->vid); in batadv_tt_local_purge_pending_clients()
3973 unsigned short vid) in batadv_is_ap_isolated() argument
3980 vlan = batadv_softif_vlan_get(bat_priv, vid); in batadv_is_ap_isolated()
3987 tt_local_entry = batadv_tt_local_hash_find(bat_priv, dst, vid); in batadv_is_ap_isolated()
3991 tt_global_entry = batadv_tt_global_hash_find(bat_priv, src, vid); in batadv_is_ap_isolated()
4102 u8 *addr, unsigned short vid) in batadv_tt_global_client_is_roaming() argument
4107 tt_global_entry = batadv_tt_global_hash_find(bat_priv, addr, vid); in batadv_tt_global_client_is_roaming()
4128 u8 *addr, unsigned short vid) in batadv_tt_local_client_is_roaming() argument
4133 tt_local_entry = batadv_tt_local_hash_find(bat_priv, addr, vid); in batadv_tt_local_client_is_roaming()
4155 unsigned short vid) in batadv_tt_add_temporary_global_entry() argument
4163 if (!batadv_tt_global_add(bat_priv, orig_node, addr, vid, in batadv_tt_add_temporary_global_entry()
4170 addr, batadv_print_vid(vid), orig_node->orig); in batadv_tt_add_temporary_global_entry()
4379 ntohs(roaming_adv->vid), BATADV_TT_CLIENT_ROAM, in batadv_roam_tvlv_unicast_handler_v1()
4434 const u8 *addr, unsigned short vid) in batadv_tt_global_is_isolated() argument
4439 tt = batadv_tt_global_hash_find(bat_priv, addr, vid); in batadv_tt_global_is_isolated()