Lines Matching refs:length
81 u8 *tlv, length;
88 length = llcp_tlv_length[type];
89 if (length == 0 && value_length == 0)
91 else if (length == 0)
92 length = value_length;
94 *tlv_length = 2 + length;
95 tlv = kzalloc(2 + length, GFP_KERNEL);
100 tlv[1] = length;
101 memcpy(tlv + 2, value, length);
196 u8 type, length, offset = 0;
198 pr_debug("TLV array length %d\n", tlv_array_len);
205 length = tlv[1];
207 pr_debug("type 0x%x length %d\n", type, length);
230 offset += length + 2;
231 tlv += length + 2;
246 u8 type, length, offset = 0;
248 pr_debug("TLV array length %d\n", tlv_array_len);
255 length = tlv[1];
257 pr_debug("type 0x%x length %d\n", type, length);
273 offset += length + 2;
274 tlv += length + 2;
303 /* XXX Add an skb length check */
441 pr_debug("SKB size %d SN length %zu\n", size, sock->service_name_len);