Home
last modified time | relevance | path

Searched refs:cond (Results 1 – 25 of 301) sorted by relevance

12345678910>>...13

/linux-6.15/tools/perf/arch/sparc/annotate/
H A Dinstructions.c8 if (cond[0] == 'a' && cond[1] == '\0') in is_branch_cond()
12 (cond[1] == 'c' || cond[1] == 's') && in is_branch_cond()
18 (cond[1] == 'q' && cond[2] == '\0'))) in is_branch_cond()
23 (cond[1] == 't' && cond[2] == '\0') || in is_branch_cond()
24 (cond[1] == 'e' && cond[2] == '\0') || in is_branch_cond()
25 (cond[1] == 'e' && cond[2] == 'u' && cond[3] == '\0'))) in is_branch_cond()
30 (cond[1] == 't' && cond[2] == '\0') || in is_branch_cond()
31 (cond[1] == 'u' && cond[2] == '\0') || in is_branch_cond()
32 (cond[1] == 'e' && cond[2] == '\0') || in is_branch_cond()
33 (cond[1] == 'e' && cond[2] == 'u' && cond[3] == '\0'))) in is_branch_cond()
[all …]
/linux-6.15/include/linux/
H A Dmmdebug.h21 #define VM_BUG_ON(cond) BUG_ON(cond) argument
102 #define VM_WARN_ON(cond) (void)WARN_ON(cond) argument
103 #define VM_WARN_ON_ONCE(cond) (void)WARN_ON_ONCE(cond) argument
107 #define VM_BUG_ON(cond) BUILD_BUG_ON_INVALID(cond) argument
108 #define VM_BUG_ON_PAGE(cond, page) VM_BUG_ON(cond) argument
109 #define VM_BUG_ON_FOLIO(cond, folio) VM_BUG_ON(cond) argument
110 #define VM_BUG_ON_VMA(cond, vma) VM_BUG_ON(cond) argument
111 #define VM_BUG_ON_MM(cond, mm) VM_BUG_ON(cond) argument
112 #define VM_WARN_ON(cond) BUILD_BUG_ON_INVALID(cond) argument
113 #define VM_WARN_ON_ONCE(cond) BUILD_BUG_ON_INVALID(cond) argument
[all …]
H A Dvfsdebug.h12 #define VFS_BUG_ON(cond) BUG_ON(cond) argument
13 #define VFS_WARN_ON(cond) (void)WARN_ON(cond) argument
14 #define VFS_WARN_ON_ONCE(cond) (void)WARN_ON_ONCE(cond) argument
15 #define VFS_WARN_ONCE(cond, format...) (void)WARN_ONCE(cond, format) argument
16 #define VFS_WARN(cond, format...) (void)WARN(cond, format) argument
35 #define VFS_BUG_ON(cond) BUILD_BUG_ON_INVALID(cond) argument
36 #define VFS_WARN_ON(cond) BUILD_BUG_ON_INVALID(cond) argument
37 #define VFS_WARN_ON_ONCE(cond) BUILD_BUG_ON_INVALID(cond) argument
38 #define VFS_WARN_ONCE(cond, format...) BUILD_BUG_ON_INVALID(cond) argument
39 #define VFS_WARN(cond, format...) BUILD_BUG_ON_INVALID(cond) argument
[all …]
H A Diopoll.h36 #define read_poll_timeout(op, val, cond, sleep_us, timeout_us, \ argument
47 if (cond) \
58 (cond) ? 0 : -ETIMEDOUT; \
98 if (cond) \
113 (cond) ? 0 : -ETIMEDOUT; \
157 #define readb_poll_timeout(addr, val, cond, delay_us, timeout_us) \ argument
158 readx_poll_timeout(readb, addr, val, cond, delay_us, timeout_us)
163 #define readw_poll_timeout(addr, val, cond, delay_us, timeout_us) \ argument
164 readx_poll_timeout(readw, addr, val, cond, delay_us, timeout_us)
170 readx_poll_timeout(readl, addr, val, cond, delay_us, timeout_us)
[all …]
H A Dbug.h18 #define MAYBE_BUILD_BUG_ON(cond) (0) argument
21 #define MAYBE_BUILD_BUG_ON(cond) \ argument
23 if (__builtin_constant_p((cond))) \
24 BUILD_BUG_ON(cond); \
26 BUG_ON(cond); \
/linux-6.15/arch/parisc/math-emu/
H A Ddfcmp.c67 Set_status_cbit(Unordered(cond)); in dbl_fcmp()
71 Set_status_cbit(Unordered(cond)); in dbl_fcmp()
83 Set_status_cbit(Unordered(cond)); in dbl_fcmp()
98 Set_status_cbit(Equal(cond)); in dbl_fcmp()
102 Set_status_cbit(Lessthan(cond)); in dbl_fcmp()
113 Set_status_cbit(Equal(cond)); in dbl_fcmp()
120 Set_status_cbit(Lessthan(cond)); in dbl_fcmp()
132 Set_status_cbit(Lessthan(cond)); in dbl_fcmp()
136 Set_status_cbit(Greaterthan(cond)); in dbl_fcmp()
147 Set_status_cbit(Lessthan(cond)); in dbl_fcmp()
[all …]
H A Dsfcmp.c37 unsigned int cond, unsigned int *status) in sgl_fcmp() argument
67 Set_status_cbit(Unordered(cond)); in sgl_fcmp()
71 Set_status_cbit(Unordered(cond)); in sgl_fcmp()
83 Set_status_cbit(Unordered(cond)); in sgl_fcmp()
98 Set_status_cbit(Equal(cond)); in sgl_fcmp()
102 Set_status_cbit(Lessthan(cond)); in sgl_fcmp()
106 Set_status_cbit(Greaterthan(cond)); in sgl_fcmp()
113 Set_status_cbit(Equal(cond)); in sgl_fcmp()
120 Set_status_cbit(Lessthan(cond)); in sgl_fcmp()
124 Set_status_cbit(Greaterthan(cond)); in sgl_fcmp()
[all …]
/linux-6.15/Documentation/arch/arm/nwfpe/
H A Dnetwinder-fpe.rst24 <LDF|STF>{cond}<S|D|E> Fd, Rn
25 <LDF|STF>{cond}<S|D|E> Fd, [Rn, #<expression>]{!}
26 <LDF|STF>{cond}<S|D|E> Fd, [Rn], #<expression>
33 <LFM|SFM>{cond}<S|D|E> Fd, <count>, [Rn]
38 <LFM|SFM>{cond}<FD,EA> Fd, <count>, [Rn]{!}
68 CMF{cond} Fn, Fm Compare floating
70 CNF{cond} Fn, Fm Compare negated floating
80 ADF{cond}<S|D|E>{P,M,Z} Fd, Fn, <Fm,#value> - add
107 MVF{cond}<S|D|E>{P,M,Z} Fd, <Fm,#value> - move
114 RND{cond}<S|D|E>{P,M,Z} Fd, <Fm,#value> - round
[all …]
/linux-6.15/drivers/block/null_blk/
H A Dzoned.c157 zone->cond = BLK_ZONE_COND_FULL; in null_init_zoned_dev()
224 blkz.cond = zone->cond; in null_report_zones()
335 switch (zone->cond) { in null_check_zone_resources()
460 switch (zone->cond) { in null_open_zone()
476 switch (zone->cond) { in null_open_zone()
515 switch (zone->cond) { in null_close_zone()
531 switch (zone->cond) { in null_close_zone()
567 switch (zone->cond) { in null_finish_zone()
616 switch (zone->cond) { in null_reset_zone()
758 if (zone->cond == cond) { in null_set_zone_cond()
[all …]
/linux-6.15/tools/perf/util/
H A Dmutex.c87 CHECK_ERR(pthread_cond_init(&cnd->cond, &attr)); in __cond_init()
91 void cond_init(struct cond *cnd) in cond_init()
96 void cond_init_pshared(struct cond *cnd) in cond_init_pshared()
101 void cond_destroy(struct cond *cnd) in cond_destroy()
103 CHECK_ERR(pthread_cond_destroy(&cnd->cond)); in cond_destroy()
106 void cond_wait(struct cond *cnd, struct mutex *mtx) in cond_wait()
108 CHECK_ERR(pthread_cond_wait(&cnd->cond, &mtx->lock)); in cond_wait()
111 void cond_signal(struct cond *cnd) in cond_signal()
113 CHECK_ERR(pthread_cond_signal(&cnd->cond)); in cond_signal()
116 void cond_broadcast(struct cond *cnd) in cond_broadcast()
[all …]
H A Dmutex.h85 struct cond { struct
86 pthread_cond_t cond; argument
104 void cond_init(struct cond *cnd);
109 void cond_init_pshared(struct cond *cnd);
110 void cond_destroy(struct cond *cnd);
112 void cond_wait(struct cond *cnd, struct mutex *mtx) EXCLUSIVE_LOCKS_REQUIRED(mtx);
113 void cond_signal(struct cond *cnd);
114 void cond_broadcast(struct cond *cnd);
/linux-6.15/arch/arm64/kvm/hyp/
H A Daarch32.c51 int cond; in kvm_condition_valid32() local
72 cond = kvm_vcpu_get_condition(vcpu); in kvm_condition_valid32()
73 if (cond == 0xE) in kvm_condition_valid32()
78 if (cond < 0) { in kvm_condition_valid32()
89 cond = (it >> 4); in kvm_condition_valid32()
94 if (!((cc_map[cond] >> cpsr_cond) & 1)) in kvm_condition_valid32()
112 unsigned long itbits, cond; in kvm_adjust_itstate() local
119 cond = (cpsr & 0xe000) >> 13; in kvm_adjust_itstate()
125 itbits = cond = 0; in kvm_adjust_itstate()
130 cpsr |= cond << 13; in kvm_adjust_itstate()
/linux-6.15/fs/bcachefs/
H A Derror.h39 #define bch2_fs_inconsistent_on(cond, ...) \ argument
41 bool _ret = unlikely(!!(cond)); \
50 #define bch2_trans_inconsistent_on(cond, ...) \ argument
52 bool _ret = unlikely(!!(cond)); \
135 #define fsck_err_on(cond, c, _err_type, ...) \ argument
141 #define log_fsck_err_on(cond, ...) \ argument
143 bool _ret = unlikely(!!(cond)); \
173 #define bkey_fsck_err_on(cond, ...) \ argument
175 if (unlikely(cond)) \
192 #define bch2_fs_fatal_err_on(cond, c, ...) \ argument
[all …]
/linux-6.15/arch/arm/include/asm/
H A Dassembler.h146 bl\cond trace_hardirqs_on
198 asm_trace_hardirqs_on cond=eq
489 .ifnc \cond,al
491 itt \cond
493 ittt \cond
505 add\cond \ptr, #\rept * \inc
638 ldr\cond \dst, =\imm
640 movw\cond \dst, #:lower16:\imm
641 movt\cond \dst, #:upper16:\imm
683 mov_l \tmp, \sym, \cond
[all …]
/linux-6.15/arch/x86/include/asm/
H A Dparavirt_types.h416 alt, cond) \
446 #define __PVOP_ALT_VCALL(op, alt, cond, ...) \ argument
447 (void)____PVOP_ALT_CALL(, op, alt, cond, \
456 (void)____PVOP_ALT_CALL(, op.func, alt, cond, \
465 __PVOP_ALT_CALL(rettype, op, alt, cond)
466 #define PVOP_ALT_VCALL0(op, alt, cond) \ argument
467 __PVOP_ALT_VCALL(op, alt, cond)
474 __PVOP_ALT_CALLEESAVE(rettype, op, alt, cond)
475 #define PVOP_ALT_VCALLEE0(op, alt, cond) \ argument
476 __PVOP_ALT_VCALLEESAVE(op, alt, cond)
[all …]
/linux-6.15/Documentation/locking/
H A Dfutex-requeue-pi.rst29 lock(cond->__data.__lock);
32 unlock(cond->__data.__lock);
34 lock(cond->__data.__lock);
36 unlock(cond->__data.__lock);
40 pthread_cond_broadcast(cond)
42 lock(cond->__data.__lock);
44 futex_requeue(cond->data.__futex, cond->mutex);
63 lock(cond->__data.__lock);
68 lock(cond->__data.__lock);
76 lock(cond->__data.__lock);
[all …]
/linux-6.15/arch/parisc/include/asm/
H A Dalternative.h26 u16 cond; /* see ALT_COND_XXX */ member
36 #define ALTERNATIVE(cond, replacement) "!0:" \ argument
40 ".hword 1, " __stringify(cond) " !" \
47 #define ALTERNATIVE(from, to, cond, replacement)\ argument
51 .hword (to - from)/4, cond ! \
56 #define ALTERNATIVE_CODE(from, num_instructions, cond, new_instr_ptr)\ argument
60 .hword -num_instructions, cond ! \
/linux-6.15/security/apparmor/
H A Dfile.c227 name, cond, perms); in __aa_path_perm()
232 cond->uid, NULL, e); in __aa_path_perm()
272 struct path_cond *cond) in aa_path_perm() argument
286 request, cond, flags, &perms)); in aa_path_perm()
317 struct path_cond *cond) in profile_path_link() argument
345 cond, &lperms); in profile_path_link()
375 tname, cond, &perms); in profile_path_link()
398 NULL, cond->uid, info, error); in profile_path_link()
426 struct path_cond cond = { in aa_path_link() local
443 &target, buffer2, &cond)); in aa_path_link()
[all …]
/linux-6.15/drivers/gpu/drm/nouveau/include/nvif/
H A Dtimer.h22 #define nvif_nsec(d,n,cond...) ({ \ argument
28 cond \
33 #define nvif_usec(d,u,cond...) nvif_nsec((d), (u) * 1000, ##cond) argument
34 #define nvif_msec(d,m,cond...) nvif_usec((d), (m) * 1000, ##cond) argument
/linux-6.15/arch/parisc/kernel/
H A Dalternative.c49 u16 cond; in apply_alternatives() local
54 cond = entry->cond; in apply_alternatives()
57 WARN_ON(!cond); in apply_alternatives()
59 if ((cond & ALT_COND_ALWAYS) == 0 && no_alternatives) in apply_alternatives()
63 index, cond, len, from, replacement); in apply_alternatives()
66 if ((cond & cond_check) == 0) in apply_alternatives()
84 index, cond, len, replacement, from, from); in apply_alternatives()
/linux-6.15/rust/kernel/
H A Dbuild_assert.rs76 ($cond:expr $(,)?) => {{
77 if !$cond {
78 $crate::build_assert::build_error(concat!("assertion failed: ", stringify!($cond)));
81 ($cond:expr, $msg:expr) => {{
82 if !$cond {
/linux-6.15/tools/bootconfig/include/linux/
H A Dbootconfig.h18 #define WARN_ON(cond) \ argument
19 ((cond) ? printf("Internal warning(%s:%d, %s): %s\n", \
20 __FILE__, __LINE__, __func__, #cond) : 0)
22 #define unlikely(cond) (cond) argument
/linux-6.15/arch/loongarch/net/
H A Dbpf_jit.h180 static inline int invert_jmp_cond(u8 cond) in invert_jmp_cond() argument
182 switch (cond) { in invert_jmp_cond()
208 static inline void cond_jmp_offset(struct jit_ctx *ctx, u8 cond, enum loongarch_gpr rj, in cond_jmp_offset() argument
211 switch (cond) { in cond_jmp_offset()
256 static inline void cond_jmp_offs26(struct jit_ctx *ctx, u8 cond, enum loongarch_gpr rj, in cond_jmp_offs26() argument
259 cond = invert_jmp_cond(cond); in cond_jmp_offs26()
260 cond_jmp_offset(ctx, cond, rj, rd, 2); in cond_jmp_offs26()
269 static inline int emit_cond_jmp(struct jit_ctx *ctx, u8 cond, enum loongarch_gpr rj, in emit_cond_jmp() argument
284 cond_jmp_offs26(ctx, cond, rj, rd, jmp_offset); in emit_cond_jmp()
301 static inline int emit_tailcall_jmp(struct jit_ctx *ctx, u8 cond, enum loongarch_gpr rj, in emit_tailcall_jmp() argument
[all …]
/linux-6.15/tools/testing/selftests/nolibc/
H A Dnolibc-test.c187 #define EXPECT_ZR(cond, expr) \ argument
201 #define EXPECT_NZ(cond, expr, val) \ argument
215 #define EXPECT_EQ(cond, expr, val) \ argument
229 #define EXPECT_NE(cond, expr, val) \ argument
243 #define EXPECT_GE(cond, expr, val) \ argument
257 #define EXPECT_GT(cond, expr, val) \ argument
299 #define EXPECT_SYSZR(cond, expr) \ argument
394 #define EXPECT_PTRZR(cond, expr) \ argument
413 #define EXPECT_PTRNZ(cond, expr) \ argument
547 #define EXPECT_STRZR(cond, expr) \ argument
[all …]
/linux-6.15/include/net/
H A Dnet_debug.h131 #define netif_cond_dbg(priv, type, netdev, cond, level, fmt, args...) \ argument
133 if (cond) \
152 #define DEBUG_NET_WARN_ON_ONCE(cond) ((void)WARN_ON_ONCE(cond)) argument
153 #define DEBUG_NET_WARN_ONCE(cond, format...) ((void)WARN_ONCE(cond, format)) argument
155 #define DEBUG_NET_WARN_ON_ONCE(cond) BUILD_BUG_ON_INVALID(cond) argument
156 #define DEBUG_NET_WARN_ONCE(cond, format...) BUILD_BUG_ON_INVALID(cond) argument

12345678910>>...13