Lines Matching refs:tlv_len
78 u32 tlv_len, tlv_type; in iwl_uefi_reduce_power_section() local
83 tlv_len = le32_to_cpu(tlv->length); in iwl_uefi_reduce_power_section()
86 if (len < tlv_len) { in iwl_uefi_reduce_power_section()
88 len, tlv_len); in iwl_uefi_reduce_power_section()
100 tlv_len); in iwl_uefi_reduce_power_section()
102 IWL_DEBUG_FW(trans, "Adding data (size %d)\n", tlv_len); in iwl_uefi_reduce_power_section()
104 tmp = krealloc(reduce_power_data, size + tlv_len, GFP_KERNEL); in iwl_uefi_reduce_power_section()
116 memcpy(reduce_power_data + size, data, tlv_len); in iwl_uefi_reduce_power_section()
118 size += tlv_len; in iwl_uefi_reduce_power_section()
128 tlv_type, tlv_len); in iwl_uefi_reduce_power_section()
132 len -= ALIGN(tlv_len, 4); in iwl_uefi_reduce_power_section()
133 data += ALIGN(tlv_len, 4); in iwl_uefi_reduce_power_section()
162 u32 tlv_len, tlv_type; in iwl_uefi_reduce_power_parse() local
167 tlv_len = le32_to_cpu(tlv->length); in iwl_uefi_reduce_power_parse()
170 if (len < tlv_len) { in iwl_uefi_reduce_power_parse()
172 len, tlv_len); in iwl_uefi_reduce_power_parse()
182 tlv_len); in iwl_uefi_reduce_power_parse()
188 data += sizeof(*tlv) + ALIGN(tlv_len, 4); in iwl_uefi_reduce_power_parse()
189 len -= ALIGN(tlv_len, 4); in iwl_uefi_reduce_power_parse()
203 data += sizeof(*tlv) + ALIGN(tlv_len, 4); in iwl_uefi_reduce_power_parse()
204 len -= ALIGN(tlv_len, 4); in iwl_uefi_reduce_power_parse()