Lines Matching refs:tlv_len
47 u32 tlv_len, tlv_type; in iwl_pnvm_handle_section() local
52 tlv_len = le32_to_cpu(tlv->length); in iwl_pnvm_handle_section()
55 if (len < tlv_len) { in iwl_pnvm_handle_section()
57 len, tlv_len); in iwl_pnvm_handle_section()
66 if (tlv_len < sizeof(__le32)) { in iwl_pnvm_handle_section()
69 sizeof(__le32), tlv_len); in iwl_pnvm_handle_section()
80 if (tlv_len < 2 * sizeof(__le16)) { in iwl_pnvm_handle_section()
83 2 * sizeof(__le16), tlv_len); in iwl_pnvm_handle_section()
103 u32 data_len = tlv_len - sizeof(*section); in iwl_pnvm_handle_section()
107 tlv_len); in iwl_pnvm_handle_section()
141 tlv_type, tlv_len); in iwl_pnvm_handle_section()
145 len -= ALIGN(tlv_len, 4); in iwl_pnvm_handle_section()
146 data += ALIGN(tlv_len, 4); in iwl_pnvm_handle_section()
181 u32 tlv_len, tlv_type; in iwl_pnvm_parse() local
186 tlv_len = le32_to_cpu(tlv->length); in iwl_pnvm_parse()
189 if (len < tlv_len) { in iwl_pnvm_parse()
191 len, tlv_len); in iwl_pnvm_parse()
201 tlv_len); in iwl_pnvm_parse()
207 data += sizeof(*tlv) + ALIGN(tlv_len, 4); in iwl_pnvm_parse()
208 len -= ALIGN(tlv_len, 4); in iwl_pnvm_parse()
222 data += sizeof(*tlv) + ALIGN(tlv_len, 4); in iwl_pnvm_parse()
223 len -= ALIGN(tlv_len, 4); in iwl_pnvm_parse()