Lines Matching refs:tlv_len
68 u32 tlv_len, tlv_type; in iwl_uefi_reduce_power_section() local
73 tlv_len = le32_to_cpu(tlv->length); in iwl_uefi_reduce_power_section()
76 if (len < tlv_len) { in iwl_uefi_reduce_power_section()
78 len, tlv_len); in iwl_uefi_reduce_power_section()
90 tlv_len); in iwl_uefi_reduce_power_section()
92 IWL_DEBUG_FW(trans, "Adding data (size %d)\n", tlv_len); in iwl_uefi_reduce_power_section()
94 tmp = krealloc(reduce_power_data, size + tlv_len, GFP_KERNEL); in iwl_uefi_reduce_power_section()
106 memcpy(reduce_power_data + size, data, tlv_len); in iwl_uefi_reduce_power_section()
108 size += tlv_len; in iwl_uefi_reduce_power_section()
118 tlv_type, tlv_len); in iwl_uefi_reduce_power_section()
122 len -= ALIGN(tlv_len, 4); in iwl_uefi_reduce_power_section()
123 data += ALIGN(tlv_len, 4); in iwl_uefi_reduce_power_section()
152 u32 tlv_len, tlv_type; in iwl_uefi_reduce_power_parse() local
157 tlv_len = le32_to_cpu(tlv->length); in iwl_uefi_reduce_power_parse()
160 if (len < tlv_len) { in iwl_uefi_reduce_power_parse()
162 len, tlv_len); in iwl_uefi_reduce_power_parse()
172 tlv_len); in iwl_uefi_reduce_power_parse()
178 data += sizeof(*tlv) + ALIGN(tlv_len, 4); in iwl_uefi_reduce_power_parse()
179 len -= ALIGN(tlv_len, 4); in iwl_uefi_reduce_power_parse()
193 data += sizeof(*tlv) + ALIGN(tlv_len, 4); in iwl_uefi_reduce_power_parse()
194 len -= ALIGN(tlv_len, 4); in iwl_uefi_reduce_power_parse()