Home
last modified time | relevance | path

Searched refs:WAIT_FOR (Results 1 – 25 of 49) sorted by relevance

12

/Zephyr-latest/tests/lib/sys_util/src/
Dmain.c26 zassert_true(WAIT_FOR(true, 0, NULL), "true, no wait, NULL"); in ZTEST()
27 zassert_true(WAIT_FOR(true, 0, k_yield()), "true, no wait, yield"); in ZTEST()
28 zassert_false(WAIT_FOR(false, 0, k_yield()), "false, no wait, yield"); in ZTEST()
29 zassert_true(WAIT_FOR(true, 1, k_yield()), "true, 1usec, yield"); in ZTEST()
30 zassert_false(WAIT_FOR(false, 1, k_yield()), "false, 1usec, yield"); in ZTEST()
31 zassert_true(WAIT_FOR(true, 1000, k_yield()), "true, 1msec, yield"); in ZTEST()
36 zassert_false(WAIT_FOR(false, 1000, k_yield()), "true, 1msec, yield"); in ZTEST()
/Zephyr-latest/tests/subsys/shell/shell_custom_header/src/
Dmain.c23 WAIT_FOR(shell_ready(sh), 20000, k_msleep(1)); in shell_setup()
/Zephyr-latest/tests/boards/intel_adsp/hda/src/
Dsmoke.c95 WAIT_FOR(intel_adsp_hda_wp_rp_eq(HDA_HOST_IN_BASE, HDA_REGBLOCK_SIZE, STREAM_ID), in ZTEST()
103 WAIT_FOR(msg_cnt > last_msg_cnt, 10000, k_msleep(1)); in ZTEST()
164 WAIT_FOR(intel_adsp_hda_buf_full(HDA_HOST_OUT_BASE, HDA_REGBLOCK_SIZE, STREAM_ID), in ZTEST()
Ddma.c130 WAIT_FOR(msg_cnt > last_msg_cnt, 10000, k_msleep(1)); in ZTEST()
202 WAIT_FOR(intel_adsp_hda_buf_full(HDA_HOST_OUT_BASE, HDA_REGBLOCK_SIZE, channel), in test_hda_host_out_dma()
/Zephyr-latest/drivers/reset/
Dreset_npcx.c58 if (!WAIT_FOR((reg->SWRST_TRG == NPCX_SWRST_TRG_WORD_DONE), NPCX_SWRST_DONE_TIMEOUT_US, in reset_npcx_line_toggle()
/Zephyr-latest/soc/intel/intel_adsp/ace/
Dmultiprocessing.c156 if (!WAIT_FOR(soc_cpu_is_powered(cpu_num), in soc_start_core()
173 if (!WAIT_FOR((DSPCS.capctl[cpu_num].ctl & DSPCS_CTL_CPA) != DSPCS_CTL_CPA, in soc_start_core()
Dcomm_widget.h852 WAIT_FOR(sys_read32(CW_BASE + USSTS) & USSTS_MSGSENT, 100, k_busy_wait(1)); in cw_upstream_wait_for_sent()
Dpower.c406 if (!WAIT_FOR(soc_cpu_is_powered(cpu), in pm_state_exit_post_ops()
/Zephyr-latest/soc/nxp/s32/s32k3/
Dpmc.c116 if (!WAIT_FOR(FIELD_GET(PMC_LVSC_LVD15S_MASK, REG_READ(PMC_LVSC)) == 0U, in pmc_init()
126 if (!WAIT_FOR(FIELD_GET(PMC_CONFIG_LMSTAT_MASK, REG_READ(PMC_CONFIG)) == 1U, in pmc_init()
/Zephyr-latest/drivers/power_domain/
Dpower_domain_intel_adsp.c34 if (!WAIT_FOR(sys_read16((mem_addr_t)ACE_PWRSTS) & BIT(bits->CPA_bit), in pd_intel_adsp_set_power_enable()
/Zephyr-latest/drivers/mdio/
Dmdio_dwcxgmac.c65 ret = WAIT_FOR(!(sys_read32(reg_addr) & DMA_MODE_SWR_SET_MSK), delay_us, k_msleep(1)); in dwxgmac_software_reset()
78 ret = WAIT_FOR(!(sys_read32(reg_addr) & bit_msk), delay_us, k_msleep(1)); in mdio_busy_wait()
Dmdio_xmc4xxx.c77 if (!WAIT_FOR((regs->GMII_ADDRESS & ETH_GMII_ADDRESS_MB_Msk) == 0, in mdio_xmc4xxx_transfer()
/Zephyr-latest/drivers/sdhc/
Dsdhc_cdns_ll.c68 if (!WAIT_FOR(((sys_read32(cdn_srs_res) & CDNS_SRS11_ICS) in sdhc_cdns_wait_ics()
89 if (!WAIT_FOR((((sys_read32(cdns_params.reg_base + SDHC_CDNS_SRS09)) in sdhc_cdns_card_present()
541 if (!WAIT_FOR(((sys_read32(cdns_params.reg_base + SDHC_CDNS_HRS00) & in sdhc_cdns_reset()
712 if (!WAIT_FOR((sdhc_cdns_busy() == 0), timeout, k_msleep(1))) { in sdhc_cdns_send_cmd()
723 if (!WAIT_FOR(((((sys_read32(cdns_params.reg_base + SDHC_CDNS_SRS12)) & in sdhc_cdns_send_cmd()
/Zephyr-latest/soc/intel/intel_adsp/common/
Dclk.c43 if (!WAIT_FOR((ADSP_CLKCTL & status_mask) == status_mask, in select_cpu_clock_hw()
/Zephyr-latest/soc/nxp/s32/common/
Dmc_rgm.c71 timeout = !WAIT_FOR(REG_READ(reg) == 0U, MC_RGM_TIMEOUT_US, REG_WRITE(reg, 0xffffffff)); in mc_rgm_clear_reset_status()
/Zephyr-latest/drivers/ethernet/
Deth_xmc4xxx.c735 if (!WAIT_FOR((dev_cfg->regs->BUS_MODE & ETH_BUS_MODE_SWR_Msk) == 0, in eth_xmc4xxx_reset()
788 if (!WAIT_FOR((regs->TIMESTAMP_CONTROL & ETH_TIMESTAMP_CONTROL_TSADDREG_Msk) == 0, in eth_xmc4xxx_init_timestamp_control_reg()
794 if (!WAIT_FOR((regs->TIMESTAMP_CONTROL & ETH_TIMESTAMP_CONTROL_TSINIT_Msk) == 0, in eth_xmc4xxx_init_timestamp_control_reg()
1028 if (!WAIT_FOR((dev_cfg->regs->TIMESTAMP_CONTROL & ETH_TIMESTAMP_CONTROL_TSINIT_Msk) == 0, in eth_xmc4xxx_ptp_clock_set()
1081 if (!WAIT_FOR((dev_cfg->regs->TIMESTAMP_CONTROL & ETH_TIMESTAMP_CONTROL_TSUPDT_Msk) == 0, in eth_xmc4xxx_ptp_clock_adjust()
1108 if (!WAIT_FOR((dev_cfg->regs->TIMESTAMP_CONTROL & ETH_TIMESTAMP_CONTROL_TSADDREG_Msk) == 0, in eth_xmc4xxx_ptp_clock_rate_adjust()
Deth_numaker.c104 ret = WAIT_FOR(!(mdio_read(gmacdev, eth_phy_addr, MII_BMCR) & BMCR_RESET), in reset_phy()
114 ret = WAIT_FOR(numaker_eth_link_ok(gmacdev), delay_us, k_msleep(1)); in reset_phy()
128 ret = WAIT_FOR((mdio_read(gmacdev, eth_phy_addr, MII_BMSR) & in reset_phy()
/Zephyr-latest/tests/drivers/stepper/shell/src/
Dmain.c35 WAIT_FOR(shell_ready(sh), 20000, k_msleep(1)); in stepper_shell_setup()
/Zephyr-latest/drivers/spi/
Dspi_npcx_spip.c185 if (WAIT_FOR(!IS_BIT_SET(reg_base->SPIP_STAT, NPCX_SPIP_STAT_BSY), in spi_npcx_spip_xfer_frame()
193 if (WAIT_FOR(IS_BIT_SET(reg_base->SPIP_STAT, NPCX_SPIP_STAT_RBF), in spi_npcx_spip_xfer_frame()
/Zephyr-latest/tests/drivers/rtc/shell/src/
Dmain.c190 WAIT_FOR(shell_ready(sh), 20000, k_msleep(1)); in rtc_shell_setup()
/Zephyr-latest/drivers/flash/
Dflash_cadence_nand_ll.c19 if (!WAIT_FOR(CNF_GET_CTRL_BUSY(sys_read32(CNF_CMDREG(base_address, CTRL_STATUS))) == 0U, in cdns_nand_wait_idle()
135 if (!WAIT_FOR((sys_read32((base_address) + THR_STATUS) & BIT(thread)) == 0U, in cdns_wait_for_thread()
188 status = WAIT_FOR(((cdns_nand_get_thrd_status(base_address, thread)) != 0), IDLE_TIME_OUT, in cdns_pio_transfer_complete()
358 if (!WAIT_FOR(CNF_GET_INIT_COMP(sys_read32(CNF_CMDREG(base_address, CTRL_STATUS))) != 0U, in cdns_nand_init()
509 if (!WAIT_FOR(((desc_ptr->status & (BIT(F_CSTAT_COMP))) != 0), IDLE_TIME_OUT, in cdns_transfer_complete()
934 if (!WAIT_FOR(((sys_read32(base_address + INTR_STATUS) & BIT(SDMA_TRIGG)) != 0), in cdns_wait_sdma()
/Zephyr-latest/drivers/i3c/
Di3c_npcx.c322 if (WAIT_FOR(IS_BIT_SET(inst->MSTATUS, bit_offset), NPCX_I3C_CHK_TIMEOUT_US, NULL) == in npcx_i3c_status_wait_clear()
686 if (WAIT_FOR(IS_BIT_SET(inst->MSTATUS, NPCX_I3C_MSTATUS_COMPLETE), in npcx_i3c_recover_bus()
706 if (WAIT_FOR((npcx_i3c_state_get(inst) == MSTATUS_STATE_IDLE), NPCX_I3C_CHK_TIMEOUT_US, in npcx_i3c_recover_bus()
744 if (WAIT_FOR(!IS_BIT_SET(inst->MDATACTRL, NPCX_I3C_MDATACTRL_TXFULL), in npcx_i3c_xfer_write_fifo()
1077 if (WAIT_FOR(IS_BIT_SET(inst->MSTATUS, NPCX_I3C_MSTATUS_COMPLETE), in npcx_i3c_do_one_xfer()
1141 if (WAIT_FOR((npcx_i3c_state_get(inst) == MSTATUS_STATE_IDLE), NPCX_I3C_CHK_TIMEOUT_US, in npcx_i3c_transfer()
1324 if (WAIT_FOR((npcx_i3c_state_get(inst) == MSTATUS_STATE_IDLE), NPCX_I3C_CHK_TIMEOUT_US, in npcx_i3c_do_daa()
1555 if (WAIT_FOR(IS_BIT_SET(inst->MSTATUS, NPCX_I3C_MSTATUS_COMPLETE), NPCX_I3C_CHK_TIMEOUT_US, in npcx_i3c_do_ccc()
1639 if (WAIT_FOR(IS_BIT_SET(inst->MSTATUS, NPCX_I3C_MSTATUS_IBIWON), NPCX_I3C_CHK_TIMEOUT_US, in npcx_i3c_ibi_work()
2188 if (WAIT_FOR((GET_FIELD(inst->DATACTRL, NPCX_I3C_DATACTRL_RXCOUNT) == 0), in npcx_i3c_target_xfer_end_handle()
/Zephyr-latest/tests/drivers/eeprom/shell/src/
Dmain.c193 WAIT_FOR(shell_ready(sh), 20000, k_msleep(1)); in eeprom_shell_setup()
/Zephyr-latest/drivers/dma/
Ddma_dw_axi.c733 is_channel_busy = WAIT_FOR((sys_read64(reg_base + DMA_DW_AXI_CHENREG)) & (BIT(channel)), in dma_dw_axi_stop()
739 is_channel_busy = WAIT_FOR((sys_read64(reg_base + DMA_DW_AXI_CHENREG)) & in dma_dw_axi_stop()
804 ret = WAIT_FOR(dma_dw_axi_get_ch_status(dev, channel) & in dma_dw_axi_suspend()
/Zephyr-latest/drivers/sensor/ens160/
Dens160.c102 WAIT_FOR(ens160_new_data(dev), ENS160_TIMEOUT_US, k_msleep(10)); in ens160_sample_fetch()

12