/AliOS-Things-master/components/cli/src/ |
A D | cli_uagent.c | 20 if (cmd == NULL) { in on_cli_handler() 25 if (NULL != strstr(cmd, "cli cloud ")) { in on_cli_handler() 27 if (0 == strncmp("cli cloud start", cmd, len)) { in on_cli_handler() 32 } else if (0 == strncmp("cli cloud stop", cmd, len)) { in on_cli_handler() 42 (char *)cmd); in on_cli_handler() 45 (char *)cmd); in on_cli_handler() 53 aos_cli_printf("\n# %s", (char *)cmd); in on_cli_handler() 54 rc = cli_handle_input(cmd); in on_cli_handler() 56 if (cmd != NULL) { in on_cli_handler() 77 const char cmd[] = "cli cloud timeout=20"; in cli_uagent_init() local [all …]
|
/AliOS-Things-master/components/amp/jslib/src/ |
A D | repl.js | 345 cmd = cmd.substring(0, cursor_pos) + str + cmd.substring(cursor_pos); 390 while (pos < cmd.length && is_word(cmd.charAt(pos))) 480 cmd = cmd.substring(0, start) + cmd.substring(end); 508 cmd = cmd.substring(0, pos - 1) + cmd.substring(pos, pos + 1) + 521 cmd = cmd.substring(0, p1) + cmd.substring(p3, p4) + 522 cmd.substring(p2, p3) + cmd.substring(p1, p2); 529 cmd = cmd.substring(0, cursor_pos) + 536 cmd = cmd.substring(0, cursor_pos) + 550 cmd = cmd.substring(0, start) + cmd.substring(end); 1100 if (cmd === "h" || cmd === "?" || cmd == "help") { [all …]
|
/AliOS-Things-master/components/amp/engine/quickjs_engine/quickjs/ |
A D | repl.js | 125 var cmd = ""; variable 337 cmd = cmd.substring(0, cursor_pos) + str + cmd.substring(cursor_pos); 382 while (pos < cmd.length && is_word(cmd.charAt(pos))) 472 cmd = cmd.substring(0, start) + cmd.substring(end); 500 cmd = cmd.substring(0, pos - 1) + cmd.substring(pos, pos + 1) + 513 cmd = cmd.substring(0, p1) + cmd.substring(p3, p4) + 514 cmd.substring(p2, p3) + cmd.substring(p1, p2); 521 cmd = cmd.substring(0, cursor_pos) + 528 cmd = cmd.substring(0, cursor_pos) + 542 cmd = cmd.substring(0, start) + cmd.substring(end); [all …]
|
/AliOS-Things-master/components/py_engine/framework/ |
A D | ap3216c.py | 227 if cmd == AP3216C_SYSTEM_MODE: 230 elif cmd == AP3216C_INT_PARAM: 232 elif cmd == AP3216C_ALS_RANGE: 250 elif cmd == AP3216C_PS_GAIN: 255 elif cmd == AP3216C_PS_PERSIST: 273 def ap3216c_get_param(self, cmd): argument 274 if cmd == AP3216C_SYSTEM_MODE: 276 elif cmd == AP3216C_INT_PARAM: 278 elif cmd == AP3216C_ALS_RANGE: 294 elif cmd == AP3216C_PS_GAIN: [all …]
|
/AliOS-Things-master/components/cli/include/aos/ |
A D | cli.h | 40 #define ALIOS_CLI_CMD_REGISTER(name, cmd, desc) \ argument 41 const char __clisym_##cmd##_name[] SECTION(".rodata") = #cmd; \ 42 const char __clisym_##cmd##_desc[] SECTION(".rodata") = #desc; \ 47 USED const struct cli_region __clisym_##cmd SECTION("CliRegion") = \ 49 __clisym_##cmd##_name, \ 50 __clisym_##cmd##_desc, \ 70 int aos_cli_register_command(const struct cli_command *cmd); 80 int aos_cli_unregister_command(const struct cli_command *cmd);
|
/AliOS-Things-master/hardware/chip/haas1000/drivers/platform/hal/ |
A D | hal_spi.h | 66 int hal_ispi_rom_recv(const void *cmd, void *data, uint32_t len); 76 int hal_spiphy_rom_recv(const void *cmd, void *data, uint32_t len); 92 int hal_ispi_recv(const void *cmd, void *data, uint32_t len); 96 int hal_ispi_dma_recv(const void *cmd, void *data, uint32_t len, HAL_SPI_DMA_HANDLER_T handler); 116 int hal_spi_recv_nickname(const void *cmd, void *data, uint32_t len); 121 int hal_spi_recv(const void *cmd, void *data, uint32_t len); 126 int hal_spi_dma_recv(const void *cmd, void *data, uint32_t len, HAL_SPI_DMA_HANDLER_T handler); 130 int hal_spi_no_dma_recv(const void *cmd, void *data, uint32_t len ); 154 int hal_spilcd_recv(const void *cmd, void *data, uint32_t len); 186 int hal_spiphy_recv(const void *cmd, void *data, uint32_t len); [all …]
|
/AliOS-Things-master/components/SDL2/src/render/psp/ |
A D | SDL_render_psp.c | 459 cmd->data.draw.count = count; in PSP_QueueDrawPoints() 480 cmd->data.draw.count = count; in PSP_QueueFillRects() 519 cmd->data.draw.count = 1; in PSP_QueueCopy() 549 cmd->data.draw.count = count; in PSP_QueueCopy() 608 cmd->data.draw.count = 1; in PSP_QueueCopyEx() 711 while (cmd) { in PSP_RunCommandQueue() 712 switch (cmd->command) { in PSP_RunCommandQueue() 755 const Uint8 r = cmd->data.draw.r; in PSP_RunCommandQueue() 756 const Uint8 g = cmd->data.draw.g; in PSP_RunCommandQueue() 757 const Uint8 b = cmd->data.draw.b; in PSP_RunCommandQueue() [all …]
|
/AliOS-Things-master/components/SDL2/src/render/software/ |
A D | SDL_render_sw.c | 216 cmd->data.draw.count = count; in SW_QueueDrawPoints() 245 cmd->data.draw.count = count; in SW_QueueFillRects() 279 cmd->data.draw.count = 1; in SW_QueueCopy() 317 cmd->data.draw.count = 1; in SW_QueueCopyEx() 567 const Uint8 r = cmd->data.draw.r; in PrepTextureForCopy() 568 const Uint8 g = cmd->data.draw.g; in PrepTextureForCopy() 569 const Uint8 b = cmd->data.draw.b; in PrepTextureForCopy() 570 const Uint8 a = cmd->data.draw.a; in PrepTextureForCopy() 625 while (cmd) { in SW_RunCommandQueue() 626 switch (cmd->command) { in SW_RunCommandQueue() [all …]
|
/AliOS-Things-master/components/py_engine/engine/drivers/sdcard/ |
A D | sdcard.py | 85 r = self.cmd(8, 0x01AA, 0x87, 4) 95 if self.cmd(9, 0, 0, 0, False) != 0: 110 if self.cmd(16, 512, 0) != 0: 118 self.cmd(55, 0, 0) 119 if self.cmd(41, 0, 0) == 0: 128 self.cmd(58, 0, 0, 4) 129 self.cmd(55, 0, 0) 130 if self.cmd(41, 0x40000000, 0) == 0: 131 self.cmd(58, 0, 0, 4) 137 def cmd(self, cmd, arg, crc, final=0, release=True, skip1=False): argument [all …]
|
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/drivers/wlan/realtek/src/osdep/ |
A D | wireless.h | 415 #define IW_IOCTL_IDX(cmd) ((cmd) - SIOCIWFIRST) argument 418 #define IW_IS_SET(cmd) (!((cmd) & 0x1)) argument 419 #define IW_IS_GET(cmd) ((cmd) & 0x1) argument 460 #define IW_EVENT_IDX(cmd) ((cmd) - IWEVFIRST) argument 701 #define IW_EVENT_CAPA_BASE(cmd) ((cmd >= SIOCIWFIRSTPRIV) ? \ argument 703 (cmd - SIOCSIWCOMMIT)) 704 #define IW_EVENT_CAPA_INDEX(cmd) (IW_EVENT_CAPA_BASE(cmd) >> 5) argument 705 #define IW_EVENT_CAPA_MASK(cmd) (1 << (IW_EVENT_CAPA_BASE(cmd) & 0x1F)) argument 713 #define IW_EVENT_CAPA_SET(event_capa, cmd) (event_capa[IW_EVENT_CAPA_INDEX(cmd)] |= IW_EVENT_CAPA_M… argument 927 __u16 cmd; /* IW_MLME_* */ member [all …]
|
/AliOS-Things-master/components/py_engine/engine/tools/mpremote/mpremote/ |
A D | main.py | 109 cmd = cmd.split() 110 if len(cmd) == 1: 128 cmd = args.pop(0) 390 cmd = args.pop(0) 401 if cmd == "connect": 421 if cmd == "disconnect": 424 elif cmd == "mount": 433 if cmd == "exec": 435 elif cmd == "eval": 448 elif cmd == "fs": [all …]
|
/AliOS-Things-master/hardware/chip/haas1000/hal/ |
A D | spi.c | 319 uint8_t *cmd; in hal_spi_recv() local 328 if (cmd == NULL) in hal_spi_recv() 339 free(cmd); in hal_spi_recv() 381 free(cmd); in hal_spi_recv() 395 uint8_t *cmd; in hal_spi_send_and_recv() local 416 free(cmd); in hal_spi_send_and_recv() 457 free(cmd); in hal_spi_send_and_recv() 481 uint8_t *cmd; in hal_spi_send_recv() local 491 cmd[i] = 0x00; in hal_spi_send_recv() 497 free(cmd); in hal_spi_send_recv() [all …]
|
/AliOS-Things-master/hardware/board/haaseduk1/drivers/sensor/ |
A D | drv_als_ps_ir_liteon_ap3216c.c | 117 ap3216c_set_param(cmd, (threshold.min & 0xff)); in set_als_threshold() 118 ap3216c_set_param((ap3216c_cmd_t)(cmd + 1), (threshold.min >> 8)); in set_als_threshold() 120 ap3216c_set_param((ap3216c_cmd_t)(cmd + 3), threshold.max >> 8); in set_als_threshold() 127 ap3216c_set_param(cmd, (threshold.min - 1020 & 0x03)); in set_ps_threshold() 130 ap3216c_set_param((ap3216c_cmd_t)(cmd + 1), in set_ps_threshold() 135 ap3216c_set_param((ap3216c_cmd_t)(cmd + 2), in set_ps_threshold() 139 ap3216c_set_param((ap3216c_cmd_t)(cmd + 3), in set_ps_threshold() 295 void ap3216c_set_param(ap3216c_cmd_t cmd, uint8_t value) in ap3216c_set_param() argument 297 switch (cmd) { in ap3216c_set_param() 419 void ap3216c_get_param(ap3216c_cmd_t cmd, uint8_t *value) in ap3216c_get_param() argument [all …]
|
/AliOS-Things-master/components/SDL2/src/render/ |
A D | SDL_render.c | 123 while (cmd) { in DebugLogRenderCommands() 161 (int) cmd->data.draw.r, (int) cmd->data.draw.g, in DebugLogRenderCommands() 162 (int) cmd->data.draw.b, (int) cmd->data.draw.a, in DebugLogRenderCommands() 170 (int) cmd->data.draw.r, (int) cmd->data.draw.g, in DebugLogRenderCommands() 171 (int) cmd->data.draw.b, (int) cmd->data.draw.a, in DebugLogRenderCommands() 179 (int) cmd->data.draw.r, (int) cmd->data.draw.g, in DebugLogRenderCommands() 180 (int) cmd->data.draw.b, (int) cmd->data.draw.a, in DebugLogRenderCommands() 188 (int) cmd->data.draw.r, (int) cmd->data.draw.g, in DebugLogRenderCommands() 203 cmd = cmd->next; in DebugLogRenderCommands() 451 return cmd; in PrepQueueCmdDrawSolid() [all …]
|
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/tensorflow/lite/experimental/mlir/testing/ |
A D | mlir_convert.py | 171 cmd = ("%s -tf-input-arrays=%s -tf-input-data-types=%s -tf-input-shapes=%s " 174 cmd = cmd % ( 183 exit_code = os.system(cmd) 185 cmd + "exited with code %d" % exit_code + "\n------------------\n" + 222 cmd = ("%s %s --tf-savedmodel-tags=%s --tf-savedmodel-exported-names=%s " + 224 cmd = cmd % ( 232 exit_code = os.system(cmd) 234 cmd + "exited with code %d" % exit_code + "\n------------------\n" +
|
/AliOS-Things-master/components/SDL2/src/render/opengles/ |
A D | SDL_render_gles.c | 555 cmd->data.draw.count = count; in GLES_QueueDrawPoints() 574 cmd->data.draw.count = count; in GLES_QueueFillRects() 608 cmd->data.draw.count = 1; in GLES_QueueCopy() 690 cmd->data.draw.count = 1; in GLES_QueueCopyEx() 721 const Uint8 r = cmd->data.draw.r; in SetDrawState() 722 const Uint8 g = cmd->data.draw.g; in SetDrawState() 723 const Uint8 b = cmd->data.draw.b; in SetDrawState() 814 SetDrawState(data, cmd); in SetCopyState() 839 while (cmd) { in GLES_RunCommandQueue() 840 switch (cmd->command) { in GLES_RunCommandQueue() [all …]
|
/AliOS-Things-master/components/py_engine/engine/tools/ |
A D | metrics.py | 215 for cmd in globals(): 216 if cmd.startswith("do_"): 217 print(" {:9} {}".format(cmd[3:], globals()[cmd].__doc__)) 219 cmd = sys.argv.pop(1) 223 cmd = globals()["do_{}".format(cmd)] 225 print("{}: unknown command '{}'".format(sys.argv[0], cmd)) 227 cmd(sys.argv[1:])
|
/AliOS-Things-master/components/SDL2/src/video/directfb/ |
A D | SDL_DirectFB_render.c | 218 Uint8 r = cmd->data.draw.r; in PrepareDraw() 219 Uint8 g = cmd->data.draw.g; in PrepareDraw() 220 Uint8 b = cmd->data.draw.b; in PrepareDraw() 221 Uint8 a = cmd->data.draw.a; in PrepareDraw() 613 cmd->data.draw.count = count; in DirectFB_QueueDrawPoints() 628 cmd->data.draw.count = count; in DirectFB_QueueFillRects() 643 cmd->data.draw.count = 1; in DirectFB_QueueCopy() 673 while (cmd) { in DirectFB_RunCommandQueue() 674 switch (cmd->command) { in DirectFB_RunCommandQueue() 713 PrepareDraw(renderer, cmd); in DirectFB_RunCommandQueue() [all …]
|
/AliOS-Things-master/components/py_engine/engine/drivers/bus/ |
A D | qspi.h | 41 int (*ioctl)(void *self, uint32_t cmd); 42 void (*write_cmd_data)(void *self, uint8_t cmd, size_t len, uint32_t data); 43 …void (*write_cmd_addr_data)(void *self, uint8_t cmd, uint32_t addr, size_t len, const uint8_t *src… 44 uint32_t (*read_cmd)(void *self, uint8_t cmd, size_t len); 45 void (*read_cmd_qaddr_qdata)(void *self, uint8_t cmd, uint32_t addr, size_t len, uint8_t *dest);
|
/AliOS-Things-master/hardware/board/haas100/drivers/ |
A D | ch395_cmd.c | 163 ret = ch395_spi_send_and_recv(&cmd, sizeof(cmd), &data, sizeof(data)); in ch395_spi_cmd_query() 210 … LOGE(TAG, "===hal spi send and recv 0x%x len %d fail ret 0x%x==\r\n", cmd[0], sizeof(cmd), ret); in ch395_chip_exist_check() 214 if (readdata != ~cmd[1]) { in ch395_chip_exist_check() 225 uint8_t cmd = CMD00_RESET_ALL; in ch395_chip_reset() local 227 ret = ch395_spi_data_write(&cmd, sizeof(cmd)); in ch395_chip_reset() 241 uint8_t cmd = CMD00_ENTER_SLEEP; in ch395_enter_sleep() local 243 ret = ch395_spi_data_write(&cmd, sizeof(cmd)); in ch395_enter_sleep() 341 ret = ch395_spi_send_and_recv(&cmd, sizeof(cmd), mac, 6); in ch395_get_mac_addr() 455 ret = ch395_spi_send_and_recv(&cmd, sizeof(cmd), (uint8_t *)recvdata, sizeof(recvdata)); in ch395_get_global_all_int_status() 1051 ret = ch395_spi_send_and_recv(&cmd, sizeof(cmd), pst_inf, sizeof(ch395_int_t)); in ch395_get_ip_interface() [all …]
|
/AliOS-Things-master/components/csi/csi2/include/drv/ |
A D | qspi.h | 189 int32_t csi_qspi_send(csi_qspi_t *qspi, csi_qspi_command_t *cmd, const void *data, uint32_t size, u… 201 int32_t csi_qspi_receive(csi_qspi_t *qspi, csi_qspi_command_t *cmd, void *data, uint32_t size, uint… 214 int32_t csi_qspi_send_receive(csi_qspi_t *qspi, csi_qspi_command_t *cmd, const void *tx_data, void … 224 csi_error_t csi_qspi_send_async(csi_qspi_t *qspi, csi_qspi_command_t *cmd, const void *data, uint32… 234 csi_error_t csi_qspi_receive_async(csi_qspi_t *qspi, csi_qspi_command_t *cmd, void *data, uint32_t … 245 csi_error_t csi_qspi_send_receive_async(csi_qspi_t *qspi, csi_qspi_command_t *cmd, const void *tx_d… 270 csi_error_t csi_qspi_memory_mapped(csi_qspi_t *qspi, csi_qspi_command_t *cmd);
|
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/fwlib/ram_hp/ |
A D | rtl8721dhp_sdio_host.c | 284 u8 cmd = cmd_attrib->idx, cmd_code, tmp; in SDIOH_SendCommand() local 299 if((cmd == SD_CMD_RdSingleBlk) || (cmd == SD_CMD_RdMulBlk) || (cmd == SD_CMD_SendTuningBlk)) in SDIOH_SendCommand() 304 if((cmd == SD_CMD_WrBlk) || (cmd == SD_CMD_WrMulBlk)) in SDIOH_SendCommand() 309 if(cmd == SD_CMD_VolSwitch) in SDIOH_SendCommand() 320 if((cmd == SD_CMD_RdMulBlk) || (cmd == SD_CMD_WrMulBlk) || (cmd == SD_CMD_StopXsmission)) in SDIOH_SendCommand() 325 if((cmd == SD_CMD_VolSwitch) || (cmd == SD_CMD_StopXsmission)) in SDIOH_SendCommand() 338 psdioh->SD_CMD[0]= HOST_COMMAND | (cmd & 0x3F); in SDIOH_SendCommand() 346 switch (cmd) { in SDIOH_SendCommand()
|
/AliOS-Things-master/components/amp/services/amp_boot/ |
A D | amp_boot_cmd.c | 49 void amp_boot_cmd_begin(int cmd) in amp_boot_cmd_begin() argument 52 amp_boot_uart_send_str(g_amp_boot_cmd[cmd].cmd_str); in amp_boot_cmd_begin() 55 void amp_boot_cmd_end(int cmd) in amp_boot_cmd_end() argument 58 amp_boot_uart_send_str(g_amp_boot_cmd[cmd].cmd_str); in amp_boot_cmd_end()
|
/AliOS-Things-master/components/py_engine/external/amp_boot/ |
A D | amp_boot_cmd.c | 35 void pyamp_boot_cmd_begin(int cmd) in pyamp_boot_cmd_begin() argument 38 pyamp_boot_uart_send_str(g_pyamp_boot_cmd[cmd].cmd_str); in pyamp_boot_cmd_begin() 41 void pyamp_boot_cmd_end(int cmd) in pyamp_boot_cmd_end() argument 44 pyamp_boot_uart_send_str(g_pyamp_boot_cmd[cmd].cmd_str); in pyamp_boot_cmd_end()
|
/AliOS-Things-master/components/genie_service/core/src/ |
A D | genie_ais.c | 50 static void _ais_server_indicate(uint8_t msg_id, uint8_t cmd, uint8_t *p_msg, uint16_t len) in _ais_server_indicate() argument 74 msg.header.cmd = cmd; in _ais_server_indicate() 94 printf("ais ind msgid:%d cmd:%02x p_ind:%p len:%d\r\n", msg_id, cmd, p_indicate, len); in _ais_server_indicate() 111 void genie_ais_notify(uint8_t msg_id, uint8_t cmd, uint8_t *p_msg, uint16_t len) in genie_ais_notify() argument 125 msg.header.cmd = cmd; in genie_ais_notify() 140 printf("ais notify msgid:%d cmd:%02x len:%d\r\n", msg_id, cmd, len); in genie_ais_notify() 354 if (p_msg->header.cmd != AIS_OTA_DATA && !_ais_msg_check_header((ais_header_t *)p_msg)) in _ais_server_msg_handle() 359 if (p_msg->header.cmd != AIS_OTA_DATA) in _ais_server_msg_handle() 364 printf("ais cmd:0x%02x state:%d len:%d\r\n", p_msg->header.cmd, genie_ais_ctx.state, len); in _ais_server_msg_handle() 368 switch (p_msg->header.cmd) in _ais_server_msg_handle() [all …]
|