Home
last modified time | relevance | path

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

1234567891011

/Linux-v6.1/tools/perf/arch/sparc/annotate/
Dinstructions.c3 static int is_branch_cond(const char *cond) in is_branch_cond() argument
5 if (cond[0] == '\0') in is_branch_cond()
8 if (cond[0] == 'a' && cond[1] == '\0') in is_branch_cond()
11 if (cond[0] == 'c' && in is_branch_cond()
12 (cond[1] == 'c' || cond[1] == 's') && in is_branch_cond()
13 cond[2] == '\0') in is_branch_cond()
16 if (cond[0] == 'e' && in is_branch_cond()
17 (cond[1] == '\0' || in is_branch_cond()
18 (cond[1] == 'q' && cond[2] == '\0'))) in is_branch_cond()
21 if (cond[0] == 'g' && in is_branch_cond()
[all …]
/Linux-v6.1/include/linux/
Dmmdebug.h17 #define VM_BUG_ON(cond) BUG_ON(cond) argument
18 #define VM_BUG_ON_PAGE(cond, page) \ argument
20 if (unlikely(cond)) { \
21 dump_page(page, "VM_BUG_ON_PAGE(" __stringify(cond)")");\
25 #define VM_BUG_ON_FOLIO(cond, folio) \ argument
27 if (unlikely(cond)) { \
28 dump_page(&folio->page, "VM_BUG_ON_FOLIO(" __stringify(cond)")");\
32 #define VM_BUG_ON_VMA(cond, vma) \ argument
34 if (unlikely(cond)) { \
39 #define VM_BUG_ON_MM(cond, mm) \ argument
[all …]
Diopoll.h36 #define read_poll_timeout(op, val, cond, sleep_us, timeout_us, \ argument
47 if (cond) \
57 (cond) ? 0 : -ETIMEDOUT; \
79 #define read_poll_timeout_atomic(op, val, cond, delay_us, timeout_us, \ argument
89 if (cond) \
99 (cond) ? 0 : -ETIMEDOUT; \
120 #define readx_poll_timeout(op, addr, val, cond, sleep_us, timeout_us) \ argument
121 read_poll_timeout(op, val, cond, sleep_us, timeout_us, false, addr)
140 #define readx_poll_timeout_atomic(op, addr, val, cond, delay_us, timeout_us) \ argument
141 read_poll_timeout_atomic(op, val, cond, delay_us, timeout_us, false, addr)
[all …]
Dtracepoint.h184 #define __DO_TRACE(name, args, cond, rcuidle) \ argument
188 if (!(cond)) \
217 #define __DECLARE_TRACE_RCU(name, proto, args, cond) \ argument
223 TP_CONDITION(cond), 1); \
226 #define __DECLARE_TRACE_RCU(name, proto, args, cond) argument
241 #define __DECLARE_TRACE(name, proto, args, cond, data_proto) \ argument
250 TP_CONDITION(cond), 0); \
251 if (IS_ENABLED(CONFIG_LOCKDEP) && (cond)) { \
258 PARAMS(cond)) \
341 #define __DECLARE_TRACE(name, proto, args, cond, data_proto) \ argument
[all …]
Dcompiler.h56 #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) ) argument
58 #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond)) argument
60 #define __trace_if_value(cond) ({ \ argument
69 (cond) ? \
/Linux-v6.1/arch/parisc/math-emu/
Ddfcmp.c38 unsigned int cond, unsigned int *status) in dbl_fcmp() argument
60 && (Exception(cond) || Dbl_isone_signaling(leftp1))) in dbl_fcmp()
64 && (Exception(cond) || Dbl_isone_signaling(rightp1))) ) in dbl_fcmp()
67 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()
106 Set_status_cbit(Greaterthan(cond)); in dbl_fcmp()
113 Set_status_cbit(Equal(cond)); in dbl_fcmp()
[all …]
Dsfcmp.c37 unsigned int cond, unsigned int *status) in sgl_fcmp() argument
60 && (Exception(cond) || Sgl_isone_signaling(left))) in sgl_fcmp()
64 && (Exception(cond) || Sgl_isone_signaling(right)) ) ) in sgl_fcmp()
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()
[all …]
/Linux-v6.1/Documentation/arm/nwfpe/
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]
34 <LFM|SFM>{cond}<S|D|E> Fd, <count>, [Rn, #<expression>]{!}
35 <LFM|SFM>{cond}<S|D|E> Fd, <count>, [Rn], #<expression>
38 <LFM|SFM>{cond}<FD,EA> Fd, <count>, [Rn]{!}
51 FLT{cond}<S,D,E>{P,M,Z} Fn, Rd Convert integer to floating point
52 FIX{cond}{P,M,Z} Rd, Fn Convert floating point to integer
53 WFS{cond} Rd Write floating point status register
[all …]
/Linux-v6.1/drivers/staging/r8188eu/hal/
DHalHWImg8188E_MAC.c11 u32 cond = condition; in Checkcondition() local
16 cond = condition & 0x000000FF; in Checkcondition()
17 if ((_board == cond) && cond != 0x00) in Checkcondition()
20 cond = condition & 0x0000FF00; in Checkcondition()
21 cond = cond >> 8; in Checkcondition()
22 if ((_interface & cond) == 0 && cond != 0x07) in Checkcondition()
25 cond = condition & 0x00FF0000; in Checkcondition()
26 cond = cond >> 16; in Checkcondition()
27 if ((_platform & cond) == 0 && cond != 0x0F) in Checkcondition()
DHalHWImg8188E_RF.c10 u32 cond = Condition; in CheckCondition() local
15 cond = Condition & 0x0000FF00; in CheckCondition()
16 cond = cond >> 8; in CheckCondition()
17 if ((_interface & cond) == 0 && cond != 0x07) in CheckCondition()
20 cond = Condition & 0x00FF0000; in CheckCondition()
21 cond = cond >> 16; in CheckCondition()
22 if ((_platform & cond) == 0 && cond != 0x0F) in CheckCondition()
/Linux-v6.1/arch/arm64/kvm/hyp/
Daarch32.c51 int cond; in kvm_condition_valid32() local
58 cond = kvm_vcpu_get_condition(vcpu); in kvm_condition_valid32()
59 if (cond == 0xE) in kvm_condition_valid32()
64 if (cond < 0) { in kvm_condition_valid32()
75 cond = (it >> 4); in kvm_condition_valid32()
80 if (!((cc_map[cond] >> cpsr_cond) & 1)) in kvm_condition_valid32()
98 unsigned long itbits, cond; in kvm_adjust_itstate() local
105 cond = (cpsr & 0xe000) >> 13; in kvm_adjust_itstate()
111 itbits = cond = 0; in kvm_adjust_itstate()
116 cpsr |= cond << 13; in kvm_adjust_itstate()
/Linux-v6.1/tools/perf/util/
Dmutex.c79 static void __cond_init(struct cond *cnd, bool pshared) in __cond_init()
87 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()
[all …]
Dmutex.h77 struct cond { struct
78 pthread_cond_t cond; argument
96 void cond_init(struct cond *cnd);
101 void cond_init_pshared(struct cond *cnd);
102 void cond_destroy(struct cond *cnd);
104 void cond_wait(struct cond *cnd, struct mutex *mtx) EXCLUSIVE_LOCKS_REQUIRED(mtx);
105 void cond_signal(struct cond *cnd);
106 void cond_broadcast(struct cond *cnd);
/Linux-v6.1/arch/arm/include/asm/
Dassembler.h136 .macro asm_trace_hardirqs_on, cond=al, save=1
145 bl\cond trace_hardirqs_on
197 asm_trace_hardirqs_on cond=eq
460 .macro usraccoff, instr, reg, ptr, inc, off, cond, abort, t=TUSER()
463 \instr\()b\t\cond\().w \reg, [\ptr, #\off]
465 \instr\t\cond\().w \reg, [\ptr, #\off]
476 .macro usracc, instr, reg, ptr, inc, cond, rept, abort
479 .ifnc \cond,al
481 itt \cond
483 ittt \cond
[all …]
Dvfpmacros.h12 .macro VFPFMRX, rd, sysreg, cond
13 vmrs\cond \rd, \sysreg
16 .macro VFPFMXR, sysreg, rd, cond
17 vmsr\cond \sysreg, \rd
21 .macro VFPFMRX, rd, sysreg, cond
22 MRC\cond p10, 7, \rd, \sysreg, cr0, 0 @ FMRX \rd, \sysreg
25 .macro VFPFMXR, sysreg, rd, cond
26 MCR\cond p10, 7, \rd, \sysreg, cr0, 0 @ FMXR \sysreg, \rd
/Linux-v6.1/Documentation/locking/
Dfutex-requeue-pi.rst27 pthread_cond_wait(cond, mutex)
29 lock(cond->__data.__lock);
32 unlock(cond->__data.__lock);
33 futex_wait(cond->__data.__futex);
34 lock(cond->__data.__lock);
36 unlock(cond->__data.__lock);
40 pthread_cond_broadcast(cond)
42 lock(cond->__data.__lock);
43 unlock(cond->__data.__lock);
44 futex_requeue(cond->data.__futex, cond->mutex);
[all …]
/Linux-v6.1/arch/parisc/include/asm/
Dalternative.h26 u16 cond; /* see ALT_COND_XXX */ member
36 #define ALTERNATIVE(cond, replacement) "!0:" \ argument
39 ".hword 1, " __stringify(cond) " !" \
46 #define ALTERNATIVE(from, to, cond, replacement)\ argument
49 .hword (to - from)/4, cond ! \
54 #define ALTERNATIVE_CODE(from, num_instructions, cond, new_instr_ptr)\ argument
57 .hword -num_instructions, cond ! \
/Linux-v6.1/arch/x86/include/asm/
Dparavirt_types.h467 #define ____PVOP_ALT_CALL(ret, op, alt, cond, clbr, call_clbr, \ argument
473 alt, cond) \
486 #define __PVOP_ALT_CALL(rettype, op, alt, cond, ...) \ argument
487 ____PVOP_ALT_CALL(PVOP_RETVAL(rettype), op, alt, cond, CLBR_ANY,\
495 #define __PVOP_ALT_CALLEESAVE(rettype, op, alt, cond, ...) \ argument
496 ____PVOP_ALT_CALL(PVOP_RETVAL(rettype), op.func, alt, cond, \
504 #define __PVOP_ALT_VCALL(op, alt, cond, ...) \ argument
505 (void)____PVOP_ALT_CALL(, op, alt, cond, CLBR_ANY, \
513 #define __PVOP_ALT_VCALLEESAVE(op, alt, cond, ...) \ argument
514 (void)____PVOP_ALT_CALL(, op.func, alt, cond, CLBR_RET_REG, \
[all …]
/Linux-v6.1/tools/testing/selftests/nolibc/
Dnolibc-test.c132 #define EXPECT_ZR(cond, expr) \ argument
133 do { if (!cond) pad_spc(llen, 40, "[SKIPPED]\n"); else ret += expect_zr(expr, llen); } while (0)
145 #define EXPECT_NZ(cond, expr, val) \ argument
146 do { if (!cond) pad_spc(llen, 40, "[SKIPPED]\n"); else ret += expect_nz(expr, llen; } while (0)
158 #define EXPECT_EQ(cond, expr, val) \ argument
159 …do { if (!cond) pad_spc(llen, 40, "[SKIPPED]\n"); else ret += expect_eq(expr, llen, val); } while …
171 #define EXPECT_NE(cond, expr, val) \ argument
172 …do { if (!cond) pad_spc(llen, 40, "[SKIPPED]\n"); else ret += expect_ne(expr, llen, val); } while …
184 #define EXPECT_GE(cond, expr, val) \ argument
185 …do { if (!cond) pad_spc(llen, 40, "[SKIPPED]\n"); else ret += expect_ge(expr, llen, val); } while …
[all …]
/Linux-v6.1/drivers/block/null_blk/
Dzoned.c132 zone->cond = BLK_ZONE_COND_NOT_WP; in null_init_zoned_dev()
149 zone->cond = BLK_ZONE_COND_EMPTY; in null_init_zoned_dev()
220 blkz.cond = zone->cond; in null_report_zones()
257 switch (zone->cond) { in __null_close_zone()
274 zone->cond = BLK_ZONE_COND_EMPTY; in __null_close_zone()
276 zone->cond = BLK_ZONE_COND_CLOSED; in __null_close_zone()
298 if (zone->cond == BLK_ZONE_COND_IMP_OPEN) { in null_close_imp_open_zone()
354 switch (zone->cond) { in null_check_zone_resources()
377 trace_nullb_zone_op(cmd, zno, zone->cond); in null_zone_write()
387 if (zone->cond == BLK_ZONE_COND_FULL) { in null_zone_write()
[all …]
/Linux-v6.1/security/apparmor/
Dfile.c159 const char **name, struct path_cond *cond, u32 request) in path_name() argument
170 NULL, NULL, cond->uid, info, error)); in path_name()
216 struct path_cond *cond) in aa_compute_fperms() argument
225 if (uid_eq(current_fsuid(), cond->uid)) { in aa_compute_fperms()
258 const char *name, struct path_cond *cond, in aa_str_perms() argument
263 *perms = aa_compute_fperms(dfa, state, cond); in aa_str_perms()
269 u32 request, struct path_cond *cond, int flags, in __aa_path_perm() argument
276 aa_str_perms(profile->file.dfa, profile->file.start, name, cond, perms); in __aa_path_perm()
280 cond->uid, NULL, e); in __aa_path_perm()
286 struct path_cond *cond, int flags, in profile_path_perm() argument
[all …]
/Linux-v6.1/drivers/gpu/drm/nouveau/include/nvif/
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-v6.1/arch/parisc/kernel/
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-v6.1/arch/loongarch/net/
Dbpf_jit.h152 static inline int invert_jmp_cond(u8 cond) in invert_jmp_cond() argument
154 switch (cond) { in invert_jmp_cond()
180 static inline void cond_jmp_offset(struct jit_ctx *ctx, u8 cond, enum loongarch_gpr rj, in cond_jmp_offset() argument
183 switch (cond) { in cond_jmp_offset()
228 static inline void cond_jmp_offs26(struct jit_ctx *ctx, u8 cond, enum loongarch_gpr rj, in cond_jmp_offs26() argument
231 cond = invert_jmp_cond(cond); in cond_jmp_offs26()
232 cond_jmp_offset(ctx, cond, rj, rd, 2); in cond_jmp_offs26()
241 static inline int emit_cond_jmp(struct jit_ctx *ctx, u8 cond, enum loongarch_gpr rj, in emit_cond_jmp() argument
256 cond_jmp_offs26(ctx, cond, rj, rd, jmp_offset); in emit_cond_jmp()
273 static inline int emit_tailcall_jmp(struct jit_ctx *ctx, u8 cond, enum loongarch_gpr rj, in emit_tailcall_jmp() argument
[all …]
/Linux-v6.1/tools/bootconfig/include/linux/
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

1234567891011