Home
last modified time | relevance | path

Searched refs:flags (Results 1 – 25 of 1272) sorted by relevance

12345678910>>...51

/Zephyr-Core-3.5.0/subsys/bluetooth/services/ots/
Dots_dir_list_internal.h65 #define BT_OTS_DIR_LIST_SET_FLAG_TYPE_128(flags) \ argument
66 WRITE_BIT((flags), BT_OTS_DIR_LIST_FLAG_TYPE_128, 1)
72 #define BT_OTS_DIR_LIST_SET_FLAG_CUR_SIZE(flags) \ argument
73 WRITE_BIT((flags), BT_OTS_DIR_LIST_FLAG_CUR_SIZE, 1)
79 #define BT_OTS_DIR_LIST_SET_FLAG_ALLOC_SIZE(flags) \ argument
80 WRITE_BIT((flags), BT_OTS_DIR_LIST_FLAG_ALLOC_SIZE, 1)
86 #define BT_OTS_DIR_LIST_SET_FLAG_FIRST_CREATED(flags) \ argument
87 WRITE_BIT((flags), BT_OTS_DIR_LIST_FLAG_FIRST_CREATED, 1)
93 #define BT_OTS_DIR_LIST_SET_FLAG_LAST_MODIFIED(flags) \ argument
94 WRITE_BIT((flags), BT_OTS_DIR_LIST_FLAG_LAST_MODIFIED, 1)
[all …]
/Zephyr-Core-3.5.0/lib/posix/
Dfnmatch.c50 static inline int foldcase(int ch, int flags) in foldcase() argument
53 if ((flags & FNM_CASEFOLD) != 0 && isupper(ch)) { in foldcase()
60 #define FOLDCASE(ch, flags) foldcase((unsigned char)(ch), (flags)) argument
62 static const char *rangematch(const char *pattern, int test, int flags) in rangematch() argument
83 for (need = true, ok = false, c = FOLDCASE(*pattern++, flags); c != ']' || need; in rangematch()
84 c = FOLDCASE(*pattern++, flags)) { in rangematch()
90 if (c == '\\' && !(flags & FNM_NOESCAPE)) { in rangematch()
91 c = FOLDCASE(*pattern++, flags); in rangematch()
99 c2 = FOLDCASE(*(pattern + 1), flags); in rangematch()
102 if (c2 == '\\' && !(flags & FNM_NOESCAPE)) { in rangematch()
[all …]
/Zephyr-Core-3.5.0/lib/os/
Dspsc_pbuf.c20 #define GET_UTILIZATION(flags) \ argument
21 (((flags) >> SPSC_PBUF_UTILIZATION_OFFSET) & BIT_MASK(SPSC_PBUF_UTILIZATION_BITS))
23 #define SET_UTILIZATION(flags, val) \ argument
24 ((flags & ~(BIT_MASK(SPSC_PBUF_UTILIZATION_BITS) << \
46 static inline void cache_wb(void *data, size_t len, uint32_t flags) in cache_wb() argument
49 (IS_ENABLED(CONFIG_SPSC_PBUF_CACHE_FLAG) && (flags & SPSC_PBUF_CACHE))) { in cache_wb()
54 static inline void cache_inv(void *data, size_t len, uint32_t flags) in cache_inv() argument
57 (IS_ENABLED(CONFIG_SPSC_PBUF_CACHE_FLAG) && (flags & SPSC_PBUF_CACHE))) { in cache_inv()
62 static uint32_t *get_rd_idx_loc(struct spsc_pbuf *pb, uint32_t flags) in get_rd_idx_loc() argument
67 static uint32_t *get_wr_idx_loc(struct spsc_pbuf *pb, uint32_t flags) in get_wr_idx_loc() argument
[all …]
/Zephyr-Core-3.5.0/drivers/hwinfo/
Dhwinfo_gecko.c37 uint32_t flags = 0; in z_impl_hwinfo_get_reset_cause() local
42 flags |= RESET_POR; in z_impl_hwinfo_get_reset_cause()
48 flags |= RESET_PIN; in z_impl_hwinfo_get_reset_cause()
54 flags |= RESET_SOFTWARE; in z_impl_hwinfo_get_reset_cause()
60 flags |= RESET_CPU_LOCKUP; in z_impl_hwinfo_get_reset_cause()
66 flags |= RESET_WATCHDOG; in z_impl_hwinfo_get_reset_cause()
72 flags |= RESET_LOW_POWER_WAKE; in z_impl_hwinfo_get_reset_cause()
78 flags |= RESET_LOW_POWER_WAKE; in z_impl_hwinfo_get_reset_cause()
84 flags |= RESET_BROWNOUT; in z_impl_hwinfo_get_reset_cause()
90 flags |= RESET_BROWNOUT; in z_impl_hwinfo_get_reset_cause()
[all …]
Dhwinfo_stm32.c49 uint32_t flags = 0; in z_impl_hwinfo_get_reset_cause() local
53 flags |= RESET_SOFTWARE; in z_impl_hwinfo_get_reset_cause()
58 flags |= RESET_PIN; in z_impl_hwinfo_get_reset_cause()
63 flags |= RESET_WATCHDOG; in z_impl_hwinfo_get_reset_cause()
68 flags |= RESET_WATCHDOG; in z_impl_hwinfo_get_reset_cause()
73 flags |= RESET_WATCHDOG; in z_impl_hwinfo_get_reset_cause()
78 flags |= RESET_WATCHDOG; in z_impl_hwinfo_get_reset_cause()
83 flags |= RESET_WATCHDOG; in z_impl_hwinfo_get_reset_cause()
88 flags |= RESET_WATCHDOG; in z_impl_hwinfo_get_reset_cause()
93 flags |= RESET_SECURITY; in z_impl_hwinfo_get_reset_cause()
[all …]
Dhwinfo_nrf.c42 uint32_t flags = 0; in z_impl_hwinfo_get_reset_cause() local
47 flags |= RESET_PIN; in z_impl_hwinfo_get_reset_cause()
50 flags |= RESET_WATCHDOG; in z_impl_hwinfo_get_reset_cause()
53 flags |= RESET_CPU_LOCKUP; in z_impl_hwinfo_get_reset_cause()
56 flags |= RESET_LOW_POWER_WAKE; in z_impl_hwinfo_get_reset_cause()
59 flags |= RESET_DEBUG; in z_impl_hwinfo_get_reset_cause()
64 flags |= RESET_DEBUG; in z_impl_hwinfo_get_reset_cause()
67 flags |= RESET_WATCHDOG; in z_impl_hwinfo_get_reset_cause()
70 flags |= RESET_WATCHDOG; in z_impl_hwinfo_get_reset_cause()
73 flags |= RESET_SOFTWARE; in z_impl_hwinfo_get_reset_cause()
[all …]
Dhwinfo_mcux_src.c20 uint32_t flags = 0; in z_impl_hwinfo_get_reset_cause() local
27 flags |= RESET_PIN; in z_impl_hwinfo_get_reset_cause()
32 flags |= RESET_POR; in z_impl_hwinfo_get_reset_cause()
37 flags |= RESET_CPU_LOCKUP; in z_impl_hwinfo_get_reset_cause()
43 flags |= RESET_CPU_LOCKUP | RESET_SOFTWARE; in z_impl_hwinfo_get_reset_cause()
48 flags |= RESET_SECURITY; in z_impl_hwinfo_get_reset_cause()
53 flags |= RESET_HARDWARE; in z_impl_hwinfo_get_reset_cause()
59 flags |= RESET_USER; in z_impl_hwinfo_get_reset_cause()
63 flags |= RESET_WATCHDOG; in z_impl_hwinfo_get_reset_cause()
66 flags |= RESET_DEBUG; in z_impl_hwinfo_get_reset_cause()
[all …]
Dhwinfo_mcux_src_rev2.c46 uint32_t flags = 0; in z_impl_hwinfo_get_reset_cause() local
50 flags |= RESET_PIN; in z_impl_hwinfo_get_reset_cause()
53 flags |= RESET_SOFTWARE; in z_impl_hwinfo_get_reset_cause()
56 flags |= RESET_POR; in z_impl_hwinfo_get_reset_cause()
59 flags |= RESET_WATCHDOG; in z_impl_hwinfo_get_reset_cause()
62 flags |= RESET_DEBUG; in z_impl_hwinfo_get_reset_cause()
65 flags |= RESET_SECURITY; in z_impl_hwinfo_get_reset_cause()
68 flags |= RESET_TEMPERATURE; in z_impl_hwinfo_get_reset_cause()
71 flags |= RESET_USER; in z_impl_hwinfo_get_reset_cause()
74 *cause = flags; in z_impl_hwinfo_get_reset_cause()
/Zephyr-Core-3.5.0/include/zephyr/net/
Dsocketcan_utils.h41 zframe->flags |= (sframe->can_id & BIT(31)) != 0 ? CAN_FRAME_IDE : 0; in socketcan_to_can_frame()
42 zframe->flags |= (sframe->can_id & BIT(30)) != 0 ? CAN_FRAME_RTR : 0; in socketcan_to_can_frame()
43 zframe->flags |= (sframe->flags & CANFD_FDF) != 0 ? CAN_FRAME_FDF : 0; in socketcan_to_can_frame()
44 zframe->flags |= (sframe->flags & CANFD_BRS) != 0 ? CAN_FRAME_BRS : 0; in socketcan_to_can_frame()
48 if ((zframe->flags & CAN_FRAME_RTR) == 0U) { in socketcan_to_can_frame()
66 sframe->can_id |= (zframe->flags & CAN_FRAME_IDE) != 0 ? BIT(31) : 0; in socketcan_from_can_frame()
67 sframe->can_id |= (zframe->flags & CAN_FRAME_RTR) != 0 ? BIT(30) : 0; in socketcan_from_can_frame()
70 if ((zframe->flags & CAN_FRAME_FDF) != 0) { in socketcan_from_can_frame()
71 sframe->flags |= CANFD_FDF; in socketcan_from_can_frame()
74 if ((zframe->flags & CAN_FRAME_BRS) != 0) { in socketcan_from_can_frame()
[all …]
/Zephyr-Core-3.5.0/tests/subsys/portability/cmsis_rtos_v2/src/
Dthread_flags.c23 uint32_t flags; in thread1() local
28 flags = osThreadFlagsWait(FLAG1, osFlagsWaitAny | osFlagsNoClear, 0); in thread1()
29 zassert_equal(flags & FLAG1, FLAG1, ""); in thread1()
34 flags = osThreadFlagsGet(); in thread1()
35 zassert_equal(flags & FLAG1, FLAG1, ""); in thread1()
38 flags = osThreadFlagsClear(FLAG1); in thread1()
39 zassert_not_equal(flags, osFlagsErrorParameter, in thread1()
45 flags = osThreadFlagsWait(FLAG1, osFlagsWaitAny, TIMEOUT_TICKS); in thread1()
46 zassert_equal(flags, osFlagsErrorTimeout, "ThreadFlagsWait failed"); in thread1()
51 uint32_t flags; in thread2() local
[all …]
Devent_flags.c25 int flags = osEventFlagsSet((osEventFlagsId_t)arg, FLAG1); in thread1() local
27 zassert_equal(flags & FLAG1, FLAG1, ""); in thread1()
32 int flags = osEventFlagsSet((osEventFlagsId_t)arg, FLAG2); in thread2() local
43 zassert_equal(flags & FLAG2, 0, ""); in thread2()
72 uint32_t flags; in test_event_flags_no_wait_timeout() local
96 flags = osEventFlagsWait(evt_id, FLAG1, in test_event_flags_no_wait_timeout()
98 zassert_equal(flags & FLAG1, FLAG1, ""); in test_event_flags_no_wait_timeout()
103 flags = osEventFlagsGet(evt_id); in test_event_flags_no_wait_timeout()
104 zassert_equal(flags & FLAG1, FLAG1, ""); in test_event_flags_no_wait_timeout()
106 flags = osEventFlagsGet(dummy_id); in test_event_flags_no_wait_timeout()
[all …]
/Zephyr-Core-3.5.0/tests/drivers/can/api/src/
Dcommon.c27 .flags = 0,
37 .flags = 0,
47 .flags = CAN_FRAME_IDE,
57 .flags = CAN_FRAME_IDE,
67 .flags = CAN_FRAME_RTR,
77 .flags = CAN_FRAME_IDE | CAN_FILTER_RTR,
87 .flags = CAN_FRAME_FDF | CAN_FRAME_BRS,
101 .flags = CAN_FRAME_FDF | CAN_FRAME_BRS,
116 .flags = CAN_FILTER_DATA,
126 .flags = CAN_FILTER_DATA,
[all …]
/Zephyr-Core-3.5.0/soc/arm/cypress/common/
Dsoc_gpio.c15 static uint32_t soc_gpio_get_drv_mode(uint32_t flags) in soc_gpio_get_drv_mode() argument
19 flags = ((flags & SOC_GPIO_FLAGS_MASK) >> SOC_GPIO_FLAGS_POS); in soc_gpio_get_drv_mode()
21 if (flags & SOC_GPIO_OPENDRAIN) { in soc_gpio_get_drv_mode()
23 } else if (flags & SOC_GPIO_OPENSOURCE) { in soc_gpio_get_drv_mode()
25 } else if (flags & SOC_GPIO_PUSHPULL) { in soc_gpio_get_drv_mode()
27 } else if ((flags & SOC_GPIO_PULLUP) && (flags & SOC_GPIO_PULLDOWN)) { in soc_gpio_get_drv_mode()
29 } else if (flags & SOC_GPIO_PULLUP) { in soc_gpio_get_drv_mode()
31 } else if (flags & SOC_GPIO_PULLDOWN) { in soc_gpio_get_drv_mode()
37 if (flags & SOC_GPIO_INPUTENABLE) { in soc_gpio_get_drv_mode()
46 uint32_t drv_mode = soc_gpio_get_drv_mode(pin->flags); in soc_gpio_configure()
[all …]
/Zephyr-Core-3.5.0/arch/arm/core/cortex_m/cmse/
Darm_core_cmse.c14 if (addr_info.flags.mpu_region_valid) { in arm_cmse_mpu_region_get()
15 return addr_info.flags.mpu_region; in arm_cmse_mpu_region_get()
30 return rw ? addr_info.flags.readwrite_ok : addr_info.flags.read_ok; in arm_cmse_addr_read_write_ok()
46 int flags = 0; in arm_cmse_addr_range_read_write_ok() local
49 flags |= CMSE_MPU_UNPRIV; in arm_cmse_addr_range_read_write_ok()
52 flags |= CMSE_MPU_READWRITE; in arm_cmse_addr_range_read_write_ok()
54 flags |= CMSE_MPU_READ; in arm_cmse_addr_range_read_write_ok()
56 if (cmse_check_address_range((void *)addr, size, flags) != NULL) { in arm_cmse_addr_range_read_write_ok()
79 if (addr_info.flags.mpu_region_valid) { in arm_cmse_mpu_nonsecure_region_get()
80 return addr_info.flags.mpu_region; in arm_cmse_mpu_nonsecure_region_get()
[all …]
/Zephyr-Core-3.5.0/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio/
Dradio_nrf51.h36 static inline uint32_t hal_radio_phy_mode_get(uint8_t phy, uint8_t flags) in hal_radio_phy_mode_get() argument
38 ARG_UNUSED(flags); in hal_radio_phy_mode_get()
99 static inline uint32_t hal_radio_tx_ready_delay_us_get(uint8_t phy, uint8_t flags) in hal_radio_tx_ready_delay_us_get() argument
102 ARG_UNUSED(flags); in hal_radio_tx_ready_delay_us_get()
106 static inline uint32_t hal_radio_rx_ready_delay_us_get(uint8_t phy, uint8_t flags) in hal_radio_rx_ready_delay_us_get() argument
109 ARG_UNUSED(flags); in hal_radio_rx_ready_delay_us_get()
113 static inline uint32_t hal_radio_tx_chain_delay_us_get(uint8_t phy, uint8_t flags) in hal_radio_tx_chain_delay_us_get() argument
116 ARG_UNUSED(flags); in hal_radio_tx_chain_delay_us_get()
120 static inline uint32_t hal_radio_rx_chain_delay_us_get(uint8_t phy, uint8_t flags) in hal_radio_rx_chain_delay_us_get() argument
123 ARG_UNUSED(flags); in hal_radio_rx_chain_delay_us_get()
[all …]
Dradio_sim_nrf52.h202 static inline uint32_t hal_radio_phy_mode_get(uint8_t phy, uint8_t flags) in hal_radio_phy_mode_get() argument
204 ARG_UNUSED(flags); in hal_radio_phy_mode_get()
289 static inline uint32_t hal_radio_tx_ready_delay_us_get(uint8_t phy, uint8_t flags) in hal_radio_tx_ready_delay_us_get() argument
291 ARG_UNUSED(flags); in hal_radio_tx_ready_delay_us_get()
302 static inline uint32_t hal_radio_rx_ready_delay_us_get(uint8_t phy, uint8_t flags) in hal_radio_rx_ready_delay_us_get() argument
304 ARG_UNUSED(flags); in hal_radio_rx_ready_delay_us_get()
315 static inline uint32_t hal_radio_tx_chain_delay_us_get(uint8_t phy, uint8_t flags) in hal_radio_tx_chain_delay_us_get() argument
318 ARG_UNUSED(flags); in hal_radio_tx_chain_delay_us_get()
323 static inline uint32_t hal_radio_rx_chain_delay_us_get(uint8_t phy, uint8_t flags) in hal_radio_rx_chain_delay_us_get() argument
325 ARG_UNUSED(flags); in hal_radio_rx_chain_delay_us_get()
[all …]
/Zephyr-Core-3.5.0/drivers/pinctrl/
Dpinctrl_esp32.c66 static int esp32_pin_apply_config(uint32_t pin, uint32_t flags) in esp32_pin_apply_config() argument
90 if (flags & ESP32_PULL_UP_FLAG) { in esp32_pin_apply_config()
108 } else if (flags & ESP32_PULL_DOWN_FLAG) { in esp32_pin_apply_config()
128 if (flags & ESP32_DIR_OUT_FLAG) { in esp32_pin_apply_config()
134 if (flags & ESP32_OPEN_DRAIN_FLAG) { in esp32_pin_apply_config()
141 if (flags & ESP32_PIN_OUT_HIGH_FLAG) { in esp32_pin_apply_config()
143 } else if (flags & ESP32_PIN_OUT_LOW_FLAG) { in esp32_pin_apply_config()
150 if (!(flags & ESP32_PIN_OUT_EN_FLAG)) { in esp32_pin_apply_config()
155 if (flags & ESP32_DIR_INP_FLAG) { in esp32_pin_apply_config()
158 if (!(flags & ESP32_PIN_IN_EN_FLAG)) { in esp32_pin_apply_config()
[all …]
/Zephyr-Core-3.5.0/soc/arm/atmel_sam/common/
Dsoc_gpio.c24 static void configure_common_attr(Pio *pio, uint32_t mask, uint32_t flags) in configure_common_attr() argument
30 if (flags & SOC_GPIO_PULLUP) { in configure_common_attr()
39 if (flags & SOC_GPIO_PULLDOWN) { in configure_common_attr()
47 if (flags & SOC_GPIO_OPENDRAIN) { in configure_common_attr()
54 static void configure_input_attr(Pio *pio, uint32_t mask, uint32_t flags) in configure_input_attr() argument
57 if ((flags & SOC_GPIO_IN_FILTER_MASK) != 0U) { in configure_input_attr()
58 if ((flags & SOC_GPIO_IN_FILTER_MASK) == SOC_GPIO_IN_FILTER_DEBOUNCE) { in configure_input_attr()
79 if (flags & SOC_GPIO_INT_ENABLE) { in configure_input_attr()
80 if ((flags & SOC_GPIO_INT_TRIG_MASK) == SOC_GPIO_INT_TRIG_DOUBLE_EDGE) { in configure_input_attr()
85 if ((flags & SOC_GPIO_INT_TRIG_MASK) == SOC_GPIO_INT_TRIG_EDGE) { in configure_input_attr()
[all …]
/Zephyr-Core-3.5.0/drivers/pwm/
Dpwm_shell.c21 uint8_t flags; member
29 .flags = 5,
34 pwm_flags_t flags = 0; in cmd_cycles() local
51 if (argc == (args_indx.flags + 1)) { in cmd_cycles()
52 flags = strtoul(argv[args_indx.flags], NULL, 0); in cmd_cycles()
55 err = pwm_set_cycles(dev, channel, period, pulse, flags); in cmd_cycles()
67 pwm_flags_t flags = 0; in cmd_usec() local
84 if (argc == (args_indx.flags + 1)) { in cmd_usec()
85 flags = strtoul(argv[args_indx.flags], NULL, 0); in cmd_usec()
88 err = pwm_set(dev, channel, PWM_USEC(period), PWM_USEC(pulse), flags); in cmd_usec()
[all …]
/Zephyr-Core-3.5.0/drivers/wifi/esp_at/
Desp.h175 atomic_t flags; member
219 uint8_t flags; member
298 atomic_val_t flags; in esp_socket_flags_update() local
301 flags = atomic_get(&sock->flags); in esp_socket_flags_update()
302 } while (!atomic_cas(&sock->flags, flags, (flags & ~mask) | value)); in esp_socket_flags_update()
304 return flags; in esp_socket_flags_update()
317 atomic_val_t flags) in esp_socket_flags_set() argument
319 return atomic_or(&sock->flags, flags); in esp_socket_flags_set()
323 atomic_val_t flags) in esp_socket_flags_test_and_clear() argument
325 return (atomic_and(&sock->flags, ~flags) & flags); in esp_socket_flags_test_and_clear()
[all …]
/Zephyr-Core-3.5.0/tests/bluetooth/host/id/bt_le_oob_get_local/src/
Dtest_suite_invalid_inputs.c56 atomic_clear_bit(bt_dev.flags, BT_DEV_READY); in ZTEST()
79 atomic_set_bit(bt_dev.flags, BT_DEV_READY); in ZTEST()
109 atomic_set_bit(bt_dev.flags, BT_DEV_READY); in ZTEST()
110 atomic_set_bit(bt_dev.flags, BT_DEV_INITIATING); in ZTEST()
149 atomic_set_bit(bt_dev.flags, BT_DEV_READY); in ZTEST()
150 atomic_set_bit(bt_dev.flags, BT_DEV_INITIATING); in ZTEST()
194 atomic_set_bit(bt_dev.flags, BT_DEV_READY); in ZTEST()
195 atomic_set_bit(bt_dev.flags, BT_DEV_INITIATING); in ZTEST()
198 atomic_set_bit(adv.flags, BT_ADV_ENABLED); in ZTEST()
199 atomic_set_bit(adv.flags, BT_ADV_USE_IDENTITY); in ZTEST()
[all …]
/Zephyr-Core-3.5.0/drivers/gpio/
Dgpio_kscan_ite_it8xxx2.c40 gpio_flags_t flags) in gpio_kscan_it8xxx2_configure() argument
50 if ((((flags & GPIO_SINGLE_ENDED) != 0) && ((flags & GPIO_LINE_OPEN_DRAIN) == 0)) || in gpio_kscan_it8xxx2_configure()
51 ((flags & IT8XXX2_GPIO_VOLTAGE_MASK) == IT8XXX2_GPIO_VOLTAGE_1P8) || in gpio_kscan_it8xxx2_configure()
52 ((flags & IT8XXX2_GPIO_VOLTAGE_MASK) == IT8XXX2_GPIO_VOLTAGE_5P0)) { in gpio_kscan_it8xxx2_configure()
59 if (flags & GPIO_OUTPUT) { in gpio_kscan_it8xxx2_configure()
64 if (flags & GPIO_OPEN_DRAIN) { in gpio_kscan_it8xxx2_configure()
75 if (flags & GPIO_OUTPUT_INIT_HIGH) { in gpio_kscan_it8xxx2_configure()
77 } else if (flags & GPIO_OUTPUT_INIT_LOW) { in gpio_kscan_it8xxx2_configure()
89 if (flags & GPIO_PULL_UP) { in gpio_kscan_it8xxx2_configure()
111 gpio_flags_t flags = 0; in gpio_kscan_it8xxx2_get_config() local
[all …]
/Zephyr-Core-3.5.0/include/zephyr/crypto/
Dcrypto.h167 uint32_t flags; in cipher_begin_session() local
173 flags = (ctx->flags & (CAP_OPAQUE_KEY_HNDL | CAP_RAW_KEY)); in cipher_begin_session()
174 __ASSERT(flags != 0U, "Keytype missing: RAW Key or OPAQUE handle"); in cipher_begin_session()
175 __ASSERT(flags != (CAP_OPAQUE_KEY_HNDL | CAP_RAW_KEY), in cipher_begin_session()
178 flags = (ctx->flags & (CAP_INPLACE_OPS | CAP_SEPARATE_IO_BUFS)); in cipher_begin_session()
179 __ASSERT(flags != 0U, "IO buffer type missing"); in cipher_begin_session()
180 __ASSERT(flags != (CAP_INPLACE_OPS | CAP_SEPARATE_IO_BUFS), in cipher_begin_session()
183 flags = (ctx->flags & (CAP_SYNC_OPS | CAP_ASYNC_OPS)); in cipher_begin_session()
184 __ASSERT(flags != 0U, "sync/async type missing"); in cipher_begin_session()
185 __ASSERT(flags != (CAP_SYNC_OPS | CAP_ASYNC_OPS), in cipher_begin_session()
[all …]
/Zephyr-Core-3.5.0/drivers/interrupt_controller/
Dintc_esp32.c177 if (!(vd->flags & VECDESC_FL_SHARED)) { in find_desc_for_source()
229 vd->flags = VECDESC_FL_SHARED; in esp_intr_mark_shared()
231 vd->flags |= VECDESC_FL_INIRAM; in esp_intr_mark_shared()
254 vd->flags = VECDESC_FL_RESERVED; in esp_intr_reserve()
270 static bool is_vect_desc_usable(struct vector_desc_t *vd, int flags, int cpu, int force) in is_vect_desc_usable() argument
284 if (!(flags & (1 << interrupt_controller_hal_get_level(x)))) { in is_vect_desc_usable()
289 if (((flags & ESP_INTR_FLAG_EDGE) && in is_vect_desc_usable()
291 (((!(flags & ESP_INTR_FLAG_EDGE)) && in is_vect_desc_usable()
297 if (vd->flags & VECDESC_FL_RESERVED) { in is_vect_desc_usable()
303 assert(!((vd->flags & VECDESC_FL_SHARED) && (vd->flags & VECDESC_FL_NONSHARED))); in is_vect_desc_usable()
[all …]
/Zephyr-Core-3.5.0/subsys/usb/usb_c/
Dusbc_timer.c21 atomic_set_bit(&usbc_timer->flags, TIMER_EXPIRED); in usbc_timer_handler()
33 atomic_clear_bit(&usbc_timer->flags, TIMER_EXPIRED); in usbc_timer_start()
34 atomic_set_bit(&usbc_timer->flags, TIMER_STARTED); in usbc_timer_start()
40 bool started = atomic_test_bit(&usbc_timer->flags, TIMER_STARTED); in usbc_timer_expired()
41 bool expired = atomic_test_bit(&usbc_timer->flags, TIMER_EXPIRED); in usbc_timer_expired()
44 atomic_clear_bit(&usbc_timer->flags, TIMER_STARTED); in usbc_timer_expired()
53 return atomic_test_bit(&usbc_timer->flags, TIMER_STARTED); in usbc_timer_running()
58 atomic_clear_bit(&usbc_timer->flags, TIMER_STARTED); in usbc_timer_stop()

12345678910>>...51