Home
last modified time | relevance | path

Searched refs:ota_handle (Results 1 – 5 of 5) sorted by relevance

/AliOS-Things-master/components/linkkit/dev_model/
A Ddm_fota.c71 void *ota_handle = NULL; in dm_fota_perform_sync() local
80 res = dm_ota_get_ota_handle(&ota_handle); in dm_fota_perform_sync()
85 if (ota_handle == NULL) { in dm_fota_perform_sync()
95 IOT_OTA_Ioctl(ota_handle, IOT_OTAG_RESET_FETCHED_SIZE, ota_handle, 4); in dm_fota_perform_sync()
148 if (IOT_OTA_IsFetchFinish(ota_handle)) { in dm_fota_perform_sync()
174 void *ota_handle = NULL; in dm_fota_status_check() local
177 res = dm_ota_get_ota_handle(&ota_handle); in dm_fota_status_check()
182 if (IOT_OTA_IsFetching(ota_handle)) { in dm_fota_status_check()
205 void *ota_handle = NULL; in dm_fota_request_image() local
214 res = dm_ota_get_ota_handle(&ota_handle); in dm_fota_request_image()
[all …]
A Ddm_cota.c46 static int _dm_cota_send_new_config_to_user(void *ota_handle) in _dm_cota_send_new_config_to_user() argument
123 void *ota_handle = NULL; in dm_cota_perform_sync() local
131 res = dm_ota_get_ota_handle(&ota_handle); in dm_cota_perform_sync()
136 if (ota_handle == NULL) { in dm_cota_perform_sync()
146 IOT_OTA_Ioctl(ota_handle, IOT_OTAG_RESET_FETCHED_SIZE, ota_handle, 4); in dm_cota_perform_sync()
183 if (IOT_OTA_IsFetchFinish(ota_handle)) { in dm_cota_perform_sync()
206 void *ota_handle = NULL; in dm_cota_get_config() local
209 res = dm_ota_get_ota_handle(&ota_handle); in dm_cota_get_config()
222 void *ota_handle = NULL; in dm_cota_status_check() local
225 res = dm_ota_get_ota_handle(&ota_handle); in dm_cota_status_check()
[all …]
A Ddm_ota.c51 ctx->ota_handle = handle; in dm_ota_sub()
60 if (ctx->ota_handle) { in dm_ota_deinit()
61 IOT_OTA_Deinit(ctx->ota_handle); in dm_ota_deinit()
62 ctx->ota_handle = NULL; in dm_ota_deinit()
75 void *ota_handle = NULL; in dm_ota_switch_device() local
85 ota_handle = NULL; in dm_ota_switch_device()
86 res = dm_ota_get_ota_handle(&ota_handle); in dm_ota_switch_device()
93 if (IOT_OTA_IsFetching(ota_handle)) { in dm_ota_switch_device()
121 if (ctx->ota_handle == NULL) { in dm_ota_get_ota_handle()
125 *handle = ctx->ota_handle; in dm_ota_get_ota_handle()
A Ddm_ota.h9 void *ota_handle; member
/AliOS-Things-master/components/linksdk/components/ota/
A Daiot_ota_api.c76 if (ota_handle == NULL) { in aiot_ota_init()
81 ota_handle->sysdep = sysdep; in aiot_ota_init()
83 return ota_handle; in aiot_ota_init()
108 sysdep = ota_handle->sysdep; in aiot_ota_deinit()
122 if (NULL == ota_handle) { in aiot_ota_setopt()
129 sysdep = ota_handle->sysdep; in aiot_ota_setopt()
337 if (NULL == ota_handle) { in aiot_ota_report_version()
353 if (ota_handle->module) { in aiot_ota_report_version()
375 if (NULL == ota_handle) { in aiot_ota_report_version_ext()
420 if (ota_handle->module) { in aiot_ota_query_firmware()
[all …]

Completed in 17 milliseconds