Lines Matching refs:payload_len
565 uint32_t payload_len; in fw_upload_get_last_5bytes() local
579 payload_len = fw_upload_get_payload_length(buffer); in fw_upload_get_last_5bytes()
581 if ((len == CMD_HDR_LEN) || ((uint32_t)len == payload_len)) { in fw_upload_get_last_5bytes()
593 static void fw_upload_update_result(uint32_t payload_len, uint16_t *sending_len, in fw_upload_update_result() argument
600 *sending_len = payload_len; in fw_upload_update_result()
611 uint32_t payload_len; in fw_upload_write_hdr_and_payload() local
618 payload_len = fw_upload_get_payload_length(buffer); in fw_upload_write_hdr_and_payload()
627 fw_upload_update_result(payload_len, &sending_len, in fw_upload_write_hdr_and_payload()
653 sending_len = payload_len; in fw_upload_write_hdr_and_payload()
655 } else if (len_to_send == (payload_len + 1)) { in fw_upload_write_hdr_and_payload()
664 sending_len = payload_len; in fw_upload_write_hdr_and_payload()
666 } else if (len_to_send == payload_len) { in fw_upload_write_hdr_and_payload()