Home
last modified time | relevance | path

Searched refs:timeout_ms (Results 1 – 25 of 44) sorted by relevance

12

/Zephyr-latest/subsys/bluetooth/mesh/
Dsettings.c139 uint32_t timeout_ms, remaining_ms; in bt_mesh_settings_store_schedule() local
144 timeout_ms = 0; in bt_mesh_settings_store_schedule()
149 timeout_ms = RPL_STORE_TIMEOUT * MSEC_PER_SEC; in bt_mesh_settings_store_schedule()
151 timeout_ms = CONFIG_BT_MESH_STORE_TIMEOUT * MSEC_PER_SEC; in bt_mesh_settings_store_schedule()
155 LOG_DBG("Waiting %u ms vs rem %u ms", timeout_ms, remaining_ms); in bt_mesh_settings_store_schedule()
161 if (timeout_ms < remaining_ms) { in bt_mesh_settings_store_schedule()
164 K_MSEC(timeout_ms)); in bt_mesh_settings_store_schedule()
166 k_work_reschedule(&pending_store, K_MSEC(timeout_ms)); in bt_mesh_settings_store_schedule()
171 K_MSEC(timeout_ms)); in bt_mesh_settings_store_schedule()
173 k_work_schedule(&pending_store, K_MSEC(timeout_ms)); in bt_mesh_settings_store_schedule()
/Zephyr-latest/subsys/usb/usb_c/
Dusbc_timer.c24 void usbc_timer_init(struct usbc_timer_t *usbc_timer, uint32_t timeout_ms) in usbc_timer_init() argument
28 usbc_timer->timeout_ms = timeout_ms; in usbc_timer_init()
35 k_timer_start(&usbc_timer->timer, K_MSEC(usbc_timer->timeout_ms), K_NO_WAIT); in usbc_timer_start()
Dusbc_timer.h19 uint32_t timeout_ms; member
30 void usbc_timer_init(struct usbc_timer_t *usbc_timer, uint32_t timeout_ms);
/Zephyr-latest/subsys/portability/cmsis_rtos_v2/
Dthread_flags.c91 uint32_t time_delta_ms, timeout_ms = k_ticks_to_ms_floor64(timeout); in osThreadFlagsWait() local
120 K_MSEC(timeout_ms)); in osThreadFlagsWait()
162 if (timeout_ms > time_delta_ms) { in osThreadFlagsWait()
163 timeout_ms -= time_delta_ms; in osThreadFlagsWait()
165 timeout_ms = 0U; in osThreadFlagsWait()
/Zephyr-latest/modules/hal_infineon/abstraction-rtos/source/COMPONENT_ZEPHYR/
Dcyabs_rtos_zephyr.c290 cy_rslt_t cy_rtos_wait_thread_notification(cy_time_t timeout_ms) in cy_rtos_wait_thread_notification() argument
295 if (timeout_ms == CY_RTOS_NEVER_TIMEOUT) { in cy_rtos_wait_thread_notification()
298 status_internal = k_msleep((int32_t)timeout_ms); in cy_rtos_wait_thread_notification()
350 cy_rslt_t cy_rtos_get_mutex(cy_mutex_t *mutex, cy_time_t timeout_ms) in cy_rtos_get_mutex() argument
363 (timeout_ms == CY_RTOS_NEVER_TIMEOUT) ? K_FOREVER : K_MSEC(timeout_ms); in cy_rtos_get_mutex()
427 cy_rslt_t cy_rtos_get_semaphore(cy_semaphore_t *semaphore, cy_time_t timeout_ms, bool in_isr) in cy_rtos_get_semaphore() argument
445 } else if (timeout_ms == CY_RTOS_NEVER_TIMEOUT) { in cy_rtos_get_semaphore()
448 k_timeout = K_MSEC(timeout_ms); in cy_rtos_get_semaphore()
645 cy_rslt_t cy_rtos_put_queue(cy_queue_t *queue, const void *item_ptr, cy_time_t timeout_ms, in cy_rtos_put_queue() argument
661 } else if (timeout_ms == CY_RTOS_NEVER_TIMEOUT) { in cy_rtos_put_queue()
[all …]
/Zephyr-latest/soc/aspeed/
Daspeed_util.h32 #define reg_read_poll_timeout(map, reg, val, cond, sleep_ms, timeout_ms) \ argument
34 uint32_t __timeout_tick = Z_TIMEOUT_MS(timeout_ms).ticks; \
/Zephyr-latest/subsys/sd/
Dmmc.c214 cmd.timeout_ms = CONFIG_SD_CMD_TIMEOUT; in mmc_send_op_cond()
274 cmd.timeout_ms = CONFIG_SD_CMD_TIMEOUT; in mmc_set_rca()
298 cmd.timeout_ms = CONFIG_SD_CMD_TIMEOUT; in mmc_read_csd()
397 cmd.timeout_ms = CONFIG_SD_CMD_TIMEOUT; in mmc_set_bus_width()
424 cmd.timeout_ms = CONFIG_SD_CMD_TIMEOUT; in mmc_set_hs_timing()
452 cmd.timeout_ms = CONFIG_SD_CMD_TIMEOUT; in mmc_set_power_class_HS200()
487 cmd.timeout_ms = CONFIG_SD_CMD_TIMEOUT; in mmc_set_timing()
536 cmd.timeout_ms = CONFIG_SD_CMD_TIMEOUT; in mmc_set_timing()
547 cmd.timeout_ms = CONFIG_SD_CMD_TIMEOUT; in mmc_set_timing()
578 cmd.timeout_ms = CONFIG_SD_CMD_TIMEOUT; in mmc_read_ext_csd()
[all …]
Dsd_ops.c32 cmd.timeout_ms = CONFIG_SD_CMD_TIMEOUT; in sdmmc_read_status()
217 cmd.timeout_ms = CONFIG_SD_CMD_TIMEOUT; in sdmmc_spi_read_cxd()
224 data.timeout_ms = CONFIG_SD_CMD_TIMEOUT; in sdmmc_spi_read_cxd()
247 cmd.timeout_ms = CONFIG_SD_CMD_TIMEOUT; in sdmmc_read_cxd()
341 cmd.timeout_ms = CONFIG_SD_CMD_TIMEOUT; in sdmmc_switch_voltage()
420 cmd.timeout_ms = CONFIG_SD_CMD_TIMEOUT; in sdmmc_request_rca()
447 cmd.timeout_ms = CONFIG_SD_CMD_TIMEOUT; in sdmmc_select_card()
472 cmd.timeout_ms = CONFIG_SD_CMD_TIMEOUT; in card_app_command()
518 cmd.timeout_ms = CONFIG_SD_CMD_TIMEOUT; in card_read()
524 data.timeout_ms = CONFIG_SD_DATA_TIMEOUT; in card_read()
[all …]
Dsdmmc.c77 cmd.timeout_ms = CONFIG_SD_CMD_TIMEOUT; in sdmmc_spi_send_ocr()
106 cmd.timeout_ms = CONFIG_SD_CMD_TIMEOUT; in sdmmc_send_ocr()
176 cmd.timeout_ms = CONFIG_SD_CMD_TIMEOUT; in sdmmc_read_scr()
182 data.timeout_ms = CONFIG_SD_DATA_TIMEOUT; in sdmmc_read_scr()
217 cmd.timeout_ms = CONFIG_SD_CMD_TIMEOUT; in sdmmc_set_blocklen()
245 cmd.timeout_ms = CONFIG_SD_CMD_TIMEOUT; in sdmmc_set_bus_width()
296 cmd.timeout_ms = CONFIG_SD_CMD_TIMEOUT; in sdmmc_switch()
302 data.timeout_ms = CONFIG_SD_DATA_TIMEOUT; in sdmmc_switch()
Dsd.c31 cmd.timeout_ms = CONFIG_SD_CMD_TIMEOUT; in sd_idle()
59 cmd.timeout_ms = CONFIG_SD_CMD_TIMEOUT; in sd_send_interface_condition()
96 cmd.timeout_ms = CONFIG_SD_CMD_TIMEOUT; in sd_enable_crc()
/Zephyr-latest/tests/bsim/bluetooth/host/central/src/
Dmain.c45 static void test_central_connect_timeout_with_timeout(uint32_t timeout_ms) in test_central_connect_timeout_with_timeout() argument
54 timeout_ms ? timeout_ms : CONFIG_BT_CREATE_CONN_TIMEOUT * MSEC_PER_SEC; in test_central_connect_timeout_with_timeout()
63 .timeout = timeout_ms / 10, in test_central_connect_timeout_with_timeout()
/Zephyr-latest/drivers/sdhc/
Dsdhc_renesas_ra.h26 int timeout_ms; member
Dsdhc_spi.c201 int timeout_ms, in sdhc_spi_wait_unbusy() argument
209 while (timeout_ms > 0) { in sdhc_spi_wait_unbusy()
218 timeout_ms -= k_ticks_to_ms_floor32(interval_ticks); in sdhc_spi_wait_unbusy()
232 int ret, timeout = cmd->timeout_ms; in sdhc_spi_response_get()
296 value = cmd->timeout_ms; in sdhc_spi_response_get()
605 ret = sdhc_spi_wait_unbusy(dev, data->timeout_ms, 0); in sdhc_spi_write_data()
619 ret = sdhc_spi_wait_unbusy(dev, data->timeout_ms, 0); in sdhc_spi_write_data()
638 .timeout_ms = 1000, in sdhc_spi_request()
Dsdhc_esp32.c165 static int sdmmc_host_wait_for_event(struct sdhc_esp32_data *data, int timeout_ms, in sdmmc_host_wait_for_event() argument
176 int ret = k_msgq_get(data->s_host_ctx.event_queue, out_event, K_MSEC(timeout_ms)); in sdmmc_host_wait_for_event()
522 int err = sdmmc_host_wait_for_event(data, cmd->timeout_ms, &event); in handle_event()
527 err, cmd->timeout_ms); in handle_event()
549 static bool wait_for_busy_cleared(const sdmmc_dev_t *sdio_hw, uint32_t timeout_ms) in wait_for_busy_cleared() argument
551 if (timeout_ms == 0) { in wait_for_busy_cleared()
559 uint32_t timeout_ticks = k_ms_to_ticks_ceil32(timeout_ms); in wait_for_busy_cleared()
695 if (!wait_for_busy_cleared(sdio_hw, cmdinfo->timeout_ms)) { in sdmmc_host_do_transaction()
1100 timeout_cfg = data->timeout_ms; in sdhc_esp32_request()
1102 timeout_cfg = cmd->timeout_ms; in sdhc_esp32_request()
[all …]
Dsdhc_renesas_ra.c147 ra_cmd->timeout_ms); in sdhc_ra_send_cmd()
179 timeout_cfg = data->timeout_ms; in sdhc_ra_request()
181 timeout_cfg = cmd->timeout_ms; in sdhc_ra_request()
184 if (cmd->timeout_ms == SDHC_TIMEOUT_FOREVER) { in sdhc_ra_request()
185 ra_cmd.timeout_ms = SDHI_TIME_OUT_MAX; in sdhc_ra_request()
187 ra_cmd.timeout_ms = timeout_cfg; in sdhc_ra_request()
351 ret = k_sem_take(&priv->sdmmc_event.transfer_sem, K_MSEC(ra_cmd.timeout_ms)); in sdhc_ra_request()
379 ret = k_sem_take(&priv->sdmmc_event.transfer_sem, K_MSEC(ra_cmd.timeout_ms)); in sdhc_ra_request()
Dintel_emmc_host.c535 regs->timeout_ctrl = data->timeout_ms; in emmc_init_xfr()
707 ret = wait_for_cmd_complete(emmc, sdhc_cmd->timeout_ms); in emmc_host_send_cmd()
709 ret = poll_cmd_complete(dev, sdhc_cmd->timeout_ms); in emmc_host_send_cmd()
729 hdc_cmd.timeout_ms = 1000; in emmc_stop_transfer()
775 if (sdhc->timeout_ms == SDHC_TIMEOUT_FOREVER) { in read_data_port()
778 wait_time = K_MSEC(sdhc->timeout_ms); in read_data_port()
809 return wait_xfr_complete(dev, sdhc->timeout_ms); in read_data_port()
821 if (sdhc->timeout_ms == SDHC_TIMEOUT_FOREVER) { in write_data_port()
824 wait_time = K_MSEC(sdhc->timeout_ms); in write_data_port()
868 return wait_xfr_complete(dev, sdhc->timeout_ms); in write_data_port()
[all …]
Dmcux_sdif.c298 } while (error == kStatus_SDIF_SyncCmdTimeout && cmd->timeout_ms--); in mcux_sdif_transfer()
305 if (k_sem_take(&dev_data->transfer_sem, K_MSEC(cmd->timeout_ms))) { in mcux_sdif_transfer()
315 if (k_sem_take(&dev_data->transfer_sem, K_MSEC(data->timeout_ms))) { in mcux_sdif_transfer()
375 ret = k_mutex_lock(&dev_data->access_mutex, K_MSEC(cmd->timeout_ms)); in mcux_sdif_request()
Dsdhc_esp32.h98 uint32_t timeout_ms; /*!< response timeout, in milliseconds */ member
/Zephyr-latest/subsys/net/lib/sockets/
Dgetaddrinfo.c128 int timeout_ms; in exec_query() local
136 timeout_ms = k_ticks_to_ms_ceil32(timeout.ticks); in exec_query()
138 NET_DBG("Timeout %d", timeout_ms); in exec_query()
141 dns_resolve_cb, ai_state, timeout_ms); in exec_query()
149 ret = k_sem_take(&ai_state->sem, K_MSEC(timeout_ms + 100)); in exec_query()
/Zephyr-latest/drivers/watchdog/
Dwdt_sam0.c69 static uint32_t wdt_sam0_timeout_to_wdt_period(uint32_t timeout_ms) in wdt_sam0_timeout_to_wdt_period() argument
75 cycles = (timeout_ms * 1024U) / 1000; in wdt_sam0_timeout_to_wdt_period()
/Zephyr-latest/tests/drivers/sdhc/src/
Dmain.c166 cmd.timeout_ms = 200; in ZTEST()
175 cmd.timeout_ms = 500; in ZTEST()
/Zephyr-latest/drivers/spi/
Dspi_context.h158 uint32_t timeout_ms; in spi_context_wait_for_completion() local
160 timeout_ms = MAX(tx_len, rx_len) * 8 * 1000 / in spi_context_wait_for_completion()
162 timeout_ms += CONFIG_SPI_COMPLETION_TIMEOUT_TOLERANCE; in spi_context_wait_for_completion()
164 timeout = K_MSEC(timeout_ms); in spi_context_wait_for_completion()
/Zephyr-latest/include/zephyr/drivers/
Dsdhc.h52 int timeout_ms; /*!< Command timeout in milliseconds */ member
70 int timeout_ms; /*!< data timeout in milliseconds */ member
/Zephyr-latest/samples/boards/microchip/mec172xevb_assy6906/qmspi_ldma/src/
Dmain.c164 static int spi_poll_busy(const struct device *dev, struct spi_config *spi_cfg, uint32_t timeout_ms) in spi_poll_busy() argument
175 while (timeout_ms) { in spi_poll_busy()
189 timeout_ms--; in spi_poll_busy()
335 int timeout_ms) in spi_flash_erase_region() argument
356 err = spi_poll_busy(dev, spi_cfg, timeout_ms); in spi_flash_erase_region()
/Zephyr-latest/drivers/sensor/hp206c/
Dhp206c.c164 uint32_t timeout_ms) in hp206c_wait_dev_ready() argument
169 k_timer_start(&hp206c->tmr, K_MSEC(timeout_ms), K_NO_WAIT); in hp206c_wait_dev_ready()

12