Home
last modified time | relevance | path

Searched refs:retval (Results 1 – 25 of 82) sorted by relevance

1234

/Zephyr-Core-3.6.0/drivers/wifi/simplelink/
Dsimplelink_sockets.c251 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 …]
Dsimplelink_support.c91 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.6.0/drivers/sensor/tmag5273/
Dtmag5273.c121 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-Core-3.6.0/drivers/ethernet/
Dphy_gecko.c57 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.6.0/subsys/portability/cmsis_rtos_v1/
Dcmsis_msgq.c35 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 …]
Dcmsis_mailq.c35 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 …]
Dcmsis_signal.c73 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.6.0/drivers/sensor/si7006/
Dsi7006.c44 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.6.0/drivers/adc/
Dadc_shell.c163 int retval = 0; in cmd_adc_ch_id() local
176 retval = adc_channel_setup(adc->dev, &adc->channel_config); in cmd_adc_ch_id()
177 LOG_DBG("Channel setup returned %i", retval); in cmd_adc_ch_id()
179 return retval; in cmd_adc_ch_id()
186 int retval = 0; in cmd_adc_ch_diff() local
203 retval = adc_channel_setup(adc->dev, &adc->channel_config); in cmd_adc_ch_diff()
204 LOG_DBG("Channel setup returned %i", retval); in cmd_adc_ch_diff()
206 return retval; in cmd_adc_ch_diff()
214 int retval = 0; in cmd_adc_ch_neg() local
227 retval = adc_channel_setup(adc->dev, &adc->channel_config); in cmd_adc_ch_neg()
[all …]
/Zephyr-Core-3.6.0/tests/lib/onoff/src/
Dmain.c112 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.6.0/subsys/portability/cmsis_rtos_v2/
Dmsgq.c93 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 …]
Dthread_flags.c89 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.6.0/drivers/sensor/si7055/
Dsi7055.c40 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.6.0/scripts/west_commands/zspdx/
Dsbom.py81 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.6.0/drivers/serial/
Duart_rpi_pico_pio.c150 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 …]
Duart_sam0.c393 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.6.0/drivers/sensor/si7060/
Dsi7060.c56 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.6.0/drivers/sensor/qdec_stm32/
Dqdec_stm32.c81 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.6.0/drivers/misc/pio_rpi_pico/
Dpio_rpi_pico.c26 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-Core-3.6.0/drivers/spi/
Dspi_sam0.c413 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.6.0/drivers/i2c/
Di2c_sam0.c261 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.6.0/drivers/ieee802154/
Dieee802154_mcr20a.c291 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.6.0/drivers/watchdog/
Dwdt_nxp_fs26.c156 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.6.0/tests/net/lib/lwm2m/interop/pytest/
Dtest_bootstrap.py49 retval = int(shell.get_filtered_output(shell.exec_command('retval'))[0])
50 assert retval == 0
54 retval = int(shell.get_filtered_output(shell.exec_command('retval'))[0])
55 assert retval < 0
56 logger.info('retval: %s', retval)
/Zephyr-Core-3.6.0/drivers/sensor/qdec_sam/
Dqdec_sam.c99 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()

1234