Home
last modified time | relevance | path

Searched refs:flag (Results 1 – 25 of 1635) sorted by relevance

12345678910>>...66

/linux/include/linux/
H A Dkbd_kern.h72 static inline int vc_kbd_mode(struct kbd_struct * kbd, int flag) in vc_kbd_mode() argument
74 return ((kbd->modeflags >> flag) & 1); in vc_kbd_mode()
77 static inline int vc_kbd_led(struct kbd_struct * kbd, int flag) in vc_kbd_led() argument
79 return ((kbd->ledflagstate >> flag) & 1); in vc_kbd_led()
82 static inline void set_vc_kbd_mode(struct kbd_struct * kbd, int flag) in set_vc_kbd_mode() argument
84 kbd->modeflags |= 1 << flag; in set_vc_kbd_mode()
87 static inline void set_vc_kbd_led(struct kbd_struct * kbd, int flag) in set_vc_kbd_led() argument
89 kbd->ledflagstate |= 1 << flag; in set_vc_kbd_led()
92 static inline void clr_vc_kbd_mode(struct kbd_struct * kbd, int flag) in clr_vc_kbd_mode() argument
94 kbd->modeflags &= ~(1 << flag); in clr_vc_kbd_mode()
[all …]
/linux/fs/btrfs/
H A Dfs.c8 void __btrfs_set_fs_incompat(struct btrfs_fs_info *fs_info, u64 flag, in __btrfs_set_fs_incompat() argument
16 if (!(features & flag)) { in __btrfs_set_fs_incompat()
19 if (!(features & flag)) { in __btrfs_set_fs_incompat()
20 features |= flag; in __btrfs_set_fs_incompat()
24 name, flag); in __btrfs_set_fs_incompat()
31 void __btrfs_clear_fs_incompat(struct btrfs_fs_info *fs_info, u64 flag, in __btrfs_clear_fs_incompat() argument
39 if (features & flag) { in __btrfs_clear_fs_incompat()
42 if (features & flag) { in __btrfs_clear_fs_incompat()
43 features &= ~flag; in __btrfs_clear_fs_incompat()
47 name, flag); in __btrfs_clear_fs_incompat()
[all …]
/linux/tools/testing/selftests/riscv/vector/
H A Dvstate_prctl.c76 long flag, expected; in main() local
108 flag = PR_RISCV_V_VSTATE_CTRL_ON; in main()
109 rc = prctl(PR_RISCV_V_SET_CONTROL, flag); in main()
115 flag = PR_RISCV_V_VSTATE_CTRL_OFF; in main()
116 rc = prctl(PR_RISCV_V_SET_CONTROL, flag); in main()
124 flag = PR_RISCV_V_VSTATE_CTRL_ON << PR_RISCV_V_VSTATE_CTRL_NEXT_SHIFT; in main()
125 if (test_and_compare_child(flag, PR_RISCV_V_VSTATE_CTRL_ON, 0)) in main()
129 flag = PR_RISCV_V_VSTATE_CTRL_OFF << PR_RISCV_V_VSTATE_CTRL_NEXT_SHIFT; in main()
130 if (test_and_compare_child(flag, PR_RISCV_V_VSTATE_CTRL_OFF, 0)) in main()
134 flag = PR_RISCV_V_VSTATE_CTRL_ON << PR_RISCV_V_VSTATE_CTRL_NEXT_SHIFT; in main()
[all …]
/linux/tools/testing/selftests/kvm/lib/
H A Dtest_util.c206 .flag = ANON_FLAGS, in vm_mem_backing_src_alias()
210 .flag = ANON_FLAGS, in vm_mem_backing_src_alias()
214 .flag = ANON_HUGE_FLAGS, in vm_mem_backing_src_alias()
218 .flag = ANON_HUGE_FLAGS | MAP_HUGE_16KB, in vm_mem_backing_src_alias()
222 .flag = ANON_HUGE_FLAGS | MAP_HUGE_64KB, in vm_mem_backing_src_alias()
226 .flag = ANON_HUGE_FLAGS | MAP_HUGE_512KB, in vm_mem_backing_src_alias()
230 .flag = ANON_HUGE_FLAGS | MAP_HUGE_1MB, in vm_mem_backing_src_alias()
234 .flag = ANON_HUGE_FLAGS | MAP_HUGE_2MB, in vm_mem_backing_src_alias()
238 .flag = ANON_HUGE_FLAGS | MAP_HUGE_8MB, in vm_mem_backing_src_alias()
242 .flag = ANON_HUGE_FLAGS | MAP_HUGE_16MB, in vm_mem_backing_src_alias()
[all …]
/linux/drivers/isdn/mISDN/
H A 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 …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dtc_priv.h147 static inline void __flow_flag_set(struct mlx5e_tc_flow *flow, unsigned long flag) in __flow_flag_set() argument
151 set_bit(flag, &flow->flags); in __flow_flag_set()
154 #define flow_flag_set(flow, flag) __flow_flag_set(flow, MLX5E_TC_FLOW_FLAG_##flag) argument
157 unsigned long flag) in __flow_flag_test_and_set() argument
160 return test_and_set_bit(flag, &flow->flags); in __flow_flag_test_and_set()
163 #define flow_flag_test_and_set(flow, flag) \ argument
165 MLX5E_TC_FLOW_FLAG_##flag)
167 static inline void __flow_flag_clear(struct mlx5e_tc_flow *flow, unsigned long flag) in __flow_flag_clear() argument
171 clear_bit(flag, &flow->flags); in __flow_flag_clear()
174 #define flow_flag_clear(flow, flag) __flow_flag_clear(flow, \ argument
[all …]
/linux/drivers/infiniband/hw/hfi1/
H A Dtrace_iowait.h17 TP_PROTO(struct iowait *wait, u32 flag),
18 TP_ARGS(wait, flag),
22 __field(u32, flag)
28 __entry->flag = (1 << flag);
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));
H A Diowait.c12 void iowait_set_flag(struct iowait *wait, u32 flag) in iowait_set_flag() argument
14 trace_hfi1_iowait_set(wait, flag); in iowait_set_flag()
15 set_bit(flag, &wait->flags); in iowait_set_flag()
18 bool iowait_flag_set(struct iowait *wait, u32 flag) in iowait_flag_set() argument
20 return test_bit(flag, &wait->flags); in iowait_flag_set()
23 inline void iowait_clear_flag(struct iowait *wait, u32 flag) in iowait_clear_flag() argument
25 trace_hfi1_iowait_clear(wait, flag); in iowait_clear_flag()
26 clear_bit(flag, &wait->flags); in iowait_clear_flag()
/linux/drivers/target/iscsi/
H A Discsi_target_tpg.c670 u32 flag) in iscsit_ta_generate_node_acls() argument
674 if ((flag != 0) && (flag != 1)) { in iscsit_ta_generate_node_acls()
675 pr_err("Illegal value %d\n", flag); in iscsit_ta_generate_node_acls()
679 a->generate_node_acls = flag; in iscsit_ta_generate_node_acls()
683 if (flag == 1 && a->cache_dynamic_acls == 0) { in iscsit_ta_generate_node_acls()
719 u32 flag) in iscsit_ta_cache_dynamic_acls() argument
723 if ((flag != 0) && (flag != 1)) { in iscsit_ta_cache_dynamic_acls()
724 pr_err("Illegal value %d\n", flag); in iscsit_ta_cache_dynamic_acls()
728 if (a->generate_node_acls == 1 && flag == 0) { in iscsit_ta_cache_dynamic_acls()
734 a->cache_dynamic_acls = flag; in iscsit_ta_cache_dynamic_acls()
[all …]
/linux/arch/powerpc/mm/ptdump/
H A Dptdump.c139 *flag, u64 pte, int num) in dump_flag_info()
143 for (i = 0; i < num; i++, flag++) { in dump_flag_info()
148 if (flag->mask == 0) in dump_flag_info()
151 if (flag->is_val) { in dump_flag_info()
152 val = pte & flag->val; in dump_flag_info()
153 if (flag->shift) in dump_flag_info()
154 val = val >> flag->shift; in dump_flag_info()
155 pt_dump_seq_printf(st->seq, " %s:%llx", flag->set, val); in dump_flag_info()
157 if ((pte & flag->mask) == flag->val) in dump_flag_info()
158 s = flag->set; in dump_flag_info()
[all …]
/linux/Documentation/litmus-tests/locking/
H A DDCL-broken.litmus11 int flag;
15 P0(int *flag, int *data, spinlock_t *lck)
21 r0 = READ_ONCE(*flag);
24 r1 = READ_ONCE(*flag);
27 WRITE_ONCE(*flag, 1);
34 P1(int *flag, int *data, spinlock_t *lck)
40 r0 = READ_ONCE(*flag);
43 r1 = READ_ONCE(*flag);
46 WRITE_ONCE(*flag, 1);
53 locations [flag;data;0:r0;0:r1;1:r0;1:r1]
H A DDCL-fixed.litmus12 int flag;
16 P0(int *flag, int *data, spinlock_t *lck)
22 r0 = smp_load_acquire(flag);
25 r1 = READ_ONCE(*flag);
28 smp_store_release(flag, 1);
35 P1(int *flag, int *data, spinlock_t *lck)
41 r0 = smp_load_acquire(flag);
44 r1 = READ_ONCE(*flag);
47 smp_store_release(flag, 1);
54 locations [flag;data;0:r0;0:r1;1:r0;1:r1]
/linux/net/ipv4/
H A Dtcp_lp.c78 u32 flag; member
101 lp->flag = 0; in tcp_lp_init()
125 if (!(lp->flag & LP_WITHIN_INF)) in tcp_lp_cong_avoid()
169 lp->flag |= LP_VALID_RHZ; in tcp_lp_remote_hz_estimator()
171 lp->flag &= ~LP_VALID_RHZ; in tcp_lp_remote_hz_estimator()
199 if (lp->flag & LP_VALID_RHZ) { in tcp_lp_owd_calculator()
208 lp->flag |= LP_VALID_OWD; in tcp_lp_owd_calculator()
210 lp->flag &= ~LP_VALID_OWD; in tcp_lp_owd_calculator()
233 if (!(lp->flag & LP_VALID_RHZ) || !(lp->flag & LP_VALID_OWD)) in tcp_lp_rtt_sample()
288 lp->flag |= LP_WITHIN_INF; in tcp_lp_pkts_acked()
[all …]
/linux/fs/jfs/
H A Djfs_txnmgr.c348 tid_t txBegin(struct super_block *sb, int flag) in txBegin() argument
354 jfs_info("txBegin: flag = 0x%x", flag); in txBegin()
367 if (!(flag & COMMIT_FORCE)) { in txBegin()
371 if (test_bit(log_SYNCBARRIER, &log->flag) || in txBegin()
372 test_bit(log_QUIESCE, &log->flag)) { in txBegin()
378 if (flag == 0) { in txBegin()
403 if ((tblk->next == 0) && !(flag & COMMIT_FORCE)) { in txBegin()
423 tblk->next = tblk->last = tblk->xflag = tblk->flag = tblk->lsn = 0; in txBegin()
465 if (test_bit(log_SYNCBARRIER, &log->flag) || in txBeginAnon()
466 test_bit(log_QUIESCE, &log->flag)) { in txBeginAnon()
[all …]
H A Dxattr.c60 int flag; /* Indicates what storage xattr points to */ member
159 if (!(ji->mode2 & INLINEEA) && !(ji->ea.flag & DXD_INLINE)) in ea_write_inline()
166 ea->flag = DXD_INLINE; in ea_write_inline()
169 ea->flag = 0; in ea_write_inline()
175 if (ji->ea.flag & DXD_INLINE) in ea_write_inline()
287 ea->flag = DXD_EXTENT; in ea_write()
293 if (ji->ea.flag & DXD_INLINE) in ea_write()
365 if (ji->ea.flag & DXD_INLINE) in ea_read()
440 if (ji->ea.flag == 0) in ea_get()
445 ea_buf->flag = 0; in ea_get()
[all …]
H A Djfs_logmgr.c178 static void lbmWrite(struct jfs_log * log, struct lbuf * bp, int flag, int cant_block);
179 static void lbmDirectWrite(struct jfs_log * log, struct lbuf * bp, int flag);
180 static int lbmIOWait(struct lbuf * bp, int flag);
379 if (tlck->flag & tlckPAGELOCK) { in lmWriteRecord()
384 else if (tlck->flag & tlckINODELOCK) { in lmWriteRecord()
509 tblk->flag = tblkGC_QUEUE; in lmWriteRecord()
590 tblk->flag |= tblkGC_EOP; in lmNextPage()
665 if (tblk->flag & tblkGC_COMMITTED) { in lmGroupCommit()
666 if (tblk->flag & tblkGC_ERROR) in lmGroupCommit()
675 tblk->flag |= tblkGC_LAZY; in lmGroupCommit()
[all …]
/linux/fs/f2fs/
H A Dnode.h63 unsigned char flag; /* for node information bits */ member
96 ne->ni.flag |= BIT(type); in set_nat_flag()
98 ne->ni.flag &= ~BIT(type); in set_nat_flag()
103 return ne->ni.flag & BIT(type); in get_nat_flag()
254 unsigned flag = le32_to_cpu(rn->footer.flag); in ofs_of_node() local
255 return flag >> OFFSET_BIT_SHIFT; in ofs_of_node()
279 old_flag = le32_to_cpu(rn->footer.flag); in fill_node_footer()
285 rn->footer.flag = cpu_to_le32((ofs << OFFSET_BIT_SHIFT) | in fill_node_footer()
395 return le32_to_cpu(rn->footer.flag) & BIT(type); in is_node()
405 unsigned int flag = le32_to_cpu(rn->footer.flag); in set_cold_node() local
[all …]
/linux/arch/s390/include/asm/
H A Dprocessor.h63 static __always_inline void set_cpu_flag(int flag) in set_cpu_flag() argument
65 this_pcpu()->flags |= (1UL << flag); in set_cpu_flag()
68 static __always_inline void clear_cpu_flag(int flag) in clear_cpu_flag() argument
70 this_pcpu()->flags &= ~(1UL << flag); in clear_cpu_flag()
73 static __always_inline bool test_cpu_flag(int flag) in test_cpu_flag() argument
75 return this_pcpu()->flags & (1UL << flag); in test_cpu_flag()
78 static __always_inline bool test_and_set_cpu_flag(int flag) in test_and_set_cpu_flag() argument
80 if (test_cpu_flag(flag)) in test_and_set_cpu_flag()
82 set_cpu_flag(flag); in test_and_set_cpu_flag()
86 static __always_inline bool test_and_clear_cpu_flag(int flag) in test_and_clear_cpu_flag() argument
[all …]
/linux/fs/smb/client/compress/
H A Dlz77.c137 long flag = 0; in lz77_compress() local
171 flag <<= 1; in lz77_compress()
174 lz77_write32(flag_pos, flag); in lz77_compress()
195 flag = (flag << 1) | 1; in lz77_compress()
198 lz77_write32(flag_pos, flag); in lz77_compress()
213 flag <<= c; in lz77_compress()
216 lz77_write32(flag_pos, flag); in lz77_compress()
223 flag <<= (32 - flag_count); in lz77_compress()
224 flag |= (1 << (32 - flag_count)) - 1; in lz77_compress()
225 lz77_write32(flag_pos, flag); in lz77_compress()
/linux/scripts/coccinelle/api/
H A Dmemdup.cocci19 expression flag;
23 to = \(kmalloc@p\|kzalloc@p\)(strlen(from) + 1,flag);
27 expression flag,E1;
33 to = \(kmalloc@p\|kzalloc@p\)(x,flag);
36 expression from,to,size,flag;
41 - to = \(kmalloc@p\|kzalloc@p\)(size,flag);
42 + to = kmemdup(from,size,flag);
47 expression from,to,size,flag;
52 * to = \(kmalloc@p\|kzalloc@p\)(size,flag);
/linux/arch/sh/kernel/cpu/sh4/
H A Dsoftfloat.c44 typedef char flag; typedef
72 flag extractFloat64Sign(float64 a);
75 flag extractFloat32Sign(float32 a);
77 float64 packFloat64(flag zSign, int16 zExp, bits64 zSig);
79 float32 packFloat32(flag zSign, int16 zExp, bits32 zSig);
98 static float64 normalizeRoundAndPackFloat64(flag zSign, int16 zExp,
100 static float64 subFloat64Sigs(float64 a, float64 b, flag zSign);
101 static float64 addFloat64Sigs(float64 a, float64 b, flag zSign);
102 static float32 roundAndPackFloat32(flag zSign, int16 zExp, bits32 zSig);
103 static float32 normalizeRoundAndPackFloat32(flag zSign, int16 zExp,
[all …]
/linux/lib/raid6/
H A Dx86.h57 static inline int boot_cpu_has(int flag) in boot_cpu_has() argument
61 eax = (flag & 0x100) ? 7 : in boot_cpu_has()
62 (flag & 0x20) ? 0x80000001 : 1; in boot_cpu_has()
68 return ((flag & 0x100 ? ebx : in boot_cpu_has()
69 (flag & 0x80) ? ecx : edx) >> (flag & 31)) & 1; in boot_cpu_has()
/linux/arch/arm/nwfpe/
H A Dsoftfloat.c70 static int32 roundAndPackInt32( struct roundingData *roundData, flag zSign, bits64 absZ ) in roundAndPackInt32()
73 flag roundNearestEven; in roundAndPackInt32()
138 INLINE flag extractFloat32Sign( float32 a )
177 INLINE float32 packFloat32( flag zSign, int16 zExp, bits32 zSig ) in packFloat32()
217 static float32 roundAndPackFloat32( struct roundingData *roundData, flag zSign, int16 zExp, bits32 … in roundAndPackFloat32()
220 flag roundNearestEven; in roundAndPackFloat32()
222 flag isTiny; in roundAndPackFloat32()
280 normalizeRoundAndPackFloat32( struct roundingData *roundData, flag zSign, int16 zExp, bits32 zSig ) in normalizeRoundAndPackFloat32()
319 INLINE flag extractFloat64Sign( float64 a )
358 INLINE float64 packFloat64( flag zSign, int16 zExp, bits64 zSig ) in packFloat64()
[all …]
H A Dsoftfloat.h229 extern flag floatx80_is_nan(floatx80);
233 static inline flag extractFloat32Sign(float32 a) in extractFloat32Sign()
238 static inline flag float32_eq_nocheck(float32 a, float32 b) in float32_eq_nocheck()
243 static inline flag float32_lt_nocheck(float32 a, float32 b) in float32_lt_nocheck()
245 flag aSign, bSign; in float32_lt_nocheck()
254 static inline flag extractFloat64Sign(float64 a) in extractFloat64Sign()
259 static inline flag float64_eq_nocheck(float64 a, float64 b) in float64_eq_nocheck()
264 static inline flag float64_lt_nocheck(float64 a, float64 b) in float64_lt_nocheck()
266 flag aSign, bSign; in float64_lt_nocheck()
275 extern flag float32_is_nan( float32 a );
[all …]
/linux/include/trace/events/
H A Dmmflags.h16 #define gfpflag_string(flag) {(__force unsigned long)flag, #flag} argument
145 #define IF_HAVE_VM_SOFTDIRTY(flag,name) {flag, name }, argument
147 #define IF_HAVE_VM_SOFTDIRTY(flag,name) argument
151 # define IF_HAVE_UFFD_MINOR(flag, name) {flag, name}, argument
153 # define IF_HAVE_UFFD_MINOR(flag, name) argument
157 # define IF_HAVE_VM_DROPPABLE(flag, name) {flag, name}, argument
159 # define IF_HAVE_VM_DROPPABLE(flag, name) argument

12345678910>>...66