Lines Matching refs:dl
136 struct hawkbit_download dl; member
692 if (hex2bin(artifact->hashes.sha256, SHA256_HASH_SIZE << 1, hb_context->dl.file_hash, in hawkbit_parse_deployment()
693 sizeof(hb_context->dl.file_hash)) != SHA256_HASH_SIZE) { in hawkbit_parse_deployment()
697 hb_context->dl.file_size = artifact->size; in hawkbit_parse_deployment()
699 if (hb_context->dl.file_size > SLOT1_SIZE) { in hawkbit_parse_deployment()
700 LOG_ERR("Artifact file size too big (got %d, max is %d)", hb_context->dl.file_size, in hawkbit_parse_deployment()
887 if (hb_context->dl.http_content_size == 0) { in response_cb()
888 hb_context->dl.http_content_size = rsp->content_length; in response_cb()
895 if ((hb_context->dl.downloaded_size + body_len) > in response_cb()
898 hb_context->dl.downloaded_size + body_len; in response_cb()
909 strncpy(hb_context->response_data + hb_context->dl.downloaded_size, in response_cb()
911 hb_context->dl.downloaded_size += body_len; in response_cb()
915 if (hb_context->dl.http_content_size != hb_context->dl.downloaded_size) { in response_cb()
917 hb_context->dl.http_content_size, in response_cb()
918 hb_context->dl.downloaded_size); in response_cb()
923 hb_context->response_data[hb_context->dl.downloaded_size] = '\0'; in response_cb()
927 hb_context->response_data, hb_context->dl.downloaded_size, in response_cb()
936 hb_context->response_data, hb_context->dl.downloaded_size, in response_cb()
949 if (hb_context->dl.http_content_size == 0) { in response_cb()
950 hb_context->dl.http_content_size = rsp->content_length; in response_cb()
966 hb_context->dl.downloaded_size = flash_img_bytes_written(&hb_context->flash_ctx); in response_cb()
969 hb_context->dl.downloaded_size * 100 / hb_context->dl.http_content_size; in response_cb()
971 if (downloaded > hb_context->dl.download_progress) { in response_cb()
972 hb_context->dl.download_progress = downloaded; in response_cb()
973 LOG_DBG("Downloaded: %d%% ", hb_context->dl.download_progress); in response_cb()
1065 hb_context->dl.http_content_size = 0; in send_request()
1066 hb_context->dl.downloaded_size = 0; in send_request()
1477 fic.match = s->hb_context.dl.file_hash; in s_download()
1478 fic.clen = s->hb_context.dl.downloaded_size; in s_download()