/hardware/broadcom/wlan/bcmdhd/wifi_hal/ |
D | common.cpp | 52 wifi_error wifi_register_handler(wifi_handle handle, int cmd, nl_recvmsg_msg_cb_t func, void *arg) in wifi_register_handler() argument 62 info->event_cb[info->num_event_cb].nl_cmd = cmd; in wifi_register_handler() 68 arg, func, cmd, info->num_event_cb); in wifi_register_handler() 103 void wifi_unregister_handler(wifi_handle handle, int cmd) in wifi_unregister_handler() argument 107 if (cmd == NL80211_CMD_VENDOR) { in wifi_unregister_handler() 115 if (info->event_cb[i].nl_cmd == cmd) { in wifi_unregister_handler() 117 info->event_cb[i].cb_arg, info->event_cb[i].cb_func, cmd, i); in wifi_unregister_handler() 153 wifi_error wifi_register_cmd(wifi_handle handle, int id, WifiCommand *cmd) in wifi_register_cmd() argument 162 info->cmd[info->num_cmd].id = id; in wifi_register_cmd() 163 info->cmd[info->num_cmd].cmd = cmd; in wifi_register_cmd() [all …]
|
D | wifi_logger.cpp | 389 DebugCommand *cmd = new DebugCommand(iface, buffer, &buffer_size, GET_FW_VER); in wifi_get_firmware_version() local 390 NULL_CHECK_RETURN(cmd, "memory allocation failure", WIFI_ERROR_OUT_OF_MEMORY); in wifi_get_firmware_version() 391 wifi_error result = (wifi_error)cmd->start(); in wifi_get_firmware_version() 392 cmd->releaseRef(); in wifi_get_firmware_version() 404 DebugCommand *cmd = new DebugCommand(iface, buffer, &buffer_size, GET_DRV_VER); in wifi_get_driver_version() local 405 NULL_CHECK_RETURN(cmd, "memory allocation failure", WIFI_ERROR_OUT_OF_MEMORY); in wifi_get_driver_version() 406 wifi_error result = (wifi_error)cmd->start(); in wifi_get_driver_version() 407 cmd->releaseRef(); in wifi_get_driver_version() 418 DebugCommand *cmd = new DebugCommand(iface, ring_name, GET_RING_DATA); in wifi_get_ring_data() local 419 NULL_CHECK_RETURN(cmd, "memory allocation failure", WIFI_ERROR_OUT_OF_MEMORY); in wifi_get_ring_data() [all …]
|
/hardware/marvell/bt/libbt-vendor/ |
D | hardware_mrvl.c | 60 uint16_t cmd; member 109 static char *cmd_to_str(uint16_t cmd) in cmd_to_str() argument 111 switch (cmd) { in cmd_to_str() 141 static HC_BT_HDR *build_cmd_buf(uint16_t cmd, uint8_t pl_len, uint8_t *payload) in build_cmd_buf() argument 162 UINT16_TO_STREAM(p, cmd); in build_cmd_buf() 182 STREAM_TO_UINT16(evt_params->cmd, p); in parse_evt_buf() 200 switch (evt_params.cmd) { in hw_mrvl_config_start_cb() 209 evt_params.cmd); in hw_mrvl_config_start_cb() 221 uint16_t cmd; in hw_mrvl_sco_config_cb() local 231 switch (evt_params.cmd) { in hw_mrvl_sco_config_cb() [all …]
|
/hardware/qcom/bt/msm8992/libbt-vendor/src/ |
D | hw_rome.c | 349 int hci_send_wipower_vs_cmd(int fd, unsigned char *cmd, unsigned char *rsp, int size) in hci_send_wipower_vs_cmd() argument 355 ret = do_write(fd, cmd, size); in hci_send_wipower_vs_cmd() 374 int hci_send_vs_cmd(int fd, unsigned char *cmd, unsigned char *rsp, int size) in hci_send_vs_cmd() argument 379 ret = do_write(fd, cmd, size); in hci_send_vs_cmd() 400 unsigned char *cmd, in frame_hci_cmd_pkt() argument 408 memset(cmd, 0x0, HCI_MAX_CMD_SIZE); in frame_hci_cmd_pkt() 410 cmd_hdr = (void *) (cmd + 1); in frame_hci_cmd_pkt() 412 cmd[0] = HCI_COMMAND_PKT; in frame_hci_cmd_pkt() 415 cmd[4] = edl_cmd; in frame_hci_cmd_pkt() 421 memcpy(&cmd[5], phdr_buffer, PATCH_HDR_LEN); in frame_hci_cmd_pkt() [all …]
|
D | hw_ar3k.c | 123 static int send_hci_cmd_sync(int dev, uint8_t *cmd, int len, uint8_t **event) in send_hci_cmd_sync() argument 134 if (write(dev, (unsigned char *)cmd, len) != len) in send_hci_cmd_sync() 243 static void load_hci_ps_hdr(uint8_t *cmd, uint8_t ps_op, int len, int index) in load_hci_ps_hdr() argument 245 hci_command_hdr *ch = (void *)cmd; in load_hci_ps_hdr() 250 cmd += HCI_COMMAND_HDR_SIZE; in load_hci_ps_hdr() 252 cmd[0] = ps_op; in load_hci_ps_hdr() 253 cmd[1] = index; in load_hci_ps_hdr() 254 cmd[2] = index >> 8; in load_hci_ps_hdr() 255 cmd[3] = len; in load_hci_ps_hdr() 314 uint8_t cmd[HCI_MAX_CMD_SIZE]; in write_ps_cmd() local [all …]
|
/hardware/qcom/bt/msm8998/libbt-vendor/src/ |
D | hw_rome.c | 375 int hci_send_wipower_vs_cmd(int fd, unsigned char *cmd, unsigned char *rsp, int size) in hci_send_wipower_vs_cmd() argument 381 ret = do_write(fd, cmd, size); in hci_send_wipower_vs_cmd() 400 int hci_send_vs_cmd(int fd, unsigned char *cmd, unsigned char *rsp, int size) in hci_send_vs_cmd() argument 405 ret = do_write(fd, cmd, size); in hci_send_vs_cmd() 426 unsigned char *cmd, in frame_hci_cmd_pkt() argument 434 memset(cmd, 0x0, HCI_MAX_CMD_SIZE); in frame_hci_cmd_pkt() 436 cmd_hdr = (void *) (cmd + 1); in frame_hci_cmd_pkt() 438 cmd[0] = HCI_COMMAND_PKT; in frame_hci_cmd_pkt() 441 cmd[4] = edl_cmd; in frame_hci_cmd_pkt() 447 memcpy(&cmd[5], phdr_buffer, PATCH_HDR_LEN); in frame_hci_cmd_pkt() [all …]
|
D | hw_ar3k.c | 126 static int send_hci_cmd_sync(int dev, uint8_t *cmd, int len, uint8_t **event) in send_hci_cmd_sync() argument 137 if (write(dev, (unsigned char *)cmd, len) != len) in send_hci_cmd_sync() 246 static void load_hci_ps_hdr(uint8_t *cmd, uint8_t ps_op, int len, int index) in load_hci_ps_hdr() argument 248 hci_command_hdr *ch = (void *)cmd; in load_hci_ps_hdr() 253 cmd += HCI_COMMAND_HDR_SIZE; in load_hci_ps_hdr() 255 cmd[0] = ps_op; in load_hci_ps_hdr() 256 cmd[1] = index; in load_hci_ps_hdr() 257 cmd[2] = index >> 8; in load_hci_ps_hdr() 258 cmd[3] = len; in load_hci_ps_hdr() 317 uint8_t cmd[HCI_MAX_CMD_SIZE]; in write_ps_cmd() local [all …]
|
/hardware/qcom/bt/msm8909/libbt-vendor/src/ |
D | hw_rome.c | 372 int hci_send_wipower_vs_cmd(int fd, unsigned char *cmd, unsigned char *rsp, int size) in hci_send_wipower_vs_cmd() argument 378 ret = do_write(fd, cmd, size); in hci_send_wipower_vs_cmd() 397 int hci_send_vs_cmd(int fd, unsigned char *cmd, unsigned char *rsp, int size) in hci_send_vs_cmd() argument 402 ret = do_write(fd, cmd, size); in hci_send_vs_cmd() 423 unsigned char *cmd, in frame_hci_cmd_pkt() argument 431 memset(cmd, 0x0, HCI_MAX_CMD_SIZE); in frame_hci_cmd_pkt() 433 cmd_hdr = (void *) (cmd + 1); in frame_hci_cmd_pkt() 435 cmd[0] = HCI_COMMAND_PKT; in frame_hci_cmd_pkt() 438 cmd[4] = edl_cmd; in frame_hci_cmd_pkt() 444 memcpy(&cmd[5], phdr_buffer, PATCH_HDR_LEN); in frame_hci_cmd_pkt() [all …]
|
D | hw_ar3k.c | 123 static int send_hci_cmd_sync(int dev, uint8_t *cmd, int len, uint8_t **event) in send_hci_cmd_sync() argument 134 if (write(dev, (unsigned char *)cmd, len) != len) in send_hci_cmd_sync() 243 static void load_hci_ps_hdr(uint8_t *cmd, uint8_t ps_op, int len, int index) in load_hci_ps_hdr() argument 245 hci_command_hdr *ch = (void *)cmd; in load_hci_ps_hdr() 250 cmd += HCI_COMMAND_HDR_SIZE; in load_hci_ps_hdr() 252 cmd[0] = ps_op; in load_hci_ps_hdr() 253 cmd[1] = index; in load_hci_ps_hdr() 254 cmd[2] = index >> 8; in load_hci_ps_hdr() 255 cmd[3] = len; in load_hci_ps_hdr() 314 uint8_t cmd[HCI_MAX_CMD_SIZE]; in write_ps_cmd() local [all …]
|
/hardware/qcom/bt/msm8996/libbt-vendor/src/ |
D | hw_rome.c | 397 int hci_send_wipower_vs_cmd(int fd, unsigned char *cmd, unsigned char *rsp, int size) in hci_send_wipower_vs_cmd() argument 403 ret = do_write(fd, cmd, size); in hci_send_wipower_vs_cmd() 422 int hci_send_vs_cmd(int fd, unsigned char *cmd, unsigned char *rsp, int size) in hci_send_vs_cmd() argument 427 ret = do_write(fd, cmd, size); in hci_send_vs_cmd() 448 unsigned char *cmd, in frame_hci_cmd_pkt() argument 456 memset(cmd, 0x0, HCI_MAX_CMD_SIZE); in frame_hci_cmd_pkt() 458 cmd_hdr = (void *) (cmd + 1); in frame_hci_cmd_pkt() 460 cmd[0] = HCI_COMMAND_PKT; in frame_hci_cmd_pkt() 463 cmd[4] = edl_cmd; in frame_hci_cmd_pkt() 469 memcpy(&cmd[5], phdr_buffer, PATCH_HDR_LEN); in frame_hci_cmd_pkt() [all …]
|
D | hw_ar3k.c | 126 static int send_hci_cmd_sync(int dev, uint8_t *cmd, int len, uint8_t **event) in send_hci_cmd_sync() argument 137 if (write(dev, (unsigned char *)cmd, len) != len) in send_hci_cmd_sync() 246 static void load_hci_ps_hdr(uint8_t *cmd, uint8_t ps_op, int len, int index) in load_hci_ps_hdr() argument 248 hci_command_hdr *ch = (void *)cmd; in load_hci_ps_hdr() 253 cmd += HCI_COMMAND_HDR_SIZE; in load_hci_ps_hdr() 255 cmd[0] = ps_op; in load_hci_ps_hdr() 256 cmd[1] = index; in load_hci_ps_hdr() 257 cmd[2] = index >> 8; in load_hci_ps_hdr() 258 cmd[3] = len; in load_hci_ps_hdr() 317 uint8_t cmd[HCI_MAX_CMD_SIZE]; in write_ps_cmd() local [all …]
|
/hardware/intel/img/psb_video/src/mrst/ |
D | psb_MPEG2MC.c | 151 uint32_t cmd; in psb__MPEG2MC_send_interPB_prediction() local 178 cmd = 0; in psb__MPEG2MC_send_interPB_prediction() 180 REGIO_WRITE_FIELD(cmd, MSVDX_CMDS, INTER_BLOCK_PREDICTION, INTER_PRED_BLOCK_SIZE, blk_size); in psb__MPEG2MC_send_interPB_prediction() 182 REGIO_WRITE_FIELD(cmd, MSVDX_CMDS, INTER_BLOCK_PREDICTION, REF_INDEX_A, ctx->ref_indexA); in psb__MPEG2MC_send_interPB_prediction() 183 REGIO_WRITE_FIELD(cmd, MSVDX_CMDS, INTER_BLOCK_PREDICTION, REF_INDEX_B, ctx->ref_indexB); in psb__MPEG2MC_send_interPB_prediction() 186 REGIO_WRITE_FIELD(cmd, MSVDX_CMDS, INTER_BLOCK_PREDICTION, REF_INDEX_A_VALID, 1); in psb__MPEG2MC_send_interPB_prediction() 187 REGIO_WRITE_FIELD(cmd, MSVDX_CMDS, INTER_BLOCK_PREDICTION, REF_INDEX_B_VALID, 1); in psb__MPEG2MC_send_interPB_prediction() 189 REGIO_WRITE_FIELD(cmd, MSVDX_CMDS, INTER_BLOCK_PREDICTION, REF_INDEX_A_VALID, in psb__MPEG2MC_send_interPB_prediction() 191 REGIO_WRITE_FIELD(cmd, MSVDX_CMDS, INTER_BLOCK_PREDICTION, REF_INDEX_B_VALID, in psb__MPEG2MC_send_interPB_prediction() 202 REGIO_WRITE_FIELD(cmd, MSVDX_CMDS, INTER_BLOCK_PREDICTION, in psb__MPEG2MC_send_interPB_prediction() [all …]
|
D | psb_VC1.c | 1805 uint32_t cmd; in psb__VC1_setup_alternative_frame() local 1824 cmd = 0; in psb__VC1_setup_alternative_frame() 1825 …REGIO_WRITE_FIELD_LITE(cmd, MSVDX_CMDS, ALTERNATIVE_OUTPUT_PICTURE_ROTATION , ALT_PICTURE_ENABLE, … in psb__VC1_setup_alternative_frame() 1826 …REGIO_WRITE_FIELD_LITE(cmd, MSVDX_CMDS, ALTERNATIVE_OUTPUT_PICTURE_ROTATION , ROTATION_ROW_STRIDE,… in psb__VC1_setup_alternative_frame() 1827 …REGIO_WRITE_FIELD_LITE(cmd, MSVDX_CMDS, ALTERNATIVE_OUTPUT_PICTURE_ROTATION , RECON_WRITE_DISABLE,… in psb__VC1_setup_alternative_frame() 1828 …REGIO_WRITE_FIELD_LITE(cmd, MSVDX_CMDS, ALTERNATIVE_OUTPUT_PICTURE_ROTATION , ROTATION_MODE, GET_S… in psb__VC1_setup_alternative_frame() 1830 psb_cmdbuf_rendec_write(cmdbuf, cmd); in psb__VC1_setup_alternative_frame() 1842 uint32_t cmd; in psb__VC1_send_rendec_params() local 1958 cmd = 0; in psb__VC1_send_rendec_params() 1960 …REGIO_WRITE_FIELD(cmd, VC1_RENDEC_CMD, VC1SEQUENCE00, PICTURE_HEIGHT, (ctx->display_picture_height… in psb__VC1_send_rendec_params() [all …]
|
/hardware/qcom/audio/legacy/libalsa-intf/ |
D | alsaucm_test.c | 65 struct cmd { struct 70 static struct cmd cmds[] = { 167 struct cmd *cmd = NULL; in process_cmd() local 177 for (cmd = cmds; cmd->cmd_str != NULL; cmd++) { in process_cmd() 178 if (strncmp(cmd->cmd_str, command, strlen(cmd->cmd_str)) == 0) in process_cmd() 182 if (cmd->cmd_str == NULL) { in process_cmd() 187 if ((identifier == NULL) && ((cmd->code != UCM_HELP) && in process_cmd() 188 (cmd->code != UCM_LISTCARDS) && (cmd->code != UCM_RESET) && in process_cmd() 189 (cmd->code != UCM_RELOAD))) in process_cmd() 195 switch (cmd->code) { in process_cmd() [all …]
|
/hardware/ti/omap4-aah/test/CameraHal/ |
D | camera_test_script.cpp | 179 void trim_script_cmd(char *cmd) { in trim_script_cmd() argument 183 while ( NULL != (cr = strchr(cmd, '\r'))) { in trim_script_cmd() 190 while ( NULL != (nl = strchr(cmd, '\n'))) { in trim_script_cmd() 204 char *cmd, *ctx, *cycle_cmd, *temp_cmd; in execute_functional_script() local 224 cmd = strtok_r((char *) script, DELIMITER, &ctx); in execute_functional_script() 226 while ( NULL != cmd && (stopScript == false)) { in execute_functional_script() 227 trim_script_cmd(cmd); in execute_functional_script() 228 id = cmd[0]; in execute_functional_script() 229 printf("Full Command: %s \n", cmd); in execute_functional_script() 230 printf("Command: %c \n", cmd[0]); in execute_functional_script() [all …]
|
/hardware/broadcom/wlan/bcmdhd/dhdutil/ |
D | dhdu_linux.c | 81 cmd_t *cmd = NULL; in dhd_find_cmd() local 83 for (cmd = dhd_cmds; cmd->name && strcmp(cmd->name, name); cmd++); in dhd_find_cmd() 84 if (cmd->name == NULL) in dhd_find_cmd() 85 cmd = NULL; in dhd_find_cmd() 86 return cmd; in dhd_find_cmd() 145 dhd_ioctl(void *dhd, int cmd, void *buf, int len, bool set) in dhd_ioctl() argument 165 ioc.cmd = cmd; in dhd_ioctl() 172 if (ret < 0 && cmd != get_magic) in dhd_ioctl() 180 int wl_ioctl(void *wl, int cmd, void *buf, int len, bool set) in wl_ioctl() argument 182 return dhd_ioctl(wl, cmd, buf, len, set); /* Call actual wl_ioctl here: Shubhro */ in wl_ioctl() [all …]
|
D | dhdu.c | 120 static int dhd_do_msglevel(void *dhd, cmd_t *cmd, char **argv, dbg_msg_t *dbg_msg); 417 dhd_cmd_usage(cmd_t *cmd) in dhd_cmd_usage() argument 419 if (strlen(cmd->name) >= 8) in dhd_cmd_usage() 420 fprintf(stderr, "%s\n\t%s\n\n", cmd->name, cmd->help); in dhd_cmd_usage() 422 fprintf(stderr, "%s\t%s\n\n", cmd->name, cmd->help); in dhd_cmd_usage() 429 cmd_t *cmd; in dhd_list() local 438 for (cmd = dhd_cmds, nrows = 0; cmd->name; cmd++) in dhd_list() 455 for (cmd = dhd_cmds; cmd->name; cmd++) { in dhd_list() 456 if (cmd->name[0] == letter || cmd->name[0] == letter - 0x20) { in dhd_list() 457 strcat(buf+row*80, cmd->name); in dhd_list() [all …]
|
D | dhdu_cmd.h | 24 typedef struct cmd cmd_t; 25 typedef int (cmd_func_t)(void *dhd, cmd_t *cmd, char **argv); 28 struct cmd { struct 46 extern int dhd_get(void *dhd, int cmd, void *buf, int len); argument 47 extern int dhd_set(void *dhd, int cmd, void *buf, int len);
|
/hardware/qcom/wlan/qcwcn/wpa_supplicant_8_lib/ |
D | driver_cmd_nl80211.c | 46 static void wpa_driver_notify_country_change(void *ctx, char *cmd) in wpa_driver_notify_country_change() argument 48 if ((os_strncasecmp(cmd, "COUNTRY", 7) == 0) || in wpa_driver_notify_country_change() 49 (os_strncasecmp(cmd, "SETBAND", 7) == 0)) { in wpa_driver_notify_country_change() 54 if (os_strncasecmp(cmd, "COUNTRY", 7) == 0) { in wpa_driver_notify_country_change() 56 if (os_strlen(cmd) > 9) { in wpa_driver_notify_country_change() 57 event.channel_list_changed.alpha2[0] = cmd[8]; in wpa_driver_notify_country_change() 58 event.channel_list_changed.alpha2[1] = cmd[9]; in wpa_driver_notify_country_change() 67 int wpa_driver_nl80211_driver_cmd(void *priv, char *cmd, char *buf, in wpa_driver_nl80211_driver_cmd() argument 77 if (os_strcasecmp(cmd, "START") == 0) { in wpa_driver_nl80211_driver_cmd() 82 } else if (os_strcasecmp(cmd, "MACADDR") == 0) { in wpa_driver_nl80211_driver_cmd() [all …]
|
/hardware/broadcom/wlan/bcmdhd/wpa_supplicant_8_lib/ |
D | driver_cmd_nl80211.c | 48 static void wpa_driver_notify_country_change(void *ctx, char *cmd) in wpa_driver_notify_country_change() argument 50 if ((os_strncasecmp(cmd, "COUNTRY", 7) == 0) || in wpa_driver_notify_country_change() 51 (os_strncasecmp(cmd, "SETBAND", 7) == 0)) { in wpa_driver_notify_country_change() 56 if (os_strncasecmp(cmd, "COUNTRY", 7) == 0) { in wpa_driver_notify_country_change() 58 if (os_strlen(cmd) > 9) { in wpa_driver_notify_country_change() 59 event.channel_list_changed.alpha2[0] = cmd[8]; in wpa_driver_notify_country_change() 60 event.channel_list_changed.alpha2[1] = cmd[9]; in wpa_driver_notify_country_change() 69 int wpa_driver_nl80211_driver_cmd(void *priv, char *cmd, char *buf, in wpa_driver_nl80211_driver_cmd() argument 91 " cmd (%s)", bss->ifname, cmd); in wpa_driver_nl80211_driver_cmd() 95 if (os_strcasecmp(cmd, "STOP") == 0) { in wpa_driver_nl80211_driver_cmd() [all …]
|
D | driver_cmd_wext.c | 131 static int wpa_driver_wext_set_cscan_params(char *buf, size_t buf_len, char *cmd) in wpa_driver_wext_set_cscan_params() argument 138 wpa_printf(MSG_DEBUG, "%s: %s", __func__, cmd); in wpa_driver_wext_set_cscan_params() 141 pasv_ptr = os_strstr(cmd, ",TIME="); in wpa_driver_wext_set_cscan_params() 149 channel = (u8)atoi(cmd + 5); in wpa_driver_wext_set_cscan_params() 281 int wpa_driver_wext_driver_cmd( void *priv, char *cmd, char *buf, size_t buf_len ) in wpa_driver_wext_driver_cmd() argument 288 wpa_printf(MSG_DEBUG, "%s %s len = %d", __func__, cmd, buf_len); in wpa_driver_wext_driver_cmd() 290 if (!drv->driver_is_started && (os_strcasecmp(cmd, "START") != 0)) { in wpa_driver_wext_driver_cmd() 295 if (os_strcasecmp(cmd, "RSSI-APPROX") == 0) { in wpa_driver_wext_driver_cmd() 296 os_strlcpy(cmd, RSSI_CMD, MAX_DRV_CMD_SIZE); in wpa_driver_wext_driver_cmd() 297 } else if( os_strncasecmp(cmd, "SCAN-CHANNELS", 13) == 0 ) { in wpa_driver_wext_driver_cmd() [all …]
|
/hardware/bsp/intel/peripheral/libupm/src/grovescam/ |
D | grovescam.cxx | 197 uint8_t cmd[pktLen] = {0xaa, static_cast<uint8_t>(0x0d|m_camAddr), 0x00, in init() local 211 writeData(cmd, pktLen); in init() 240 cmd[1] = 0x0e | m_camAddr; in init() 241 cmd[2] = 0x0d; in init() 242 writeData(cmd, pktLen); in init() 250 uint8_t cmd[pktLen] = { 0xaa, static_cast<uint8_t>(0x01 | m_camAddr), 0x00, in preCapture() local 266 writeData(cmd, pktLen); in preCapture() 287 uint8_t cmd[pktLen] = { 0xaa, static_cast<uint8_t>(0x06 | m_camAddr), 0x08, in doCapture() local 304 writeData(cmd, pktLen); in doCapture() 321 cmd[1] = 0x05 | m_camAddr; in doCapture() [all …]
|
/hardware/ti/omap4xxx/test/CameraHal/ |
D | camera_test_script.cpp | 102 char *cmd, *ctx, *cycle_cmd, *temp_cmd; in execute_functional_script() local 117 cmd = strtok_r((char *) script, DELIMITER, &ctx); in execute_functional_script() 119 while ( NULL != cmd && (stopScript == false)) { in execute_functional_script() 120 id = cmd[0]; in execute_functional_script() 121 printf("Full Command: %s \n", cmd); in execute_functional_script() 122 printf("Command: %c \n", cmd[0]); in execute_functional_script() 172 cycleCounter = atoi(cmd + 1); in execute_functional_script() 263 rotation = atoi(cmd + 1); in execute_functional_script() 277 if( strcmp((cmd + 1), previewSize[i].desc) == 0) in execute_functional_script() 289 res = strtok(cmd + 1, "x"); in execute_functional_script() [all …]
|
/hardware/qcom/wlan/qcwcn/wifi_hal/ |
D | common.cpp | 57 wifi_error wifi_register_handler(wifi_handle handle, int cmd, nl_recvmsg_msg_cb_t func, void *arg) in wifi_register_handler() argument 66 if(info->event_cb[i].nl_cmd == cmd && in wifi_register_handler() 70 " and arg %p", func, cmd, arg); in wifi_register_handler() 77 info->event_cb[info->num_event_cb].nl_cmd = cmd; in wifi_register_handler() 83 ALOGV("Successfully added event handler %p for command %d", func, cmd); in wifi_register_handler() 133 void wifi_unregister_handler(wifi_handle handle, int cmd) in wifi_unregister_handler() argument 137 if (cmd == NL80211_CMD_VENDOR) { in wifi_unregister_handler() 145 if (info->event_cb[i].nl_cmd == cmd) { in wifi_unregister_handler() 154 ALOGV("Successfully removed event handler for command %d", cmd); in wifi_unregister_handler() 190 wifi_error wifi_register_cmd(wifi_handle handle, int id, WifiCommand *cmd) in wifi_register_cmd() argument [all …]
|
/hardware/libhardware/modules/radio/ |
D | radio_hw.c | 131 struct thread_command *cmd = (struct thread_command *)calloc(1, sizeof(struct thread_command)); in send_command_l() local 134 if (cmd == NULL) in send_command_l() 139 cmd->type = type; in send_command_l() 141 if (cmd->type == CMD_CONFIG) { in send_command_l() 142 cmd->config = *(radio_hal_band_config_t *)param; in send_command_l() 143 ALOGV("%s CMD_CONFIG type %d", __func__, cmd->config.type); in send_command_l() 145 cmd->param = *(unsigned int *)param; in send_command_l() 156 cmd->ts = ts; in send_command_l() 157 list_add_tail(&tuner->command_list, &cmd->node); in send_command_l() 269 struct thread_command *cmd = NULL; in callback_thread_loop() local [all …]
|