Lines Matching refs:tvlv_value_len
233 void *tvlv_value, u16 tvlv_value_len) in batadv_tvlv_container_register() argument
238 tvlv_value_len = 0; in batadv_tvlv_container_register()
240 tvlv_new = kzalloc(sizeof(*tvlv_new) + tvlv_value_len, GFP_ATOMIC); in batadv_tvlv_container_register()
246 tvlv_new->tvlv_hdr.len = htons(tvlv_value_len); in batadv_tvlv_container_register()
317 u16 tvlv_value_len; in batadv_tvlv_container_ogm_append() local
322 tvlv_value_len = batadv_tvlv_container_list_size(bat_priv); in batadv_tvlv_container_ogm_append()
325 packet_min_len, tvlv_value_len); in batadv_tvlv_container_ogm_append()
330 if (!tvlv_value_len) in batadv_tvlv_container_ogm_append()
347 return tvlv_value_len; in batadv_tvlv_container_ogm_append()
370 void *tvlv_value, u16 tvlv_value_len) in batadv_tvlv_call_handler() argument
384 tvlv_value, tvlv_value_len); in batadv_tvlv_call_handler()
398 tvlv_value_len); in batadv_tvlv_call_handler()
422 void *tvlv_value, u16 tvlv_value_len) in batadv_tvlv_containers_process() argument
430 while (tvlv_value_len >= sizeof(*tvlv_hdr)) { in batadv_tvlv_containers_process()
434 tvlv_value_len -= sizeof(*tvlv_hdr); in batadv_tvlv_containers_process()
436 if (tvlv_value_cont_len > tvlv_value_len) in batadv_tvlv_containers_process()
449 tvlv_value_len -= tvlv_value_cont_len; in batadv_tvlv_containers_process()
482 u16 tvlv_value_len; in batadv_tvlv_ogm_receive() local
487 tvlv_value_len = ntohs(batadv_ogm_packet->tvlv_len); in batadv_tvlv_ogm_receive()
488 if (!tvlv_value_len) in batadv_tvlv_ogm_receive()
494 tvlv_value, tvlv_value_len); in batadv_tvlv_ogm_receive()
516 u16 tvlv_value_len), in batadv_tvlv_handler_register() argument
520 u16 tvlv_value_len), in batadv_tvlv_handler_register()
592 void *tvlv_value, u16 tvlv_value_len) in batadv_tvlv_unicast_send() argument
606 tvlv_len = sizeof(*tvlv_hdr) + tvlv_value_len; in batadv_tvlv_unicast_send()
629 tvlv_hdr->len = htons(tvlv_value_len); in batadv_tvlv_unicast_send()
631 memcpy(tvlv_buff, tvlv_value, tvlv_value_len); in batadv_tvlv_unicast_send()