Home
last modified time | relevance | path

Searched refs:error (Results 1 – 25 of 1401) sorted by relevance

12345678910>>...57

/Zephyr-4.2.1/modules/openthread/
Dopenthread.c158 static void ot_joiner_start_handler(otError error, void *context) in ot_joiner_start_handler() argument
162 if (error != OT_ERROR_NONE) { in ot_joiner_start_handler()
163 LOG_ERR("Join failed [%d]", error); in ot_joiner_start_handler()
166 error = otThreadSetEnabled(openthread_instance, true); in ot_joiner_start_handler()
167 if (error != OT_ERROR_NONE) { in ot_joiner_start_handler()
168 LOG_ERR("Failed to start the OpenThread network [%d]", error); in ot_joiner_start_handler()
193 otError error = OT_ERROR_NONE; in ot_setup_default_configuration() local
195 error = otThreadSetNetworkName(openthread_instance, OT_NETWORK_NAME); in ot_setup_default_configuration()
196 if (error != OT_ERROR_NONE) { in ot_setup_default_configuration()
197 LOG_ERR("Failed to set %s [%d]", "network name", error); in ot_setup_default_configuration()
[all …]
/Zephyr-4.2.1/modules/cmsis_6/
Dcmsis_core_m.h27 #error "NUM_IRQ_PRIO_BITS and __NVIC_PRIO_BITS are not set to the same value"
31 #error "__MPU_PRESENT and CONFIG_CPU_HAS_ARM_MPU are not set to the same value"
35 #error "__FPU_PRESENT and CONFIG_CPU_HAS_FPU are not set to the same value"
44 #error "__VTOR_PRESENT and CONFIG_CPU_CORTEX_M_HAS_VTOR are not set to the same value."
52 #error "__DSP_PRESENT and CONFIG_ARMV8_M_DSP are not set to the same value"
56 #error "__ICACHE_PRESENT and CONFIG_CPU_HAS_ICACHE are not set to the same value"
60 #error "__DCACHE_PRESENT and CONFIG_CPU_HAS_DCACHE are not set to the same value"
64 #error "__MVE_PRESENT and CONFIG_ARMV8_1_M_MVEI are not set to the same value"
68 #error "__SAUREGION_PRESENT and CONFIG_CPU_HAS_ARM_SAU are not set to the same value"
/Zephyr-4.2.1/drivers/haptics/
Dhaptics_shell.c24 int error; in cmd_start() local
32 error = haptics_start_output(dev); in cmd_start()
33 if (error < 0) { in cmd_start()
34 shell_error(sh, "failed to start haptic output (%d)", error); in cmd_start()
37 return error; in cmd_start()
43 int error; in cmd_stop() local
51 error = haptics_stop_output(dev); in cmd_stop()
52 if (error < 0) { in cmd_stop()
53 shell_error(sh, "Failed to stop haptic output (%d)", error); in cmd_stop()
56 return error; in cmd_stop()
/Zephyr-4.2.1/modules/openthread/platform/
Dudp.c74 otError error = OT_ERROR_NONE; in otPlatUdpSocket() local
78 VerifyOrExit(aUdpSocket != NULL, error = OT_ERROR_INVALID_ARGS); in otPlatUdpSocket()
80 error = OT_ERROR_INVALID_STATE); in otPlatUdpSocket()
83 VerifyOrExit(sock >= 0, error = OT_ERROR_FAILED); in otPlatUdpSocket()
90 error = OT_ERROR_FAILED); in otPlatUdpSocket()
106 error = OT_ERROR_FAILED); in otPlatUdpSocket()
109 return error; in otPlatUdpSocket()
114 otError error = OT_ERROR_NONE; in otPlatUdpClose() local
117 error = OT_ERROR_INVALID_ARGS); in otPlatUdpClose()
121 VerifyOrExit(zsock_close(sock) == 0, error = OT_ERROR_FAILED); in otPlatUdpClose()
[all …]
Ddiag.c95 static void log_error_returned(otError error, const char *name) in log_error_returned() argument
97 if (error != OT_ERROR_NONE) { in log_error_returned()
99 "%s failed (%d)", name, error); in log_error_returned()
212 otError error; in otPlatDiagGpioSet() local
214 error = gpio_get_spec(aGpio, &spec); in otPlatDiagGpioSet()
216 if (error != OT_ERROR_NONE) { in otPlatDiagGpioSet()
217 return error; in otPlatDiagGpioSet()
236 otError error; in otPlatDiagGpioGet() local
239 error = gpio_get_spec(aGpio, &spec); in otPlatDiagGpioGet()
241 if (error != OT_ERROR_NONE) { in otPlatDiagGpioGet()
[all …]
Dinfra_if.c65 otError error = OT_ERROR_NONE; in otPlatInfraIfSendIcmp6Nd() local
77 VerifyOrExit(!net_ipv6_is_addr_unspecified(src), error = OT_ERROR_FAILED); in otPlatInfraIfSendIcmp6Nd()
81 VerifyOrExit(pkt, error = OT_ERROR_FAILED); in otPlatInfraIfSendIcmp6Nd()
85 VerifyOrExit(net_ipv6_create(pkt, src, &dst) == 0, error = OT_ERROR_FAILED); in otPlatInfraIfSendIcmp6Nd()
86 VerifyOrExit(net_pkt_write(pkt, aBuffer, aBufferLength) == 0, error = OT_ERROR_FAILED); in otPlatInfraIfSendIcmp6Nd()
89 VerifyOrExit(net_ipv6_finalize(pkt, NET_IPPROTO_ICMPV6) == 0, error = OT_ERROR_FAILED); in otPlatInfraIfSendIcmp6Nd()
90 VerifyOrExit(net_send_data(pkt) == 0, error = OT_ERROR_FAILED); in otPlatInfraIfSendIcmp6Nd()
93 if (error == OT_ERROR_FAILED) { in otPlatInfraIfSendIcmp6Nd()
100 return error; in otPlatInfraIfSendIcmp6Nd()
146 otError error = OT_ERROR_NONE; in infra_if_init() local
[all …]
Dmdns_socket.c82 otError error = OT_ERROR_NONE; in set_listening_enable() local
85 SuccessOrExit(error = mdns_socket_init_v6(ail_iface_idx)); in set_listening_enable()
87 SuccessOrExit(error = mdns_socket_init_v4(ail_iface_idx)); in set_listening_enable()
94 SuccessOrExit(error = mdns_socket_deinit()); in set_listening_enable()
97 return error; in set_listening_enable()
103 otError error = OT_ERROR_NONE; in mdns_socket_init_v6() local
117 VerifyOrExit(mdns_sock_v6 >= 0, error = OT_ERROR_FAILED); in mdns_socket_init_v6()
120 error = OT_ERROR_FAILED); in mdns_socket_init_v6()
124 error = OT_ERROR_FAILED); in mdns_socket_init_v6()
127 error = OT_ERROR_FAILED); in mdns_socket_init_v6()
[all …]
Dble.c118 otError error = OT_ERROR_NONE; in ot_plat_ble_queue_msg() local
137 error = OT_ERROR_NO_BUFS; in ot_plat_ble_queue_msg()
142 return error; in ot_plat_ble_queue_msg()
192 otError error = ot_plat_ble_queue_msg(buf, len, 0); in on_receive() local
194 if (error != OT_ERROR_NONE) { in on_receive()
195 LOG_WRN("Error queuing message: %s", otThreadErrorToString(error)); in on_receive()
214 otError error = OT_ERROR_NONE; in on_cccd_changed() local
221 error = ot_plat_ble_queue_msg(NULL, PLAT_BLE_MSG_CONNECT, 0); in on_cccd_changed()
222 if (error != OT_ERROR_NONE) { in on_cccd_changed()
223 LOG_WRN("Error queuing message: %s", otThreadErrorToString(error)); in on_cccd_changed()
[all …]
Dborder_agent.c47 otError error = OT_ERROR_NONE; in border_agent_init() local
57 == OT_ERROR_NONE, error = OT_ERROR_FAILED); in border_agent_init()
70 return error; in border_agent_init()
130 otError error = OT_ERROR_NONE; in generate_ephemeral_key() local
138 error = OT_ERROR_FAILED); in generate_ephemeral_key()
144 error = OT_ERROR_FAILED); in generate_ephemeral_key()
148 return error; in generate_ephemeral_key()
183 otError error = OT_ERROR_NONE; in border_agent_enable_epskc_service() local
185 VerifyOrExit(border_agent_is_init, error = OT_ERROR_INVALID_STATE); in border_agent_enable_epskc_service()
192 VerifyOrExit((generate_ephemeral_key() == OT_ERROR_NONE), error = OT_ERROR_FAILED); in border_agent_enable_epskc_service()
[all …]
Dhdlc_interface.cpp70 otError error = OT_ERROR_NONE; in Init() local
94 error = OT_ERROR_FAILED; in Init()
98 return error; in Init()
125 otError error = OT_ERROR_NONE; in SendFrame() local
129 error = OT_ERROR_FAILED; in SendFrame()
135 SuccessOrExit(error = mHdlcEncoder.BeginFrame()); in SendFrame()
136 SuccessOrExit(error = mHdlcEncoder.Encode(aFrame, aLength)); in SendFrame()
137 SuccessOrExit(error = mHdlcEncoder.EndFrame()); in SendFrame()
139 SuccessOrExit(error = Write(mEncoderBuffer.GetFrame(), mEncoderBuffer.GetLength())); in SendFrame()
145 if (error != OT_ERROR_NONE) { in SendFrame()
[all …]
/Zephyr-4.2.1/subsys/debug/coredump/
Dcoredump_backend_logging.c27 static int error; variable
32 error = 0; in coredump_logging_backend_start()
44 if (error != 0) { in coredump_logging_backend_end()
58 error = -EINVAL; in coredump_logging_backend_buffer_output()
64 error = -EINVAL; in coredump_logging_backend_buffer_output()
70 error = -EINVAL; in coredump_logging_backend_buffer_output()
93 ret = error; in coredump_logging_backend_query()
111 error = 0; in coredump_logging_backend_cmd()
/Zephyr-4.2.1/drivers/adc/
Dadc_nrfx_saadc.c309 int error = dmm_buffer_in_prepare( local
312 if (error != 0) {
313 LOG_ERR("DMM buffer allocation failed err=%d", error);
318 error = nrfx_saadc_buffer_set(samples_buffer, m_data.active_channel_cnt);
319 if (error != 0) {
320 LOG_ERR("Failed to set buffer: %d", error);
504 int error; local
537 error = get_resolution(sequence, &resolution);
538 if (error) {
539 return error;
[all …]
Dadc_nrfx_adc.c155 int error; in start_read() local
212 error = check_buffer_size(sequence, active_channels); in start_read()
213 if (error) { in start_read()
214 return error; in start_read()
222 error = adc_context_wait_for_completion(&m_data.ctx); in start_read()
223 return error; in start_read()
230 int error; in adc_nrfx_read() local
233 error = start_read(dev, sequence); in adc_nrfx_read()
234 adc_context_release(&m_data.ctx, error); in adc_nrfx_read()
236 return error; in adc_nrfx_read()
[all …]
/Zephyr-4.2.1/lib/libc/minimal/include/
Dlimits.h19 #error "unexpected __CHAR_BIT__ value"
54 #error "unexpected __SIZE_MAX__ value"
60 #error "unexpected __SIZEOF_SHORT__ value"
66 #error "unexpected __SIZEOF_INT__ value"
74 #error "unexpected __SIZEOF_LONG__ value"
80 #error "unexpected __SIZEOF_LONG_LONG__ value"
/Zephyr-4.2.1/tests/lib/c_lib/common/src/
Dtest_sqrt.c91 float exponent, resf, square, root_squared, error; in ZTEST() local
119 error = (square - root_squared) / in ZTEST()
121 if (error < 0.0f) { in ZTEST()
122 error = -error; in ZTEST()
135 error = 0.0f; in ZTEST()
137 zassert_true(error < MAX_FLOAT_ERROR_PERCENT, in ZTEST()
153 double resd, error, square, root_squared, exponent; in ZTEST() local
181 error = (square - root_squared) / in ZTEST()
183 if (error < 0.0) { in ZTEST()
184 error = -error; in ZTEST()
[all …]
/Zephyr-4.2.1/tests/boards/native_sim/rtc/src/
Dmain.c54 int64_t diff, error; in ZTEST() local
92 error = diff / 1000 - WAIT_TIME / acc_ratio; in ZTEST()
102 zassert_true(llabs(error) < TOLERANCE, in ZTEST()
111 error = diff - WAIT_TIME * 1000; in ZTEST()
117 error / 1000.0); in ZTEST()
119 error /= 1000; in ZTEST()
120 zassert_true(llabs(error) < TOLERANCE, in ZTEST()
150 int64_t diff, error; in ZTEST() local
158 error = diff - offset; in ZTEST()
159 zassert_true(llabs(error) < TOLERANCE, in ZTEST()
/Zephyr-4.2.1/subsys/net/lib/http/
Dhttp_server_ws.c63 goto error; in handle_http1_to_websocket_upgrade()
70 goto error; in handle_http1_to_websocket_upgrade()
78 goto error; in handle_http1_to_websocket_upgrade()
84 goto error; in handle_http1_to_websocket_upgrade()
90 goto error; in handle_http1_to_websocket_upgrade()
110 goto error; in handle_http1_to_websocket_upgrade()
124 goto error; in handle_http1_to_websocket_upgrade()
130 error: in handle_http1_to_websocket_upgrade()
/Zephyr-4.2.1/samples/net/sockets/http_server/src/static_web_resources/
Dmain.js17 } catch (error) {
18 console.error(error.message);
31 } catch (error) {
32 console.error(error.message);
/Zephyr-4.2.1/include/zephyr/toolchain/
Dxcc_missing_defs.h18 #error "unexpected __CHAR_BIT__ value"
25 #error "unexpected __SHRT_WIDTH__ value"
32 #error "unexpected __INT_MAX__ value"
39 #error "unexpected __LONG_MAX__ value"
46 #error "unexpected __LONG_LONG_MAX__ value"
56 #error "unexpected __INTMAX_MAX__ value"
/Zephyr-4.2.1/tests/benchmarks/latency_measure/src/
Dutils.h74 #define PRINT_F(summary, cycles, nsec, error, notes) \ argument
79 if (!error) { \
89 #define PRINT_STATS(summary, value, error, notes) \ argument
92 error, notes)
94 #define PRINT_STATS_AVG(summary, value, counter, error, notes) \ argument
97 error, notes);
/Zephyr-4.2.1/subsys/net/lib/mqtt/
Dmqtt.c87 goto error; in client_connect()
94 goto error; in client_connect()
106 error: in client_connect()
272 goto error; in mqtt_connect()
277 error: in mqtt_connect()
318 goto error; in mqtt_publish()
323 goto error; in mqtt_publish()
338 error: in mqtt_publish()
365 goto error; in mqtt_publish_qos1_ack()
370 goto error; in mqtt_publish_qos1_ack()
[all …]
/Zephyr-4.2.1/scripts/utils/
Dtls_creds_installer.py70 logging.error("Failed to store chunk in the device: unknown error")
72 logging.error(f"Failed to store chunk in the device: {output}")
75 logger.error(
86 logger.error(
114 logger.error("Invalid output format from device, skipping hash check.")
138 logger.error("Device did not respond to 'cred' command.")
141 logger.error("Device does not support 'cred' command.")
142 logger.error("Hint: Add 'CONFIG_TLS_CREDENTIALS_SHELL=y' to your prj.conf file.")
160 logger.error('Serial interface not initialized')
178 logger.error(f"Error reading from serial interface: {e}")
[all …]
/Zephyr-4.2.1/tests/ztest/error_hook/
DREADME.txt1 Title: A common fatal error and assert fail handler
6 code writing for fatal and assert handler for error case testing. They can
13 When writing error testing case (or we call it negative test case), we might
16 identical code would be written. So we try to move the error handler definition
20 And when error happens, we sometimes need a special action to make our testing
22 error happened. This is why we add a hook on it, in order to achieve that goal.
28 (a) Usage for dealing with fatal error:
60 This test verifies if the common fatal error and assert fail handler works.
61 If the expected error was caught, the test case will pass.
69 the (expected) fatal error.
[all …]
/Zephyr-4.2.1/subsys/usb/host/
Dusbh_device.c235 goto error; in usbh_device_interface_set()
243 goto error; in usbh_device_interface_set()
250 goto error; in usbh_device_interface_set()
257 goto error; in usbh_device_interface_set()
264 goto error; in usbh_device_interface_set()
269 error: in usbh_device_interface_set()
360 goto error; in usbh_device_set_configuration()
370 goto error; in usbh_device_set_configuration()
378 goto error; in usbh_device_set_configuration()
384 goto error; in usbh_device_set_configuration()
[all …]
/Zephyr-4.2.1/include/zephyr/dfu/
Dmcuboot.h39 #error "definition incompatible"
48 #error "definition incompatible"
57 #error "definition incompatible"
66 #error "definition incompatible"
75 #error "definition incompatible"

12345678910>>...57