Home
last modified time | relevance | path

Searched full:flags (Results 1 – 25 of 2025) sorted by relevance

12345678910>>...81

/Zephyr-latest/subsys/bluetooth/services/ots/
Dots_dir_list_internal.h57 /** Bit 7 Extended Flags Present*/
63 * @param flags Directory Listing Object flags.
65 #define BT_OTS_DIR_LIST_SET_FLAG_TYPE_128(flags) \ argument
66 WRITE_BIT((flags), BT_OTS_DIR_LIST_FLAG_TYPE_128, 1)
70 * @param flags Directory Listing Object flags.
72 #define BT_OTS_DIR_LIST_SET_FLAG_CUR_SIZE(flags) \ argument
73 WRITE_BIT((flags), BT_OTS_DIR_LIST_FLAG_CUR_SIZE, 1)
77 * @param flags Directory Listing Object flags.
79 #define BT_OTS_DIR_LIST_SET_FLAG_ALLOC_SIZE(flags) \ argument
80 WRITE_BIT((flags), BT_OTS_DIR_LIST_FLAG_ALLOC_SIZE, 1)
[all …]
/Zephyr-latest/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-latest/tests/subsys/portability/cmsis_rtos_v2/src/
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
36 * choose to clear the flags as part of its osEventFlagsWait operation. in thread2()
43 zassert_equal(flags & FLAG2, 0, ""); in thread2()
72 uint32_t flags; in test_event_flags_no_wait_timeout() local
77 zassert_true(evt_id != NULL, "Failed creating event flags"); in test_event_flags_no_wait_timeout()
81 "Invalid event Flags ID is unexpectedly working!"); in test_event_flags_no_wait_timeout()
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()
[all …]
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()
31 /* Since the flags are not cleared automatically in the previous step, in thread1()
32 * we should be able to get the same flags upon query below. 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()
[all …]
/Zephyr-latest/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-latest/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_nrf.c69 uint32_t flags = 0; in z_impl_hwinfo_get_reset_cause() local
74 flags |= RESET_PIN; in z_impl_hwinfo_get_reset_cause()
77 flags |= RESET_WATCHDOG; in z_impl_hwinfo_get_reset_cause()
80 flags |= RESET_CPU_LOCKUP; in z_impl_hwinfo_get_reset_cause()
83 flags |= RESET_LOW_POWER_WAKE; in z_impl_hwinfo_get_reset_cause()
86 flags |= RESET_DEBUG; in z_impl_hwinfo_get_reset_cause()
89 flags |= RESET_SOFTWARE; in z_impl_hwinfo_get_reset_cause()
94 flags |= RESET_DEBUG; in z_impl_hwinfo_get_reset_cause()
99 flags |= RESET_LOW_POWER_WAKE; in z_impl_hwinfo_get_reset_cause()
104 flags |= RESET_LOW_POWER_WAKE; 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_stm32.c69 uint32_t flags = 0; in z_impl_hwinfo_get_reset_cause() local
73 flags |= RESET_SOFTWARE; in z_impl_hwinfo_get_reset_cause()
78 flags |= RESET_PIN; 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_WATCHDOG; in z_impl_hwinfo_get_reset_cause()
98 flags |= RESET_WATCHDOG; in z_impl_hwinfo_get_reset_cause()
103 flags |= RESET_WATCHDOG; in z_impl_hwinfo_get_reset_cause()
108 flags |= RESET_WATCHDOG; in z_impl_hwinfo_get_reset_cause()
113 flags |= RESET_SECURITY; in z_impl_hwinfo_get_reset_cause()
[all …]
Dhwinfo_smartbond.c15 uint32_t flags = 0; in z_impl_hwinfo_get_reset_cause() local
21 flags = RESET_POR; in z_impl_hwinfo_get_reset_cause()
24 flags |= RESET_PIN; in z_impl_hwinfo_get_reset_cause()
27 flags |= RESET_SOFTWARE; in z_impl_hwinfo_get_reset_cause()
30 flags |= RESET_WATCHDOG; in z_impl_hwinfo_get_reset_cause()
33 flags |= RESET_WATCHDOG; in z_impl_hwinfo_get_reset_cause()
36 flags |= RESET_DEBUG; in z_impl_hwinfo_get_reset_cause()
40 *cause = flags; in z_impl_hwinfo_get_reset_cause()
Dhwinfo_ambiq.c50 uint32_t flags = 0; in z_impl_hwinfo_get_reset_cause() local
60 flags |= RESET_PIN; in z_impl_hwinfo_get_reset_cause()
65 flags |= RESET_POR; in z_impl_hwinfo_get_reset_cause()
70 flags |= RESET_BROWNOUT; in z_impl_hwinfo_get_reset_cause()
75 flags |= RESET_SOFTWARE; in z_impl_hwinfo_get_reset_cause()
80 flags |= RESET_SOFTWARE; in z_impl_hwinfo_get_reset_cause()
85 flags |= RESET_DEBUG; in z_impl_hwinfo_get_reset_cause()
90 flags |= RESET_WATCHDOG; in z_impl_hwinfo_get_reset_cause()
95 flags |= RESET_HARDWARE; in z_impl_hwinfo_get_reset_cause()
100 flags |= RESET_HARDWARE; 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-latest/lib/posix/options/
Dfnmatch.c51 static inline int foldcase(int ch, int flags) in foldcase() argument
54 if ((flags & FNM_CASEFOLD) != 0 && isupper(ch)) { in foldcase()
61 #define FOLDCASE(ch, flags) foldcase((unsigned char)(ch), (flags)) argument
63 static const char *rangematch(const char *pattern, int test, int flags) in rangematch() argument
84 for (need = true, ok = false, c = FOLDCASE(*pattern++, flags); c != ']' || need; in rangematch()
85 c = FOLDCASE(*pattern++, flags)) { in rangematch()
91 if (c == '\\' && !(flags & FNM_NOESCAPE)) { in rangematch()
92 c = FOLDCASE(*pattern++, flags); in rangematch()
100 c2 = FOLDCASE(*(pattern + 1), flags); in rangematch()
103 if (c2 == '\\' && !(flags & FNM_NOESCAPE)) { in rangematch()
[all …]
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio/
Dradio_nrf51.h50 static inline uint32_t hal_radio_phy_mode_get(uint8_t phy, uint8_t flags) in hal_radio_phy_mode_get() argument
52 ARG_UNUSED(flags); in hal_radio_phy_mode_get()
113 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
116 ARG_UNUSED(flags); in hal_radio_tx_ready_delay_us_get()
120 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
123 ARG_UNUSED(flags); in hal_radio_rx_ready_delay_us_get()
127 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
130 ARG_UNUSED(flags); in hal_radio_tx_chain_delay_us_get()
134 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
137 ARG_UNUSED(flags); in hal_radio_rx_chain_delay_us_get()
[all …]
/Zephyr-latest/tests/lib/notify/src/
Dmain.c12 uint32_t flags = anp->flags & SYS_NOTIFY_EXTENSION_MASK; in get_extflags() local
14 return flags >> SYS_NOTIFY_EXTENSION_POS; in get_extflags()
18 uint32_t flags) in set_extflags() argument
20 anp->flags = (anp->flags & ~SYS_NOTIFY_EXTENSION_MASK) in set_extflags()
21 | (flags << SYS_NOTIFY_EXTENSION_POS); in set_extflags()
34 .flags = 0, in ZTEST()
66 zassert_equal(notify.flags, SYS_NOTIFY_METHOD_SPINWAIT, in ZTEST()
67 "flags mismatch"); in ZTEST()
80 zassert_not_equal(notify.flags, 0, in ZTEST()
81 "flags cleared"); in ZTEST()
[all …]
/Zephyr-latest/tests/bluetooth/host/id/bt_le_oob_get_local/src/
Dtest_suite_invalid_inputs.c46 * - 'BT_DEV_READY' bit isn't set in bt_dev.flags
56 atomic_clear_bit(bt_dev.flags, BT_DEV_READY); in ZTEST()
69 * - 'BT_DEV_READY' bit is set in bt_dev.flags
79 atomic_set_bit(bt_dev.flags, BT_DEV_READY); in ZTEST()
92 * - 'BT_DEV_READY' bit is set in bt_dev.flags
95 * - 'BT_DEV_INITIATING' bit is set in bt_dev.flags
109 atomic_set_bit(bt_dev.flags, BT_DEV_READY); in ZTEST()
110 atomic_set_bit(bt_dev.flags, BT_DEV_INITIATING); in ZTEST()
130 * - 'BT_DEV_READY' bit is set in bt_dev.flags
134 * - 'BT_DEV_INITIATING' bit is set in bt_dev.flags
[all …]
/Zephyr-latest/drivers/net/
Dnsos_fcntl.c33 static int fl_to_nsos_mid_(int flags, bool strict) in fl_to_nsos_mid_() argument
38 if (flags & (_flag)) { \ in fl_to_nsos_mid_()
39 flags &= ~(_flag); \ in fl_to_nsos_mid_()
53 if (strict && flags != 0) { in fl_to_nsos_mid_()
60 int fl_to_nsos_mid(int flags) in fl_to_nsos_mid() argument
62 return fl_to_nsos_mid_(flags, false); in fl_to_nsos_mid()
65 int fl_to_nsos_mid_strict(int flags) in fl_to_nsos_mid_strict() argument
67 return fl_to_nsos_mid_(flags, true); in fl_to_nsos_mid_strict()
72 int flags = 0; in fl_from_nsos_mid() local
77 flags |= _flag; \ in fl_from_nsos_mid()
[all …]
/Zephyr-latest/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-latest/tests/posix/eventfd/src/
Dioctl.c18 int flags; in ZTEST_F() local
21 /* Get current flags; Expect blocking, non-semaphore. */ in ZTEST_F()
22 flags = ioctl(fixture->fd, F_GETFL, 0); in ZTEST_F()
23 zassert_equal(flags, 0, "flags == %d", flags); in ZTEST_F()
42 flags = ioctl(fixture->fd, F_GETFL, 0); in ZTEST_F()
43 zassert_equal(flags, O_NONBLOCK, "flags == %d", flags); in ZTEST_F()
63 flags = ioctl(fixture->fd, F_GETFL, 0); in ZTEST_F()
64 zassert_equal(flags, 0, "flags == %d", flags); in ZTEST_F()
/Zephyr-latest/drivers/pinctrl/
Dpinctrl_esp32.c77 static int esp32_pin_apply_config(uint32_t pin, uint32_t flags) in esp32_pin_apply_config() argument
101 if (flags & ESP32_PULL_UP_FLAG) { in esp32_pin_apply_config()
119 } else if (flags & ESP32_PULL_DOWN_FLAG) { in esp32_pin_apply_config()
139 if (flags & ESP32_DIR_OUT_FLAG) { in esp32_pin_apply_config()
145 if (flags & ESP32_OPEN_DRAIN_FLAG) { in esp32_pin_apply_config()
152 if (flags & ESP32_PIN_OUT_HIGH_FLAG) { in esp32_pin_apply_config()
154 } else if (flags & ESP32_PIN_OUT_LOW_FLAG) { in esp32_pin_apply_config()
161 if (!(flags & ESP32_PIN_OUT_EN_FLAG)) { in esp32_pin_apply_config()
166 if (flags & ESP32_DIR_INP_FLAG) { in esp32_pin_apply_config()
169 if (!(flags & ESP32_PIN_IN_EN_FLAG)) { in esp32_pin_apply_config()
[all …]
/Zephyr-latest/include/zephyr/net/
Dsocketcan_utils.h40 zframe->flags |= (sframe->can_id & BIT(31)) != 0 ? CAN_FRAME_IDE : 0; in socketcan_to_can_frame()
41 zframe->flags |= (sframe->can_id & BIT(30)) != 0 ? CAN_FRAME_RTR : 0; in socketcan_to_can_frame()
42 zframe->flags |= (sframe->flags & CANFD_FDF) != 0 ? CAN_FRAME_FDF : 0; in socketcan_to_can_frame()
43 zframe->flags |= (sframe->flags & CANFD_BRS) != 0 ? CAN_FRAME_BRS : 0; in socketcan_to_can_frame()
47 if ((zframe->flags & CAN_FRAME_RTR) == 0U) { in socketcan_to_can_frame()
65 sframe->can_id |= (zframe->flags & CAN_FRAME_IDE) != 0 ? BIT(31) : 0; in socketcan_from_can_frame()
66 sframe->can_id |= (zframe->flags & CAN_FRAME_RTR) != 0 ? BIT(30) : 0; in socketcan_from_can_frame()
69 if ((zframe->flags & CAN_FRAME_FDF) != 0) { in socketcan_from_can_frame()
70 sframe->flags |= CANFD_FDF; in socketcan_from_can_frame()
73 if ((zframe->flags & CAN_FRAME_BRS) != 0) { in socketcan_from_can_frame()
[all …]
/Zephyr-latest/subsys/portability/cmsis_rtos_v2/
Dthread_flags.c13 * @brief Set the specified Thread Flags of a thread.
15 uint32_t osThreadFlagsSet(osThreadId_t thread_id, uint32_t flags) in osThreadFlagsSet() argument
21 || (flags & 0x80000000)) { in osThreadFlagsSet()
26 tid->signal_results |= flags; in osThreadFlagsSet()
35 * @brief Get the current Thread Flags of current running thread.
54 * @brief Clear the specified Thread Flags of current running thread.
56 uint32_t osThreadFlagsClear(uint32_t flags) in osThreadFlagsClear() argument
65 if (flags & 0x80000000) { in osThreadFlagsClear()
76 tid->signal_results &= ~(flags); in osThreadFlagsClear()
83 * @brief Wait for one or more Thread Flags of the current running thread to
[all …]
Devent_flags.c24 * @brief Create and Initialize an Event Flags object.
61 * @brief Set the specified Event Flags.
63 uint32_t osEventFlagsSet(osEventFlagsId_t ef_id, uint32_t flags) in osEventFlagsSet() argument
68 if ((ef_id == NULL) || (flags & osFlagsError)) { in osEventFlagsSet()
73 events->signal_results |= flags; in osEventFlagsSet()
82 * @brief Clear the specified Event Flags.
84 uint32_t osEventFlagsClear(osEventFlagsId_t ef_id, uint32_t flags) in osEventFlagsClear() argument
90 if ((ef_id == NULL) || (flags & osFlagsError)) { in osEventFlagsClear()
96 events->signal_results &= ~(flags); in osEventFlagsClear()
103 * @brief Wait for one or more Event Flags to become signaled.
[all …]
/Zephyr-latest/.github/workflows/
Dassigner.yml36 FLAGS="-v"
37 FLAGS+=" -o ${{ github.event.repository.owner.login }}"
38 FLAGS+=" -r ${{ github.event.repository.name }}"
39 FLAGS+=" -M MAINTAINERS.yml"
41 FLAGS+=" -P ${{ github.event.pull_request.number }}"
43 FLAGS+=" -I ${{ github.event.issue.number }}"
45 FLAGS+=" --modules"
51 python3 scripts/set_assignees.py $FLAGS
/Zephyr-latest/soc/atmel/sam/common/
Dsoc_sam4l_gpio.c15 uint32_t mask, uint32_t flags) in configure_common_attr() argument
17 flags &= SOC_GPIO_FLAGS_MASK; in configure_common_attr()
23 if (flags & SOC_GPIO_PULLUP) { in configure_common_attr()
30 if (flags & SOC_GPIO_PULLDOWN) { in configure_common_attr()
37 if (flags & SOC_GPIO_OPENDRAIN) { in configure_common_attr()
45 uint32_t mask, uint32_t flags) in configure_input_attr() argument
48 if ((flags & SOC_GPIO_IN_FILTER_MASK) != 0U) { in configure_input_attr()
49 if ((flags & SOC_GPIO_IN_FILTER_MASK) == in configure_input_attr()
62 if (flags & SOC_GPIO_INT_ENABLE) { in configure_input_attr()
63 if ((flags & SOC_GPIO_INT_TRIG_MASK) == in configure_input_attr()
[all …]

12345678910>>...81