Home
last modified time | relevance | path

Searched refs:sh (Results 1 – 25 of 133) sorted by relevance

123456

/Zephyr-Core-2.7.6/subsys/net/l2/ethernet/
Dbridge_shell.c14 static int get_idx(const struct shell *sh, char *index_str) in get_idx() argument
21 shell_warn(sh, "Invalid index %s\n", index_str); in get_idx()
27 static int cmd_bridge_addif(const struct shell *sh, size_t argc, char *argv[]) in cmd_bridge_addif() argument
33 br_idx = get_idx(sh, argv[1]); in cmd_bridge_addif()
37 if_idx = get_idx(sh, argv[2]); in cmd_bridge_addif()
43 shell_warn(sh, "Bridge %d not found\n", br_idx); in cmd_bridge_addif()
48 shell_warn(sh, "Interface %d not found\n", if_idx); in cmd_bridge_addif()
52 shell_warn(sh, "Interface %d is not Ethernet\n", if_idx); in cmd_bridge_addif()
56 shell_warn(sh, "Interface %d cannot do promiscuous mode\n", if_idx); in cmd_bridge_addif()
63 shell_error(sh, "error: eth_bridge_iface_add() returned %d\n", ret); in cmd_bridge_addif()
[all …]
/Zephyr-Core-2.7.6/subsys/bluetooth/shell/
Dvcs_client.c325 static int cmd_vcs_client_discover(const struct shell *sh, size_t argc, in cmd_vcs_client_discover() argument
331 ctx_shell = sh; in cmd_vcs_client_discover()
336 shell_print(sh, "CB register failed: %d", result); in cmd_vcs_client_discover()
341 shell_error(sh, "Not connected"); in cmd_vcs_client_discover()
347 shell_print(sh, "Fail: %d", result); in cmd_vcs_client_discover()
353 static int cmd_vcs_client_state_get(const struct shell *sh, size_t argc, in cmd_vcs_client_state_get() argument
359 shell_error(sh, "Not connected"); in cmd_vcs_client_state_get()
365 shell_print(sh, "Fail: %d", result); in cmd_vcs_client_state_get()
371 static int cmd_vcs_client_flags_get(const struct shell *sh, size_t argc, in cmd_vcs_client_flags_get() argument
377 shell_error(sh, "Not connected"); in cmd_vcs_client_flags_get()
[all …]
Dmics.c104 static int cmd_mics_param(const struct shell *sh, size_t argc, char **argv) in cmd_mics_param() argument
111 ctx_shell = sh; in cmd_mics_param()
134 shell_error(sh, "MICS register failed: %d", result); in cmd_mics_param()
138 shell_print(sh, "MICS initialized", result); in cmd_mics_param()
142 shell_error(sh, "MICS get failed: %d", result); in cmd_mics_param()
148 static int cmd_mics_mute_get(const struct shell *sh, size_t argc, char **argv) in cmd_mics_mute_get() argument
153 shell_error(sh, "Fail: %d", result); in cmd_mics_mute_get()
159 static int cmd_mics_mute(const struct shell *sh, size_t argc, char **argv) in cmd_mics_mute() argument
164 shell_error(sh, "Fail: %d", result); in cmd_mics_mute()
170 static int cmd_mics_unmute(const struct shell *sh, size_t argc, char **argv) in cmd_mics_unmute() argument
[all …]
Dvcs.c160 static int cmd_vcs_init(const struct shell *sh, size_t argc, char **argv) in cmd_vcs_init() argument
168 ctx_shell = sh; in cmd_vcs_init()
204 shell_print(sh, "Fail: %d", result); in cmd_vcs_init()
210 shell_error(sh, "Failed to get included services: %d", result); in cmd_vcs_init()
217 static int cmd_vcs_volume_step(const struct shell *sh, size_t argc, in cmd_vcs_volume_step() argument
224 shell_error(sh, "Step size out of range; 1-255, was %u", in cmd_vcs_volume_step()
231 shell_print(sh, "Fail: %d", result); in cmd_vcs_volume_step()
237 static int cmd_vcs_state_get(const struct shell *sh, size_t argc, in cmd_vcs_state_get() argument
243 shell_print(sh, "Fail: %d", result); in cmd_vcs_state_get()
249 static int cmd_vcs_flags_get(const struct shell *sh, size_t argc, in cmd_vcs_flags_get() argument
[all …]
Dticker.c37 int cmd_ticker_info(const struct shell *sh, size_t argc, char *argv[]) in cmd_ticker_info() argument
74 shell_print(sh, "Query done (0x%02x, err= %u).", in cmd_ticker_info()
83 shell_print(sh, "Retry again, tickers too " in cmd_ticker_info()
92 shell_print(sh, "Query reset, %u retries " in cmd_ticker_info()
103 shell_print(sh, "Tickers: %u.", tickers_count); in cmd_ticker_info()
104 shell_print(sh, "Tick: %u (%uus).", ticks_current, in cmd_ticker_info()
111 shell_print(sh, "---------------------"); in cmd_ticker_info()
112 shell_print(sh, " id offset offset"); in cmd_ticker_info()
113 shell_print(sh, " (tick) (us)"); in cmd_ticker_info()
114 shell_print(sh, "---------------------"); in cmd_ticker_info()
[all …]
Dgatt.c91 static int cmd_exchange_mtu(const struct shell *sh, in cmd_exchange_mtu() argument
97 shell_print(sh, "Not connected"); in cmd_exchange_mtu()
102 shell_print(sh, "MTU Exchange ongoing"); in cmd_exchange_mtu()
110 shell_print(sh, "Exchange failed (err %d)", err); in cmd_exchange_mtu()
112 shell_print(sh, "Exchange pending"); in cmd_exchange_mtu()
121 static void print_chrc_props(const struct shell *sh, uint8_t properties) in print_chrc_props() argument
123 shell_print(sh, "Properties: "); in print_chrc_props()
126 shell_print(sh, "[bcast]"); in print_chrc_props()
130 shell_print(sh, "[read]"); in print_chrc_props()
134 shell_print(sh, "[write]"); in print_chrc_props()
[all …]
Dmics_client.c203 static int cmd_mics_client_discover(const struct shell *sh, size_t argc, in cmd_mics_client_discover() argument
209 ctx_shell = sh; in cmd_mics_client_discover()
214 shell_print(sh, "Failed to register callbacks: %d", result); in cmd_mics_client_discover()
223 shell_print(sh, "Fail: %d", result); in cmd_mics_client_discover()
229 static int cmd_mics_client_mute_get(const struct shell *sh, size_t argc, in cmd_mics_client_mute_get() argument
241 shell_print(sh, "Fail: %d", result); in cmd_mics_client_mute_get()
247 static int cmd_mics_client_mute(const struct shell *sh, size_t argc, in cmd_mics_client_mute() argument
259 shell_print(sh, "Fail: %d", result); in cmd_mics_client_mute()
265 static int cmd_mics_client_unmute(const struct shell *sh, size_t argc, in cmd_mics_client_unmute() argument
277 shell_print(sh, "Fail: %d", result); in cmd_mics_client_unmute()
[all …]
Dbredr.c47 static int cmd_auth_pincode(const struct shell *sh, in cmd_auth_pincode() argument
62 shell_print(sh, "Not connected"); in cmd_auth_pincode()
67 shell_print(sh, "PIN code value invalid - enter max %u " in cmd_auth_pincode()
72 shell_print(sh, "PIN code \"%s\" applied", argv[1]); in cmd_auth_pincode()
79 static int cmd_connect(const struct shell *sh, size_t argc, char *argv[]) in cmd_connect() argument
87 shell_print(sh, "Invalid peer address (err %d)", err); in cmd_connect()
93 shell_print(sh, "Connection failed"); in cmd_connect()
96 shell_print(sh, "Connection pending"); in cmd_connect()
167 static int cmd_discovery(const struct shell *sh, size_t argc, char *argv[]) in cmd_discovery() argument
189 shell_print(sh, "Failed to start discovery"); in cmd_discovery()
[all …]
Diso.c99 static int cmd_listen(const struct shell *sh, size_t argc, char *argv[]) in cmd_listen() argument
114 shell_error(sh, "Invalid argument - use tx, rx or txrx"); in cmd_listen()
124 shell_error(sh, "Unable to register ISO cap (err %d)", in cmd_listen()
135 static int cmd_cig_create(const struct shell *sh, size_t argc, char *argv[]) in cmd_cig_create() argument
142 shell_error(sh, "Already created"); in cmd_cig_create()
221 shell_error(sh, "Unable to create CIG (err %d)", err); in cmd_cig_create()
225 shell_print(sh, "CIG created"); in cmd_cig_create()
230 static int cmd_cig_term(const struct shell *sh, size_t argc, char *argv[]) in cmd_cig_term() argument
235 shell_error(sh, "CIG not created"); in cmd_cig_term()
241 shell_error(sh, "Unable to terminate CIG (err %d)", err); in cmd_cig_term()
[all …]
Dbt.c224 static void print_le_oob(const struct shell *sh, struct bt_le_oob *oob) in print_le_oob() argument
235 shell_print(sh, "OOB data:"); in print_le_oob()
236 shell_print(sh, "%-29s %-32s %-32s", "addr", "random", "confirm"); in print_le_oob()
237 shell_print(sh, "%29s %32s %32s", addr, r, c); in print_le_oob()
583 static int cmd_init(const struct shell *sh, size_t argc, char *argv[]) in cmd_init() argument
588 ctx_shell = sh; in cmd_init()
598 shell_help(sh); in cmd_init()
606 shell_error(sh, "Bluetooth init failed (err %d)", in cmd_init()
619 static int cmd_settings_load(const struct shell *sh, size_t argc, in cmd_settings_load() argument
626 shell_error(sh, "Settings load failed (err %d)", err); in cmd_settings_load()
[all …]
Drfcomm.c146 static int cmd_register(const struct shell *sh, size_t argc, char *argv[]) in cmd_register() argument
151 shell_error(sh, "Already registered"); in cmd_register()
159 shell_error(sh, "Unable to register channel %x", ret); in cmd_register()
163 shell_print(sh, "RFCOMM channel %u registered", in cmd_register()
171 static int cmd_connect(const struct shell *sh, size_t argc, char *argv[]) in cmd_connect() argument
177 shell_error(sh, "Not connected"); in cmd_connect()
185 shell_error(sh, "Unable to connect to channel %d (err %u)", in cmd_connect()
188 shell_print(sh, "RFCOMM connection pending"); in cmd_connect()
194 static int cmd_send(const struct shell *sh, size_t argc, char *argv[]) in cmd_send() argument
212 shell_error(sh, "Unable to send: %d", -ret); in cmd_send()
[all …]
Dll.h16 int cmd_ll_addr_read(const struct shell *sh, size_t argc, char *argv[]);
18 int cmd_advx(const struct shell *sh, size_t argc, char *argv[]);
19 int cmd_scanx(const struct shell *sh, size_t argc, char *argv[]);
21 int cmd_test_tx(const struct shell *sh, size_t argc, char *argv[]);
22 int cmd_test_rx(const struct shell *sh, size_t argc, char *argv[]);
23 int cmd_test_end(const struct shell *sh, size_t argc, char *argv[]);
Dl2cap.c239 static int cmd_register(const struct shell *sh, size_t argc, char *argv[]) in cmd_register() argument
244 shell_error(sh, "Already registered"); in cmd_register()
267 shell_error(sh, "Unable to register psm"); in cmd_register()
271 shell_print(sh, "L2CAP psm %u sec_level %u registered", in cmd_register()
278 static int cmd_connect(const struct shell *sh, size_t argc, char *argv[]) in cmd_connect() argument
284 shell_error(sh, "Not connected"); in cmd_connect()
289 shell_error(sh, "Channel already in use"); in cmd_connect()
305 shell_error(sh, "Unable to connect to psm %u (err %d)", psm, in cmd_connect()
308 shell_print(sh, "L2CAP connection pending"); in cmd_connect()
314 static int cmd_disconnect(const struct shell *sh, size_t argc, char *argv[]) in cmd_disconnect() argument
[all …]
Dll.c27 int cmd_ll_addr_read(const struct shell *sh, size_t argc, char *argv[]) in cmd_ll_addr_read() argument
50 shell_print(sh, "Current %s address: %s", str_type, str_addr); in cmd_ll_addr_read()
58 int cmd_test_tx(const struct shell *sh, size_t argc, char *argv[]) in cmd_test_tx() argument
77 shell_print(sh, "test_tx..."); in cmd_test_tx()
82 int cmd_test_rx(const struct shell *sh, size_t argc, char *argv[]) in cmd_test_rx() argument
100 shell_print(sh, "test_rx..."); in cmd_test_rx()
105 int cmd_test_end(const struct shell *sh, size_t argc, char *argv[]) in cmd_test_end() argument
115 shell_print(sh, "num_rx= %u.", num_rx); in cmd_test_end()
143 int cmd_advx(const struct shell *sh, size_t argc, char *argv[]) in cmd_advx() argument
248 shell_print(sh, "adv param set..."); in cmd_advx()
[all …]
/Zephyr-Core-2.7.6/drivers/fpga/
Dfpga_shell.c13 static int parse_common_args(const struct shell *sh, char **argv, in parse_common_args() argument
18 shell_error(sh, "FPGA device %s not found", argv[1]); in parse_common_args()
24 static int cmd_on(const struct shell *sh, size_t argc, char **argv) in cmd_on() argument
29 err = parse_common_args(sh, argv, &dev); in cmd_on()
34 shell_print(sh, "%s: turning on", dev->name); in cmd_on()
38 shell_error(sh, "Error: %d", err); in cmd_on()
44 static int cmd_off(const struct shell *sh, size_t argc, char **argv) in cmd_off() argument
49 err = parse_common_args(sh, argv, &dev); in cmd_off()
54 shell_print(sh, "%s: turning off", dev->name); in cmd_off()
58 shell_error(sh, "Error: %d", err); in cmd_off()
[all …]
/Zephyr-Core-2.7.6/subsys/shell/modules/
Ddevmem_service.c29 static int set_bypass(const struct shell *sh, shell_bypass_cb_t bypass) in set_bypass() argument
34 shell_error(sh, "devmem load supports setting bypass on a single instance."); in set_bypass()
41 shell_print(sh, "Loading...\npress ctrl-x ctrl-q to escape"); in set_bypass()
45 shell_set_bypass(sh, bypass); in set_bypass()
50 static void bypass_cb(const struct shell *sh, uint8_t *recv, size_t len) in bypass_cb() argument
68 shell_print(sh, "Number of bytes read: %d", sum); in bypass_cb()
69 set_bypass(sh, NULL); in bypass_cb()
104 static int cmd_load(const struct shell *sh, size_t argc, char **argv) in cmd_load() argument
121 shell_print(sh, "Unknown option \"%s\"", arg); in cmd_load()
132 set_bypass(sh, bypass_cb); in cmd_load()
[all …]
/Zephyr-Core-2.7.6/drivers/mdio/
Dmdio_shell.c23 static int cmd_mdio_scan(const struct shell *sh, size_t argc, char **argv) in cmd_mdio_scan() argument
32 shell_error(sh, "MDIO: Device driver %s not found.", in cmd_mdio_scan()
44 shell_print(sh, in cmd_mdio_scan()
56 shell_print(sh, "Found MDIO device @ 0x%x", i); in cmd_mdio_scan()
62 shell_print(sh, "%u devices found on %s", cnt, MDIO_DEVICE); in cmd_mdio_scan()
68 static int cmd_mdio_write(const struct shell *sh, size_t argc, char **argv) in cmd_mdio_write() argument
77 shell_error(sh, "MDIO: Device driver %s not found.", in cmd_mdio_write()
90 shell_error(sh, "Failed to write to device: %s", MDIO_DEVICE); in cmd_mdio_write()
102 static int cmd_mdio_read(const struct shell *sh, size_t argc, char **argv) in cmd_mdio_read() argument
111 shell_error(sh, "MDIO: Device driver %s not found.", in cmd_mdio_read()
[all …]
/Zephyr-Core-2.7.6/modules/mbedtls/
Dshell.c11 static int cmd_mbedtls_heap_details(const struct shell *sh, size_t argc, in cmd_mbedtls_heap_details() argument
19 static int cmd_mbedtls_heap_max_reset(const struct shell *sh, size_t argc, in cmd_mbedtls_heap_max_reset() argument
27 static int cmd_mbedtls_heap(const struct shell *sh, size_t argc, char **argv) in cmd_mbedtls_heap() argument
35 shell_print(sh, "Maximum (peak): %zu bytes, %zu blocks", in cmd_mbedtls_heap()
37 shell_print(sh, "Current: %zu bytes, %zu blocks", in cmd_mbedtls_heap()
/Zephyr-Core-2.7.6/samples/subsys/shell/shell_module/src/
Dmain.c225 static int set_bypass(const struct shell *sh, shell_bypass_cb_t bypass) in set_bypass() argument
230 shell_error(sh, "Sample supports setting bypass on single instance."); in set_bypass()
237 shell_print(sh, "Bypass started, press ctrl-x ctrl-q to escape"); in set_bypass()
241 shell_set_bypass(sh, bypass); in set_bypass()
249 static void bypass_cb(const struct shell *sh, uint8_t *data, size_t len) in bypass_cb() argument
267 shell_print(sh, "Exit bypass"); in bypass_cb()
268 set_bypass(sh, NULL); in bypass_cb()
278 shell_fprintf(sh, SHELL_INFO, "%02x ", data[i]); in bypass_cb()
280 shell_fprintf(sh, SHELL_INFO, "| "); in bypass_cb()
283 shell_fprintf(sh, SHELL_INFO, "%c", data[i]); in bypass_cb()
[all …]
/Zephyr-Core-2.7.6/samples/net/sockets/tcp/
DREADME.rst19 ./autogen.sh
21 ./loop-slipcat.sh
36 . titan-install.sh
37 . titan-env.sh
39 . make.sh
/Zephyr-Core-2.7.6/tests/bluetooth/bsim_bt/
DREADME.txt4 The compile.sh and run_parallel.sh scripts are used by the CI system to build
10 WORK_DIR=${ZEPHYR_BASE}/bsim_bt_out tests/bluetooth/bsim_bt/compile.sh
11 …CH_PATH=tests/bluetooth/bsim_bt/bsim_test_app/tests_scripts tests/bluetooth/bsim_bt/run_parallel.sh
/Zephyr-Core-2.7.6/scripts/ci/
Dguideline_check.py6 import sh
56 commit = sh.git("diff", args.commits, **sh_special_args)
70 cocci = sh.coccicheck(
78 except sh.TimeoutException:
/Zephyr-Core-2.7.6/.buildkite/
Drun.sh62 source zephyr-env.sh
66 ./scripts/ci/run_ci.sh -c -b ${BUILDKITE_PULL_REQUEST_BASE_BRANCH} -r origin \
69 ./scripts/ci/run_ci.sh -c -b ${BUILDKITE_BRANCH} -r origin \
/Zephyr-Core-2.7.6/boards/arm/stm32l562e_dk/
DCMakeLists.txt11 #Execute post build script postbuild.sh
12 COMMAND ${CMAKE_BINARY_DIR}/tfm/postbuild.sh ${COMPILER_FULL_PATH}
/Zephyr-Core-2.7.6/boards/arm/nucleo_l552ze_q/
DCMakeLists.txt11 #Execute post build script postbuild.sh
12 COMMAND ${CMAKE_BINARY_DIR}/tfm/postbuild.sh ${COMPILER_FULL_PATH}

123456