Lines Matching refs:curr_tlv_len

221 		uint32_t curr_tlv_len =  in wmitlv_check_tlv_params()  local
224 if ((buf_idx + WMI_TLV_HDR_SIZE + curr_tlv_len) > param_buf_len) { in wmitlv_check_tlv_params()
228 curr_tlv_tag, curr_tlv_len, param_buf_len); in wmitlv_check_tlv_params()
247 curr_tlv_len); in wmitlv_check_tlv_params()
286 if (curr_tlv_len != expected_tlv_len) { in wmitlv_check_tlv_params()
291 curr_tlv_len, expected_tlv_len); in wmitlv_check_tlv_params()
308 if (curr_tlv_len != 0) { in wmitlv_check_tlv_params()
310 if ((curr_tlv_len % in wmitlv_check_tlv_params()
315 __func__, curr_tlv_len, in wmitlv_check_tlv_params()
332 curr_tlv_len / in wmitlv_check_tlv_params()
388 if ((curr_tlv_len + WMI_TLV_HDR_SIZE) != in wmitlv_check_tlv_params()
393 (curr_tlv_len + WMI_TLV_HDR_SIZE), in wmitlv_check_tlv_params()
400 if ((curr_tlv_len % sizeof(uint32_t)) != 0) { in wmitlv_check_tlv_params()
403 __func__, curr_tlv_len, wmi_cmd_event_id, in wmitlv_check_tlv_params()
409 buf_ptr += curr_tlv_len + WMI_TLV_HDR_SIZE; in wmitlv_check_tlv_params()
410 buf_idx += curr_tlv_len + WMI_TLV_HDR_SIZE; in wmitlv_check_tlv_params()
562 uint32_t curr_tlv_len = in wmitlv_check_and_pad_tlvs() local
567 if (curr_tlv_len > free_buf_len) { in wmitlv_check_and_pad_tlvs()
588 curr_tlv_len); in wmitlv_check_and_pad_tlvs()
609 curr_tlv_len += WMI_TLV_HDR_SIZE; in wmitlv_check_and_pad_tlvs()
617 curr_tlv_len - in wmitlv_check_and_pad_tlvs()
620 (curr_tlv_len > WMI_TLV_HDR_SIZE) ? 1 : 0; in wmitlv_check_and_pad_tlvs()
623 curr_tlv_len - in wmitlv_check_and_pad_tlvs()
633 if (curr_tlv_len != 0) { in wmitlv_check_and_pad_tlvs()
638 if (in_tlv_len > curr_tlv_len) { in wmitlv_check_and_pad_tlvs()
649 curr_tlv_len / in_tlv_len; in wmitlv_check_and_pad_tlvs()
670 curr_tlv_len / in wmitlv_check_and_pad_tlvs()
770 buf_idx + curr_tlv_len + in wmitlv_check_and_pad_tlvs()
778 buf_ptr + curr_tlv_len; in wmitlv_check_and_pad_tlvs()
780 buf_ptr + curr_tlv_len + in wmitlv_check_and_pad_tlvs()
785 curr_tlv_len); in wmitlv_check_and_pad_tlvs()
805 curr_tlv_len - in wmitlv_check_and_pad_tlvs()
849 curr_tlv_len - in wmitlv_check_and_pad_tlvs()
864 (buf_idx + curr_tlv_len)) { in wmitlv_check_and_pad_tlvs()
866 buf_ptr + curr_tlv_len; in wmitlv_check_and_pad_tlvs()
868 buf_ptr + curr_tlv_len + in wmitlv_check_and_pad_tlvs()
873 curr_tlv_len); in wmitlv_check_and_pad_tlvs()
899 __func__, tlv_size_diff, curr_tlv_len); in wmitlv_check_and_pad_tlvs()
904 && !curr_tlv_len) ? NULL : (void *)buf_ptr; in wmitlv_check_and_pad_tlvs()
918 (curr_tlv_len - tlv_size_diff)); in wmitlv_check_and_pad_tlvs()
923 __func__, (curr_tlv_len - tlv_size_diff), in wmitlv_check_and_pad_tlvs()
929 (curr_tlv_len - tlv_size_diff)); in wmitlv_check_and_pad_tlvs()
931 curr_tlv_len); in wmitlv_check_and_pad_tlvs()
945 src_addr = buf_ptr + curr_tlv_len; in wmitlv_check_and_pad_tlvs()
947 buf_ptr + curr_tlv_len + num_padding_bytes; in wmitlv_check_and_pad_tlvs()
949 param_buf_len - (buf_idx + curr_tlv_len); in wmitlv_check_and_pad_tlvs()
967 buf_ptr += curr_tlv_len + num_padding_bytes; in wmitlv_check_and_pad_tlvs()
968 buf_idx += curr_tlv_len + num_padding_bytes; in wmitlv_check_and_pad_tlvs()