/AliOS-Things-master/components/py_engine/engine/py/ |
A D | emitglue.c | 59 return rc; in mp_emit_glue_new_raw_code() 74 rc->fun_data = code; in mp_emit_glue_assign_bytecode() 77 rc->fun_data_len = len; in mp_emit_glue_assign_bytecode() 78 rc->n_obj = n_obj; in mp_emit_glue_assign_bytecode() 136 rc->kind = kind; in mp_emit_glue_assign_native() 146 rc->n_obj = n_obj; in mp_emit_glue_assign_native() 148 rc->n_qstr = n_qstr; in mp_emit_glue_assign_native() 175 assert(rc != NULL); in mp_make_function_from_raw_code() 185 switch (rc->kind) { in mp_make_function_from_raw_code() 198 fun = mp_obj_new_fun_asm(rc->n_pos_args, rc->fun_data, rc->type_sig); in mp_make_function_from_raw_code() [all …]
|
/AliOS-Things-master/components/ble_host/bt_host/port/core/settings/src/ |
A D | settings_nvs.c | 37 ssize_t rc; in settings_nvs_read_fn() local 46 rc = len; in settings_nvs_read_fn() 48 return rc; in settings_nvs_read_fn() 138 int rc = 0; in settings_nvs_save() local 242 int rc; in settings_nvs_backend_init() local 246 if (rc) { in settings_nvs_backend_init() 265 int rc; in settings_backend_init() local 273 if (rc) { in settings_backend_init() 281 } else if (rc != 0 && rc != -ENOMEM) { in settings_backend_init() 307 if (rc) { in settings_backend_init() [all …]
|
A D | settings_file.c | 117 int rc; in settings_file_load_priv() local 166 return rc; in settings_file_load_priv() 330 if (rc) { in settings_file_save_and_compress() 366 int rc; in settings_file_save_priv() local 437 int rc; in read_handler() local 452 if (rc) { in read_handler() 460 rc = 0; in read_handler() 479 int rc; in write_handler() local 488 rc = 0; in write_handler() 506 int rc; in settings_backend_init() local [all …]
|
A D | settings_fcb.c | 38 int rc; in settings_fcb_src() local 45 if (rc) { in settings_fcb_src() 60 if (rc) { in settings_fcb_src() 135 int rc; in settings_fcb_load_priv() local 140 int rc; in settings_fcb_load_priv() local 163 rc = 0; in settings_fcb_load_priv() 198 int rc; in settings_fcb_compress() local 207 if (rc) { in settings_fcb_compress() 309 int rc; in settings_fcb_save_priv() local 390 int rc; in settings_backend_init() local [all …]
|
A D | settings_line.c | 46 int rc; in settings_line_write() local 75 if (rc) { in settings_line_write() 145 if (rc) { in settings_line_write() 164 int rc; in settings_next_line_ctx() local 183 return rc; in settings_next_line_ctx() 229 int rc; in settings_line_raw_read_until() local 298 int rc; in settings_line_val_read() local 377 int rc; in settings_line_val_get_len() local 431 int rc; in settings_line_entry_copy() local 477 int rc; in settings_line_cmp() local [all …]
|
A D | settings.c | 45 int rc = 0; in settings_register() local 68 return rc; in settings_register() 113 int rc = 0; in settings_name_next() local 129 rc++; in settings_name_next() 137 return rc; in settings_name_next() 140 return rc; in settings_name_next() 206 int rc; in settings_call_set_handler() local 231 rc = 0; in settings_call_set_handler() 237 return rc; in settings_call_set_handler() 247 int rc; in settings_commit_subtree() local [all …]
|
A D | settings_store.c | 47 int rc; in settings_load_subtree() local 64 return rc; in settings_load_subtree() 98 int rc; in settings_save_one() local 112 return rc; in settings_save_one() 123 int rc; in settings_save() local 134 rc = 0; in settings_save() 139 if (!rc) { in settings_save() 140 rc = rc2; in settings_save() 150 if (!rc) { in settings_save() 151 rc = rc2; in settings_save() [all …]
|
/AliOS-Things-master/components/mqtt/MQTTClient-C/ |
A D | MQTTClient.c | 53 return rc; in sendPacket() 119 if (rc != 1) in readPacket() 135 rc = 0; in readPacket() 144 return rc; in readPacket() 208 return rc; in deliverMessage() 235 return rc; in keepalive() 337 return rc; in cycle() 358 return rc; in MQTTYield() 405 while (rc != packet_type && rc >= 0); in waitfor() 407 return rc; in waitfor() [all …]
|
/AliOS-Things-master/components/uagent/src/ |
A D | uagent_comm_mqtt.c | 55 int rc = -EINVAL; in uagent_ext_comm_init() local 105 return rc; in uagent_ext_comm_init() 112 int rc = 0; in uagent_ext_comm_publish() local 117 rc = -1; in uagent_ext_comm_publish() 119 return rc; in uagent_ext_comm_publish() 124 char rc = 0; in check_connect() local 133 return rc; in check_connect() 138 int rc = 0; in uagent_mqtt_client_set() local 141 rc = 0; in uagent_mqtt_client_set() 144 rc = -1; in uagent_mqtt_client_set() [all …]
|
/AliOS-Things-master/components/sensor/drv/ |
A D | drv_gs_pixart_paj7620.c | 358 uint8_t rc = 0; in paj7620_gesture() local 384 rc = GESTURE_LEFT; in paj7620_gesture() 397 rc = GESTURE_UP; in paj7620_gesture() 410 rc = GESTURE_DOWN; in paj7620_gesture() 414 rc = GESTURE_FORWARD; in paj7620_gesture() 418 rc = GESTURE_BACKWARD; in paj7620_gesture() 430 rc = GESTURE_WAVE; in paj7620_gesture() 433 return rc; in paj7620_gesture() 451 uint8_t rc = 0; in paj7620_gesture_get() local 490 rc = GS_SENSOR_UP; in paj7620_gesture_get() [all …]
|
/AliOS-Things-master/components/ulog/src/ |
A D | ulog_session_file.c | 43 int rc = -1; in push_fs_tmp() local 55 return rc; in push_fs_tmp() 77 return rc; in pop_fs_tmp() 91 int rc = -1; in get_server_uri() local 122 return rc; in get_server_uri() 145 int rc = -1; in http_start() local 170 return rc; in http_start() 292 return rc; in log_file_exist() 394 return rc; in get_log_line() 483 return rc; in update_new_log_file() [all …]
|
A D | ulog_fs_cfg.c | 53 return rc; in get_ulog_cfg_key() 73 int rc = -EINVAL; in aos_get_ulog_list() local 75 rc = -EIO; in aos_get_ulog_list() 111 return rc; in aos_get_ulog_list() 116 int rc = -1; in update_mm_cfg() local 189 return rc; in update_mm_cfg() 201 int rc = -1; in load_cfg_2_mm() local 209 return rc; in load_cfg_2_mm() 231 return rc; in load_cfg_2_mm() 311 return rc; in cfg_mm_2_file() [all …]
|
/AliOS-Things-master/components/mqtt/MQTTPacket/ |
A D | MQTTPacket.c | 31 int rc = 0; in MQTTPacket_encode() local 44 return rc; in MQTTPacket_encode() 217 int rc = 0; in readMQTTLenString() local 228 rc = 1; in readMQTTLenString() 233 return rc; in readMQTTLenString() 244 int rc = 0; in MQTTstrlen() local 250 return rc; in MQTTstrlen() 315 return rc; in MQTTPacket_read() 341 rc = 0; in MQTTPacket_decodenb() 351 return rc; in MQTTPacket_decodenb() [all …]
|
A D | MQTTUnsubscribeServer.c | 40 int rc = 0; in MQTTDeserialize_unsubscribe() local 49 curdata += (rc = MQTTPacket_decodeBuf(curdata, &mylen)); /* read remaining length */ in MQTTDeserialize_unsubscribe() 62 rc = 1; in MQTTDeserialize_unsubscribe() 64 FUNC_EXIT_RC(rc); in MQTTDeserialize_unsubscribe() 65 return rc; in MQTTDeserialize_unsubscribe() 79 int rc = 0; in MQTTSerialize_unsuback() local 85 rc = MQTTPACKET_BUFFER_TOO_SHORT; in MQTTSerialize_unsuback() 96 rc = ptr - buf; in MQTTSerialize_unsuback() 98 FUNC_EXIT_RC(rc); in MQTTSerialize_unsuback() 99 return rc; in MQTTSerialize_unsuback()
|
A D | MQTTUnsubscribeClient.c | 55 int rc = -1; in MQTTSerialize_unsubscribe() local 61 rc = MQTTPACKET_BUFFER_TOO_SHORT; in MQTTSerialize_unsubscribe() 78 rc = ptr - buf; in MQTTSerialize_unsubscribe() 80 FUNC_EXIT_RC(rc); in MQTTSerialize_unsubscribe() 81 return rc; in MQTTSerialize_unsubscribe() 96 int rc = 0; in MQTTDeserialize_unsuback() local 99 rc = MQTTDeserialize_ack(&type, &dup, packetid, buf, buflen); in MQTTDeserialize_unsuback() 101 rc = 1; in MQTTDeserialize_unsuback() 102 FUNC_EXIT_RC(rc); in MQTTDeserialize_unsuback() 103 return rc; in MQTTDeserialize_unsuback()
|
A D | MQTTSubscribeClient.c | 56 int rc = 0; in MQTTSerialize_subscribe() local 62 rc = MQTTPACKET_BUFFER_TOO_SHORT; in MQTTSerialize_subscribe() 82 rc = ptr - buf; in MQTTSerialize_subscribe() 84 FUNC_EXIT_RC(rc); in MQTTSerialize_subscribe() 85 return rc; in MQTTSerialize_subscribe() 105 int rc = 0; in MQTTDeserialize_suback() local 113 curdata += (rc = MQTTPacket_decodeBuf(curdata, &mylen)); /* read remaining length */ in MQTTDeserialize_suback() 125 rc = -1; in MQTTDeserialize_suback() 131 rc = 1; in MQTTDeserialize_suback() 133 FUNC_EXIT_RC(rc); in MQTTDeserialize_suback() [all …]
|
A D | MQTTSubscribeServer.c | 41 int rc = -1; in MQTTDeserialize_subscribe() local 50 curdata += (rc = MQTTPacket_decodeBuf(curdata, &mylen)); /* read remaining length */ in MQTTDeserialize_subscribe() 66 rc = 1; in MQTTDeserialize_subscribe() 68 FUNC_EXIT_RC(rc); in MQTTDeserialize_subscribe() 69 return rc; in MQTTDeserialize_subscribe() 85 int rc = -1; in MQTTSerialize_suback() local 92 rc = MQTTPACKET_BUFFER_TOO_SHORT; in MQTTSerialize_suback() 106 rc = ptr - buf; in MQTTSerialize_suback() 108 FUNC_EXIT_RC(rc); in MQTTSerialize_suback() 109 return rc; in MQTTSerialize_suback()
|
A D | MQTTConnectServer.c | 32 int rc = 0; in MQTTPacket_checkVersion() local 36 rc = 1; in MQTTPacket_checkVersion() 39 rc = 1; in MQTTPacket_checkVersion() 40 return rc; in MQTTPacket_checkVersion() 57 int rc = 0; in MQTTDeserialize_connect() local 103 rc = 1; in MQTTDeserialize_connect() 106 FUNC_EXIT_RC(rc); in MQTTDeserialize_connect() 107 return rc; in MQTTDeserialize_connect() 122 int rc = 0; in MQTTSerialize_connack() local 143 rc = ptr - buf; in MQTTSerialize_connack() [all …]
|
A D | MQTTDeserializePublish.c | 42 int rc = 0; in MQTTDeserialize_publish() local 53 curdata += (rc = MQTTPacket_decodeBuf(curdata, &mylen)); /* read remaining length */ in MQTTDeserialize_publish() 65 rc = 1; in MQTTDeserialize_publish() 67 FUNC_EXIT_RC(rc); in MQTTDeserialize_publish() 68 return rc; in MQTTDeserialize_publish() 87 int rc = 0; in MQTTDeserialize_ack() local 95 curdata += (rc = MQTTPacket_decodeBuf(curdata, &mylen)); /* read remaining length */ in MQTTDeserialize_ack() 102 rc = 1; in MQTTDeserialize_ack() 104 FUNC_EXIT_RC(rc); in MQTTDeserialize_ack() 105 return rc; in MQTTDeserialize_ack()
|
/AliOS-Things-master/components/ota/2ndboot/updater/xz/linux/lib/xz/ |
A D | xz_dec_lzma2.c | 262 struct rc_dec rc; member 440 rc->code = 0; in rc_reset() 454 rc->code = (rc->code << 8) + b->in[b->in_pos++]; in rc_read_init() 464 return rc->in_pos > rc->in_limit; in rc_limit_exceeded() 481 rc->code = (rc->code << RC_SHIFT_BITS) + rc->in[rc->in_pos++]; in rc_normalize() 501 rc_normalize(rc); in rc_bit() 557 rc_normalize(rc); in rc_direct() 558 rc->range >>= 1; in rc_direct() 559 rc->code -= rc->range; in rc_direct() 561 rc->code += rc->range & mask; in rc_direct() [all …]
|
/AliOS-Things-master/components/ota/tools/xz/src/ |
A D | xz_dec_lzma2.c | 262 struct rc_dec rc; member 440 rc->code = 0; in rc_reset() 454 rc->code = (rc->code << 8) + b->in[b->in_pos++]; in rc_read_init() 464 return rc->in_pos > rc->in_limit; in rc_limit_exceeded() 481 rc->code = (rc->code << RC_SHIFT_BITS) + rc->in[rc->in_pos++]; in rc_normalize() 501 rc_normalize(rc); in rc_bit() 557 rc_normalize(rc); in rc_direct() 558 rc->range >>= 1; in rc_direct() 559 rc->code -= rc->range; in rc_direct() 561 rc->code += rc->range & mask; in rc_direct() [all …]
|
/AliOS-Things-master/components/mqtt/example/ |
A D | mqtt_example.c | 43 int rc = 0; in mqtt_comp_example() local 63 printf("aiotMqttSign -%0x4x\n", -rc); in mqtt_comp_example() 82 rc = NetworkConnect(&n, host, port); in mqtt_comp_example() 83 if(rc != 0){ in mqtt_comp_example() 84 printf("Network Connect failed:%d\n", rc); in mqtt_comp_example() 107 rc = MQTTConnect(&c, &data); in mqtt_comp_example() 108 if(rc != 0){ in mqtt_comp_example() 109 printf("MQTT Connect server failed:%d\n", rc); in mqtt_comp_example() 116 if(rc != 0){ in mqtt_comp_example() 117 printf("MQTT Subscribe failed:%d\n", rc); in mqtt_comp_example() [all …]
|
/AliOS-Things-master/components/cli/src/ |
A D | cli_uagent.c | 19 int rc = -1; in on_cli_handler() local 21 return rc; in on_cli_handler() 31 rc = 0; in on_cli_handler() 36 rc = 0; in on_cli_handler() 46 rc = 0; in on_cli_handler() 49 return rc; in on_cli_handler() 54 rc = cli_handle_input(cmd); in on_cli_handler() 55 if (rc == CLI_ERR_BADCMD) { in on_cli_handler() 59 } else if (rc == CLI_ERR_SYNTAX) { in on_cli_handler() 64 return rc; in on_cli_handler()
|
/AliOS-Things-master/components/linkkit/mqtt/impl/ |
A D | iotx_mqtt_client.c | 267 return rc; in iotx_mc_init() 432 return rc; in iotx_mc_send_packet() 531 int rc = 0; in iotx_mc_read_packet() local 683 return rc; in iotx_mc_handle_recv_CONNACK() 691 int rc = 0; in iotx_mc_wait_CONNACK() local 731 return rc; in iotx_mc_wait_CONNACK() 1109 int rc; in iotx_mc_handle_recv_SUBACK() local 1616 return rc; in iotx_mc_cycle() 1744 int rc; in iotx_mc_attempt_reconnect() local 1766 return rc; in iotx_mc_attempt_reconnect() [all …]
|
A D | MQTTPacket.c | 31 int rc = 0; in MQTTPacket_encode() local 40 buf[rc++] = d; in MQTTPacket_encode() 42 return rc; in MQTTPacket_encode() 61 int rc = MQTTPACKET_READ_ERROR; in MQTTPacket_decode() local 67 rc = (*getcharfn)(&c, 1); in MQTTPacket_decode() 68 if (rc != 1) { in MQTTPacket_decode() 210 int rc = 0; in readMQTTLenString() local 219 rc = 1; in readMQTTLenString() 223 return rc; in readMQTTLenString() 234 int rc = 0; in MQTTstrlen() local [all …]
|