Lines Matching refs:tt_len
494 * batadv_tt_entries() - compute the number of entries fitting in tt_len bytes
495 * @tt_len: available space
499 static u16 batadv_tt_entries(u16 tt_len)
501 return tt_len / batadv_tt_len(1);
783 * @tt_len: pointer to the length to reserve to the tt_change. if -1 this
797 s32 *tt_len)
815 /* if tt_len is negative, allocate the space needed by the full table */
816 if (*tt_len < 0)
817 *tt_len = batadv_tt_len(num_entries);
819 tvlv_len = *tt_len;
824 *tt_len = 0;
856 * @tt_len: pointer to the length to reserve to the tt_change. if -1 this
871 s32 *tt_len)
894 /* if tt_len is negative, allocate the space needed by the full table */
895 if (*tt_len < 0)
896 *tt_len = batadv_tt_len(total_entries);
898 tvlv_len = *tt_len;
2694 * @tt_len: expected tvlv tt data buffer length in number of bytes
2706 void *tvlv_buff, u16 tt_len,
2720 tt_tot = batadv_tt_entries(tt_len);
2724 return tt_len;
2959 s32 tt_len;
2996 tt_len = req_dst_orig_node->tt_buff_len;
3001 &tt_len);
3002 if (!tt_len)
3013 tt_len = -1;
3017 &tt_len);
3018 if (!tt_len)
3024 tt_change, tt_len,
3030 tt_len = sizeof(struct batadv_unicast_tvlv_packet) + tvlv_len;
3031 if (tt_len > atomic_read(&bat_priv->packet_size_max)) {
3088 s32 tt_len;
3123 tt_len = bat_priv->tt.last_changeset_len;
3127 &tt_len);
3128 if (!tt_len || !tvlv_len)
3141 tt_len = -1;
3145 &tt_len);
3146 if (!tt_len || !tvlv_len)
3152 tt_change, tt_len,