Lines Matching refs:length
81 u8 *tlv, length; in nfc_llcp_build_tlv() local
88 length = llcp_tlv_length[type]; in nfc_llcp_build_tlv()
89 if (length == 0 && value_length == 0) in nfc_llcp_build_tlv()
91 else if (length == 0) in nfc_llcp_build_tlv()
92 length = value_length; in nfc_llcp_build_tlv()
94 *tlv_length = 2 + length; in nfc_llcp_build_tlv()
95 tlv = kzalloc(2 + length, GFP_KERNEL); in nfc_llcp_build_tlv()
100 tlv[1] = length; in nfc_llcp_build_tlv()
101 memcpy(tlv + 2, value, length); in nfc_llcp_build_tlv()
196 u8 type, length, offset = 0; in nfc_llcp_parse_gb_tlv() local
205 length = tlv[1]; in nfc_llcp_parse_gb_tlv()
207 pr_debug("type 0x%x length %d\n", type, length); in nfc_llcp_parse_gb_tlv()
230 offset += length + 2; in nfc_llcp_parse_gb_tlv()
231 tlv += length + 2; in nfc_llcp_parse_gb_tlv()
246 u8 type, length, offset = 0; in nfc_llcp_parse_connection_tlv() local
255 length = tlv[1]; in nfc_llcp_parse_connection_tlv()
257 pr_debug("type 0x%x length %d\n", type, length); in nfc_llcp_parse_connection_tlv()
273 offset += length + 2; in nfc_llcp_parse_connection_tlv()
274 tlv += length + 2; in nfc_llcp_parse_connection_tlv()