/Zephyr-latest/subsys/net/lib/mqtt/ |
D | mqtt.c | 52 int err_code; in client_disconnect() local 54 err_code = mqtt_transport_disconnect(client); in client_disconnect() 55 if (err_code < 0) { in client_disconnect() 75 int err_code; in client_connect() local 78 err_code = mqtt_transport_connect(client); in client_connect() 79 if (err_code < 0) { in client_connect() 80 return err_code; in client_connect() 86 err_code = connect_request_encode(client, &packet); in client_connect() 87 if (err_code < 0) { in client_connect() 92 err_code = mqtt_transport_write(client, packet.cur, in client_connect() [all …]
|
D | mqtt_rx.c | 24 int err_code = 0; in mqtt_handle_packet() local 36 err_code = connect_ack_decode(client, buf, &evt.param.connack); in mqtt_handle_packet() 37 if (err_code == 0) { in mqtt_handle_packet() 46 err_code = -ECONNREFUSED; in mqtt_handle_packet() 51 evt.result = err_code; in mqtt_handle_packet() 60 err_code = publish_decode(type_and_flags, var_length, buf, in mqtt_handle_packet() 62 evt.result = err_code; in mqtt_handle_packet() 78 err_code = publish_ack_decode(buf, &evt.param.puback); in mqtt_handle_packet() 79 evt.result = err_code; in mqtt_handle_packet() 86 err_code = publish_receive_decode(buf, &evt.param.pubrec); in mqtt_handle_packet() [all …]
|
D | mqtt_encoder.c | 256 int err_code; in mqtt_message_id_only_enc() local 268 err_code = pack_uint16(message_id, buf); in mqtt_message_id_only_enc() 269 if (err_code != 0) { in mqtt_message_id_only_enc() 270 return err_code; in mqtt_message_id_only_enc() 284 int err_code; in connect_request_encode() local 300 err_code = pack_utf8_str(mqtt_proto_desc, buf); in connect_request_encode() 301 if (err_code != 0) { in connect_request_encode() 302 return err_code; in connect_request_encode() 306 err_code = pack_uint8(client->protocol_version, buf); in connect_request_encode() 307 if (err_code != 0) { in connect_request_encode() [all …]
|
D | mqtt_decoder.c | 93 int err_code; in unpack_utf8_str() local 97 err_code = unpack_uint16(buf, &utf8_strlen); in unpack_utf8_str() 98 if (err_code != 0) { in unpack_utf8_str() 99 return err_code; in unpack_utf8_str() 201 int err_code; in fixed_header_decode() local 203 err_code = unpack_uint8(buf, type_and_flags); in fixed_header_decode() 204 if (err_code != 0) { in fixed_header_decode() 205 return err_code; in fixed_header_decode() 214 int err_code; in connect_ack_decode() local 217 err_code = unpack_uint8(buf, &flags); in connect_ack_decode() [all …]
|
/Zephyr-latest/drivers/watchdog/ |
D | wdt_nrfx.c | 31 nrfx_err_t err_code; in wdt_nrf_setup() local 49 err_code = nrfx_wdt_reconfigure(&config->wdt, &wdt_config); in wdt_nrf_setup() 51 if (err_code != NRFX_SUCCESS) { in wdt_nrf_setup() 66 nrfx_err_t err_code; in wdt_nrf_disable() local 69 err_code = nrfx_wdt_stop(&config->wdt); in wdt_nrf_disable() 71 if (err_code != NRFX_SUCCESS) { in wdt_nrf_disable() 96 nrfx_err_t err_code; in wdt_nrf_install_timeout() local 129 err_code = nrfx_wdt_channel_alloc(&config->wdt, in wdt_nrf_install_timeout() 132 if (err_code == NRFX_ERROR_NO_MEM) { in wdt_nrf_install_timeout() 207 nrfx_err_t err_code; \ [all …]
|
/Zephyr-latest/drivers/timer/ |
D | nrf_grtc_timer.c | 168 nrfx_err_t err_code; in z_nrf_grtc_timer_chan_alloc() local 174 err_code = nrfx_grtc_channel_alloc(&chan); in z_nrf_grtc_timer_chan_alloc() 175 if (err_code != NRFX_SUCCESS) { in z_nrf_grtc_timer_chan_alloc() 185 nrfx_err_t err_code = nrfx_grtc_channel_free(chan); in z_nrf_grtc_timer_chan_free() local 187 if (err_code == NRFX_SUCCESS) { in z_nrf_grtc_timer_chan_free() 373 nrfx_err_t err_code; in z_nrf_grtc_wakeup_prepare() local 395 err_code = nrfx_grtc_channel_alloc(&systemoff_channel); in z_nrf_grtc_wakeup_prepare() 396 if (err_code != NRFX_SUCCESS) { in z_nrf_grtc_wakeup_prepare() 470 nrfx_err_t err_code; in sys_clock_driver_init() local 475 err_code = nrfx_grtc_init(0); in sys_clock_driver_init() [all …]
|
/Zephyr-latest/drivers/i2c/ |
D | i2c_ene_kb1200.c | 27 volatile int err_code; member 59 data->err_code = 0; in i2c_kb1200_isr() 61 data->err_code = config->fsmbm->FSMBMSTS & FSMBM_STS_MASK; in i2c_kb1200_isr() 66 data->err_code = config->fsmbm->FSMBMSTS & FSMBM_STS_MASK; in i2c_kb1200_isr() 96 data->err_code = 0; in i2c_kb1200_isr() 98 data->err_code = config->fsmbm->FSMBMSTS & FSMBM_STS_MASK; in i2c_kb1200_isr() 103 data->err_code = config->fsmbm->FSMBMSTS & FSMBM_STS_MASK; in i2c_kb1200_isr() 129 data->err_code = 0; in i2c_kb1200_poll_write() 152 if (data->err_code != 0) { in i2c_kb1200_poll_write() 155 return data->err_code; in i2c_kb1200_poll_write() [all …]
|
/Zephyr-latest/subsys/net/lib/tftp/ |
D | tftp_client.c | 145 static inline int send_err(int sock, struct tftpc *client, int err_code, char *err_msg) in send_err() argument 149 LOG_DBG("Client sending error code: %d", err_code); in send_err() 153 sys_put_be16(err_code, client->tftp_buf + 2); in send_err()
|
/Zephyr-latest/samples/bluetooth/hci_uart_async/src/ |
D | hci_uart_async.c | 147 const uint8_t err_code = 0; in send_hw_error() local 149 sizeof(struct bt_hci_evt_hardware_error), err_code}; in send_hw_error()
|
/Zephyr-latest/drivers/spi/ |
D | spi_nrfx_spim.c | 362 nrfx_err_t err_code; in anomaly_58_workaround_init() local 367 err_code = nrfx_ppi_channel_alloc(&dev_data->ppi_ch); in anomaly_58_workaround_init() 368 if (err_code != NRFX_SUCCESS) { in anomaly_58_workaround_init() 373 err_code = nrfx_gpiote_channel_alloc(&gpiote, &dev_data->gpiote_ch); in anomaly_58_workaround_init() 374 if (err_code != NRFX_SUCCESS) { in anomaly_58_workaround_init()
|
/Zephyr-latest/drivers/usb/udc/ |
D | udc_nrf.c | 261 nrf_usbd_common_ep_status_t err_code; in udc_event_xfer_out() local 274 err_code = nrf_usbd_common_ep_status_get(ep, &len); in udc_event_xfer_out() 275 if (err_code != NRF_USBD_COMMON_EP_OK) { in udc_event_xfer_out() 276 LOG_ERR("OUT transfer failed %d", err_code); in udc_event_xfer_out()
|
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/ |
D | ull_llcp_common.c | 1077 uint8_t err_code = 0; local 1080 err_code = BT_HCI_ERR_UNSUPP_LL_PARAM_VAL; 1088 err_code = BT_HCI_ERR_INVALID_LL_PARAM; 1093 err_code = BT_HCI_ERR_UNSUPP_LL_PARAM_VAL; 1096 if (!err_code) { 1100 llcp_pdu_encode_reject_ext_ind(pdu, PDU_DATA_LLCTRL_TYPE_CTE_REQ, err_code);
|
/Zephyr-latest/drivers/usb/device/ |
D | usb_dc_nrfx.c | 913 nrf_usbd_common_ep_status_t err_code; in usbd_event_transfer_ctrl() local 919 err_code = nrf_usbd_common_ep_status_get( in usbd_event_transfer_ctrl() 922 if (err_code != NRF_USBD_COMMON_EP_OK) { in usbd_event_transfer_ctrl() 924 err_code); in usbd_event_transfer_ctrl()
|
/Zephyr-latest/subsys/bluetooth/controller/include/ |
D | ll.h | 254 uint8_t ll_start_enc_req_send(uint16_t handle, uint8_t err_code,
|
/Zephyr-latest/drivers/serial/ |
D | uart_stm32.c | 1129 static inline void async_evt_rx_err(struct uart_stm32_data *data, int err_code) in async_evt_rx_err() argument 1131 LOG_DBG("rx error: %d", err_code); in async_evt_rx_err() 1135 .data.rx_stop.reason = err_code, in async_evt_rx_err()
|