Home
last modified time | relevance | path

Searched full:flag (Results 1 – 25 of 5205) sorted by relevance

12345678910>>...209

/kernel/liteos_m/targets/riscv_nuclei_gd32vf103_soc_gcc/SoC/gd32vf103/Common/Source/Drivers/
Dgd32vf103_rtc.c99 \brief wait RTC last write operation finished flag set
106 /* loop until LWOFF flag is set */ in rtc_lwoff_wait()
112 \brief wait RTC registers synchronized flag set
119 /* clear RSYNF flag */ in rtc_register_sync_wait()
121 /* loop until RSYNF flag is set */ in rtc_register_sync_wait()
173 \brief get RTC flag status
174 \param[in] flag: specify which flag status to get
176 \arg RTC_FLAG_SECOND: second interrupt flag
177 \arg RTC_FLAG_ALARM: alarm interrupt flag
178 \arg RTC_FLAG_OVERFLOW: overflow interrupt flag
[all …]
Dgd32vf103_fmc.c523 \brief check flag is set or not
524 \param[in] flag: check FMC flag
526 \arg FMC_FLAG_BUSY: FMC busy flag bit
527 \arg FMC_FLAG_PGERR: FMC operation error flag bit
528 \arg FMC_FLAG_WPERR: FMC erase/program protection error flag bit
529 \arg FMC_FLAG_END: FMC end of operation flag bit
530 \arg FMC_FLAG_OBERR: FMC option bytes read error flag bit
534 FlagStatus fmc_flag_get(uint32_t flag) in fmc_flag_get() argument
536 if(RESET != (FMC_REG_VAL(flag) & BIT(FMC_BIT_POS(flag)))){ in fmc_flag_get()
544 \brief clear the FMC flag
[all …]
Dgd32vf103_can.c158 ErrStatus flag = ERROR; in can_init() local
170 flag = ERROR; in can_init()
224 flag = SUCCESS; in can_init()
240 return flag; in can_init()
681 ErrStatus flag = ERROR; in can_working_mode_set() local
695 flag = ERROR; in can_working_mode_set()
697 flag = SUCCESS; in can_working_mode_set()
707 flag = ERROR; in can_working_mode_set()
709 flag = SUCCESS; in can_working_mode_set()
721 flag = ERROR; in can_working_mode_set()
[all …]
Dgd32vf103_dma.c544 \brief check DMA flag is set or not
547 \param[in] channelx: specify which DMA channel to get flag
550 \param[in] flag: specify get which flag
552 \arg DMA_FLAG_G: global interrupt flag of channel
553 \arg DMA_FLAG_FTF: full transfer finish flag of channel
554 \arg DMA_FLAG_HTF: half transfer finish flag of channel
555 \arg DMA_FLAG_ERR: error flag of channel
559 FlagStatus dma_flag_get(uint32_t dma_periph, dma_channel_enum channelx, uint32_t flag) in dma_flag_get() argument
563 if(RESET != (DMA_INTF(dma_periph) & DMA_FLAG_ADD(flag, channelx))){ in dma_flag_get()
573 \brief clear DMA a channel flag
[all …]
/kernel/linux/linux-4.19/include/linux/
Dthread_info.h49 * flag set/clear/test wrappers
53 static inline void set_ti_thread_flag(struct thread_info *ti, int flag) in set_ti_thread_flag() argument
55 set_bit(flag, (unsigned long *)&ti->flags); in set_ti_thread_flag()
58 static inline void clear_ti_thread_flag(struct thread_info *ti, int flag) in clear_ti_thread_flag() argument
60 clear_bit(flag, (unsigned long *)&ti->flags); in clear_ti_thread_flag()
63 static inline void update_ti_thread_flag(struct thread_info *ti, int flag, in update_ti_thread_flag() argument
67 set_ti_thread_flag(ti, flag); in update_ti_thread_flag()
69 clear_ti_thread_flag(ti, flag); in update_ti_thread_flag()
72 static inline int test_and_set_ti_thread_flag(struct thread_info *ti, int flag) in test_and_set_ti_thread_flag() argument
74 return test_and_set_bit(flag, (unsigned long *)&ti->flags); in test_and_set_ti_thread_flag()
[all …]
Dkbd_kern.h17 * kbd->xxx contains the VC-local things (flag settings etc..)
83 static inline int vc_kbd_mode(struct kbd_struct * kbd, int flag) in vc_kbd_mode() argument
85 return ((kbd->modeflags >> flag) & 1); in vc_kbd_mode()
88 static inline int vc_kbd_led(struct kbd_struct * kbd, int flag) in vc_kbd_led() argument
90 return ((kbd->ledflagstate >> flag) & 1); in vc_kbd_led()
93 static inline void set_vc_kbd_mode(struct kbd_struct * kbd, int flag) in set_vc_kbd_mode() argument
95 kbd->modeflags |= 1 << flag; in set_vc_kbd_mode()
98 static inline void set_vc_kbd_led(struct kbd_struct * kbd, int flag) in set_vc_kbd_led() argument
100 kbd->ledflagstate |= 1 << flag; in set_vc_kbd_led()
103 static inline void clr_vc_kbd_mode(struct kbd_struct * kbd, int flag) in clr_vc_kbd_mode() argument
[all …]
/kernel/linux/linux-5.10/include/linux/
Dthread_info.h62 * flag set/clear/test wrappers
66 static inline void set_ti_thread_flag(struct thread_info *ti, int flag) in set_ti_thread_flag() argument
68 set_bit(flag, (unsigned long *)&ti->flags); in set_ti_thread_flag()
71 static inline void clear_ti_thread_flag(struct thread_info *ti, int flag) in clear_ti_thread_flag() argument
73 clear_bit(flag, (unsigned long *)&ti->flags); in clear_ti_thread_flag()
76 static inline void update_ti_thread_flag(struct thread_info *ti, int flag, in update_ti_thread_flag() argument
80 set_ti_thread_flag(ti, flag); in update_ti_thread_flag()
82 clear_ti_thread_flag(ti, flag); in update_ti_thread_flag()
85 static inline int test_and_set_ti_thread_flag(struct thread_info *ti, int flag) in test_and_set_ti_thread_flag() argument
87 return test_and_set_bit(flag, (unsigned long *)&ti->flags); in test_and_set_ti_thread_flag()
[all …]
Dkbd_kern.h17 * kbd->xxx contains the VC-local things (flag settings etc..)
83 static inline int vc_kbd_mode(struct kbd_struct * kbd, int flag) in vc_kbd_mode() argument
85 return ((kbd->modeflags >> flag) & 1); in vc_kbd_mode()
88 static inline int vc_kbd_led(struct kbd_struct * kbd, int flag) in vc_kbd_led() argument
90 return ((kbd->ledflagstate >> flag) & 1); in vc_kbd_led()
93 static inline void set_vc_kbd_mode(struct kbd_struct * kbd, int flag) in set_vc_kbd_mode() argument
95 kbd->modeflags |= 1 << flag; in set_vc_kbd_mode()
98 static inline void set_vc_kbd_led(struct kbd_struct * kbd, int flag) in set_vc_kbd_led() argument
100 kbd->ledflagstate |= 1 << flag; in set_vc_kbd_led()
103 static inline void clr_vc_kbd_mode(struct kbd_struct * kbd, int flag) in clr_vc_kbd_mode() argument
[all …]
/kernel/linux/linux-4.19/net/mac80211/
Ddebugfs.c174 #define FLAG(F) [IEEE80211_HW_##F] = #F macro
175 FLAG(HAS_RATE_CONTROL),
176 FLAG(RX_INCLUDES_FCS),
177 FLAG(HOST_BROADCAST_PS_BUFFERING),
178 FLAG(SIGNAL_UNSPEC),
179 FLAG(SIGNAL_DBM),
180 FLAG(NEED_DTIM_BEFORE_ASSOC),
181 FLAG(SPECTRUM_MGMT),
182 FLAG(AMPDU_AGGREGATION),
183 FLAG(SUPPORTS_PS),
[all …]
/kernel/liteos_m/targets/riscv_nuclei_gd32vf103_soc_gcc/SoC/gd32vf103/Common/Include/
Dgd32vf103_rtc.h64 #define RTC_CTL_SCIF BIT(0) /*!< second interrupt flag */
65 #define RTC_CTL_ALRMIF BIT(1) /*!< alarm interrupt flag */
66 #define RTC_CTL_OVIF BIT(2) /*!< overflow interrupt flag */
67 #define RTC_CTL_RSYNF BIT(3) /*!< registers synchronized flag */
68 #define RTC_CTL_CMF BIT(4) /*!< configuration mode flag */
69 …ne RTC_CTL_LWOFF BIT(5) /*!< last write operation finished flag */
101 /* RTC interrupt flag definitions */
102 #define RTC_INT_FLAG_SECOND RTC_CTL_SCIF /*!< second interrupt flag */
103 #define RTC_INT_FLAG_ALARM RTC_CTL_ALRMIF /*!< alarm interrupt flag */
104 #define RTC_INT_FLAG_OVERFLOW RTC_CTL_OVIF /*!< overflow interrupt flag */
[all …]
Dgd32vf103_pmu.h53 #define PMU_CTL_WURST BIT(2) /*!< wakeup flag reset */
54 #define PMU_CTL_STBRST BIT(3) /*!< standby flag reset */
60 #define PMU_CS_WUF BIT(0) /*!< wakeup flag */
61 #define PMU_CS_STBF BIT(1) /*!< standby flag */
62 …ine PMU_CS_LVDF BIT(2) /*!< low voltage detector status flag */
77 /* PMU flag definitions */
78 #define PMU_FLAG_WAKEUP PMU_CS_WUF /*!< wakeup flag status */
79 #define PMU_FLAG_STANDBY PMU_CS_STBF /*!< standby flag status */
80 #define PMU_FLAG_LVD PMU_CS_LVDF /*!< lvd flag status */
86 /* PMU flag reset definitions */
[all …]
/kernel/linux/linux-5.10/net/mac80211/
Ddebugfs.c357 #define FLAG(F) [IEEE80211_HW_##F] = #F macro
358 FLAG(HAS_RATE_CONTROL),
359 FLAG(RX_INCLUDES_FCS),
360 FLAG(HOST_BROADCAST_PS_BUFFERING),
361 FLAG(SIGNAL_UNSPEC),
362 FLAG(SIGNAL_DBM),
363 FLAG(NEED_DTIM_BEFORE_ASSOC),
364 FLAG(SPECTRUM_MGMT),
365 FLAG(AMPDU_AGGREGATION),
366 FLAG(SUPPORTS_PS),
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/mmc/
Dmmc-controller.yaml38 $ref: /schemas/types.yaml#/definitions/flag
47 $ref: /schemas/types.yaml#/definitions/flag
63 # using the GPIO_ACTIVE_LOW flag. This creates an ambiguity in the
66 # example leaving the GPIO_ACTIVE_LOW flag clear and specifying the
71 $ref: /schemas/types.yaml#/definitions/flag
76 $ref: /schemas/types.yaml#/definitions/flag
97 $ref: /schemas/types.yaml#/definitions/flag
116 $ref: /schemas/types.yaml#/definitions/flag
122 $ref: /schemas/types.yaml#/definitions/flag
127 $ref: /schemas/types.yaml#/definitions/flag
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/hfi1/
Dtrace_iowait.h17 TP_PROTO(struct iowait *wait, u32 flag),
18 TP_ARGS(wait, flag),
22 __field(u32, flag)
28 __entry->flag = (1 << flag);
32 "iowait 0x%lx qp %u flags 0x%lx flag 0x%x",
36 __entry->flag
41 TP_PROTO(struct iowait *wait, u32 flag),
42 TP_ARGS(wait, flag));
45 TP_PROTO(struct iowait *wait, u32 flag),
46 TP_ARGS(wait, flag));
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/
Datomisp_cmd.h105 int atomisp_gdc_cac(struct atomisp_sub_device *asd, int flag,
111 int atomisp_low_light(struct atomisp_sub_device *asd, int flag,
118 int atomisp_xnr(struct atomisp_sub_device *asd, int flag, int *arg);
120 int atomisp_formats(struct atomisp_sub_device *asd, int flag,
126 int atomisp_nr(struct atomisp_sub_device *asd, int flag,
132 int atomisp_tnr(struct atomisp_sub_device *asd, int flag,
138 int atomisp_black_level(struct atomisp_sub_device *asd, int flag,
144 int atomisp_ee(struct atomisp_sub_device *asd, int flag,
150 int atomisp_gamma(struct atomisp_sub_device *asd, int flag,
155 int atomisp_ctc(struct atomisp_sub_device *asd, int flag,
[all …]
/kernel/linux/linux-5.10/drivers/isdn/mISDN/
Dlayer2.c113 return ((test_bit(FLG_MOD128, &l2->flag) && (!ui)) ? 2 : 1) + in l2headersize()
114 (test_bit(FLG_LAPD, &l2->flag) ? 2 : 1); in l2headersize()
120 return test_bit(FLG_LAPD, &l2->flag) ? 2 : 1; in l2addrsize()
196 if (test_and_set_bit(FLG_L1_NOTREADY, &l2->flag)) { in l2down_raw()
241 if (test_bit(FLG_L1_NOTREADY, &l2->flag)) { in ph_data_confirm()
257 test_and_clear_bit(FLG_L1_NOTREADY, &l2->flag); in ph_data_confirm()
262 if (!test_and_set_bit(FLG_L1_NOTREADY, &l2->flag)) { in ph_data_confirm()
269 test_and_clear_bit(FLG_L1_NOTREADY, &l2->flag); in ph_data_confirm()
272 test_and_clear_bit(FLG_L1_NOTREADY, &l2->flag); in ph_data_confirm()
308 if (test_bit(FLG_LAPD, &l2->flag) && in l2mgr()
[all …]
/kernel/linux/linux-4.19/drivers/isdn/mISDN/
Dlayer2.c122 return ((test_bit(FLG_MOD128, &l2->flag) && (!ui)) ? 2 : 1) + in l2headersize()
123 (test_bit(FLG_LAPD, &l2->flag) ? 2 : 1); in l2headersize()
129 return test_bit(FLG_LAPD, &l2->flag) ? 2 : 1; in l2addrsize()
205 if (test_and_set_bit(FLG_L1_NOTREADY, &l2->flag)) { in l2down_raw()
250 if (test_bit(FLG_L1_NOTREADY, &l2->flag)) { in ph_data_confirm()
266 test_and_clear_bit(FLG_L1_NOTREADY, &l2->flag); in ph_data_confirm()
271 if (!test_and_set_bit(FLG_L1_NOTREADY, &l2->flag)) { in ph_data_confirm()
278 test_and_clear_bit(FLG_L1_NOTREADY, &l2->flag); in ph_data_confirm()
281 test_and_clear_bit(FLG_L1_NOTREADY, &l2->flag); in ph_data_confirm()
317 if (test_bit(FLG_LAPD, &l2->flag) && in l2mgr()
[all …]
/kernel/linux/linux-4.19/drivers/isdn/hisax/
Disdnl2.c111 test_and_set_bit(FLG_PEER_BUSY, &l2->flag); in set_peer_busy()
114 test_and_set_bit(FLG_L2BLOCK, &l2->flag); in set_peer_busy()
119 if (test_and_clear_bit(FLG_PEER_BUSY, &l2->flag)) in clear_peer_busy()
120 test_and_clear_bit(FLG_L2BLOCK, &l2->flag); in clear_peer_busy()
167 if (test_bit(FLG_MOD128, &st->l2.flag)) in cansend()
171 return ((p1 < st->l2.window) && !test_bit(FLG_PEER_BUSY, &st->l2.flag)); in cansend()
177 test_and_clear_bit(FLG_ACK_PEND, &l2->flag); in clear_exception()
178 test_and_clear_bit(FLG_REJEXC, &l2->flag); in clear_exception()
179 test_and_clear_bit(FLG_OWN_BUSY, &l2->flag); in clear_exception()
186 return (((test_bit(FLG_MOD128, &l2->flag) && (!ui)) ? 2 : 1) + in l2headersize()
[all …]
/kernel/linux/linux-5.10/drivers/clk/bcm/
Dclk-kona.h37 * Utility macros for object flag management. If possible, flags
40 #define FLAG(type, flag) BCM_CLK_ ## type ## _FLAGS_ ## flag argument
41 #define FLAG_SET(obj, type, flag) ((obj)->flags |= FLAG(type, flag)) argument
42 #define FLAG_CLEAR(obj, type, flag) ((obj)->flags &= ~(FLAG(type, flag))) argument
43 #define FLAG_FLIP(obj, type, flag) ((obj)->flags ^= FLAG(type, flag)) argument
44 #define FLAG_TEST(obj, type, flag) (!!((obj)->flags & FLAG(type, flag))) argument
165 .flags = FLAG(GATE, HW)|FLAG(GATE, SW)| \
166 FLAG(GATE, SW_MANAGED)|FLAG(GATE, ENABLED)| \
167 FLAG(GATE, EXISTS), \
177 .flags = FLAG(GATE, HW)|FLAG(GATE, SW)| \
[all …]
/kernel/linux/linux-4.19/drivers/clk/bcm/
Dclk-kona.h37 * Utility macros for object flag management. If possible, flags
40 #define FLAG(type, flag) BCM_CLK_ ## type ## _FLAGS_ ## flag argument
41 #define FLAG_SET(obj, type, flag) ((obj)->flags |= FLAG(type, flag)) argument
42 #define FLAG_CLEAR(obj, type, flag) ((obj)->flags &= ~(FLAG(type, flag))) argument
43 #define FLAG_FLIP(obj, type, flag) ((obj)->flags ^= FLAG(type, flag)) argument
44 #define FLAG_TEST(obj, type, flag) (!!((obj)->flags & FLAG(type, flag))) argument
165 .flags = FLAG(GATE, HW)|FLAG(GATE, SW)| \
166 FLAG(GATE, SW_MANAGED)|FLAG(GATE, ENABLED)| \
167 FLAG(GATE, EXISTS), \
177 .flags = FLAG(GATE, HW)|FLAG(GATE, SW)| \
[all …]
/kernel/linux/linux-5.10/tools/lib/traceevent/
Devent-parse-api.c54 * tep_set_flag - set event parser flag
56 * @flag: flag, or combination of flags to be set
59 * This sets a flag or combination of flags from enum tep_flag
61 void tep_set_flag(struct tep_handle *tep, int flag) in tep_set_flag() argument
64 tep->flags |= flag; in tep_set_flag()
68 * tep_clear_flag - clear event parser flag
70 * @flag: flag to be cleared
72 * This clears a tep flag
74 void tep_clear_flag(struct tep_handle *tep, enum tep_flag flag) in tep_clear_flag() argument
77 tep->flags &= ~flag; in tep_clear_flag()
[all …]
/kernel/linux/linux-5.10/fs/hmdfs/comm/
Dmessage_verify.c23 int flag, cmd; in hmdfs_message_verify_init() local
31 for (flag = 0; flag < C_FLAG_SIZE; flag++) { in hmdfs_message_verify_init()
33 message_length[flag][cmd][HMDFS_MESSAGE_MIN_INDEX] = 1; in hmdfs_message_verify_init()
34 message_length[flag][cmd][HMDFS_MESSAGE_MAX_INDEX] = 0; in hmdfs_message_verify_init()
35 message_length[flag][cmd][HMDFS_MESSAGE_LEN_JUDGE_INDEX] = in hmdfs_message_verify_init()
344 static int hmdfs_open_message_verify(int flag, size_t len, void *data) in hmdfs_open_message_verify() argument
350 if (flag != C_REQUEST || !data) in hmdfs_open_message_verify()
375 static int hmdfs_atomic_open_verify(int flag, size_t len, void *data) in hmdfs_atomic_open_verify() argument
384 if (flag != C_REQUEST || !data) in hmdfs_atomic_open_verify()
413 static int hmdfs_iterate_verify(int flag, size_t len, void *data) in hmdfs_iterate_verify() argument
[all …]
/kernel/linux/linux-5.10/Documentation/userspace-api/media/v4l/
Dvidioc-enum-fmt.rst162 This flag can only be used in combination with the
163 ``V4L2_FMT_FLAG_COMPRESSED`` flag, since this applies to compressed
164 formats only. This flag is valid for stateful decoders only.
172 This flag can only be used in combination with the
173 ``V4L2_FMT_FLAG_COMPRESSED`` flag, since this applies to
174 compressed formats only. This flag is valid for stateful codecs only.
181 If this flag is set, then the ``CAPTURE`` coded frame interval can be
188 This flag can only be used in combination with the
189 ``V4L2_FMT_FLAG_COMPRESSED`` flag, since this applies to
190 compressed formats only. This flag is valid for stateful encoders only.
[all …]
Dbuffer.rst52 ``V4L2_CTRL_FLAG_MODIFY_LAYOUT`` flag.
58 ``V4L2_CTRL_FLAG_GRABBED`` flag when calling
76 allocation and the ``V4L2_CTRL_FLAG_GRABBED`` flag is cleared once the
85 allocated. After freeing all buffers the ``V4L2_CTRL_FLAG_GRABBED`` flag
218 - When the ``V4L2_BUF_FLAG_TIMECODE`` flag is set in ``flags``, this
295 - The file descriptor of the request to queue the buffer to. If the flag
297 queued to this request. If the flag is not set, then this field will
300 The ``V4L2_BUF_FLAG_REQUEST_FD`` flag and this field are only used by
466 * .. _`V4L2-BUF-FLAG-MAPPED`:
472 Drivers set or clear this flag when the
[all …]
/kernel/linux/linux-5.10/include/uapi/linux/
Dtipc_netlink.h108 TIPC_NLA_UDP_MULTI_REMOTEIP, /* flag */
119 TIPC_NLA_SOCK_HAS_PUBL, /* flag */
126 TIPC_NLA_SOCK_PAD, /* flag */
139 TIPC_NLA_LINK_BROADCAST, /* flag */
140 TIPC_NLA_LINK_UP, /* flag */
141 TIPC_NLA_LINK_ACTIVE, /* flag */
165 TIPC_NLA_NODE_UP, /* flag */
168 TIPC_NLA_NODE_KEY_MASTER, /* flag */
182 TIPC_NLA_NET_ADDR_LEGACY, /* flag */
202 TIPC_NLA_MON_ACTIVE, /* flag */
[all …]

12345678910>>...209