/Zephyr-latest/drivers/wifi/simplelink/ |
D | simplelink_sockets.c | 251 int retval = 0; in simplelink_socket() local 259 retval = slcb_SetErrno(-err); in simplelink_socket() 267 retval = slcb_SetErrno(-err); in simplelink_socket() 275 retval = slcb_SetErrno(-err); in simplelink_socket() 286 retval = sl_SetSockOpt(sd, SL_SOL_SOCKET, in simplelink_socket() 289 if (retval < 0) { in simplelink_socket() 290 retval = slcb_SetErrno(EPROTONOSUPPORT); in simplelink_socket() 297 retval = sd; in simplelink_socket() 299 if (retval < 0) { in simplelink_socket() 300 retval = slcb_SetErrno(getErrno(retval)); in simplelink_socket() [all …]
|
D | simplelink_support.c | 91 int32_t retval = -1; in configure_simplelink() local 116 retval = sl_Stop(SL_STOP_TIMEOUT); in configure_simplelink() 117 ASSERT_ON_ERROR(retval, DEVICE_ERROR); in configure_simplelink() 129 retval = sl_WlanPolicySet(SL_WLAN_POLICY_CONNECTION, in configure_simplelink() 132 ASSERT_ON_ERROR(retval, WLAN_ERROR); in configure_simplelink() 135 retval = sl_WlanProvisioning(SL_WLAN_PROVISIONING_CMD_STOP, 0xFF, 0, in configure_simplelink() 137 ASSERT_ON_ERROR(retval, WLAN_ERROR); in configure_simplelink() 140 retval = sl_WlanProfileDel(0xFF); in configure_simplelink() 141 ASSERT_ON_ERROR(retval, WLAN_ERROR); in configure_simplelink() 182 retval = sl_NetCfgSet(SL_NETCFG_IPV4_STA_ADDR_MODE, in configure_simplelink() [all …]
|
/Zephyr-latest/drivers/sensor/ti/tmag5273/ |
D | tmag5273.c | 121 int retval; in tmag5273_check_device_status() local 128 retval = i2c_reg_read_byte_dt(&drv_cfg->i2c, TMAG5273_REG_CONV_STATUS, device_status); in tmag5273_check_device_status() 129 if (retval < 0) { in tmag5273_check_device_status() 130 LOG_ERR("error reading CONV_STATUS %d", retval); in tmag5273_check_device_status() 131 return retval; in tmag5273_check_device_status() 140 retval = i2c_reg_read_byte_dt(&drv_cfg->i2c, TMAG5273_REG_DEVICE_STATUS, device_status); in tmag5273_check_device_status() 141 if (retval < 0) { in tmag5273_check_device_status() 142 LOG_ERR("error reading DEVICE_STATUS %d", retval); in tmag5273_check_device_status() 143 return retval; in tmag5273_check_device_status() 176 int retval; in tmag5273_dev_int_trigger() local [all …]
|
/Zephyr-latest/drivers/ethernet/ |
D | phy_gecko.c | 57 int retval; in mdio_bus_send() local 71 retval = mdio_bus_wait(eth); in mdio_bus_send() 72 if (retval < 0) { in mdio_bus_send() 73 return retval; in mdio_bus_send() 85 int retval; in phy_read() local 87 retval = mdio_bus_send(eth, phy_addr, reg_addr, 1, 0); in phy_read() 88 if (retval < 0) { in phy_read() 89 return retval; in phy_read() 113 int retval; in phy_soft_reset() local 116 retval = phy_write(phy, MII_BMCR, MII_BMCR_RESET); in phy_soft_reset() [all …]
|
/Zephyr-latest/subsys/portability/cmsis_rtos_v1/ |
D | cmsis_msgq.c | 35 int retval; in osMessagePut() local 42 retval = k_msgq_put(queue_def->msgq, (void *)&info, K_NO_WAIT); in osMessagePut() 44 retval = k_msgq_put(queue_def->msgq, (void *)&info, K_FOREVER); in osMessagePut() 46 retval = k_msgq_put(queue_def->msgq, (void *)&info, in osMessagePut() 50 if (retval == 0) { in osMessagePut() 52 } else if (retval == -EAGAIN) { in osMessagePut() 67 int retval; in osMessageGet() local 75 retval = k_msgq_get(queue_def->msgq, &info, K_NO_WAIT); in osMessageGet() 77 retval = k_msgq_get(queue_def->msgq, &info, K_FOREVER); in osMessageGet() 79 retval = k_msgq_get(queue_def->msgq, &info, K_MSEC(millisec)); in osMessageGet() [all …]
|
D | cmsis_mailq.c | 35 int retval; in osMailAlloc() local 42 retval = k_mem_slab_alloc( in osMailAlloc() 46 retval = k_mem_slab_alloc( in osMailAlloc() 50 retval = k_mem_slab_alloc( in osMailAlloc() 55 if (retval == 0) { in osMailAlloc() 69 int retval; in osMailCAlloc() local 76 retval = k_mem_slab_alloc( in osMailCAlloc() 80 retval = k_mem_slab_alloc( in osMailCAlloc() 84 retval = k_mem_slab_alloc( in osMailCAlloc() 89 if (retval == 0) { in osMailCAlloc() [all …]
|
D | cmsis_signal.c | 73 int retval, key; in osSignalWait() local 97 retval = k_poll(thread_def->poll_event, 1, K_NO_WAIT); in osSignalWait() 100 retval = k_poll(thread_def->poll_event, 1, K_FOREVER); in osSignalWait() 103 retval = k_poll(thread_def->poll_event, 1, in osSignalWait() 108 switch (retval) { in osSignalWait()
|
/Zephyr-latest/drivers/sensor/silabs/si7006/ |
D | si7006.c | 43 int retval; in si7006_get_humidity() local 46 retval = i2c_burst_read_dt(&config->i2c, SI7006_MEAS_REL_HUMIDITY_MASTER_MODE, in si7006_get_humidity() 49 if (retval == 0) { in si7006_get_humidity() 52 LOG_ERR("read register err: %d", retval); in si7006_get_humidity() 55 return retval; in si7006_get_humidity() 72 int retval; in si7006_get_temperature() local 74 retval = i2c_burst_read_dt(&config->i2c, config->read_temp_cmd, in si7006_get_temperature() 77 if (retval == 0) { in si7006_get_temperature() 80 LOG_ERR("read register err: %d", retval); in si7006_get_temperature() 83 return retval; in si7006_get_temperature() [all …]
|
/Zephyr-latest/drivers/adc/ |
D | adc_shell.c | 165 int retval = 0; in cmd_adc_ch_id() local 178 retval = adc_channel_setup(adc->dev, &adc->channel_config); in cmd_adc_ch_id() 179 LOG_DBG("Channel setup returned %i", retval); in cmd_adc_ch_id() 181 return retval; in cmd_adc_ch_id() 188 int retval = 0; in cmd_adc_ch_diff() local 205 retval = adc_channel_setup(adc->dev, &adc->channel_config); in cmd_adc_ch_diff() 206 LOG_DBG("Channel setup returned %i", retval); in cmd_adc_ch_diff() 208 return retval; in cmd_adc_ch_diff() 216 int retval = 0; in cmd_adc_ch_neg() local 229 retval = adc_channel_setup(adc->dev, &adc->channel_config); in cmd_adc_ch_neg() [all …]
|
/Zephyr-latest/tests/lib/onoff/src/ |
D | main.c | 112 int retval; member 120 tsp->retval = 0; in reset_transit_state() 134 TC_PRINT("%s notify %d\n", tsp->tag, tsp->retval); in run_transit() 135 notify(srv, tsp->retval); in run_transit() 141 TC_PRINT("%s settle %d %p\n", tsp->tag, tsp->retval, tsp->notify); in notify() 142 tsp->notify(tsp->srv, tsp->retval); in notify() 260 start_state.retval = -1; in setup_error() 265 check_result(start_state.retval, in setup_error() 386 start_state.retval = 16; in ZTEST() 387 stop_state.retval = 23; in ZTEST() [all …]
|
/Zephyr-latest/subsys/bindesc/ |
D | bindesc_read.c | 59 int retval = 0; in get_entry() local 75 retval = -ENOMEM; in get_entry() 91 return retval; in get_entry() 135 int retval; in bindesc_open_flash() local 137 retval = flash_read(flash_device, offset, handle->buffer, sizeof(BINDESC_MAGIC)); in bindesc_open_flash() 138 if (retval) { in bindesc_open_flash() 139 LOG_ERR("Flash read error: %d", retval); in bindesc_open_flash() 160 int retval; in bindesc_foreach() local 165 retval = get_entry(handle, address, &entry); in bindesc_foreach() 166 if (retval == -EIO) { in bindesc_foreach() [all …]
|
/Zephyr-latest/subsys/dap/ |
D | cmsis_dap.c | 617 uint16_t retval; in dap_transfer() local 627 retval = dap_swdp_transfer(ctx, request, response); in dap_transfer() 633 retval = 1U; in dap_transfer() 636 return retval; in dap_transfer() 777 uint16_t retval; in dap_transferblock() local 790 retval = dap_swdp_transferblock(ctx, request, response); in dap_transferblock() 799 retval = 3U; in dap_transferblock() 802 return retval; in dap_transferblock() 827 uint16_t retval; in dap_writeabort() local 837 retval = dap_swdp_writeabort(ctx, request, response); in dap_writeabort() [all …]
|
/Zephyr-latest/subsys/portability/cmsis_rtos_v2/ |
D | msgq.c | 93 int retval; in osMessageQueuePut() local 107 retval = k_msgq_put(&msgq->z_msgq, (void *)msg_ptr, K_NO_WAIT); in osMessageQueuePut() 109 retval = k_msgq_put(&msgq->z_msgq, (void *)msg_ptr, K_FOREVER); in osMessageQueuePut() 111 retval = k_msgq_put(&msgq->z_msgq, (void *)msg_ptr, in osMessageQueuePut() 115 if (retval == 0) { in osMessageQueuePut() 117 } else if (retval == -EAGAIN) { in osMessageQueuePut() 131 int retval; in osMessageQueueGet() local 145 retval = k_msgq_get(&msgq->z_msgq, msg_ptr, K_NO_WAIT); in osMessageQueueGet() 147 retval = k_msgq_get(&msgq->z_msgq, msg_ptr, K_FOREVER); in osMessageQueueGet() 149 retval = k_msgq_get(&msgq->z_msgq, msg_ptr, in osMessageQueueGet() [all …]
|
D | thread_flags.c | 89 int retval, key; in osThreadFlagsWait() local 113 retval = k_poll(&tid->poll_event, 1, K_NO_WAIT); in osThreadFlagsWait() 116 retval = k_poll(&tid->poll_event, 1, K_FOREVER); in osThreadFlagsWait() 119 retval = k_poll(&tid->poll_event, 1, in osThreadFlagsWait() 124 switch (retval) { in osThreadFlagsWait()
|
/Zephyr-latest/scripts/west_commands/zspdx/ |
D | sbom.py | 84 retval = w.makeDocuments() 85 if not retval: 104 retval = writeSPDX(os.path.join(cfg.spdxDir, "sdk.spdx"), w.docSDK) 105 if not retval: 110 retval = writeSPDX(os.path.join(cfg.spdxDir, "app.spdx"), w.docApp) 111 if not retval: 117 if not retval: 123 if not retval: 129 if not retval:
|
/Zephyr-latest/drivers/sensor/silabs/si7055/ |
D | si7055.c | 40 int retval; in si7055_get_temperature() local 47 retval = i2c_burst_read_dt(&config->i2c, SI7055_MEAS_TEMP_MASTER_MODE, in si7055_get_temperature() 54 if (retval == 0) { in si7055_get_temperature() 69 return retval; in si7055_get_temperature() 80 int retval; in si7055_sample_fetch() local 82 retval = si7055_get_temperature(dev); in si7055_sample_fetch() 84 return retval; in si7055_sample_fetch()
|
/Zephyr-latest/drivers/serial/ |
D | uart_rpi_pico_pio.c | 150 int retval; in pio_uart_init() local 156 retval = pio_rpi_pico_allocate_sm(config->piodev, &tx_sm); in pio_uart_init() 157 retval |= pio_rpi_pico_allocate_sm(config->piodev, &rx_sm); in pio_uart_init() 159 if (retval < 0) { in pio_uart_init() 160 return retval; in pio_uart_init() 166 retval = pio_uart_tx_init(pio, tx_sm, config->tx_pin, sm_clock_div); in pio_uart_init() 167 if (retval < 0) { in pio_uart_init() 168 return retval; in pio_uart_init() 171 retval = pio_uart_rx_init(pio, rx_sm, config->rx_pin, sm_clock_div); in pio_uart_init() 172 if (retval < 0) { in pio_uart_init() [all …]
|
/Zephyr-latest/drivers/sensor/silabs/si7060/ |
D | si7060.c | 56 int retval; in si7060_sample_fetch() local 60 retval = si7060_reg_read(dev, SI7060_REG_TEMP_HIGH, &dspsigm); in si7060_sample_fetch() 61 retval += si7060_reg_read(dev, SI7060_REG_TEMP_LOW, &dspsigl); in si7060_sample_fetch() 63 if (retval == 0) { in si7060_sample_fetch() 70 LOG_DBG("Sample_fetch retval: %d", retval); in si7060_sample_fetch() 72 return retval; in si7060_sample_fetch()
|
/Zephyr-latest/drivers/misc/pio_rpi_pico/ |
D | pio_rpi_pico.c | 26 int retval; in pio_rpi_pico_allocate_sm() local 28 retval = pio_claim_unused_sm(config->pio, false); in pio_rpi_pico_allocate_sm() 29 if (retval < 0) { in pio_rpi_pico_allocate_sm() 33 *sm = (size_t)retval; in pio_rpi_pico_allocate_sm()
|
/Zephyr-latest/drivers/spi/ |
D | spi_sam0.c | 414 int retval; in spi_sam0_dma_rx_load() local 439 retval = dma_config(cfg->dma_dev, cfg->rx_dma_channel, in spi_sam0_dma_rx_load() 441 if (retval != 0) { in spi_sam0_dma_rx_load() 442 return retval; in spi_sam0_dma_rx_load() 455 int retval; in spi_sam0_dma_tx_load() local 478 retval = dma_config(cfg->dma_dev, cfg->tx_dma_channel, in spi_sam0_dma_tx_load() 481 if (retval != 0) { in spi_sam0_dma_tx_load() 482 return retval; in spi_sam0_dma_tx_load() 516 int retval; in spi_sam0_dma_advance_buffers() local 524 retval = spi_sam0_dma_rx_load(dev, data->ctx.rx_buf, in spi_sam0_dma_advance_buffers() [all …]
|
/Zephyr-latest/drivers/sensor/st/qdec_stm32/ |
D | qdec_stm32.c | 82 int retval; in qdec_stm32_initialize() local 86 retval = pinctrl_apply_state(dev_cfg->pin_config, PINCTRL_STATE_DEFAULT); in qdec_stm32_initialize() 87 if (retval < 0) { in qdec_stm32_initialize() 88 return retval; in qdec_stm32_initialize() 96 retval = clock_control_on(DEVICE_DT_GET(STM32_CLOCK_CONTROL_NODE), in qdec_stm32_initialize() 98 if (retval < 0) { in qdec_stm32_initialize() 100 return retval; in qdec_stm32_initialize()
|
/Zephyr-latest/tests/boards/nrf/dmm/src/ |
D | main.c | 85 int retval; in dmm_check_output_buffer() local 88 retval = dmm_buffer_out_prepare(dtr->mem_reg, data, size, &buf); in dmm_check_output_buffer() 89 zassert_ok(retval); in dmm_check_output_buffer() 107 retval = dmm_buffer_out_release(dtr->mem_reg, buf); in dmm_check_output_buffer() 108 zassert_ok(retval); in dmm_check_output_buffer() 115 int retval; in dmm_check_input_buffer() local 120 retval = dmm_buffer_in_prepare(dtr->mem_reg, data, size, &buf); in dmm_check_input_buffer() 121 zassert_ok(retval); in dmm_check_input_buffer() 147 retval = dmm_buffer_in_release(dtr->mem_reg, data, size, buf); in dmm_check_input_buffer() 148 zassert_ok(retval); in dmm_check_input_buffer()
|
/Zephyr-latest/drivers/i2c/ |
D | i2c_sam0.c | 267 int retval; in i2c_sam0_dma_write_start() local 297 retval = dma_config(cfg->dma_dev, cfg->dma_channel, &dma_cfg); in i2c_sam0_dma_write_start() 298 if (retval != 0) { in i2c_sam0_dma_write_start() 300 dev->name, retval); in i2c_sam0_dma_write_start() 304 retval = dma_start(cfg->dma_dev, cfg->dma_channel); in i2c_sam0_dma_write_start() 305 if (retval != 0) { in i2c_sam0_dma_write_start() 307 dev->name, retval); in i2c_sam0_dma_write_start() 359 int retval; in i2c_sam0_dma_read_start() local 390 retval = dma_config(cfg->dma_dev, cfg->dma_channel, &dma_cfg); in i2c_sam0_dma_read_start() 391 if (retval != 0) { in i2c_sam0_dma_read_start() [all …]
|
/Zephyr-latest/drivers/ieee802154/ |
D | ieee802154_mcr20a.c | 291 bool retval; in mcr20a_timer_set() local 304 retval = write_burst_t1cmp(dev, (uint8_t *)&next); in mcr20a_timer_set() 307 retval = write_burst_t2cmp(dev, (uint8_t *)&next); in mcr20a_timer_set() 310 retval = write_burst_t3cmp(dev, (uint8_t *)&next); in mcr20a_timer_set() 313 retval = write_burst_t4cmp(dev, (uint8_t *)&next); in mcr20a_timer_set() 319 if (!retval) { in mcr20a_timer_set() 620 bool retval = false; in irqsts1_event() local 632 retval = true; in irqsts1_event() 641 retval = true; in irqsts1_event() 657 retval = true; in irqsts1_event() [all …]
|
/Zephyr-latest/drivers/mdio/ |
D | mdio_dwcxgmac.c | 92 int retval; in mdio_transfer() local 98 retval = mdio_busy_wait((ioaddr + CORE_MDIO_SINGLE_COMMAND_CONTROL_DATA_OFST), in mdio_transfer() 100 if (retval) { in mdio_transfer() 102 return retval; in mdio_transfer() 127 retval = mdio_busy_wait(reg_addr, CORE_MDIO_SINGLE_COMMAND_CONTROL_DATA_SBUSY_SET_MSK); in mdio_transfer() 129 if (retval) { in mdio_transfer() 140 return retval; in mdio_transfer()
|