/AliOS-Things-master/components/py_engine/modules/video/ |
A D | ak_codec.c | 26 param.width = width; in py_venc_init() 27 param.height = height; in py_venc_init() 28 param.fps = fps; in py_venc_init() 33 param.minqp = 25; in py_venc_init() 34 param.maxqp = 48; in py_venc_init() 35 param.initqp = (param.minqp + param.maxqp) >> 1; in py_venc_init() 38 param.enc_level = 41; in py_venc_init() 39 param.smart_mode = 0; in py_venc_init() 47 param.minqp = in py_venc_init() 49 param.maxqp = in py_venc_init() [all …]
|
/AliOS-Things-master/components/uservice/src/ |
A D | event_svr.c | 64 eventlist_subscribe_fd(&ev_service.event, param->event_id, param->cb, param->data); in process_rpc() 69 eventlist_unsubscribe_fd(&ev_service.event, param->event_id, param->cb, param->data); in process_rpc() 73 eventlist_publish_fd(&ev_service.event, param->event_id, param->data); in process_rpc() 77 eventlist_subscribe(&ev_service.event, param->event_id, param->cb, param->data); in process_rpc() 81 eventlist_unsubscribe(&ev_service.event, param->event_id, param->cb, param->data); in process_rpc() 102 eventlist_publish(&ev_service.event, param->event_id, param->data); in process_rpc() 182 param.event_id = fd; in event_subscribe_fd() 183 param.cb = cb; in event_subscribe_fd() 193 param.cb = cb; in event_unsubscribe_fd() 205 param.timeout = 0; in event_publish() [all …]
|
/AliOS-Things-master/components/py_engine/modules/ble/ |
A D | bt_host_adapter.c | 243 adv_param_t param; in bt_host_adapter_start_adv() local 251 param.ad_num = 0; in bt_host_adapter_start_adv() 252 param.sd_num = 0; in bt_host_adapter_start_adv() 253 param.ad = in bt_host_adapter_start_adv() 263 __func__, param.type, param.interval_min, param.interval_max, in bt_host_adapter_start_adv() 264 param.channel_map, param.ad_num, param.sd_num, param.ad[0].type, in bt_host_adapter_start_adv() 268 if (param.ad) { in bt_host_adapter_start_adv() 269 bt_host_adapter_adv_data_destroy(param.ad, param.ad_num); in bt_host_adapter_start_adv() 271 if (param.sd) { in bt_host_adapter_start_adv() 272 bt_host_adapter_adv_data_destroy(param.sd, param.sd_num); in bt_host_adapter_start_adv() [all …]
|
/AliOS-Things-master/components/amp/engine/duktape_engine/addons/wireless/bt_host/ |
A D | bt_host_adapter.c | 214 init_param_t param; in bt_host_adapter_init() local 235 adv_param_t param; in bt_host_adapter_start_adv() local 243 param.ad_num = 0; in bt_host_adapter_start_adv() 244 param.sd_num = 0; in bt_host_adapter_start_adv() 251 param.type, param.interval_min, param.interval_max, param.channel_map, in bt_host_adapter_start_adv() 252 param.ad_num, param.sd_num, param.ad[0].type, param.ad[0].len); in bt_host_adapter_start_adv() 255 if (param.ad) { in bt_host_adapter_start_adv() 256 bt_host_adapter_adv_data_destroy(param.ad, param.ad_num); in bt_host_adapter_start_adv() 258 if (param.sd) { in bt_host_adapter_start_adv() 259 bt_host_adapter_adv_data_destroy(param.sd, param.sd_num); in bt_host_adapter_start_adv() [all …]
|
/AliOS-Things-master/components/ota/hal/ |
A D | ota_hal_ctrl.c | 26 int ota_int(ota_boot_param_t *param) in ota_int() argument 29 if (param == NULL) { in ota_int() 38 ret = ota_hal_init(param); in ota_int() 100 if (param == NULL) { in ota_verify() 105 param->upg_flag = upg_flag; in ota_verify() 106 } else if (param->upg_flag == 0) { in ota_verify() 114 ret = ota_check_hash(param->hash_type, param->hash, (char *)dst_hash); in ota_verify() 121 … ret = ota_verify_rsa((unsigned char *)param->sign, (const char *)dst_hash, param->hash_type); in ota_verify() 137 if ((param->upg_flag != OTA_UPGRADE_DIFF) && (param->upg_flag != OTA_UPGRADE_CUST)) { in ota_verify() 176 while (offset < param->len) { in ota_verify_fsfile() [all …]
|
A D | ota_hal_plat.c | 20 if(param != NULL) { in ota_hal_init() 27 if(ret != 0 || param->len == 0) { in ota_hal_init() 32 ota_fw_size = param->len; in ota_hal_init() 127 ota_boot_param_t param; in ota_hal_rollback() local 134 if((param.boot_count != 0) && (param.boot_count != 0xff)) { in ota_hal_rollback() 135 param.upg_flag = 0; in ota_hal_rollback() 137 ret = ota_update_parameter(¶m); in ota_hal_rollback() 166 if(param != NULL) { in ota_hal_boot() 167 if(param->crc == 0 || param->crc == 0xffff) { in ota_hal_boot() 175 ret = ota_update_parameter(param); in ota_hal_boot() [all …]
|
A D | ota_hal_vfs_plat.c | 42 if (param == NULL) { in ota_hal_init() 58 if ((param->len == 0) || (param->len > tmp_part_info->partition_length)) { in ota_hal_init() 64 ota_fw_size = param->len; in ota_hal_init() 70 len = param->len; in ota_hal_init() 196 ota_boot_param_t param; in ota_hal_rollback() local 209 if ((param.boot_count != 0) && (param.boot_count != 0xff)) { in ota_hal_rollback() 210 param.upg_flag = 0; in ota_hal_rollback() 277 if (param->crc == 0 || param->crc == 0xffff) { in ota_hal_boot() 289 param->boot_type = 0; in ota_hal_boot() 291 ret = ota_update_parameter(param); in ota_hal_boot() [all …]
|
/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/wireless/bt_host/ |
A D | bt_host_adapter.c | 258 adv_param_t param; in bt_host_adapter_start_adv() local 266 param.ad_num = 0; in bt_host_adapter_start_adv() 267 param.sd_num = 0; in bt_host_adapter_start_adv() 268 param.ad = in bt_host_adapter_start_adv() 278 __func__, param.type, param.interval_min, param.interval_max, in bt_host_adapter_start_adv() 279 param.channel_map, param.ad_num, param.sd_num, param.ad[0].type, in bt_host_adapter_start_adv() 283 if (param.ad) { in bt_host_adapter_start_adv() 284 bt_host_adapter_adv_data_destroy(param.ad, param.ad_num); in bt_host_adapter_start_adv() 286 if (param.sd) { in bt_host_adapter_start_adv() 287 bt_host_adapter_adv_data_destroy(param.sd, param.sd_num); in bt_host_adapter_start_adv() [all …]
|
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/bluetooth/realtek/sdk/board/amebad/src/vendor_cmd/ |
A D | vendor_cmd.c | 54 uint8_t param[1]; in le_vendor_one_shot_adv() local 68 uint8_t param[3]; in le_adv_set_tx_power() local 70 param[1] = option; in le_adv_set_tx_power() 71 param[2] = tx_gain; in le_adv_set_tx_power() 87 uint8_t param[5]; in le_set_conn_tx_power() local 89 param[1] = conn_handle & 0xFF; in le_set_conn_tx_power() 91 param[3] = reset; in le_set_conn_tx_power() 92 param[4] = tx_power; in le_set_conn_tx_power() 113 uint8_t param[4]; in le_disable_slave_latency() local 119 param[3] = 0; in le_disable_slave_latency() [all …]
|
/AliOS-Things-master/components/SDL2/src/video/yuv2rgb/ |
A D | yuv_rgb_std_func.h | 118 int32_t g_tmp = (u_tmp*param->u_g_factor + v_tmp*param->v_g_factor); in STD_FUNCTION_NAME() 123 int32_t y_tmp = ((y_ptr1[0]-param->y_shift)*param->y_factor); in STD_FUNCTION_NAME() 126 y_tmp = ((y_ptr1[y_pixel_stride]-param->y_shift)*param->y_factor); in STD_FUNCTION_NAME() 130 y_tmp = ((y_ptr2[0]-param->y_shift)*param->y_factor); in STD_FUNCTION_NAME() 133 y_tmp = ((y_ptr2[y_pixel_stride]-param->y_shift)*param->y_factor); in STD_FUNCTION_NAME() 152 int32_t g_tmp = (u_tmp*param->u_g_factor + v_tmp*param->v_g_factor); in STD_FUNCTION_NAME() 157 int32_t y_tmp = ((y_ptr1[0]-param->y_shift)*param->y_factor); in STD_FUNCTION_NAME() 161 y_tmp = ((y_ptr2[0]-param->y_shift)*param->y_factor); in STD_FUNCTION_NAME() 189 int32_t y_tmp = ((y_ptr1[0]-param->y_shift)*param->y_factor); in STD_FUNCTION_NAME() 192 y_tmp = ((y_ptr1[y_pixel_stride]-param->y_shift)*param->y_factor); in STD_FUNCTION_NAME() [all …]
|
/AliOS-Things-master/components/amp/engine/duktape_engine/addons/advanced/aiot/ |
A D | module_aiot_device.c | 126 if (param->dm_recv) { in aiot_device_notify() 134 duk_push_lstring(ctx, param->params, param->params_len); in aiot_device_notify() 146 duk_push_lstring(ctx, param->params, param->params_len); in aiot_device_notify() 152 aos_free(param); in aiot_device_notify() 182 duk_push_lstring(ctx, param->topic, param->topic_len); in aiot_device_notify() 184 duk_push_lstring(ctx, param->payload, param->payload_len); in aiot_device_notify() 202 aos_free(param); in aiot_device_notify() 214 if (!param) { in aiot_app_dm_recv_handler() 219 param->dm_recv = 1; in aiot_app_dm_recv_handler() 391 if (!param) { in aiot_mqtt_message_cb() [all …]
|
A D | module_aiot_gateway.c | 143 duk_push_lstring(ctx, param->message, strlen(param->message)); in aiot_subdev_notify() 154 duk_push_lstring(ctx, param->topic, param->topic_len); in aiot_subdev_notify() 156 duk_push_lstring(ctx, param->payload, param->payload_len); in aiot_subdev_notify() 167 aos_free(param); in aiot_subdev_notify() 178 aos_free(param); in aiot_subdev_notify() 220 if (!param) { in aiot_subdev_recv_handler() 297 if (!param) { in aiot_mqtt_message_cb() 364 if (!param) { in aiot_gateway_connect() 375 aos_free(param); in aiot_gateway_connect() 385 aos_free(param); in aiot_gateway_connect() [all …]
|
/AliOS-Things-master/components/linkkit/iot_coap/server/ |
A D | CoAPExport.c | 45 COAP_DEBUG("MultiCast Address: %s:%d", param->group, param->port); in CoAPContext_create() 50 p_ctx->notifier = param->notifier; in CoAPContext_create() 51 p_ctx->appdata = param->appdata; in CoAPContext_create() 69 if (0 == param->waittime) { in CoAPContext_create() 72 p_ctx->waittime = param->waittime; in CoAPContext_create() 88 if (0 != param->send_maxcount) { in CoAPContext_create() 94 if (0 == param->res_maxcount) { in CoAPContext_create() 100 if (0 == param->obs_maxcount) { in CoAPContext_create() 107 if (0 == param->obs_maxcount) { in CoAPContext_create() 118 network_param.port = param->port; in CoAPContext_create() [all …]
|
/AliOS-Things-master/components/py_engine/modules/aliyunIoT/ |
A D | module_aiot_device.c | 153 if (param->dm_recv) { in aiot_device_notify() 169 mp_obj_new_str(param->params, param->params_len)); in aiot_device_notify() 191 mp_obj_new_str(param->service_id, strlen(param->service_id))); in aiot_device_notify() 197 mp_obj_new_str(param->params, param->params_len)); in aiot_device_notify() 231 if (mp_obj_is_fun(param->iot_device_handle->callback[param->cb_type])) { in aiot_device_notify() 276 aos_free(param); in aiot_device_notify() 290 if (!param) { in aiot_app_dm_recv_handler() 295 param->dm_recv = 1; in aiot_app_dm_recv_handler() 486 if (!param) { in aiot_mqtt_message_cb() 530 aos_free(param); in aiot_mqtt_message_cb() [all …]
|
A D | module_aiot_gateway.c | 165 switch (param->cb_type) { in aiot_subdev_notify() 171 if (mp_obj_is_fun(param->iot_gateway_handle->callback[param->cb_type])) { in aiot_subdev_notify() 172 callback_to_python(param->iot_gateway_handle->callback[param->cb_type], in aiot_subdev_notify() 184 mp_obj_new_str(param->params, strlen(param->params))); in aiot_subdev_notify() 185 if (mp_obj_is_fun(param->iot_gateway_handle->callback[param->cb_type])) { in aiot_subdev_notify() 201 if (mp_obj_is_fun(param->iot_gateway_handle->callback[param->cb_type])) { in aiot_subdev_notify() 212 aos_free(param); in aiot_subdev_notify() 221 if (!param) { in aiot_subdev_recv_handler() 295 if (!param) { in aiot_mqtt_message_cb() 338 aos_free(param); in aiot_mqtt_message_cb() [all …]
|
/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/network/http/ |
A D | module_http.c | 160 if (param == NULL) { in http_download_func() 170 char *req_url = param->url; in http_download_func() 183 if ((param->http_header[i].name != NULL) && (param->http_header[i].data != NULL)) { in http_download_func() 237 if (param->url != NULL) { in http_download_func() 238 amp_free(param->url); in http_download_func() 249 param->error = rtn; in http_download_func() 270 if (param == NULL) { in task_http_request_func() 288 if ((param->http_header[i].name != NULL) && (param->http_header[i].data != NULL)) { in task_http_request_func() 304 amp_info(MOD_STR, "http GET request=%s,timeout=%d\r\n", param->url, param->timeout); in task_http_request_func() 354 if (param->url != NULL) { in task_http_request_func() [all …]
|
/AliOS-Things-master/components/posix/src/ |
A D | sched.c | 66 if ((param == NULL) || (param->sched_priority < aos_sched_get_priority_min(kpolicy)) in sched_setscheduler() 83 ret = aos_task_time_slice_set(&(ptcb->task), param->slice); in sched_setscheduler() 89 ptcb->attr.sched_priority = param->sched_priority; in sched_setscheduler() 90 ptcb->attr.sched_slice = param->slice; in sched_setscheduler() 116 int sched_setparam(pid_t pid, const struct sched_param *param) in sched_setparam() argument 135 if ((param == NULL) || (param->sched_priority < aos_sched_get_priority_min(kpolicy)) in sched_setparam() 148 ptcb->attr.sched_priority = param->sched_priority; in sched_setparam() 156 ptcb->attr.sched_slice = param->slice; in sched_setparam() 162 int sched_getparam(pid_t pid, struct sched_param *param) in sched_getparam() argument 168 if (param == NULL) { in sched_getparam() [all …]
|
/AliOS-Things-master/components/ble_mesh/bt_mesh/core/src/ |
A D | health_cli.c | 59 param = health_cli->op_param; in health_fault_status() 62 if (param && param->expect_test_id && test_id != *param->expect_test_id) { in health_fault_status() 69 if (param) in health_fault_status() 71 if (cid != param->cid) { in health_fault_status() 76 if (param->test_id) { in health_fault_status() 86 memcpy(param->faults, buf->data, *param->fault_count); in health_fault_status() 137 param = health_cli->op_param; in health_period_status() 139 if (param) { in health_period_status() 141 if(param->divisor){ in health_period_status() 170 if (param && param->attention) { in health_attention_status() [all …]
|
A D | cfg_cli.c | 72 if (param) { in comp_data_status() 75 if (param && param->status) { in comp_data_status() 192 if (param) { in relay_status() 235 if (param && param->net_idx != net_idx) { in net_key_status() 240 if (param && param->status) { in net_key_status() 335 if (param && (param->net_idx != net_idx || param->app_idx != app_idx)) { in app_key_status() 340 if (param && param->status) { in app_key_status() 461 if (mod_id != param->mod_id || cid != param->cid) { in mod_pub_status() 541 (param->expect_sub && *param->expect_sub != sub_addr) || param->cid != cid) { in mod_sub_status() 739 if (param && param->pub) { in hb_pub_status() [all …]
|
/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/advanced/aiot/ |
A D | module_aiot_device.c | 83 if (param->dm_recv) { in aiot_device_notify() 102 amp_free(param); in aiot_device_notify() 117 amp_free(param); in aiot_device_notify() 131 amp_free(param); in aiot_device_notify() 140 amp_free(param); in aiot_device_notify() 151 if (!param) { in aiot_app_dm_recv_handler() 156 param->dm_recv = 1; in aiot_app_dm_recv_handler() 318 amp_free(param); in aiot_app_dm_recv_handler() 363 if (!param) { in aiot_mqtt_message_cb() 383 amp_free(param); in aiot_mqtt_message_cb() [all …]
|
A D | module_aiot_gateway.c | 112 switch (param->cb_type) { in aiot_subdev_notify() 138 if (param->data) in aiot_subdev_notify() 181 amp_free(param); in aiot_subdev_notify() 209 if (!param) { in aiot_subdev_recv_handler() 226 amp_free(param); in aiot_subdev_recv_handler() 241 if (!param) { in aiot_mqtt_message_cb() 318 if (!param) { in aiot_gateway_connect() 328 amp_free(param); in aiot_gateway_connect() 337 amp_free(param); in aiot_gateway_connect() 342 param->ret_code = res; in aiot_gateway_connect() [all …]
|
/AliOS-Things-master/components/ble_host/bt_shell/bt_host/test/ |
A D | bt.c | 939 e->param.interval_min, e->param.interval_max, e->param.latency, in conn_param_req() 1404 param.type = 5; in cmd_advertise() 1413 param.ad = ad; in cmd_advertise() 1414 param.sd = sd; in cmd_advertise() 1422 param.ad = NULL; in cmd_advertise() 1431 param.ad = ad; in cmd_advertise() 1442 param.sd = NULL; in cmd_advertise() 1452 param.sd = sd; in cmd_advertise() 1514 param.ad = ad; in cmd_advertise() 1918 pparam = ¶m; in cmd_auto_conn() [all …]
|
/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/network/mqtt/ |
A D | module_mqtt.c | 82 switch (param->event_type) { in aos_mqtt_notify() 99 amp_free(param); in aos_mqtt_notify() 103 switch (param->recv_type) { in aos_mqtt_notify() 118 amp_free(param->topic); in aos_mqtt_notify() 123 amp_free(param); in aos_mqtt_notify() 128 amp_free(param); in aos_mqtt_notify() 141 if (!param) { in aos_mqtt_message_cb() 148 param->js_cb_ref = param->aos_mqtt_handle->js_cb_ref[MQTT_JSCALLBACK_START_CLIENT_REF]; in aos_mqtt_message_cb() 159 amp_free(param); in aos_mqtt_message_cb() 173 amp_free(param); in aos_mqtt_message_cb() [all …]
|
/AliOS-Things-master/components/amp/engine/duktape_engine/addons/advanced/keypad/ |
A D | module_keypad.c | 28 keypad_notify_t *param = (keypad_notify_t *)pdata; in keypad_notify_callback() local 29 if (!param) in keypad_notify_callback() 33 duk_push_int(ctx, param->code); in keypad_notify_callback() 34 duk_push_int(ctx, param->value); in keypad_notify_callback() 40 aos_free(param); in keypad_notify_callback() 46 keypad_notify_t *param = aos_malloc(sizeof(keypad_notify_t)); in keypad_event_callback() local 47 if (!param) in keypad_event_callback() 49 param->code = code; in keypad_event_callback() 50 param->value = value; in keypad_event_callback() 51 amp_task_schedule_call(keypad_notify_callback, param); in keypad_event_callback()
|
/AliOS-Things-master/components/amp/engine/duktape_engine/addons/advanced/audio/ |
A D | module_audioplayer.c | 131 aos_free(param); in audioplayer_play_cplt_notify() 138 if (!param) in audioplayer_play_cplt_cb() 157 param->event = event; in audioplayer_listplay_cplt_cb() 182 if (!param) { in native_audioplayer_play() 190 aos_free(param); in native_audioplayer_play() 201 aos_free(param); in native_audioplayer_play() 214 aos_free(param); in native_audioplayer_play() 222 aos_free(param); in native_audioplayer_play() 527 if (!param) { in native_audioplayer_play_list() 535 aos_free(param); in native_audioplayer_play_list() [all …]
|