Home
last modified time | relevance | path

Searched refs:UTIL_AND (Results 1 – 25 of 27) sorted by relevance

12

/Zephyr-latest/drivers/ethernet/
Deth.h30 UTIL_AND(DT_NODE_HAS_PROP(node, local_mac_address),\
/Zephyr-latest/tests/unit/util/
Dmain.c157 zassert_equal(UTIL_AND(ZERO, A_BUILD_ERROR), 0); in ZTEST()
158 zassert_equal(UTIL_AND(7, 0), 0); in ZTEST()
159 zassert_equal(UTIL_AND(SEVEN, ZERO), 0); in ZTEST()
160 zassert_equal(UTIL_AND(0, 7), 0); in ZTEST()
161 zassert_equal(UTIL_AND(ZERO, SEVEN), 0); in ZTEST()
162 zassert_equal(UTIL_AND(0, 0), 0); in ZTEST()
163 zassert_equal(UTIL_AND(ZERO, ZERO), 0); in ZTEST()
164 zassert_equal(UTIL_AND(7, 7), 7); in ZTEST()
165 zassert_equal(UTIL_AND(7, SEVEN), 7); in ZTEST()
166 zassert_equal(UTIL_AND(SEVEN, 7), 7); in ZTEST()
[all …]
/Zephyr-latest/drivers/gpio/
Dgpio_xlnx_axi.c384 UTIL_AND(DT_NODE_HAS_COMPAT(DT_INST_CHILD(n, gpio2), xlnx_xps_gpio_1_00_a_gpio2), \
388 IF_ENABLED(UTIL_AND(DT_INST_PROP_OR(n, xlnx_is_dual, 1), \
423 IF_ENABLED(UTIL_AND(UTIL_AND(DT_INST_NODE_HAS_PROP(n, interrupts), \
Dgpio_rv32m1.c303 UTIL_AND(DT_INST_NODE_HAS_PROP(n, clocks), DEVICE_DT_GET(DT_INST_CLOCKS_CTLR(n)))
305 UTIL_AND(DT_INST_NODE_HAS_PROP(n, clocks), DT_INST_CLOCKS_CELL(n, name))
Dgpio_nxp_s32.c536 .eirq_info = UTIL_AND(DT_NODE_HAS_STATUS_OKAY(GPIO_NXP_S32_EIRQ_NODE(n)),\
563 .wkpu_info = UTIL_AND(DT_NODE_HAS_STATUS_OKAY(GPIO_NXP_S32_WKPU_NODE(n)),\
Dgpio_mcux.c428 .flags = UTIL_AND(UTIL_OR(DT_INST_IRQ_HAS_IDX(n, 0), \
/Zephyr-latest/soc/nuvoton/npcx/common/
Dpinctrl_soc.h161 UTIL_AND(DT_PROP(node_id, drive_open_drain), \
165 UTIL_AND(DT_NODE_HAS_PROP(node_id, psl_in_pol), \
/Zephyr-latest/subsys/usb/device_next/class/
Dusbd_uac2_macros.h129 IF_ENABLED(UTIL_AND(IS_EQ( \
598 UTIL_AND(AS_HAS_ISOCHRONOUS_DATA_ENDPOINT(node), \
603 UTIL_AND(AS_HAS_ISOCHRONOUS_DATA_ENDPOINT(node), \
631 UTIL_AND(UTIL_AND(AS_HAS_ISOCHRONOUS_DATA_ENDPOINT(node), \
633 UTIL_AND(UTIL_NOT(AS_IS_SOF_SYNCHRONIZED(node)), \
723 COND_CODE_1(UTIL_AND(DT_PROP(node, implicit_feedback), \
/Zephyr-latest/include/zephyr/sys/
Dutil_macro.h419 #define UTIL_AND(a, b) COND_CODE_1(UTIL_BOOL(a), (b), (0)) macro
/Zephyr-latest/drivers/i2s/
Di2s_mcux_flexcomm.c932 .dev_dma = UTIL_AND( \
935 .channel = UTIL_AND( \
945 .dev_dma = UTIL_AND( \
948 .channel = UTIL_AND( \
Di2s_esp32.c901 .dma_dev = UTIL_AND(DT_INST_DMAS_HAS_NAME(index, dir), \
903 .dma_channel = UTIL_AND(DT_INST_DMAS_HAS_NAME(index, dir), \
Di2s_ll_stm32.c1041 UTIL_AND(DT_INST_DMAS_HAS_NAME(index, rx), \
1043 UTIL_AND(DT_INST_DMAS_HAS_NAME(index, tx), \
/Zephyr-latest/include/zephyr/logging/
Dlog_msg.h529 IF_ENABLED(UTIL_AND(IS_ENABLED(CONFIG_LOG_SIMPLE_MSG_OPTIMIZE), \
530 UTIL_AND(UTIL_NOT(_domain_id), UTIL_NOT(_cstr_cnt))), \
/Zephyr-latest/drivers/spi/
Dspi_mcux_lpspi.c856 .pcs_sck_delay = UTIL_AND(DT_INST_NODE_HAS_PROP(n, pcs_sck_delay), \
858 .sck_pcs_delay = UTIL_AND(DT_INST_NODE_HAS_PROP(n, sck_pcs_delay), \
860 .transfer_delay = UTIL_AND(DT_INST_NODE_HAS_PROP(n, transfer_delay), \
/Zephyr-latest/include/zephyr/drivers/
Dadc.h245 UTIL_AND(CONFIG_ADC_CONFIGURABLE_INPUTS, \
/Zephyr-latest/drivers/can/
Dcan_mcux_flexcan.c184 if (UTIL_AND(IS_ENABLED(CONFIG_CAN_MCUX_FLEXCAN_FD), config->flexcan_fd)) { in mcux_flexcan_get_capabilities()
362 if (UTIL_AND(IS_ENABLED(CONFIG_CAN_MCUX_FLEXCAN_FD), config->flexcan_fd)) { in mcux_flexcan_stop()
405 if (UTIL_AND(IS_ENABLED(CONFIG_CAN_MCUX_FLEXCAN_FD), config->flexcan_fd)) { in mcux_flexcan_set_mode()
680 if (UTIL_AND(IS_ENABLED(CONFIG_CAN_MCUX_FLEXCAN_FD), in mcux_flexcan_send()
/Zephyr-latest/drivers/i2c/
Di2c_mcux_lpi2c_rtio.c365 UTIL_AND(DT_INST_NODE_HAS_PROP(n, bus_idle_timeout),\
Di2c_mcux_lpi2c.c610 UTIL_AND(DT_INST_NODE_HAS_PROP(n, bus_idle_timeout),\
/Zephyr-latest/drivers/sensor/st/iis328dq/
Diis328dq.c450 UTIL_AND(DT_INST_NODE_HAS_PROP(inst, drdy_int_pad), \
/Zephyr-latest/drivers/ethernet/phy/
Dphy_mii.c505 .mdio = UTIL_AND(UTIL_NOT(IS_FIXED_LINK(n)), \
/Zephyr-latest/drivers/ieee802154/
Dieee802154_rf2xx.c1112 UTIL_AND(DT_INST_NODE_HAS_PROP(n, local_mac_address), \
1113 UTIL_AND(DT_INST_PROP_LEN(n, local_mac_address) == 8, \
/Zephyr-latest/drivers/serial/
Duart_nrfx_uarte2.c33 UTIL_AND(CONFIG_HAS_HW_NRF_UARTE##prefix##id, \
34 UTIL_AND(COND_CODE_1(CONFIG_UART_##prefix##id##_INTERRUPT_DRIVEN, (0), (1)), \
/Zephyr-latest/include/zephyr/
Ddevicetree.h3681 UTIL_AND(DT_HAS_COMPAT_STATUS_OKAY(compat), \
3729 UTIL_AND(DT_NODE_HAS_COMPAT(node_id, compat), DT_NODE_HAS_STATUS(node_id, status))
/Zephyr-latest/include/zephyr/net/
Dnet_if.h3227 IF_ENABLED(UTIL_AND(IS_ENABLED(CONFIG_NET_DHCPV4), \
3232 IF_ENABLED(UTIL_AND(IS_ENABLED(CONFIG_NET_DHCPV6), \
/Zephyr-latest/drivers/adc/
Dadc_lmp90xxx.c1058 ASSERT_LMP90XXX_CURRENT_VALID(UTIL_AND( \

12