/Zephyr-Core-3.5.0/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-Core-3.5.0/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-Core-3.5.0/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-Core-3.5.0/drivers/sensor/si7006/ |
D | si7006.c | 44 int retval; in si7006_get_humidity() local 47 retval = i2c_burst_read_dt(&config->i2c, in si7006_get_humidity() 51 if (retval == 0) { in si7006_get_humidity() 57 return retval; in si7006_get_humidity() 74 int retval; in si7006_get_old_temperature() local 76 retval = i2c_burst_read_dt(&config->i2c, SI7006_READ_OLD_TEMP, temp, in si7006_get_old_temperature() 79 if (retval == 0) { in si7006_get_old_temperature() 85 return retval; in si7006_get_old_temperature() 96 int retval; in si7006_sample_fetch() local 98 retval = si7006_get_humidity(dev); in si7006_sample_fetch() [all …]
|
/Zephyr-Core-3.5.0/drivers/adc/ |
D | adc_shell.c | 126 int retval = 0; in cmd_adc_ch_id() local 139 retval = adc_channel_setup(adc->dev, &adc->channel_config); in cmd_adc_ch_id() 140 LOG_DBG("Channel setup returned %i", retval); in cmd_adc_ch_id() 142 return retval; in cmd_adc_ch_id() 149 int retval = 0; in cmd_adc_ch_diff() local 166 retval = adc_channel_setup(adc->dev, &adc->channel_config); in cmd_adc_ch_diff() 167 LOG_DBG("Channel setup returned %i", retval); in cmd_adc_ch_diff() 169 return retval; in cmd_adc_ch_diff() 177 int retval = 0; in cmd_adc_ch_neg() local 190 retval = adc_channel_setup(adc->dev, &adc->channel_config); in cmd_adc_ch_neg() [all …]
|
/Zephyr-Core-3.5.0/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-Core-3.5.0/subsys/portability/cmsis_rtos_v2/ |
D | msgq.c | 88 int retval; in osMessageQueuePut() local 102 retval = k_msgq_put(&msgq->z_msgq, (void *)msg_ptr, K_NO_WAIT); in osMessageQueuePut() 104 retval = k_msgq_put(&msgq->z_msgq, (void *)msg_ptr, K_FOREVER); in osMessageQueuePut() 106 retval = k_msgq_put(&msgq->z_msgq, (void *)msg_ptr, in osMessageQueuePut() 110 if (retval == 0) { in osMessageQueuePut() 112 } else if (retval == -EAGAIN) { in osMessageQueuePut() 126 int retval; in osMessageQueueGet() local 140 retval = k_msgq_get(&msgq->z_msgq, msg_ptr, K_NO_WAIT); in osMessageQueueGet() 142 retval = k_msgq_get(&msgq->z_msgq, msg_ptr, K_FOREVER); in osMessageQueueGet() 144 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-Core-3.5.0/drivers/sensor/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-Core-3.5.0/scripts/west_commands/zspdx/ |
D | sbom.py | 81 retval = w.makeDocuments() 82 if not retval: 101 retval = writeSPDX(os.path.join(cfg.spdxDir, "sdk.spdx"), w.docSDK) 102 if not retval: 107 retval = writeSPDX(os.path.join(cfg.spdxDir, "app.spdx"), w.docApp) 108 if not retval: 114 if not retval: 120 if not retval:
|
/Zephyr-Core-3.5.0/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 …]
|
D | uart_sam0.c | 393 int retval; in uart_sam0_configure() local 479 retval = uart_sam0_set_baudrate(usart, new_cfg->baudrate, in uart_sam0_configure() 481 if (retval != 0) { in uart_sam0_configure() 482 return retval; in uart_sam0_configure() 507 int retval; in uart_sam0_init() local 547 retval = pinctrl_apply_state(cfg->pcfg, PINCTRL_STATE_DEFAULT); in uart_sam0_init() 548 if (retval < 0) { in uart_sam0_init() 549 return retval; in uart_sam0_init() 562 retval = uart_sam0_set_baudrate(usart, cfg->baudrate, in uart_sam0_init() 564 if (retval != 0) { in uart_sam0_init() [all …]
|
/Zephyr-Core-3.5.0/drivers/misc/pio_rpi_pico/ |
D | pio_rpi_pico.c | 21 int retval; in pio_rpi_pico_allocate_sm() local 23 retval = pio_claim_unused_sm(config->pio, false); in pio_rpi_pico_allocate_sm() 24 if (retval < 0) { in pio_rpi_pico_allocate_sm() 28 *sm = (size_t)retval; in pio_rpi_pico_allocate_sm()
|
/Zephyr-Core-3.5.0/arch/xtensa/core/ |
D | fatal.c | 27 unsigned int retval; \ 30 : [retval] "=r" (retval) \ 32 retval; \
|
/Zephyr-Core-3.5.0/drivers/sensor/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-Core-3.5.0/drivers/sensor/qdec_stm32/ |
D | qdec_stm32.c | 81 int retval; in qdec_stm32_initialize() local 85 retval = pinctrl_apply_state(dev_cfg->pin_config, PINCTRL_STATE_DEFAULT); in qdec_stm32_initialize() 86 if (retval < 0) { in qdec_stm32_initialize() 87 return retval; in qdec_stm32_initialize() 95 retval = clock_control_on(DEVICE_DT_GET(STM32_CLOCK_CONTROL_NODE), in qdec_stm32_initialize() 97 if (retval < 0) { in qdec_stm32_initialize() 99 return retval; in qdec_stm32_initialize()
|
/Zephyr-Core-3.5.0/drivers/spi/ |
D | spi_sam0.c | 413 int retval; in spi_sam0_dma_rx_load() local 438 retval = dma_config(cfg->dma_dev, cfg->rx_dma_channel, in spi_sam0_dma_rx_load() 440 if (retval != 0) { in spi_sam0_dma_rx_load() 441 return retval; in spi_sam0_dma_rx_load() 454 int retval; in spi_sam0_dma_tx_load() local 477 retval = dma_config(cfg->dma_dev, cfg->tx_dma_channel, in spi_sam0_dma_tx_load() 480 if (retval != 0) { in spi_sam0_dma_tx_load() 481 return retval; in spi_sam0_dma_tx_load() 515 int retval; in spi_sam0_dma_advance_buffers() local 523 retval = spi_sam0_dma_rx_load(dev, data->ctx.rx_buf, in spi_sam0_dma_advance_buffers() [all …]
|
/Zephyr-Core-3.5.0/drivers/i2c/ |
D | i2c_sam0.c | 261 int retval; in i2c_sam0_dma_write_start() local 291 retval = dma_config(cfg->dma_dev, cfg->dma_channel, &dma_cfg); in i2c_sam0_dma_write_start() 292 if (retval != 0) { in i2c_sam0_dma_write_start() 294 dev->name, retval); in i2c_sam0_dma_write_start() 298 retval = dma_start(cfg->dma_dev, cfg->dma_channel); in i2c_sam0_dma_write_start() 299 if (retval != 0) { in i2c_sam0_dma_write_start() 301 dev->name, retval); in i2c_sam0_dma_write_start() 353 int retval; in i2c_sam0_dma_read_start() local 384 retval = dma_config(cfg->dma_dev, cfg->dma_channel, &dma_cfg); in i2c_sam0_dma_read_start() 385 if (retval != 0) { in i2c_sam0_dma_read_start() [all …]
|
/Zephyr-Core-3.5.0/drivers/dac/ |
D | dac_sam0.c | 67 int retval; in dac_sam0_init() local 73 retval = pinctrl_apply_state(cfg->pcfg, PINCTRL_STATE_DEFAULT); in dac_sam0_init() 74 if (retval < 0) { in dac_sam0_init() 75 return retval; in dac_sam0_init()
|
/Zephyr-Core-3.5.0/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() 623 bool retval = false; in irqsts1_event() local 635 retval = true; in irqsts1_event() 644 retval = true; in irqsts1_event() 660 retval = true; in irqsts1_event() [all …]
|
/Zephyr-Core-3.5.0/drivers/watchdog/ |
D | wdt_nxp_fs26.c | 156 int retval; in fs26_spi_transceive() local 187 retval = spi_transceive_dt(spi, &spi_tx_set, &spi_rx_set); in fs26_spi_transceive() 188 if (retval) { in fs26_spi_transceive() 200 retval = -EIO; in fs26_spi_transceive() 210 return retval; in fs26_spi_transceive() 281 int retval = 0; in fs26_wd_refresh() local 289 retval = -EIO; in fs26_wd_refresh() 297 retval = -EIO; in fs26_wd_refresh() 305 retval = -EIO; in fs26_wd_refresh() 311 retval = -EINVAL; in fs26_wd_refresh() [all …]
|
/Zephyr-Core-3.5.0/drivers/sensor/qdec_sam/ |
D | qdec_sam.c | 99 int retval; in qdec_sam_initialize() local 102 retval = pinctrl_apply_state(dev_cfg->pcfg, PINCTRL_STATE_DEFAULT); in qdec_sam_initialize() 103 if (retval < 0) { in qdec_sam_initialize() 104 return retval; in qdec_sam_initialize()
|