Home
last modified time | relevance | path

Searched refs:cmd_len (Results 1 – 22 of 22) sorted by relevance

/Zephyr-Core-3.5.0/tests/bluetooth/tester/src/
Dbtp_has.c19 static uint8_t has_supported_commands(const void *cmd, uint16_t cmd_len, in has_supported_commands() argument
32 static uint8_t has_set_active_index(const void *cmd, uint16_t cmd_len, in has_set_active_index() argument
44 static uint8_t has_set_preset_name(const void *cmd, uint16_t cmd_len, in has_set_preset_name() argument
51 if (cmd_len >= fixed_size && cmd_len >= (fixed_size + cp->length)) { in has_set_preset_name()
61 static uint8_t has_remove_preset(const void *cmd, uint16_t cmd_len, in has_remove_preset() argument
95 static uint8_t has_add_preset(const void *cmd, uint16_t cmd_len, in has_add_preset() argument
102 if (cmd_len >= fixed_size && cmd_len >= (fixed_size + cp->length)) { in has_add_preset()
118 static uint8_t has_set_properties(const void *cmd, uint16_t cmd_len, in has_set_properties() argument
Dbtp_mesh.c471 static uint8_t supported_commands(const void *cmd, uint16_t cmd_len, in supported_commands() argument
783 static uint8_t dfu_srv_apply(const void *cmd, uint16_t cmd_len, in dfu_srv_apply() argument
795 static uint8_t priv_beacon_get(const void *cmd, uint16_t cmd_len, in priv_beacon_get() argument
813 static uint8_t priv_beacon_set(const void *cmd, uint16_t cmd_len, in priv_beacon_set() argument
832 static uint8_t priv_gatt_proxy_get(const void *cmd, uint16_t cmd_len, in priv_gatt_proxy_get() argument
850 static uint8_t priv_gatt_proxy_set(const void *cmd, uint16_t cmd_len, in priv_gatt_proxy_set() argument
869 static uint8_t priv_node_id_get(const void *cmd, uint16_t cmd_len, in priv_node_id_get() argument
889 static uint8_t priv_node_id_set(const void *cmd, uint16_t cmd_len, in priv_node_id_set() argument
908 static uint8_t proxy_private_identity_enable(const void *cmd, uint16_t cmd_len, in proxy_private_identity_enable() argument
933 static uint8_t od_priv_proxy_get(const void *cmd, uint16_t cmd_len, in od_priv_proxy_get() argument
[all …]
Dbtp_aics.c37 static uint8_t aics_supported_commands(const void *cmd, uint16_t cmd_len, void *rsp, in aics_supported_commands() argument
152 static uint8_t aics_set_gain(const void *cmd, uint16_t cmd_len, void *rsp, uint16_t *rsp_len) in aics_set_gain() argument
173 static uint8_t aics_unmute(const void *cmd, uint16_t cmd_len, void *rsp, uint16_t *rsp_len) in aics_unmute() argument
194 static uint8_t aics_mute(const void *cmd, uint16_t cmd_len, void *rsp, uint16_t *rsp_len) in aics_mute() argument
215 static uint8_t aics_state_get(const void *cmd, uint16_t cmd_len, void *rsp, uint16_t *rsp_len) in aics_state_get() argument
236 static uint8_t aics_type_get(const void *cmd, uint16_t cmd_len, void *rsp, uint16_t *rsp_len) in aics_type_get() argument
257 static uint8_t aics_status_get(const void *cmd, uint16_t cmd_len, void *rsp, uint16_t *rsp_len) in aics_status_get() argument
278 static uint8_t aics_gain_setting_prop_get(const void *cmd, uint16_t cmd_len, void *rsp, in aics_gain_setting_prop_get() argument
300 static uint8_t aics_man_gain_set(const void *cmd, uint16_t cmd_len, void *rsp, uint16_t *rsp_len) in aics_man_gain_set() argument
321 static uint8_t aics_auto_gain_set(const void *cmd, uint16_t cmd_len, void *rsp, uint16_t *rsp_len) in aics_auto_gain_set() argument
[all …]
Dbtp_gatt.c220 static uint8_t supported_commands(const void *cmd, uint16_t cmd_len, in supported_commands() argument
288 static uint8_t add_service(const void *cmd, uint16_t cmd_len, in add_service() argument
297 if ((cmd_len < sizeof(*cp)) || in add_service()
298 (cmd_len != sizeof(*cp) + cp->uuid_length)) { in add_service()
493 static uint8_t add_characteristic(const void *cmd, uint16_t cmd_len, in add_characteristic() argument
501 if ((cmd_len < sizeof(*cp)) || in add_characteristic()
502 (cmd_len != sizeof(*cp) + cp->uuid_length)) { in add_characteristic()
682 static uint8_t add_descriptor(const void *cmd, uint16_t cmd_len, in add_descriptor() argument
691 if ((cmd_len < sizeof(*cp)) || in add_descriptor()
692 (cmd_len != sizeof(*cp) + cp->uuid_length)) { in add_descriptor()
[all …]
Dbtp_vcp.c67 static uint8_t vcs_supported_commands(const void *cmd, uint16_t cmd_len, in vcs_supported_commands() argument
85 static uint8_t set_volume(const void *cmd, uint16_t cmd_len, in set_volume() argument
99 static uint8_t vol_up(const void *cmd, uint16_t cmd_len, in vol_up() argument
111 static uint8_t vol_down(const void *cmd, uint16_t cmd_len, in vol_down() argument
123 static uint8_t mute(const void *cmd, uint16_t cmd_len, in mute() argument
135 static uint8_t unmute(const void *cmd, uint16_t cmd_len, in unmute() argument
197 static uint8_t vocs_supported_commands(const void *cmd, uint16_t cmd_len, in vocs_supported_commands() argument
318 static uint8_t vocs_audio_desc(const void *cmd, uint16_t cmd_len, in vocs_audio_desc() argument
324 if (cmd_len < sizeof(*cp) || in vocs_audio_desc()
325 cmd_len != sizeof(*cp) + cp->desc_len) { in vocs_audio_desc()
[all …]
Dbtp_csis.c21 static uint8_t csis_supported_commands(const void *cmd, uint16_t cmd_len, in csis_supported_commands() argument
36 static uint8_t csis_set_member_lock(const void *cmd, uint16_t cmd_len, in csis_set_member_lock() argument
49 static uint8_t csis_get_member_rsi(const void *cmd, uint16_t cmd_len, in csis_get_member_rsi() argument
Dbtp_gap.c220 static uint8_t supported_commands(const void *cmd, uint16_t cmd_len, in supported_commands() argument
266 static uint8_t controller_index_list(const void *cmd, uint16_t cmd_len, in controller_index_list() argument
279 static uint8_t controller_info(const void *cmd, uint16_t cmd_len, in controller_info() argument
416 static uint8_t get_oob_sc_local_data(const void *cmd, uint16_t cmd_len, in get_oob_sc_local_data() argument
430 static uint8_t set_oob_sc_remote_data(const void *cmd, uint16_t cmd_len, in set_oob_sc_remote_data() argument
450 static uint8_t set_connectable(const void *cmd, uint16_t cmd_len, in set_connectable() argument
516 static uint8_t set_discoverable(const void *cmd, uint16_t cmd_len, in set_discoverable() argument
547 static uint8_t set_bondable(const void *cmd, uint16_t cmd_len, in set_bondable() argument
628 static uint8_t start_advertising(const void *cmd, uint16_t cmd_len, argument
648 if ((cmd_len < sizeof(*cp)) ||
[all …]
Dbtp_ccp.c16 static uint8_t ccp_supported_commands(const void *cmd, uint16_t cmd_len, in ccp_supported_commands() argument
215 static uint8_t ccp_discover_tbs(const void *cmd, uint16_t cmd_len, in ccp_discover_tbs() argument
231 static uint8_t ccp_accept_call(const void *cmd, uint16_t cmd_len, in ccp_accept_call() argument
247 static uint8_t ccp_terminate_call(const void *cmd, uint16_t cmd_len, in ccp_terminate_call() argument
264 static uint8_t ccp_originate_call(const void *cmd, uint16_t cmd_len, in ccp_originate_call() argument
280 static uint8_t ccp_read_call_state(const void *cmd, uint16_t cmd_len, in ccp_read_call_state() argument
Dbtp_micp.c160 static uint8_t micp_supported_commands(const void *cmd, uint16_t cmd_len, void *rsp, in micp_supported_commands() argument
176 static uint8_t micp_discover(const void *cmd, uint16_t cmd_len, void *rsp, uint16_t *rsp_len) in micp_discover() argument
197 static uint8_t micp_mute_read(const void *cmd, uint16_t cmd_len, void *rsp, uint16_t *rsp_len) in micp_mute_read() argument
211 static uint8_t micp_mute(const void *cmd, uint16_t cmd_len, void *rsp, uint16_t *rsp_len) in micp_mute() argument
273 static uint8_t mics_supported_commands(const void *cmd, uint16_t cmd_len, void *rsp, in mics_supported_commands() argument
290 static uint8_t mics_mute_disable(const void *cmd, uint16_t cmd_len, void *rsp, uint16_t *rsp_len) in mics_mute_disable() argument
304 static uint8_t mics_mute_read(const void *cmd, uint16_t cmd_len, void *rsp, uint16_t *rsp_len) in mics_mute_read() argument
318 static uint8_t mics_mute(const void *cmd, uint16_t cmd_len, void *rsp, uint16_t *rsp_len) in mics_mute() argument
332 static uint8_t mics_unmute(const void *cmd, uint16_t cmd_len, void *rsp, uint16_t *rsp_len) in mics_unmute() argument
Dbtp_l2cap.c194 static uint8_t connect(const void *cmd, uint16_t cmd_len, in connect() argument
264 static uint8_t disconnect(const void *cmd, uint16_t cmd_len, in disconnect() argument
286 static uint8_t reconfigure(const void *cmd, uint16_t cmd_len, in reconfigure() argument
295 if (cmd_len < sizeof(*cp) || in reconfigure()
296 cmd_len != sizeof(*cp) + cp->num) { in reconfigure()
335 static uint8_t disconnect_eatt_chans(const void *cmd, uint16_t cmd_len, in disconnect_eatt_chans() argument
362 static uint8_t send_data(const void *cmd, uint16_t cmd_len, in send_data() argument
371 if (cmd_len < sizeof(*cp) || in send_data()
372 cmd_len != sizeof(*cp) + sys_le16_to_cpu(cp->data_len)) { in send_data()
462 static uint8_t listen(const void *cmd, uint16_t cmd_len, in listen() argument
[all …]
Dbtp_core.c33 static uint8_t supported_commands(const void *cmd, uint16_t cmd_len, in supported_commands() argument
48 static uint8_t supported_services(const void *cmd, uint16_t cmd_len, in supported_services() argument
98 static uint8_t register_service(const void *cmd, uint16_t cmd_len, in register_service() argument
200 static uint8_t unregister_service(const void *cmd, uint16_t cmd_len, in unregister_service() argument
Dbtp_bap.c1008 static uint8_t bap_discover(const void *cmd, uint16_t cmd_len, in bap_discover() argument
1131 static uint8_t bap_send(const void *cmd, uint16_t cmd_len, in bap_send() argument
1225 static uint8_t broadcast_source_setup(const void *cmd, uint16_t cmd_len, in broadcast_source_setup() argument
1318 static uint8_t broadcast_source_release(const void *cmd, uint16_t cmd_len, in broadcast_source_release() argument
1338 static uint8_t broadcast_adv_start(const void *cmd, uint16_t cmd_len, in broadcast_adv_start() argument
1365 static uint8_t broadcast_adv_stop(const void *cmd, uint16_t cmd_len, in broadcast_adv_stop() argument
1385 static uint8_t broadcast_source_start(const void *cmd, uint16_t cmd_len, in broadcast_source_start() argument
1407 static uint8_t broadcast_source_stop(const void *cmd, uint16_t cmd_len, in broadcast_source_stop() argument
1599 static uint8_t broadcast_sink_setup(const void *cmd, uint16_t cmd_len, in broadcast_sink_setup() argument
1624 static uint8_t broadcast_sink_release(const void *cmd, uint16_t cmd_len, in broadcast_sink_release() argument
[all …]
/Zephyr-Core-3.5.0/subsys/shell/
Dshell_wildcard.c17 uint16_t cmd_len = z_shell_strlen(cmd); in command_add() local
22 if ((*buff_len + cmd_len + 1) > CONFIG_SHELL_CMD_BUFF_SIZE) { in command_add()
35 memmove(completion_addr + cmd_len + 1, completion_addr, shift + 1); in command_add()
36 memcpy(completion_addr, cmd, cmd_len); in command_add()
38 completion_addr[cmd_len] = ' '; in command_add()
40 *buff_len += cmd_len + 1; /* + 1 for space */ in command_add()
Dshell.c211 uint16_t cmd_len = z_shell_strlen(sh->ctx->cmd_buff); in history_handle() local
213 if (cmd_len) { in history_handle()
360 uint16_t cmd_len; in autocomplete() local
368 cmd_len = z_shell_strlen(match->syntax); in autocomplete()
374 if (cmd_len == arg_len) { in autocomplete()
381 if (cmd_len != arg_len) { in autocomplete()
384 cmd_len - arg_len); in autocomplete()
1615 uint16_t cmd_len = z_shell_strlen(cmd); in shell_execute_cmd() local
1622 if (cmd_len > (CONFIG_SHELL_CMD_BUFF_SIZE - 1)) { in shell_execute_cmd()
1638 sh->ctx->cmd_buff_len = cmd_len; in shell_execute_cmd()
[all …]
/Zephyr-Core-3.5.0/subsys/bluetooth/host/
Dat.c95 int cmd_len = 0; in get_cmd_value() local
99 while (cmd_len < buf->len && at->pos != at->buf_max_len) { in get_cmd_value()
102 cmd_len++; in get_cmd_value()
106 cmd_len++; in get_cmd_value()
113 net_buf_pull(buf, cmd_len); in get_cmd_value()
125 int cmd_len = 0; in get_response_string() local
129 while (cmd_len < buf->len && at->pos != at->buf_max_len) { in get_response_string()
132 cmd_len++; in get_response_string()
136 cmd_len++; in get_response_string()
143 net_buf_pull(buf, cmd_len); in get_response_string()
/Zephyr-Core-3.5.0/samples/subsys/shell/shell_module/src/
Ddynamic_cmd.c32 uint16_t cmd_len; in cmd_dynamic_add() local
42 cmd_len = strlen(argv[1]); in cmd_dynamic_add()
44 if (cmd_len >= MAX_CMD_LEN) { in cmd_dynamic_add()
49 for (idx = 0U; idx < cmd_len; idx++) { in cmd_dynamic_add()
/Zephyr-Core-3.5.0/drivers/modem/
Dmodem_cmd_handler.h30 .cmd_len = (uint16_t)sizeof(cmd_)-1, \
40 .cmd_len = (uint16_t)sizeof(cmd_)-1, \
52 .cmd_len = (uint16_t)sizeof(cmd_)-1, \
79 uint16_t cmd_len; member
Dmodem_cmd_handler.c121 begin = cmd->cmd_len; in parse_params()
122 end = cmd->cmd_len; in parse_params()
189 return begin - cmd->cmd_len; in parse_params()
214 data->rx_buf = net_buf_skip(data->rx_buf, cmd->cmd_len + parsed_len); in process_cmd()
218 ret = cmd->func(data, match_len - cmd->cmd_len - parsed_len, in process_cmd()
222 net_buf_push(data->rx_buf, cmd->cmd_len + parsed_len); in process_cmd()
250 data->cmds[j][i].cmd_len) == 0) { in find_cmd_match()
347 ret = cmd->func(data, cmd->cmd_len, NULL, 0); in cmd_handler_process_rx_buf()
Dwncm14a2a.c80 .cmd_len = (uint16_t)sizeof(cmd_)-1, \
162 uint16_t cmd_len; member
1127 handlers[i].cmd_len) == 0) { in wncm14a2a_rx()
1134 handlers[i].cmd_len); in wncm14a2a_rx()
Dhl7800.c220 .cmd = cmd_, .cmd_len = (uint16_t)sizeof(cmd_) - 1, \
533 uint16_t cmd_len; member
4627 handlers[i].cmd_len); in hl7800_rx()
4631 handlers[i].cmd_len); in hl7800_rx()
4641 handlers[i].cmd_len); in hl7800_rx()
/Zephyr-Core-3.5.0/drivers/eeprom/
Deeprom_at2x.c423 size_t cmd_len = 1 + config->addr_width / 8; in eeprom_at25_read() local
429 .len = cmd_len, in eeprom_at25_read()
438 .len = cmd_len, in eeprom_at25_read()
511 size_t cmd_len = 1 + config->addr_width / 8; in eeprom_at25_write() local
517 .len = cmd_len, in eeprom_at25_write()
/Zephyr-Core-3.5.0/tests/bluetooth/tester/src/btp/
Dbttester.h48 uint8_t (*func)(const void *cmd, uint16_t cmd_len,