Lines Matching refs:tt_data

842 				   struct batadv_tvlv_tt_data **tt_data,  in batadv_tt_prepare_tvlv_global_data()  argument
860 change_offset = sizeof(**tt_data); in batadv_tt_prepare_tvlv_global_data()
870 *tt_data = kmalloc(tvlv_len, GFP_ATOMIC); in batadv_tt_prepare_tvlv_global_data()
871 if (!*tt_data) { in batadv_tt_prepare_tvlv_global_data()
876 (*tt_data)->flags = BATADV_NO_FLAGS; in batadv_tt_prepare_tvlv_global_data()
877 (*tt_data)->ttvn = atomic_read(&orig_node->last_ttvn); in batadv_tt_prepare_tvlv_global_data()
878 (*tt_data)->num_vlan = htons(num_vlan); in batadv_tt_prepare_tvlv_global_data()
880 tt_vlan = (struct batadv_tvlv_tt_vlan_data *)(*tt_data + 1); in batadv_tt_prepare_tvlv_global_data()
889 tt_change_ptr = (u8 *)*tt_data + change_offset; in batadv_tt_prepare_tvlv_global_data()
917 struct batadv_tvlv_tt_data **tt_data, in batadv_tt_prepare_tvlv_local_data() argument
940 change_offset = sizeof(**tt_data); in batadv_tt_prepare_tvlv_local_data()
950 *tt_data = kmalloc(tvlv_len, GFP_ATOMIC); in batadv_tt_prepare_tvlv_local_data()
951 if (!*tt_data) { in batadv_tt_prepare_tvlv_local_data()
956 (*tt_data)->flags = BATADV_NO_FLAGS; in batadv_tt_prepare_tvlv_local_data()
957 (*tt_data)->ttvn = atomic_read(&bat_priv->tt.vn); in batadv_tt_prepare_tvlv_local_data()
958 (*tt_data)->num_vlan = htons(num_vlan); in batadv_tt_prepare_tvlv_local_data()
960 tt_vlan = (struct batadv_tvlv_tt_vlan_data *)(*tt_data + 1); in batadv_tt_prepare_tvlv_local_data()
973 tt_change_ptr = (u8 *)*tt_data + change_offset; in batadv_tt_prepare_tvlv_local_data()
989 struct batadv_tvlv_tt_data *tt_data; in batadv_tt_tvlv_container_update() local
1005 tvlv_len = batadv_tt_prepare_tvlv_local_data(bat_priv, &tt_data, in batadv_tt_tvlv_container_update()
1010 tt_data->flags = BATADV_TT_OGM_DIFF; in batadv_tt_tvlv_container_update()
1052 batadv_tvlv_container_register(bat_priv, BATADV_TVLV_TT, 1, tt_data, in batadv_tt_tvlv_container_update()
1054 kfree(tt_data); in batadv_tt_tvlv_container_update()
2998 struct batadv_tvlv_tt_data *tt_data, in batadv_send_other_tt_response() argument
3013 req_src, tt_data->ttvn, req_dst, in batadv_send_other_tt_response()
3014 ((tt_data->flags & BATADV_TT_FULL_TABLE) ? 'F' : '.')); in batadv_send_other_tt_response()
3026 req_ttvn = tt_data->ttvn; in batadv_send_other_tt_response()
3028 tt_vlan = (struct batadv_tvlv_tt_vlan_data *)(tt_data + 1); in batadv_send_other_tt_response()
3032 ntohs(tt_data->num_vlan))) in batadv_send_other_tt_response()
3036 if (tt_data->flags & BATADV_TT_FULL_TABLE || in batadv_send_other_tt_response()
3128 struct batadv_tvlv_tt_data *tt_data, in batadv_send_my_tt_response() argument
3142 req_src, tt_data->ttvn, in batadv_send_my_tt_response()
3143 ((tt_data->flags & BATADV_TT_FULL_TABLE) ? 'F' : '.')); in batadv_send_my_tt_response()
3148 req_ttvn = tt_data->ttvn; in batadv_send_my_tt_response()
3161 if (tt_data->flags & BATADV_TT_FULL_TABLE || my_ttvn != req_ttvn || in batadv_send_my_tt_response()
3244 struct batadv_tvlv_tt_data *tt_data, in batadv_send_tt_response() argument
3248 return batadv_send_my_tt_response(bat_priv, tt_data, req_src); in batadv_send_tt_response()
3249 return batadv_send_other_tt_response(bat_priv, tt_data, req_src, in batadv_send_tt_response()
3366 struct batadv_tvlv_tt_data *tt_data, in batadv_handle_tt_response() argument
3373 u8 *tvlv_ptr = (u8 *)tt_data; in batadv_handle_tt_response()
3378 resp_src, tt_data->ttvn, num_entries, in batadv_handle_tt_response()
3379 ((tt_data->flags & BATADV_TT_FULL_TABLE) ? 'F' : '.')); in batadv_handle_tt_response()
3388 change_offset *= ntohs(tt_data->num_vlan); in batadv_handle_tt_response()
3389 change_offset += sizeof(*tt_data); in batadv_handle_tt_response()
3393 if (tt_data->flags & BATADV_TT_FULL_TABLE) { in batadv_handle_tt_response()
3394 batadv_tt_fill_gtable(bat_priv, tt_change, tt_data->ttvn, in batadv_handle_tt_response()
3398 tt_data->ttvn, tt_change); in batadv_handle_tt_response()
3991 struct batadv_tvlv_tt_data *tt_data; in batadv_tt_tvlv_ogm_handler_v1() local
3994 if (tvlv_value_len < sizeof(*tt_data)) in batadv_tt_tvlv_ogm_handler_v1()
3997 tt_data = tvlv_value; in batadv_tt_tvlv_ogm_handler_v1()
3998 tvlv_value_len -= sizeof(*tt_data); in batadv_tt_tvlv_ogm_handler_v1()
4000 num_vlan = ntohs(tt_data->num_vlan); in batadv_tt_tvlv_ogm_handler_v1()
4005 tt_vlan = (struct batadv_tvlv_tt_vlan_data *)(tt_data + 1); in batadv_tt_tvlv_ogm_handler_v1()
4012 num_entries, tt_data->ttvn); in batadv_tt_tvlv_ogm_handler_v1()
4032 struct batadv_tvlv_tt_data *tt_data; in batadv_tt_tvlv_unicast_handler_v1() local
4037 if (tvlv_value_len < sizeof(*tt_data)) in batadv_tt_tvlv_unicast_handler_v1()
4040 tt_data = tvlv_value; in batadv_tt_tvlv_unicast_handler_v1()
4041 tvlv_value_len -= sizeof(*tt_data); in batadv_tt_tvlv_unicast_handler_v1()
4044 tt_vlan_len *= ntohs(tt_data->num_vlan); in batadv_tt_tvlv_unicast_handler_v1()
4052 switch (tt_data->flags & BATADV_TT_DATA_TYPE_MASK) { in batadv_tt_tvlv_unicast_handler_v1()
4059 ret = batadv_send_tt_response(bat_priv, tt_data, src, dst); in batadv_tt_tvlv_unicast_handler_v1()
4061 if (tt_data->flags & BATADV_TT_FULL_TABLE) in batadv_tt_tvlv_unicast_handler_v1()
4077 batadv_handle_tt_response(bat_priv, tt_data, in batadv_tt_tvlv_unicast_handler_v1()
4082 if (tt_data->flags & BATADV_TT_FULL_TABLE) in batadv_tt_tvlv_unicast_handler_v1()