arch/alpha/boot/misc.c
65
# define Assert(cond,msg) {if(!(cond)) error(msg);}
arch/alpha/boot/misc.c
72
# define Assert(cond,msg)
arch/arc/net/bpf_jit.h
148
bool check_jmp_32(u32 curr_off, u32 targ_off, u8 cond);
arch/arc/net/bpf_jit.h
149
bool check_jmp_64(u32 curr_off, u32 targ_off, u8 cond);
arch/arc/net/bpf_jit.h
150
u8 gen_jmp_32(u8 *buf, u8 rd, u8 rs, u8 cond, u32 c_off, u32 t_off);
arch/arc/net/bpf_jit.h
151
u8 gen_jmp_64(u8 *buf, u8 rd, u8 rs, u8 cond, u32 c_off, u32 t_off);
arch/arc/net/bpf_jit_arcv2.c
2536
u8 cond[JCC64_NR_OF_JMPS];
arch/arc/net/bpf_jit_arcv2.c
2553
.cond = {CC_great_u, CC_less_u, CC_great_u}
arch/arc/net/bpf_jit_arcv2.c
2564
.cond = {CC_great_u, CC_less_u, CC_great_eq_u}
arch/arc/net/bpf_jit_arcv2.c
2575
.cond = {CC_less_u, CC_great_u, CC_less_u}
arch/arc/net/bpf_jit_arcv2.c
2586
.cond = {CC_less_u, CC_great_u, CC_less_eq_u}
arch/arc/net/bpf_jit_arcv2.c
2597
.cond = {CC_great_s, CC_less_s, CC_great_u}
arch/arc/net/bpf_jit_arcv2.c
2608
.cond = {CC_great_s, CC_less_s, CC_great_eq_u}
arch/arc/net/bpf_jit_arcv2.c
2619
.cond = {CC_less_s, CC_great_s, CC_less_u}
arch/arc/net/bpf_jit_arcv2.c
2630
.cond = {CC_less_s, CC_great_s, CC_less_eq_u}
arch/arc/net/bpf_jit_arcv2.c
2712
static bool check_jcc_64(u32 curr_off, u32 targ_off, u8 cond)
arch/arc/net/bpf_jit_arcv2.c
2716
if (cond >= ARC_CC_LAST)
arch/arc/net/bpf_jit_arcv2.c
2737
bool check_jmp_64(u32 curr_off, u32 targ_off, u8 cond)
arch/arc/net/bpf_jit_arcv2.c
2741
switch (cond) {
arch/arc/net/bpf_jit_arcv2.c
2750
return check_jcc_64(curr_off, targ_off, cond);
arch/arc/net/bpf_jit_arcv2.c
2804
static u8 gen_jcc_64(u8 *buf, u8 rd, u8 rs, u8 cond,
arch/arc/net/bpf_jit_arcv2.c
2809
const u8 *cc = arcv2_64_jccs.jmp[cond].cond;
arch/arc/net/bpf_jit_arcv2.c
2839
u8 gen_jmp_64(u8 *buf, u8 rd, u8 rs, u8 cond, u32 curr_off, u32 targ_off)
arch/arc/net/bpf_jit_arcv2.c
2845
switch (cond) {
arch/arc/net/bpf_jit_arcv2.c
2858
len = gen_jcc_64(buf, rd, rs, cond, curr_off, targ_off);
arch/arc/net/bpf_jit_arcv2.c
2904
bool check_jmp_32(u32 curr_off, u32 targ_off, u8 cond)
arch/arc/net/bpf_jit_arcv2.c
2909
if (cond >= ARC_CC_LAST)
arch/arc/net/bpf_jit_arcv2.c
2916
addendum = (cond == ARC_CC_AL) ? 0 : INSN_len_normal;
arch/arc/net/bpf_jit_arcv2.c
2919
if (cond == ARC_CC_AL)
arch/arc/net/bpf_jit_arcv2.c
2939
u8 gen_jmp_32(u8 *buf, u8 rd, u8 rs, u8 cond, u32 curr_off, u32 targ_off)
arch/arc/net/bpf_jit_arcv2.c
2949
if (cond >= ARC_CC_LAST) {
arch/arc/net/bpf_jit_arcv2.c
2958
if (cond != ARC_CC_AL) {
arch/arc/net/bpf_jit_arcv2.c
2959
if (cond == ARC_CC_SET)
arch/arc/net/bpf_jit_arcv2.c
2969
len += arc_bcc(BUF(buf, len), arcv2_32_jmps[cond], disp);
arch/arc/net/bpf_jit_core.c
551
static int feasible_jit_jump(u32 from_off, u32 to_off, u8 cond, bool j32)
arch/arc/net/bpf_jit_core.c
556
if (!check_jmp_32(from_off, to_off, cond))
arch/arc/net/bpf_jit_core.c
559
if (!check_jmp_64(from_off, to_off, cond))
arch/arc/net/bpf_jit_core.c
585
u8 cond;
arch/arc/net/bpf_jit_core.c
596
CHECK_RET(bpf_cond_to_arc(BPF_OP(insn->code), &cond));
arch/arc/net/bpf_jit_core.c
610
if (has_imm(insn) && cond != ARC_CC_AL) {
arch/arc/net/bpf_jit_core.c
627
CHECK_RET(feasible_jit_jump(curr_off, targ_off, cond, j32));
arch/arc/net/bpf_jit_core.c
631
*len += gen_jmp_32(BUF(buf, *len), rd, rs, cond,
arch/arc/net/bpf_jit_core.c
634
*len += gen_jmp_64(BUF(buf, *len), rd, rs, cond,
arch/arm/boot/compressed/decompress.c
16
# define Assert(cond,msg) {if(!(cond)) error(msg);}
arch/arm/boot/compressed/decompress.c
23
# define Assert(cond,msg)
arch/arm/include/asm/assembler.h
137
.macro asm_trace_hardirqs_on, cond=al, save=1
arch/arm/include/asm/assembler.h
198
asm_trace_hardirqs_on cond=eq
arch/arm/include/asm/assembler.h
470
.macro usraccoff, instr, reg, ptr, inc, off, cond, abort, t=TUSER()
arch/arm/include/asm/assembler.h
486
.macro usracc, instr, reg, ptr, inc, cond, rept, abort
arch/arm/include/asm/assembler.h
510
.macro usracc, instr, reg, ptr, inc, cond, rept, abort, t=TUSER()
arch/arm/include/asm/assembler.h
530
.macro strusr, reg, ptr, inc, cond=al, rept=1, abort=9001f
arch/arm/include/asm/assembler.h
534
.macro ldrusr, reg, ptr, inc, cond=al, rept=1, abort=9001f
arch/arm/include/asm/assembler.h
636
.macro mov_l, dst:req, imm:req, cond
arch/arm/include/asm/assembler.h
652
.macro adr_l, dst:req, sym:req, cond
arch/arm/include/asm/assembler.h
663
.macro ldr_l, dst:req, sym:req, cond
arch/arm/include/asm/assembler.h
675
.macro str_l, src:req, sym:req, tmp:req, cond
arch/arm/include/asm/assembler.h
679
.macro __ldst_va, op, reg, tmp, sym, cond, offset
arch/arm/include/asm/assembler.h
705
.macro ldr_va, rd:req, sym:req, cond, tmp, offset=0
arch/arm/include/asm/assembler.h
716
.macro str_va, rn:req, sym:req, tmp:req, cond
arch/arm/include/asm/domain.h
121
#define TUSERCOND(instr, cond) #instr "t" #cond
arch/arm/include/asm/domain.h
124
#define TUSERCOND(instr, cond) #instr #cond
arch/arm/include/asm/spinlock.h
29
#define WFE(cond) __ALT_SMP_ASM( \
arch/arm/include/asm/spinlock.h
30
"it " cond "\n\t" \
arch/arm/include/asm/spinlock.h
31
"wfe" cond ".n", \
arch/arm/include/asm/spinlock.h
36
#define WFE(cond) __ALT_SMP_ASM("wfe" cond, "nop")
arch/arm/include/asm/vfpmacros.h
11
.macro VFPFMRX, rd, sysreg, cond
arch/arm/include/asm/vfpmacros.h
15
.macro VFPFMXR, sysreg, rd, cond
arch/arm/mach-bcm/bcm63xx_pmb.c
62
u32 shift, u32 mask, u32 cond)
arch/arm/mach-bcm/bcm63xx_pmb.c
76
} while (((*val >> shift) & mask) != cond);
arch/arm/mach-omap2/common.h
206
#define omap_test_timeout(cond, timeout, index) \
arch/arm/mach-omap2/common.h
209
if (cond) \
arch/arm/mach-omap2/prcm-common.h
447
#define omap_test_timeout(cond, timeout, index) \
arch/arm/mach-omap2/prcm-common.h
450
if (cond) \
arch/arm/net/bpf_jit_32.c
271
static inline void _emit(int cond, u32 inst, struct jit_ctx *ctx)
arch/arm/net/bpf_jit_32.c
273
inst |= (cond << 28);
arch/arm64/include/asm/insn.h
570
enum aarch64_insn_condition cond);
arch/arm64/kernel/traps.c
714
int cond;
arch/arm64/kernel/traps.c
724
cond = it >> 4;
arch/arm64/kernel/traps.c
726
cond = (esr & ESR_ELx_COND_MASK) >> ESR_ELx_COND_SHIFT;
arch/arm64/kernel/traps.c
729
return aarch32_opcode_cond_checks[cond](regs->pstate);
arch/arm64/kvm/hyp/aarch32.c
112
unsigned long itbits, cond;
arch/arm64/kvm/hyp/aarch32.c
119
cond = (cpsr & 0xe000) >> 13;
arch/arm64/kvm/hyp/aarch32.c
125
itbits = cond = 0;
arch/arm64/kvm/hyp/aarch32.c
130
cpsr |= cond << 13;
arch/arm64/kvm/hyp/aarch32.c
51
int cond;
arch/arm64/kvm/hyp/aarch32.c
72
cond = kvm_vcpu_get_condition(vcpu);
arch/arm64/kvm/hyp/aarch32.c
73
if (cond == 0xE)
arch/arm64/kvm/hyp/aarch32.c
78
if (cond < 0) {
arch/arm64/kvm/hyp/aarch32.c
89
cond = (it >> 4);
arch/arm64/kvm/hyp/aarch32.c
94
if (!((cc_map[cond] >> cpsr_cond) & 1))
arch/arm64/lib/insn.c
335
enum aarch64_insn_condition cond)
arch/arm64/lib/insn.c
344
if (cond < AARCH64_INSN_COND_EQ || cond > AARCH64_INSN_COND_AL) {
arch/arm64/lib/insn.c
345
pr_err("%s: unknown condition encoding %d\n", __func__, cond);
arch/arm64/lib/insn.c
348
insn |= cond;
arch/arm64/net/bpf_jit.h
30
#define A64_COND_BRANCH(cond, offset) \
arch/arm64/net/bpf_jit.h
31
aarch64_insn_gen_cond_branch_imm(0, offset, cond)
arch/arm64/net/bpf_jit.h
42
#define A64_B_(cond, imm19) A64_COND_BRANCH(cond, (imm19) << 2)
arch/loongarch/net/bpf_jit.c
454
static bool is_signed_bpf_cond(u8 cond)
arch/loongarch/net/bpf_jit.c
456
return cond == BPF_JSGT || cond == BPF_JSLT ||
arch/loongarch/net/bpf_jit.c
457
cond == BPF_JSGE || cond == BPF_JSLE;
arch/loongarch/net/bpf_jit.c
548
const u8 cond = BPF_OP(code);
arch/loongarch/net/bpf_jit.c
911
if (emit_cond_jmp(ctx, cond, t1, t2, jmp_offset) < 0)
arch/loongarch/net/bpf_jit.c
952
if (emit_cond_jmp(ctx, cond, t2, tm, jmp_offset) < 0)
arch/loongarch/net/bpf_jit.c
962
if (emit_cond_jmp(ctx, cond, t1, LOONGARCH_GPR_ZERO, jmp_offset) < 0)
arch/loongarch/net/bpf_jit.c
973
if (emit_cond_jmp(ctx, cond, t1, LOONGARCH_GPR_ZERO, jmp_offset) < 0)
arch/loongarch/net/bpf_jit.h
209
static inline int invert_jmp_cond(u8 cond)
arch/loongarch/net/bpf_jit.h
211
switch (cond) {
arch/loongarch/net/bpf_jit.h
237
static inline void cond_jmp_offset(struct jit_ctx *ctx, u8 cond, enum loongarch_gpr rj,
arch/loongarch/net/bpf_jit.h
240
switch (cond) {
arch/loongarch/net/bpf_jit.h
285
static inline void cond_jmp_offs26(struct jit_ctx *ctx, u8 cond, enum loongarch_gpr rj,
arch/loongarch/net/bpf_jit.h
288
cond = invert_jmp_cond(cond);
arch/loongarch/net/bpf_jit.h
289
cond_jmp_offset(ctx, cond, rj, rd, 2);
arch/loongarch/net/bpf_jit.h
298
static inline int emit_cond_jmp(struct jit_ctx *ctx, u8 cond, enum loongarch_gpr rj,
arch/loongarch/net/bpf_jit.h
313
cond_jmp_offs26(ctx, cond, rj, rd, jmp_offset);
arch/loongarch/net/bpf_jit.h
330
static inline int emit_tailcall_jmp(struct jit_ctx *ctx, u8 cond, enum loongarch_gpr rj,
arch/loongarch/net/bpf_jit.h
334
cond_jmp_offset(ctx, cond, rj, rd, jmp_offset);
arch/mips/include/uapi/asm/inst.h
903
__BITFIELD_FIELD(unsigned int cond : 4,
arch/mips/kernel/mips-r2-to-r6-emul.c
202
u32 cond;
arch/mips/kernel/mips-r2-to-r6-emul.c
205
cond = fpucondbit[MIPSInst_RT(ir) >> 2];
arch/mips/kernel/mips-r2-to-r6-emul.c
207
if (((csr & cond) == 0) && MIPSInst_RD(ir))
arch/mips/kernel/mips-r2-to-r6-emul.c
225
u32 cond;
arch/mips/kernel/mips-r2-to-r6-emul.c
228
cond = fpucondbit[MIPSInst_RT(ir) >> 2];
arch/mips/kernel/mips-r2-to-r6-emul.c
230
if (((csr & cond) != 0) && MIPSInst_RD(ir))
arch/mips/math-emu/cp1emu.c
1190
cond = 0;
arch/mips/math-emu/cp1emu.c
1196
cond = bit0 == 0;
arch/mips/math-emu/cp1emu.c
1200
cond = bit0 != 0;
arch/mips/math-emu/cp1emu.c
1213
cond = ctx->fcr31 & cbit;
arch/mips/math-emu/cp1emu.c
1222
cond = !cond;
arch/mips/math-emu/cp1emu.c
1234
if (cond) {
arch/mips/math-emu/cp1emu.c
1374
cond = fpucondbit[MIPSInst_RT(ir) >> 2];
arch/mips/math-emu/cp1emu.c
1375
if (((ctx->fcr31 & cond) != 0) == ((MIPSInst_RT(ir) & 1) != 0))
arch/mips/math-emu/cp1emu.c
1689
unsigned int cond;
arch/mips/math-emu/cp1emu.c
1760
cond = fpucondbit[MIPSInst_FT(ir) >> 2];
arch/mips/math-emu/cp1emu.c
1761
if (((ctx->fcr31 & cond) != 0) !=
arch/mips/math-emu/cp1emu.c
2133
cond = fpucondbit[MIPSInst_FT(ir) >> 2];
arch/mips/math-emu/cp1emu.c
2134
if (((ctx->fcr31 & cond) != 0) !=
arch/mips/math-emu/cp1emu.c
404
insn.mm_fp4_format.cond | MM_MIPS32_COND_FC;
arch/mips/math-emu/cp1emu.c
975
unsigned int cond, cbit, bit0;
arch/nios2/boot/compressed/misc.c
55
# define Assert(cond, msg) {if (!(cond)) error(msg); }
arch/nios2/boot/compressed/misc.c
62
# define Assert(cond, msg)
arch/parisc/include/asm/alternative.h
26
u16 cond; /* see ALT_COND_XXX */
arch/parisc/include/asm/alternative.h
36
#define ALTERNATIVE(cond, replacement) "!0:" \
arch/parisc/include/asm/alternative.h
40
".hword 1, " __stringify(cond) " !" \
arch/parisc/include/asm/alternative.h
47
#define ALTERNATIVE(from, to, cond, replacement)\
arch/parisc/include/asm/alternative.h
51
.hword (to - from)/4, cond ! \
arch/parisc/include/asm/alternative.h
56
#define ALTERNATIVE_CODE(from, num_instructions, cond, new_instr_ptr)\
arch/parisc/include/asm/alternative.h
60
.hword -num_instructions, cond ! \
arch/parisc/kernel/alternative.c
49
u16 cond;
arch/parisc/kernel/alternative.c
54
cond = entry->cond;
arch/parisc/kernel/alternative.c
57
WARN_ON(!cond);
arch/parisc/kernel/alternative.c
59
if ((cond & ALT_COND_ALWAYS) == 0 && no_alternatives)
arch/parisc/kernel/alternative.c
63
index, cond, len, from, replacement);
arch/parisc/kernel/alternative.c
66
if ((cond & cond_check) == 0)
arch/parisc/kernel/alternative.c
84
index, cond, len, replacement, from, from);
arch/parisc/math-emu/dfcmp.c
102
Set_status_cbit(Lessthan(cond));
arch/parisc/math-emu/dfcmp.c
106
Set_status_cbit(Greaterthan(cond));
arch/parisc/math-emu/dfcmp.c
113
Set_status_cbit(Equal(cond));
arch/parisc/math-emu/dfcmp.c
120
Set_status_cbit(Lessthan(cond));
arch/parisc/math-emu/dfcmp.c
124
Set_status_cbit(Greaterthan(cond));
arch/parisc/math-emu/dfcmp.c
132
Set_status_cbit(Lessthan(cond));
arch/parisc/math-emu/dfcmp.c
136
Set_status_cbit(Greaterthan(cond));
arch/parisc/math-emu/dfcmp.c
147
Set_status_cbit(Lessthan(cond));
arch/parisc/math-emu/dfcmp.c
151
Set_status_cbit(Greaterthan(cond));
arch/parisc/math-emu/dfcmp.c
159
Set_status_cbit(Lessthan(cond));
arch/parisc/math-emu/dfcmp.c
163
Set_status_cbit(Greaterthan(cond));
arch/parisc/math-emu/dfcmp.c
38
unsigned int cond, unsigned int *status)
arch/parisc/math-emu/dfcmp.c
60
&& (Exception(cond) || Dbl_isone_signaling(leftp1)))
arch/parisc/math-emu/dfcmp.c
64
&& (Exception(cond) || Dbl_isone_signaling(rightp1))) )
arch/parisc/math-emu/dfcmp.c
67
Set_status_cbit(Unordered(cond));
arch/parisc/math-emu/dfcmp.c
71
Set_status_cbit(Unordered(cond));
arch/parisc/math-emu/dfcmp.c
83
Set_status_cbit(Unordered(cond));
arch/parisc/math-emu/dfcmp.c
98
Set_status_cbit(Equal(cond));
arch/parisc/math-emu/float.h
522
#define Unordered(cond) Unorderedbit(cond)
arch/parisc/math-emu/float.h
523
#define Equal(cond) Equalbit(cond)
arch/parisc/math-emu/float.h
524
#define Lessthan(cond) Lessthanbit(cond)
arch/parisc/math-emu/float.h
525
#define Greaterthan(cond) Greaterthanbit(cond)
arch/parisc/math-emu/float.h
526
#define Exception(cond) Exceptionbit(cond)
arch/parisc/math-emu/sfcmp.c
102
Set_status_cbit(Lessthan(cond));
arch/parisc/math-emu/sfcmp.c
106
Set_status_cbit(Greaterthan(cond));
arch/parisc/math-emu/sfcmp.c
113
Set_status_cbit(Equal(cond));
arch/parisc/math-emu/sfcmp.c
120
Set_status_cbit(Lessthan(cond));
arch/parisc/math-emu/sfcmp.c
124
Set_status_cbit(Greaterthan(cond));
arch/parisc/math-emu/sfcmp.c
134
Set_status_cbit(Lessthan(cond));
arch/parisc/math-emu/sfcmp.c
138
Set_status_cbit(Greaterthan(cond));
arch/parisc/math-emu/sfcmp.c
37
unsigned int cond, unsigned int *status)
arch/parisc/math-emu/sfcmp.c
60
&& (Exception(cond) || Sgl_isone_signaling(left)))
arch/parisc/math-emu/sfcmp.c
64
&& (Exception(cond) || Sgl_isone_signaling(right)) ) )
arch/parisc/math-emu/sfcmp.c
67
Set_status_cbit(Unordered(cond));
arch/parisc/math-emu/sfcmp.c
71
Set_status_cbit(Unordered(cond));
arch/parisc/math-emu/sfcmp.c
83
Set_status_cbit(Unordered(cond));
arch/parisc/math-emu/sfcmp.c
98
Set_status_cbit(Equal(cond));
arch/parisc/net/bpf_jit.h
105
#define hppa_or_cond(reg1, reg2, cond, f, target) \
arch/parisc/net/bpf_jit.h
106
hppa_t6_insn(0x02, reg2, reg1, cond, f, 0x09, target)
arch/parisc/net/bpf_jit.h
109
#define hppa_and_cond(reg1, reg2, cond, f, target) \
arch/parisc/net/bpf_jit.h
110
hppa_t6_insn(0x02, reg2, reg1, cond, f, 0x08, target)
arch/parisc/net/bpf_jit.h
276
static inline int invert_bpf_cond(u8 cond)
arch/parisc/net/bpf_jit.h
278
switch (cond) {
arch/parisc/net/bpf_jit_comp64.c
457
static bool is_signed_bpf_cond(u8 cond)
arch/parisc/net/bpf_jit_comp64.c
459
return cond == BPF_JSGT || cond == BPF_JSLT ||
arch/parisc/net/bpf_jit_comp64.c
460
cond == BPF_JSGE || cond == BPF_JSLE;
arch/powerpc/include/asm/interrupt.h
82
#define INT_SOFT_MASK_BUG_ON(regs, cond) \
arch/powerpc/include/asm/interrupt.h
85
BUG_ON(cond); \
arch/powerpc/include/asm/interrupt.h
88
#define INT_SOFT_MASK_BUG_ON(regs, cond)
arch/powerpc/net/bpf_jit.h
132
#define PPC_BCC(cond, dest) do { \
arch/powerpc/net/bpf_jit.h
134
PPC_BCC_SHORT(cond, dest); \
arch/powerpc/net/bpf_jit.h
138
PPC_BCC_SHORT(cond ^ COND_CMP_TRUE, CTX_NIA(ctx) + 2*4); \
arch/powerpc/net/bpf_jit.h
45
#define PPC_BCC_SHORT(cond, dest) \
arch/powerpc/net/bpf_jit.h
52
EMIT(PPC_INST_BRANCH_COND | (((cond) & 0x3ff) << 16) | (offset & 0xfffc)); \
arch/powerpc/net/bpf_jit.h
56
#define PPC_BCC_CONST_SHORT(cond, offset) \
arch/powerpc/net/bpf_jit.h
59
EMIT(PPC_INST_BRANCH_COND | (((cond) & 0x3ff) << 16) | (offset & 0xfffc)); \
arch/riscv/net/bpf_jit.h
143
static inline int invert_bpf_cond(u8 cond)
arch/riscv/net/bpf_jit.h
145
switch (cond) {
arch/riscv/net/bpf_jit_comp64.c
280
static void emit_bcc(u8 cond, u8 rd, u8 rs, int rvoff,
arch/riscv/net/bpf_jit_comp64.c
283
switch (cond) {
arch/riscv/net/bpf_jit_comp64.c
316
static void emit_branch(u8 cond, u8 rd, u8 rs, int rvoff,
arch/riscv/net/bpf_jit_comp64.c
322
emit_bcc(cond, rd, rs, rvoff, ctx);
arch/riscv/net/bpf_jit_comp64.c
337
cond = invert_bpf_cond(cond);
arch/riscv/net/bpf_jit_comp64.c
339
emit_bcc(cond, rd, rs, 8, ctx);
arch/riscv/net/bpf_jit_comp64.c
350
emit_bcc(cond, rd, rs, 12, ctx);
arch/riscv/net/bpf_jit_comp64.c
447
static bool is_signed_bpf_cond(u8 cond)
arch/riscv/net/bpf_jit_comp64.c
449
return cond == BPF_JSGT || cond == BPF_JSLT ||
arch/riscv/net/bpf_jit_comp64.c
450
cond == BPF_JSGE || cond == BPF_JSLE;
arch/s390/include/asm/bug.h
109
#define WARN_ONCE(cond, format, arg...) \
arch/s390/include/asm/bug.h
111
int __ret_warn_on = !!(cond); \
arch/x86/include/asm/bug.h
182
#define WARN_ONCE(cond, format, arg...) ({ \
arch/x86/include/asm/bug.h
183
int __ret_warn_on = !!(cond); \
arch/x86/include/asm/paravirt_types.h
360
#define ____PVOP_ALT_CALL(ret, array, op, alt, cond, call_clbr, \
arch/x86/include/asm/paravirt_types.h
366
alt, cond) \
arch/x86/include/asm/paravirt_types.h
378
#define __PVOP_ALT_CALL(rettype, array, op, alt, cond, ...) \
arch/x86/include/asm/paravirt_types.h
379
____PVOP_ALT_CALL(PVOP_RETVAL(rettype), array, op, alt, cond, \
arch/x86/include/asm/paravirt_types.h
387
#define __PVOP_ALT_CALLEESAVE(rettype, array, op, alt, cond, ...) \
arch/x86/include/asm/paravirt_types.h
388
____PVOP_ALT_CALL(PVOP_RETVAL(rettype), array, op.func, alt, cond, \
arch/x86/include/asm/paravirt_types.h
396
#define __PVOP_ALT_VCALL(array, op, alt, cond, ...) \
arch/x86/include/asm/paravirt_types.h
397
(void)____PVOP_ALT_CALL(, array, op, alt, cond, \
arch/x86/include/asm/paravirt_types.h
405
#define __PVOP_ALT_VCALLEESAVE(array, op, alt, cond, ...) \
arch/x86/include/asm/paravirt_types.h
406
(void)____PVOP_ALT_CALL(, array, op.func, alt, cond, \
arch/x86/include/asm/paravirt_types.h
414
#define PVOP_ALT_CALL0(rettype, array, op, alt, cond) \
arch/x86/include/asm/paravirt_types.h
415
__PVOP_ALT_CALL(rettype, array, op, alt, cond)
arch/x86/include/asm/paravirt_types.h
416
#define PVOP_ALT_VCALL0(array, op, alt, cond) \
arch/x86/include/asm/paravirt_types.h
417
__PVOP_ALT_VCALL(array, op, alt, cond)
arch/x86/include/asm/paravirt_types.h
423
#define PVOP_ALT_CALLEE0(rettype, array, op, alt, cond) \
arch/x86/include/asm/paravirt_types.h
424
__PVOP_ALT_CALLEESAVE(rettype, array, op, alt, cond)
arch/x86/include/asm/paravirt_types.h
425
#define PVOP_ALT_VCALLEE0(array, op, alt, cond) \
arch/x86/include/asm/paravirt_types.h
426
__PVOP_ALT_VCALLEESAVE(array, op, alt, cond)
arch/x86/include/asm/paravirt_types.h
433
#define PVOP_ALT_VCALL1(array, op, arg1, alt, cond) \
arch/x86/include/asm/paravirt_types.h
434
__PVOP_ALT_VCALL(array, op, alt, cond, PVOP_CALL_ARG1(arg1))
arch/x86/include/asm/paravirt_types.h
440
#define PVOP_ALT_CALLEE1(rettype, array, op, arg1, alt, cond) \
arch/x86/include/asm/paravirt_types.h
441
__PVOP_ALT_CALLEESAVE(rettype, array, op, alt, cond, PVOP_CALL_ARG1(arg1))
arch/x86/include/asm/paravirt_types.h
442
#define PVOP_ALT_VCALLEE1(array, op, arg1, alt, cond) \
arch/x86/include/asm/paravirt_types.h
443
__PVOP_ALT_VCALLEESAVE(array, op, alt, cond, PVOP_CALL_ARG1(arg1))
arch/x86/include/asm/pgtable.h
375
pgprotval_t cond = (~v >> _PAGE_BIT_RW) & 1;
arch/x86/include/asm/pgtable.h
377
v |= ((v >> _PAGE_BIT_DIRTY) & cond) << _PAGE_BIT_SAVED_DIRTY;
arch/x86/include/asm/pgtable.h
378
v &= ~(cond << _PAGE_BIT_DIRTY);
arch/x86/include/asm/pgtable.h
385
pgprotval_t cond = (v >> _PAGE_BIT_RW) & 1;
arch/x86/include/asm/pgtable.h
387
v |= ((v >> _PAGE_BIT_SAVED_DIRTY) & cond) << _PAGE_BIT_DIRTY;
arch/x86/include/asm/pgtable.h
388
v &= ~(cond << _PAGE_BIT_SAVED_DIRTY);
arch/x86/kvm/kvm_emulate.h
402
#define KVM_EMULATOR_BUG_ON(cond, ctxt) \
arch/x86/kvm/kvm_emulate.h
404
int __ret = (cond); \
arch/xtensa/include/asm/asmmacro.h
66
.macro __loops ar, as, at, incr_log2, mask_log2, cond, ncond
arch/xtensa/include/asm/asmmacro.h
82
.ifnc \ncond,
arch/xtensa/include/asm/asmmacro.h
86
.ifnc \ncond,
arch/xtensa/include/asm/asmmacro.h
87
b\ncond \at, 99f
block/blk-zoned.c
1010
if (zone->cond == BLK_ZONE_COND_FULL)
block/blk-zoned.c
1023
zone->cond = zwplug->cond;
block/blk-zoned.c
134
enum blk_zone_cond cond)
block/blk-zoned.c
139
switch (cond) {
block/blk-zoned.c
151
zones_cond[zno] = cond;
block/blk-zoned.c
157
enum blk_zone_cond cond)
block/blk-zoned.c
177
blk_zone_set_cond(zones_cond, zno, cond);
block/blk-zoned.c
2021
enum blk_zone_cond cond = zone->cond;
block/blk-zoned.c
2024
switch (cond) {
block/blk-zoned.c
2041
args->disk->disk_name, cond);
block/blk-zoned.c
2045
blk_zone_set_cond(args->zones_cond, idx, cond);
block/blk-zoned.c
2051
args->disk->disk_name, cond, zone->type);
block/blk-zoned.c
2332
zwp_cond = zwplug->cond;
block/blk-zoned.c
540
zwplug->cond = zones_cond[zwplug->zone_no];
block/blk-zoned.c
542
zwplug->cond = BLK_ZONE_COND_ACTIVE;
block/blk-zoned.c
651
zwplug->zone_no, zwplug->cond);
block/blk-zoned.c
74
enum blk_zone_cond cond;
block/blk-zoned.c
766
zwplug->cond = BLK_ZONE_COND_FULL;
block/blk-zoned.c
768
zwplug->cond = BLK_ZONE_COND_EMPTY;
block/blk-zoned.c
770
zwplug->cond = BLK_ZONE_COND_ACTIVE;
block/blk-zoned.c
803
switch (zone->cond) {
block/blk-zoned.c
867
switch (zone->cond) {
block/blk-zoned.c
871
zone->cond = BLK_ZONE_COND_ACTIVE;
block/blk-zoned.c
968
zone->cond = zones_cond[disk_zone_no(disk, sector)];
block/blk-zoned.c
978
if (zone->cond == BLK_ZONE_COND_NOT_WP) {
block/blk-zoned.c
996
if (zone->cond == BLK_ZONE_COND_READONLY ||
block/blk-zoned.c
997
zone->cond == BLK_ZONE_COND_OFFLINE) {
drivers/accel/habanalabs/common/habanalabs.h
2659
#define hl_poll_timeout_common(hdev, addr, val, cond, sleep_us, timeout_us, elbi) \
drivers/accel/habanalabs/common/habanalabs.h
2675
if (cond) \
drivers/accel/habanalabs/common/habanalabs.h
2691
__rc ? __rc : ((cond) ? 0 : -ETIMEDOUT); \
drivers/accel/habanalabs/common/habanalabs.h
2694
#define hl_poll_timeout(hdev, addr, val, cond, sleep_us, timeout_us) \
drivers/accel/habanalabs/common/habanalabs.h
2695
hl_poll_timeout_common(hdev, addr, val, cond, sleep_us, timeout_us, false)
drivers/accel/habanalabs/common/habanalabs.h
2697
#define hl_poll_timeout_elbi(hdev, addr, val, cond, sleep_us, timeout_us) \
drivers/accel/habanalabs/common/habanalabs.h
2698
hl_poll_timeout_common(hdev, addr, val, cond, sleep_us, timeout_us, true)
drivers/accel/habanalabs/common/habanalabs.h
2773
#define hl_poll_timeout_memory(hdev, addr, val, cond, sleep_us, timeout_us, \
drivers/accel/habanalabs/common/habanalabs.h
2788
if (cond) \
drivers/accel/habanalabs/common/habanalabs.h
2801
(cond) ? 0 : -ETIMEDOUT; \
drivers/accel/habanalabs/common/hldio.h
123
#define hl_poll_timeout_condition(hdev, cond, sleep_us, timeout_us) \
drivers/accel/habanalabs/common/hldio.h
130
if (cond) \
drivers/accel/habanalabs/common/hldio.h
137
(cond) ? 0 : -ETIMEDOUT; \
drivers/ata/libata-scsi.c
3723
u8 cond, type, non_seq, reset;
drivers/ata/libata-scsi.c
3729
cond = (rec[1] >> 4) & 0xf;
drivers/ata/libata-scsi.c
3736
rec[1] = (cond << 4) | non_seq | reset;
drivers/block/null_blk/null_blk.h
153
size_t count, enum blk_zone_cond cond);
drivers/block/null_blk/null_blk.h
179
enum blk_zone_cond cond)
drivers/block/null_blk/null_blk.h
46
enum blk_zone_cond cond;
drivers/block/null_blk/zoned.c
139
zone->cond = BLK_ZONE_COND_NOT_WP;
drivers/block/null_blk/zoned.c
157
zone->cond = BLK_ZONE_COND_FULL;
drivers/block/null_blk/zoned.c
160
zone->cond = BLK_ZONE_COND_EMPTY;
drivers/block/null_blk/zoned.c
224
blkz.cond = zone->cond;
drivers/block/null_blk/zoned.c
273
if (zone->cond == BLK_ZONE_COND_IMP_OPEN) {
drivers/block/null_blk/zoned.c
276
zone->cond = BLK_ZONE_COND_EMPTY;
drivers/block/null_blk/zoned.c
278
zone->cond = BLK_ZONE_COND_CLOSED;
drivers/block/null_blk/zoned.c
335
switch (zone->cond) {
drivers/block/null_blk/zoned.c
359
trace_nullb_zone_op(cmd, zno, zone->cond);
drivers/block/null_blk/zoned.c
393
if (zone->cond == BLK_ZONE_COND_CLOSED ||
drivers/block/null_blk/zoned.c
394
zone->cond == BLK_ZONE_COND_EMPTY) {
drivers/block/null_blk/zoned.c
403
if (zone->cond == BLK_ZONE_COND_CLOSED) {
drivers/block/null_blk/zoned.c
406
} else if (zone->cond == BLK_ZONE_COND_EMPTY) {
drivers/block/null_blk/zoned.c
413
zone->cond = BLK_ZONE_COND_IMP_OPEN;
drivers/block/null_blk/zoned.c
435
if (zone->cond == BLK_ZONE_COND_EXP_OPEN)
drivers/block/null_blk/zoned.c
437
else if (zone->cond == BLK_ZONE_COND_IMP_OPEN)
drivers/block/null_blk/zoned.c
441
zone->cond = BLK_ZONE_COND_FULL;
drivers/block/null_blk/zoned.c
460
switch (zone->cond) {
drivers/block/null_blk/zoned.c
476
switch (zone->cond) {
drivers/block/null_blk/zoned.c
504
zone->cond = BLK_ZONE_COND_EXP_OPEN;
drivers/block/null_blk/zoned.c
515
switch (zone->cond) {
drivers/block/null_blk/zoned.c
531
switch (zone->cond) {
drivers/block/null_blk/zoned.c
549
zone->cond = BLK_ZONE_COND_EMPTY;
drivers/block/null_blk/zoned.c
551
zone->cond = BLK_ZONE_COND_CLOSED;
drivers/block/null_blk/zoned.c
567
switch (zone->cond) {
drivers/block/null_blk/zoned.c
601
zone->cond = BLK_ZONE_COND_FULL;
drivers/block/null_blk/zoned.c
616
switch (zone->cond) {
drivers/block/null_blk/zoned.c
637
zone->cond = BLK_ZONE_COND_EMPTY;
drivers/block/null_blk/zoned.c
659
if (zone->cond != BLK_ZONE_COND_EMPTY &&
drivers/block/null_blk/zoned.c
660
zone->cond != BLK_ZONE_COND_READONLY &&
drivers/block/null_blk/zoned.c
661
zone->cond != BLK_ZONE_COND_OFFLINE) {
drivers/block/null_blk/zoned.c
663
trace_nullb_zone_op(cmd, i, zone->cond);
drivers/block/null_blk/zoned.c
675
if (zone->cond == BLK_ZONE_COND_READONLY ||
drivers/block/null_blk/zoned.c
676
zone->cond == BLK_ZONE_COND_OFFLINE) {
drivers/block/null_blk/zoned.c
700
trace_nullb_zone_op(cmd, zone_no, zone->cond);
drivers/block/null_blk/zoned.c
729
if (zone->cond == BLK_ZONE_COND_OFFLINE)
drivers/block/null_blk/zoned.c
743
struct nullb_zone *zone, enum blk_zone_cond cond)
drivers/block/null_blk/zoned.c
745
if (WARN_ON_ONCE(cond != BLK_ZONE_COND_READONLY &&
drivers/block/null_blk/zoned.c
746
cond != BLK_ZONE_COND_OFFLINE))
drivers/block/null_blk/zoned.c
758
if (zone->cond == cond) {
drivers/block/null_blk/zoned.c
759
zone->cond = BLK_ZONE_COND_EMPTY;
drivers/block/null_blk/zoned.c
764
if (zone->cond != BLK_ZONE_COND_READONLY &&
drivers/block/null_blk/zoned.c
765
zone->cond != BLK_ZONE_COND_OFFLINE)
drivers/block/null_blk/zoned.c
767
zone->cond = cond;
drivers/block/null_blk/zoned.c
779
size_t count, enum blk_zone_cond cond)
drivers/block/null_blk/zoned.c
810
null_set_zone_cond(dev, &dev->zones[zone_no], cond);
drivers/block/virtio_blk.c
618
zone.cond = BLK_ZONE_COND_EMPTY;
drivers/block/virtio_blk.c
621
zone.cond = BLK_ZONE_COND_CLOSED;
drivers/block/virtio_blk.c
624
zone.cond = BLK_ZONE_COND_FULL;
drivers/block/virtio_blk.c
628
zone.cond = BLK_ZONE_COND_EXP_OPEN;
drivers/block/virtio_blk.c
631
zone.cond = BLK_ZONE_COND_IMP_OPEN;
drivers/block/virtio_blk.c
634
zone.cond = BLK_ZONE_COND_NOT_WP;
drivers/block/virtio_blk.c
637
zone.cond = BLK_ZONE_COND_READONLY;
drivers/block/virtio_blk.c
641
zone.cond = BLK_ZONE_COND_OFFLINE;
drivers/block/zloop.c
104
enum blk_zone_cond cond;
drivers/block/zloop.c
189
zone->cond = BLK_ZONE_COND_EMPTY;
drivers/block/zloop.c
192
zone->cond = BLK_ZONE_COND_FULL;
drivers/block/zloop.c
195
zone->cond = BLK_ZONE_COND_CLOSED;
drivers/block/zloop.c
219
switch (zone->cond) {
drivers/block/zloop.c
225
zone->cond = BLK_ZONE_COND_EXP_OPEN;
drivers/block/zloop.c
256
switch (zone->cond) {
drivers/block/zloop.c
263
zone->cond = BLK_ZONE_COND_EMPTY;
drivers/block/zloop.c
265
zone->cond = BLK_ZONE_COND_CLOSED;
drivers/block/zloop.c
293
zone->cond == BLK_ZONE_COND_EMPTY)
drivers/block/zloop.c
303
zone->cond = BLK_ZONE_COND_EMPTY;
drivers/block/zloop.c
340
zone->cond == BLK_ZONE_COND_FULL)
drivers/block/zloop.c
350
zone->cond = BLK_ZONE_COND_FULL;
drivers/block/zloop.c
451
if (zone->cond == BLK_ZONE_COND_FULL ||
drivers/block/zloop.c
470
if (zone->cond == BLK_ZONE_COND_CLOSED ||
drivers/block/zloop.c
471
zone->cond == BLK_ZONE_COND_EMPTY)
drivers/block/zloop.c
472
zone->cond = BLK_ZONE_COND_IMP_OPEN;
drivers/block/zloop.c
482
zone->cond = BLK_ZONE_COND_FULL;
drivers/block/zloop.c
686
if (zone->cond == BLK_ZONE_COND_FULL ||
drivers/block/zloop.c
695
zone->cond = BLK_ZONE_COND_FULL;
drivers/block/zloop.c
785
blkz.cond = zone->cond;
drivers/block/zloop.c
904
zone->cond = BLK_ZONE_COND_NOT_WP;
drivers/clk/clk-plldig.c
154
unsigned int val, cond;
drivers/clk/clk-plldig.c
170
return readl_poll_timeout_atomic(data->regs + PLLDIG_REG_PLLSR, cond,
drivers/clk/clk-plldig.c
171
cond & PLLDIG_LOCK_MASK, 0,
drivers/dma/pl330.c
1120
enum pl330_cond cond, enum dma_transfer_direction direction,
drivers/dma/pl330.c
1128
off += _emit_LD(dry_run, &buf[off], cond);
drivers/dma/pl330.c
1132
if (cond == ALWAYS) {
drivers/dma/pl330.c
1138
off += _emit_LDP(dry_run, &buf[off], cond,
drivers/dma/pl330.c
1153
enum pl330_cond cond, enum dma_transfer_direction direction,
drivers/dma/pl330.c
1161
off += _emit_ST(dry_run, &buf[off], cond);
drivers/dma/pl330.c
1165
if (cond == ALWAYS) {
drivers/dma/pl330.c
1171
off += _emit_STP(dry_run, &buf[off], cond,
drivers/dma/pl330.c
1188
enum pl330_cond cond)
drivers/dma/pl330.c
1199
off += _emit_WFP(dry_run, &buf[off], cond, pxs->desc->peri);
drivers/dma/pl330.c
1200
off += _emit_load(dry_run, &buf[off], cond, pxs->desc->rqtype,
drivers/dma/pl330.c
1202
off += _emit_store(dry_run, &buf[off], cond, pxs->desc->rqtype,
drivers/dma/pl330.c
1213
enum pl330_cond cond = BRST_LEN(pxs->ccr) > 1 ? BURST : SINGLE;
drivers/dma/pl330.c
1216
cond = BURST;
drivers/dma/pl330.c
1222
cond);
drivers/dma/pl330.c
1318
lpend.cond = ALWAYS;
drivers/dma/pl330.c
1350
lpend.cond = ALWAYS;
drivers/dma/pl330.c
1357
lpend.cond = ALWAYS;
drivers/dma/pl330.c
608
static inline u32 _emit_LD(unsigned dry_run, u8 buf[], enum pl330_cond cond)
drivers/dma/pl330.c
615
if (cond == SINGLE)
drivers/dma/pl330.c
617
else if (cond == BURST)
drivers/dma/pl330.c
621
cond == SINGLE ? 'S' : (cond == BURST ? 'B' : 'A'));
drivers/dma/pl330.c
627
enum pl330_cond cond, u8 peri)
drivers/dma/pl330.c
634
if (cond == BURST)
drivers/dma/pl330.c
642
cond == SINGLE ? 'S' : 'B', peri >> 3);
drivers/dma/pl330.c
667
enum pl330_cond cond;
drivers/dma/pl330.c
676
enum pl330_cond cond = arg->cond;
drivers/dma/pl330.c
692
if (cond == SINGLE)
drivers/dma/pl330.c
694
else if (cond == BURST)
drivers/dma/pl330.c
701
cond == SINGLE ? 'S' : (cond == BURST ? 'B' : 'A'),
drivers/dma/pl330.c
765
static inline u32 _emit_ST(unsigned dry_run, u8 buf[], enum pl330_cond cond)
drivers/dma/pl330.c
772
if (cond == SINGLE)
drivers/dma/pl330.c
774
else if (cond == BURST)
drivers/dma/pl330.c
778
cond == SINGLE ? 'S' : (cond == BURST ? 'B' : 'A'));
drivers/dma/pl330.c
784
enum pl330_cond cond, u8 peri)
drivers/dma/pl330.c
791
if (cond == BURST)
drivers/dma/pl330.c
799
cond == SINGLE ? 'S' : 'B', peri >> 3);
drivers/dma/pl330.c
805
enum pl330_cond cond, u8 peri)
drivers/dma/pl330.c
812
if (cond == SINGLE)
drivers/dma/pl330.c
814
else if (cond == BURST)
drivers/dma/pl330.c
824
cond == SINGLE ? 'S' : (cond == BURST ? 'B' : 'P'), peri >> 3);
drivers/dma/xilinx/xilinx_dma.c
532
#define xilinx_dma_poll_timeout(chan, reg, val, cond, delay_us, timeout_us) \
drivers/dma/xilinx/xilinx_dma.c
534
val, cond, delay_us, timeout_us)
drivers/fpga/zynq-fpga.c
149
#define zynq_fpga_poll_timeout(priv, addr, val, cond, sleep_us, timeout_us) \
drivers/fpga/zynq-fpga.c
150
readl_poll_timeout(priv->io_base + addr, val, cond, sleep_us, \
drivers/gpu/drm/amd/amdgpu/amdgpu_jpeg.c
568
u32 i, reg, res, cond, type;
drivers/gpu/drm/amd/amdgpu/amdgpu_jpeg.c
574
cond = CP_PACKETJ_GET_COND(ib->ptr[i]);
drivers/gpu/drm/amd/amdgpu/amdgpu_jpeg.c
582
if (cond != PACKETJ_CONDITION_CHECK0 ||
drivers/gpu/drm/amd/amdgpu/amdgpu_jpeg.c
589
if (cond != PACKETJ_CONDITION_CHECK3 ||
drivers/gpu/drm/amd/amdgpu/jpeg_v1_0.c
637
u32 i, reg, res, cond, type;
drivers/gpu/drm/amd/amdgpu/jpeg_v1_0.c
644
cond = CP_PACKETJ_GET_COND(ib->ptr[i]);
drivers/gpu/drm/amd/amdgpu/jpeg_v1_0.c
647
if (res || cond != PACKETJ_CONDITION_CHECK0) /* only allow 0 for now */
drivers/gpu/drm/amd/amdgpu/soc15d.h
74
#define PACKETJ(reg, r, cond, type) ((reg & 0x3FFFF) | \
drivers/gpu/drm/amd/amdgpu/soc15d.h
76
((cond & 0xF) << 24) | \
drivers/gpu/drm/amd/pm/powerplay/inc/pp_debug.h
37
#define PP_ASSERT_WITH_CODE(cond, msg, code) \
drivers/gpu/drm/amd/pm/powerplay/inc/pp_debug.h
39
if (!(cond)) { \
drivers/gpu/drm/amd/pm/powerplay/inc/pp_debug.h
45
#define PP_ASSERT(cond, msg) \
drivers/gpu/drm/amd/pm/powerplay/inc/pp_debug.h
47
if (!(cond)) { \
drivers/gpu/drm/drm_gpuvm.c
857
cond_spin_lock(spinlock_t *lock, bool cond)
drivers/gpu/drm/drm_gpuvm.c
859
if (cond)
drivers/gpu/drm/drm_gpuvm.c
864
cond_spin_unlock(spinlock_t *lock, bool cond)
drivers/gpu/drm/drm_gpuvm.c
866
if (cond)
drivers/gpu/drm/drm_mipi_dbi.c
755
static int mipi_dbi_poweron_reset_conditional(struct mipi_dbi_dev *dbidev, bool cond)
drivers/gpu/drm/drm_mipi_dbi.c
779
if (cond && mipi_dbi_display_is_on(dbi))
drivers/gpu/drm/exynos/exynos_drm_drv.c
155
#define DRV_PTR(drv, cond) (IS_ENABLED(cond) ? &drv : NULL)
drivers/gpu/drm/i915/i915_gem.h
91
#define __GEM_BUG(cond) BUG()
drivers/gpu/drm/i915/i915_gem.h
93
#define __GEM_BUG(cond) \
drivers/gpu/drm/i915/i915_gem.h
94
WARN(1, "%s:%d GEM_BUG_ON(%s)\n", __func__, __LINE__, __stringify(cond))
drivers/gpu/drm/i915/i915_vma.h
431
#define for_each_until(cond) if (cond) break; else
drivers/gpu/drm/lima/lima_mmu.c
16
#define lima_mmu_send_command(cmd, addr, val, cond) \
drivers/gpu/drm/lima/lima_mmu.c
22
cond, 0, 100); \
drivers/gpu/drm/msm/adreno/a6xx_gmu.h
174
#define gmu_poll_timeout(gmu, addr, val, cond, interval, timeout) \
drivers/gpu/drm/msm/adreno/a6xx_gmu.h
176
cond, interval, timeout)
drivers/gpu/drm/msm/adreno/a6xx_gmu.h
177
#define gmu_poll_timeout_atomic(gmu, addr, val, cond, interval, timeout) \
drivers/gpu/drm/msm/adreno/a6xx_gmu.h
178
readl_poll_timeout_atomic((gmu)->mmio + (GMU_BYTE_OFFSET(gmu, addr)), val, cond, \
drivers/gpu/drm/msm/adreno/a6xx_gmu.h
191
#define gmu_poll_timeout_rscc(gmu, addr, val, cond, interval, timeout) \
drivers/gpu/drm/msm/adreno/a6xx_gmu.h
192
readl_poll_timeout((gmu)->rscc + ((addr) << 2), val, cond, \
drivers/gpu/drm/msm/adreno/adreno_gpu.h
761
#define gpu_poll_timeout(gpu, addr, val, cond, interval, timeout) \
drivers/gpu/drm/msm/adreno/adreno_gpu.h
762
readl_poll_timeout((gpu)->mmio + ((addr) << 2), val, cond, \
drivers/gpu/drm/msm/msm_gem_shrinker.c
172
bool cond;
drivers/gpu/drm/msm/msm_gem_shrinker.c
187
if (!stages[i].cond)
drivers/gpu/drm/nouveau/include/nvif/timer.h
22
#define nvif_nsec(d,n,cond...) ({ \
drivers/gpu/drm/nouveau/include/nvif/timer.h
28
cond \
drivers/gpu/drm/nouveau/include/nvif/timer.h
33
#define nvif_usec(d,u,cond...) nvif_nsec((d), (u) * 1000, ##cond)
drivers/gpu/drm/nouveau/include/nvif/timer.h
34
#define nvif_msec(d,m,cond...) nvif_usec((d), (m) * 1000, ##cond)
drivers/gpu/drm/nouveau/include/nvkm/subdev/timer.h
52
#define nvkm_nsec(d,n,cond...) ({ \
drivers/gpu/drm/nouveau/include/nvkm/subdev/timer.h
59
cond \
drivers/gpu/drm/nouveau/include/nvkm/subdev/timer.h
66
#define nvkm_usec(d, u, cond...) nvkm_nsec((d), (u) * 1000ULL, ##cond)
drivers/gpu/drm/nouveau/include/nvkm/subdev/timer.h
67
#define nvkm_msec(d, m, cond...) nvkm_usec((d), (m) * 1000ULL, ##cond)
drivers/gpu/drm/nouveau/nvkm/engine/fifo/runl.h
120
#define nvkm_runl_find_engn(engn,runl,cond) nvkm_list_find(engn, &(runl)->engns, head, (cond))
drivers/gpu/drm/nouveau/nvkm/engine/fifo/runl.h
124
#define nvkm_runl_foreach_cond(runl,fifo,cond) nvkm_list_foreach(runl, &(fifo)->runls, head, (cond))
drivers/gpu/drm/nouveau/nvkm/engine/fifo/runl.h
126
#define nvkm_runl_foreach_engn_cond(engn,runl,cond) \
drivers/gpu/drm/nouveau/nvkm/engine/fifo/runl.h
127
nvkm_list_foreach(engn, &(runl)->engns, head, (cond))
drivers/gpu/drm/nouveau/nvkm/engine/fifo/runq.h
25
#define nvkm_runq_foreach_cond(runq,fifo,cond) nvkm_list_foreach(runq, &(fifo)->runqs, head, (cond))
drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c
1240
u8 cond = nvbios_rd08(bios, init->offset + 1);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c
1244
trace("CONDITION_TIME\t0x%02x 0x%02x\n", cond, retry);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c
1251
if (init_condition_met(init, cond))
drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c
1805
u8 cond = nvbios_rd08(bios, init->offset + 1);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c
1807
trace("CONDITION\t0x%02x\n", cond);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c
1810
if (!init_condition_met(init, cond))
drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c
1822
u8 cond = nvbios_rd08(bios, init->offset + 1);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c
1824
trace("IO_CONDITION\t0x%02x\n", cond);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c
1827
if (!init_io_condition_met(init, cond))
drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c
479
init_condition_met(struct nvbios_init *init, u8 cond)
drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c
484
u32 reg = nvbios_rd32(bios, table + (cond * 12) + 0);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c
485
u32 msk = nvbios_rd32(bios, table + (cond * 12) + 4);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c
486
u32 val = nvbios_rd32(bios, table + (cond * 12) + 8);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c
488
cond, reg, msk, val);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c
495
init_io_condition_met(struct nvbios_init *init, u8 cond)
drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c
500
u16 port = nvbios_rd16(bios, table + (cond * 5) + 0);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c
501
u8 index = nvbios_rd08(bios, table + (cond * 5) + 2);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c
502
u8 mask = nvbios_rd08(bios, table + (cond * 5) + 3);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c
503
u8 value = nvbios_rd08(bios, table + (cond * 5) + 4);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c
505
cond, port, index, mask, value);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c
512
init_io_flag_condition_met(struct nvbios_init *init, u8 cond)
drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c
517
u16 port = nvbios_rd16(bios, table + (cond * 9) + 0);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c
518
u8 index = nvbios_rd08(bios, table + (cond * 9) + 2);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c
519
u8 mask = nvbios_rd08(bios, table + (cond * 9) + 3);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c
520
u8 shift = nvbios_rd08(bios, table + (cond * 9) + 4);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c
521
u16 data = nvbios_rd16(bios, table + (cond * 9) + 5);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c
522
u8 dmask = nvbios_rd08(bios, table + (cond * 9) + 7);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c
523
u8 value = nvbios_rd08(bios, table + (cond * 9) + 8);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c
782
u8 cond = nvbios_rd08(bios, init->offset + 1);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c
784
trace("IO_FLAG_CONDITION\t0x%02x\n", cond);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c
787
if (!init_io_flag_condition_met(init, cond))
drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c
800
u8 cond = nvbios_rd08(bios, init->offset + 1);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c
805
trace("GENERIC_CONDITION\t0x%02x 0x%02x\n", cond, size);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c
808
switch (cond) {
drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c
821
if (!(info.flags & cond))
drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c
837
warn("INIT_GENERIC_CONDITION: unknown 0x%02x\n", cond);
drivers/gpu/drm/panthor/panthor_device.h
520
#define gpu_read_poll_timeout(dev, reg, val, cond, delay_us, timeout_us) \
drivers/gpu/drm/panthor/panthor_device.h
521
read_poll_timeout(gpu_read, val, cond, delay_us, timeout_us, false, \
drivers/gpu/drm/panthor/panthor_device.h
524
#define gpu_read_poll_timeout_atomic(dev, reg, val, cond, delay_us, \
drivers/gpu/drm/panthor/panthor_device.h
526
read_poll_timeout_atomic(gpu_read, val, cond, delay_us, timeout_us, \
drivers/gpu/drm/panthor/panthor_device.h
529
#define gpu_read64_poll_timeout(dev, reg, val, cond, delay_us, timeout_us) \
drivers/gpu/drm/panthor/panthor_device.h
530
read_poll_timeout(gpu_read64, val, cond, delay_us, timeout_us, false, \
drivers/gpu/drm/panthor/panthor_device.h
533
#define gpu_read64_poll_timeout_atomic(dev, reg, val, cond, delay_us, \
drivers/gpu/drm/panthor/panthor_device.h
535
read_poll_timeout_atomic(gpu_read64, val, cond, delay_us, timeout_us, \
drivers/gpu/drm/panthor/panthor_device.h
538
#define gpu_read_relaxed_poll_timeout_atomic(dev, reg, val, cond, delay_us, \
drivers/gpu/drm/panthor/panthor_device.h
540
read_poll_timeout_atomic(gpu_read_relaxed, val, cond, delay_us, \
drivers/gpu/drm/panthor/panthor_device.h
543
#define gpu_read64_relaxed_poll_timeout(dev, reg, val, cond, delay_us, \
drivers/gpu/drm/panthor/panthor_device.h
545
read_poll_timeout(gpu_read64_relaxed, val, cond, delay_us, timeout_us, \
drivers/gpu/drm/rockchip/rockchip_drm_drv.c
515
#define ADD_ROCKCHIP_SUB_DRIVER(drv, cond) { \
drivers/gpu/drm/rockchip/rockchip_drm_drv.c
516
if (IS_ENABLED(cond) && \
drivers/gpu/drm/xe/xe_guc_id_mgr.c
32
#define idm_assert(idm, cond) xe_gt_assert(idm_to_gt(idm), cond)
drivers/gpu/drm/xe/xe_macros.h
13
#define XE_IOCTL_DBG(xe, cond) ({ \
drivers/gpu/drm/xe/xe_macros.h
14
int cond__ = !!(cond); \
drivers/gpu/drm/xe/xe_macros.h
18
__FILE__, __LINE__, #cond); \
drivers/gpu/host1x/hw/opcodes.h
100
host1x_class_host_incr_syncpt(cond, indx));
drivers/gpu/host1x/hw/opcodes.h
43
unsigned cond, unsigned indx)
drivers/gpu/host1x/hw/opcodes.h
45
return host1x_uclass_incr_syncpt_cond_f(cond)
drivers/gpu/host1x/hw/opcodes.h
97
static inline u32 host1x_opcode_imm_incr_syncpt(unsigned cond, unsigned indx)
drivers/hid/usbhid/hid-pidff.c
644
struct ff_condition_effect *cond = &effect->u.condition[i];
drivers/hid/usbhid/hid-pidff.c
647
ret |= cond->center != old_cond->center ||
drivers/hid/usbhid/hid-pidff.c
648
cond->right_coeff != old_cond->right_coeff ||
drivers/hid/usbhid/hid-pidff.c
649
cond->left_coeff != old_cond->left_coeff ||
drivers/hid/usbhid/hid-pidff.c
650
cond->right_saturation != old_cond->right_saturation ||
drivers/hid/usbhid/hid-pidff.c
651
cond->left_saturation != old_cond->left_saturation ||
drivers/hid/usbhid/hid-pidff.c
652
cond->deadband != old_cond->deadband;
drivers/i2c/busses/i2c-brcmstb.c
454
u32 cond, cond_per_msg;
drivers/i2c/busses/i2c-brcmstb.c
468
cond = ~COND_START_STOP;
drivers/i2c/busses/i2c-brcmstb.c
470
cond = COND_RESTART | COND_NOSTOP;
drivers/i2c/busses/i2c-brcmstb.c
472
brcmstb_set_i2c_start_stop(dev, cond);
drivers/i2c/busses/i2c-brcmstb.c
485
cond_per_msg = cond;
drivers/i2c/busses/i2c-brcmstb.c
496
cond_per_msg = cond;
drivers/i2c/busses/i2c-imx-lpi2c.c
214
#define lpi2c_imx_read_msr_poll_timeout(atomic, val, cond) \
drivers/i2c/busses/i2c-imx-lpi2c.c
216
cond, 0, 500000) : \
drivers/i2c/busses/i2c-imx-lpi2c.c
217
readl_poll_timeout(lpi2c_imx->base + LPI2C_MSR, val, cond, \
drivers/i3c/master/renesas-i3c.c
58
#define STDBR_SBRLO(cond, x) FIELD_PREP(GENMASK(7, 0), (x) >> (cond))
drivers/i3c/master/renesas-i3c.c
59
#define STDBR_SBRHO(cond, x) FIELD_PREP(GENMASK(15, 8), (x) >> (cond))
drivers/iio/adc/stm32-adc.c
608
#define stm32_adc_readl_poll_timeout(reg, val, cond, sleep_us, timeout_us) \
drivers/iio/adc/stm32-adc.c
610
cond, sleep_us, timeout_us)
drivers/infiniband/hw/mlx5/qp.c
2869
bool cond, struct mlx5_ib_qp *qp)
drivers/infiniband/hw/mlx5/qp.c
2874
if (cond) {
drivers/infiniband/hw/mlx5/qp.c
2900
bool cond;
drivers/infiniband/hw/mlx5/qp.c
2938
cond = MLX5_CAP_ETH(mdev, tunnel_stateless_vxlan) ||
drivers/infiniband/hw/mlx5/qp.c
2942
cond, qp);
drivers/infiniband/hw/mlx5/qp.c
2959
cond = qp->flags_en & ~(MLX5_QP_FLAG_TUNNEL_OFFLOADS |
drivers/infiniband/hw/mlx5/qp.c
2962
if (attr->rwq_ind_tbl && cond) {
drivers/infiniband/hw/mlx5/qp.c
2964
cond);
drivers/infiniband/hw/mlx5/qp.c
2975
bool cond, struct mlx5_ib_qp *qp)
drivers/infiniband/hw/mlx5/qp.c
2980
if (cond) {
drivers/infiniband/hw/mlx5/qp.c
2995
bool cond;
drivers/infiniband/hw/mlx5/qp.c
3025
cond = MLX5_CAP_GEN(mdev, port_type) == MLX5_CAP_PORT_TYPE_IB;
drivers/infiniband/hw/mlx5/qp.c
3027
cond, qp);
drivers/infiniband/hw/mlx5/qp.c
3031
cond = MLX5_CAP_GEN(mdev, eth_net_offloads) &&
drivers/infiniband/hw/mlx5/qp.c
3034
IB_QP_CREATE_SCATTER_FCS, cond, qp);
drivers/infiniband/hw/mlx5/qp.c
3036
cond = MLX5_CAP_GEN(mdev, eth_net_offloads) &&
drivers/infiniband/hw/mlx5/qp.c
3039
IB_QP_CREATE_CVLAN_STRIPPING, cond, qp);
drivers/iommu/intel/iommu.h
363
#define IOMMU_WAIT_OP(iommu, offset, op, cond, sts) \
drivers/iommu/intel/iommu.h
368
if (cond) \
drivers/iommu/riscv/iommu.h
81
#define riscv_iommu_readq_timeout(iommu, addr, val, cond, delay_us, timeout_us) \
drivers/iommu/riscv/iommu.h
82
readx_poll_timeout(readq_relaxed, (iommu)->reg + (addr), val, cond, \
drivers/iommu/riscv/iommu.h
85
#define riscv_iommu_readl_timeout(iommu, addr, val, cond, delay_us, timeout_us) \
drivers/iommu/riscv/iommu.h
86
readx_poll_timeout(readl_relaxed, (iommu)->reg + (addr), val, cond, \
drivers/macintosh/via-cuda.c
362
#define WAIT_FOR(cond, what) \
drivers/macintosh/via-cuda.c
365
for (x = 1000; !(cond); --x) { \
drivers/md/bcache/alloc.c
276
#define allocator_wait(ca, cond) \
drivers/md/bcache/alloc.c
280
if (cond) \
drivers/md/bcache/bcache.h
878
#define btree_bug_on(cond, b, ...) \
drivers/md/bcache/bcache.h
880
if (cond) \
drivers/md/bcache/bcache.h
884
#define cache_bug_on(cond, c, ...) \
drivers/md/bcache/bcache.h
886
if (cond) \
drivers/md/bcache/bcache.h
890
#define cache_set_err_on(cond, c, ...) \
drivers/md/bcache/bcache.h
892
if (cond) \
drivers/md/bcache/util.h
21
#define EBUG_ON(cond) BUG_ON(cond)
drivers/md/bcache/util.h
27
#define EBUG_ON(cond) do { if (cond) do {} while (0); } while (0)
drivers/md/dm-vdo/indexer/index-session.c
227
uds_init_cond(&session->load_context.cond);
drivers/md/dm-vdo/indexer/index-session.c
386
uds_wait_cond(&session->load_context.cond,
drivers/md/dm-vdo/indexer/index-session.c
518
uds_broadcast_cond(&session->load_context.cond);
drivers/md/dm-vdo/indexer/index-session.c
654
uds_broadcast_cond(&index_session->load_context.cond);
drivers/md/dm-vdo/indexer/index-session.h
69
struct cond_var cond;
drivers/md/dm-vdo/indexer/index.c
1262
uds_broadcast_cond(&index->load_context->cond);
drivers/md/dm-vdo/indexer/index.c
1304
uds_wait_cond(&writer->cond, &writer->mutex);
drivers/md/dm-vdo/indexer/index.c
186
uds_wait_cond(&writer->cond, &writer->mutex);
drivers/md/dm-vdo/indexer/index.c
223
uds_broadcast_cond(&writer->cond);
drivers/md/dm-vdo/indexer/index.c
61
struct cond_var cond;
drivers/md/dm-vdo/indexer/index.c
691
uds_wait_cond(&writer->cond, &writer->mutex);
drivers/md/dm-vdo/indexer/index.c
727
uds_broadcast_cond(&writer->cond);
drivers/md/dm-vdo/indexer/index.c
740
uds_broadcast_cond(&writer->cond);
drivers/md/dm-vdo/indexer/index.c
775
uds_init_cond(&writer->cond);
drivers/md/dm-vdo/indexer/index.c
960
uds_broadcast_cond(&index->load_context->cond);
drivers/md/dm-vdo/indexer/index.c
964
uds_wait_cond(&index->load_context->cond, &index->load_context->mutex);
drivers/md/dm-zone.c
109
if (zone->cond == BLK_ZONE_COND_FULL)
drivers/md/dm-zone.c
111
else if (zone->cond == BLK_ZONE_COND_EMPTY)
drivers/md/dm-zone.c
489
switch (zone->cond) {
drivers/md/dm-zoned-metadata.c
1394
if (blkz->cond == BLK_ZONE_COND_OFFLINE)
drivers/md/dm-zoned-metadata.c
1396
else if (blkz->cond == BLK_ZONE_COND_READONLY)
drivers/md/dm-zoned-metadata.c
1561
if (blkz->cond == BLK_ZONE_COND_OFFLINE)
drivers/md/dm-zoned-metadata.c
1563
else if (blkz->cond == BLK_ZONE_COND_READONLY)
drivers/md/raid10.c
90
#define wait_event_barrier_cmd(conf, cond, cmd) \
drivers/md/raid10.c
91
wait_event_cmd((conf)->wait_barrier, cond, cmd_before(conf, cmd), \
drivers/md/raid10.c
94
#define wait_event_barrier(conf, cond) \
drivers/md/raid10.c
95
wait_event_barrier_cmd(conf, cond, NULL_CMD)
drivers/media/i2c/thp7312.c
354
#define thp7312_read_poll_timeout(dev, addr, val, cond, sleep_us, timeout_us) \
drivers/media/i2c/thp7312.c
357
__ret = read_poll_timeout(cci_read, __err, __err || (cond), sleep_us, \
drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_h264_req_common.c
10
#define GET_MTK_VDEC_FLAG(cond, flag) \
drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_h264_req_common.c
11
{ dst_param->cond = ((src_param->flags & flag) ? (1) : (0)); }
drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_hevc_req_multi_if.c
23
#define GET_HEVC_VDEC_FLAG(cond, flag) \
drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_hevc_req_multi_if.c
24
{ dst_param->cond = ((src_param->flags & (flag)) ? (1) : (0)); }
drivers/media/platform/raspberrypi/rp1-cfe/cfe.c
362
static bool test_any_node(struct cfe_device *cfe, unsigned long cond)
drivers/media/platform/raspberrypi/rp1-cfe/cfe.c
365
if (check_state(cfe, cond, i))
drivers/media/platform/raspberrypi/rp1-cfe/cfe.c
373
unsigned long cond)
drivers/media/platform/raspberrypi/rp1-cfe/cfe.c
377
if (!check_state(cfe, cond, i))
drivers/net/can/spi/mcp251x.c
409
#define mcp251x_read_stat_poll_timeout(addr, val, cond, delay_us, timeout_us) \
drivers/net/can/spi/mcp251x.c
410
readx_poll_timeout(mcp251x_read_stat, addr, val, cond, \
drivers/net/dsa/mv88e6xxx/devlink.c
694
bool (*cond)(struct mv88e6xxx_chip *chip);
drivers/net/dsa/mv88e6xxx/devlink.c
715
.cond = mv88e6xxx_has_stu,
drivers/net/dsa/mv88e6xxx/devlink.c
721
.cond = mv88e6xxx_has_pvt,
drivers/net/dsa/mv88e6xxx/devlink.c
761
bool (*cond)(struct mv88e6xxx_chip *chip);
drivers/net/dsa/mv88e6xxx/devlink.c
771
cond = mv88e6xxx_regions[i].cond;
drivers/net/dsa/mv88e6xxx/devlink.c
773
if (cond && !cond(chip))
drivers/net/ethernet/hisilicon/hns/hnae.h
583
#define assert(cond)
drivers/net/ethernet/intel/ice/ice_osdep.h
27
#define rd32_poll_timeout(a, addr, val, cond, delay_us, timeout_us) \
drivers/net/ethernet/intel/ice/ice_osdep.h
28
read_poll_timeout(rd32, val, cond, delay_us, timeout_us, false, a, addr)
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
3878
struct mlx5e_tc_act_branch_ctrl *cond,
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
3893
switch (cond->act_id) {
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
3909
*jump_count = cond->extval;
drivers/net/ethernet/ni/nixge.c
236
#define nixge_ctrl_poll_timeout(priv, addr, val, cond, sleep_us, timeout_us) \
drivers/net/ethernet/ni/nixge.c
237
readl_poll_timeout((priv)->ctrl_regs + (addr), (val), (cond), \
drivers/net/ethernet/ni/nixge.c
240
#define nixge_dma_poll_timeout(priv, addr, val, cond, sleep_us, timeout_us) \
drivers/net/ethernet/ni/nixge.c
241
readl_poll_timeout((priv)->dma_regs + (addr), (val), (cond), \
drivers/net/ethernet/qlogic/qed/qed_dev.c
2763
u8 cond;
drivers/net/ethernet/qlogic/qed/qed_dev.c
2806
cond = (rc && (roce_edpm_mode == QED_ROCE_EDPM_MODE_ENABLE)) ||
drivers/net/ethernet/qlogic/qed/qed_dev.c
2808
if (cond || p_hwfn->dcbx_no_edpm) {
drivers/net/ethernet/qlogic/qed/qed_dev.c
2816
if (cond)
drivers/net/ethernet/realtek/r8169_main.c
848
u8 bits, bool cond)
drivers/net/ethernet/realtek/r8169_main.c
853
if (cond)
drivers/net/ethernet/realtek/rtase/rtase_main.c
825
static void rtase_poll_timeout(const struct rtase_private *tp, u32 cond,
drivers/net/ethernet/realtek/rtase/rtase_main.c
831
err = read_poll_timeout(rtase_r8, val, val & cond, sleep_us,
drivers/net/fddi/skfp/cfm.c
206
int cond ;
drivers/net/fddi/skfp/cfm.c
234
cond = FALSE ;
drivers/net/fddi/skfp/cfm.c
242
cond = TRUE ;
drivers/net/fddi/skfp/cfm.c
244
if (cond != smc->mib.fddiSMTPeerWrapFlag)
drivers/net/fddi/skfp/cfm.c
245
smt_srf_event(smc,SMT_COND_SMT_PEER_WRAP,0,cond) ;
drivers/net/fddi/skfp/h/cmtdef.h
627
void smt_srf_event(struct s_smc *smc, int code, int index, int cond);
drivers/net/fddi/skfp/h/cmtdef.h
630
#define smt_srf_event(smc,code,index,cond)
drivers/net/fddi/skfp/pcmplc.c
1072
int cond ;
drivers/net/fddi/skfp/pcmplc.c
1129
cond = (mib->fddiPORTLer_Estimate <= mib->fddiPORTLer_Alarm) ?
drivers/net/fddi/skfp/pcmplc.c
1132
smt_ler_alarm_check(smc,phy,cond) ;
drivers/net/fddi/skfp/pcmplc.c
1134
if (cond != mib->fddiPORTLerFlag) {
drivers/net/fddi/skfp/pcmplc.c
1136
(int) (INDEX_PORT+ phy->np) ,cond) ;
drivers/net/fddi/skfp/smt.c
279
int cond ;
drivers/net/fddi/skfp/smt.c
302
cond =
drivers/net/fddi/skfp/smt.c
308
if (cond != mib->fddiMACFrameErrorFlag)
drivers/net/fddi/skfp/smt.c
310
INDEX_MAC,cond) ;
drivers/net/fddi/skfp/smt.c
319
cond =
drivers/net/fddi/skfp/smt.c
326
if (cond != mib->fddiMACNotCopiedFlag)
drivers/net/fddi/skfp/smt.c
328
INDEX_MAC,cond) ;
drivers/net/fddi/skfp/smt.c
349
cond = (phy->mib->fddiPORTEBError_Ct -
drivers/net/fddi/skfp/smt.c
356
(int) (INDEX_PORT+ phy->np) ,cond) ;
drivers/net/fddi/skfp/smt.c
808
int cond ;
drivers/net/fddi/skfp/smt.c
810
cond = ( smc->mib.m[MAC0].fddiMACUNDA_Flag |
drivers/net/fddi/skfp/smt.c
812
if (report && (cond != smc->mib.m[MAC0].fddiMACDuplicateAddressCond))
drivers/net/fddi/skfp/smt.c
813
smt_srf_event(smc, SMT_COND_MAC_DUP_ADDR,INDEX_MAC,cond) ;
drivers/net/fddi/skfp/smt.c
815
smc->mib.m[MAC0].fddiMACDuplicateAddressCond = cond ;
drivers/net/fddi/skfp/srf.c
176
void smt_srf_event(struct s_smc *smc, int code, int index, int cond)
drivers/net/fddi/skfp/srf.c
185
if (code == SMT_COND_MAC_DUP_ADDR && cond) {
drivers/net/fddi/skfp/srf.c
200
if (*evc->evc_cond_state == cond)
drivers/net/fddi/skfp/srf.c
209
DB_SMT("SRF: condition is %s", cond ? "ON" : "OFF");
drivers/net/fddi/skfp/srf.c
210
if (cond) {
drivers/net/mdio/mdio-mscc-miim.c
66
#define mscc_readx_poll_timeout(op, addr, val, cond, delay_us, timeout_us)\
drivers/net/mdio/mdio-mscc-miim.c
69
readx_poll_timeout_atomic(op, addr, val, cond, delay_us, \
drivers/net/mdio/mdio-mscc-miim.c
71
readx_poll_timeout(op, addr, val, cond, delay_us, timeout_us); \
drivers/net/phy/mscc/mscc_ptp.c
113
bool cond = (addr == MSCC_PHY_PTP_LTC_CTRL ||
drivers/net/phy/mscc/mscc_ptp.c
140
if (!cond || upper)
drivers/net/phy/mscc/mscc_ptp.c
155
if (cond && upper)
drivers/net/wireguard/selftest/allowedips.c
487
#define test_boolean(cond) do { \
drivers/net/wireguard/selftest/allowedips.c
488
bool _s = (cond); \
drivers/net/wireless/intel/iwlegacy/common.c
3779
#define CHK(cond) \
drivers/net/wireless/intel/iwlegacy/common.c
3780
if ((cond)) { \
drivers/net/wireless/intel/iwlegacy/common.c
3781
D_INFO("need full RXON - " #cond "\n"); \
drivers/net/wireless/intel/iwlwifi/dvm/rxon.c
838
#define CHK(cond) \
drivers/net/wireless/intel/iwlwifi/dvm/rxon.c
839
if ((cond)) { \
drivers/net/wireless/intel/iwlwifi/dvm/rxon.c
840
IWL_DEBUG_INFO(priv, "need full RXON - " #cond "\n"); \
drivers/net/wireless/realtek/rtlwifi/rtl8188ee/phy.c
255
u32 cond;
drivers/net/wireless/realtek/rtlwifi/rtl8188ee/phy.c
260
cond = condition & 0xFF;
drivers/net/wireless/realtek/rtlwifi/rtl8188ee/phy.c
261
if ((_board & cond) == 0 && cond != 0x1F)
drivers/net/wireless/realtek/rtlwifi/rtl8188ee/phy.c
264
cond = condition & 0xFF00;
drivers/net/wireless/realtek/rtlwifi/rtl8188ee/phy.c
265
cond = cond >> 8;
drivers/net/wireless/realtek/rtlwifi/rtl8188ee/phy.c
266
if ((_interface & cond) == 0 && cond != 0x07)
drivers/net/wireless/realtek/rtlwifi/rtl8188ee/phy.c
269
cond = condition & 0xFF0000;
drivers/net/wireless/realtek/rtlwifi/rtl8188ee/phy.c
270
cond = cond >> 16;
drivers/net/wireless/realtek/rtlwifi/rtl8188ee/phy.c
271
if ((_platform & cond) == 0 && cond != 0x0F)
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c
252
u32 cond = condition;
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c
257
cond = condition & 0xFF;
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c
258
if ((_board != cond) && (cond != 0xFF))
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c
261
cond = condition & 0xFF00;
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c
262
cond = cond >> 8;
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c
263
if ((_interface & cond) == 0 && cond != 0x07)
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c
266
cond = condition & 0xFF0000;
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c
267
cond = cond >> 16;
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c
268
if ((_platform & cond) == 0 && cond != 0x0F)
drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c
545
u8 cond;
drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c
554
cond = (u8)((v1 & (BIT(29) | BIT(28))) >> 28);
drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c
555
if (cond == COND_ENDIF) { /*end*/
drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c
558
} else if (cond == COND_ELSE) { /*else*/
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c
1834
u8 cond;
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c
1843
cond = (u8)((v1 & (BIT(29) | BIT(28))) >> 28);
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c
1844
if (cond == COND_ENDIF) {/*end*/
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c
1847
} else if (cond == COND_ELSE) /*else*/
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c
806
u32 cond = condition;
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c
811
cond = condition & 0xFF;
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c
812
if ((_board != cond) && cond != 0xFF)
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c
815
cond = condition & 0xFF00;
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c
816
cond = cond >> 8;
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c
817
if ((_interface & cond) == 0 && cond != 0x07)
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c
820
cond = condition & 0xFF0000;
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c
821
cond = cond >> 16;
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c
822
if ((_platform & cond) == 0 && cond != 0x0F)
drivers/net/wireless/realtek/rtw88/phy.c
1107
struct rtw_phy_cond cond = {};
drivers/net/wireless/realtek/rtw88/phy.c
1110
cond.cut = hal->cut_version ? hal->cut_version : 15;
drivers/net/wireless/realtek/rtw88/phy.c
1111
cond.pkg = pkg ? pkg : 15;
drivers/net/wireless/realtek/rtw88/phy.c
1112
cond.plat = 0x04;
drivers/net/wireless/realtek/rtw88/phy.c
1113
cond.rfe = efuse->rfe_option;
drivers/net/wireless/realtek/rtw88/phy.c
1117
cond.intf = INTF_USB;
drivers/net/wireless/realtek/rtw88/phy.c
1120
cond.intf = INTF_SDIO;
drivers/net/wireless/realtek/rtw88/phy.c
1124
cond.intf = INTF_PCIE;
drivers/net/wireless/realtek/rtw88/phy.c
1130
cond.rfe = 0;
drivers/net/wireless/realtek/rtw88/phy.c
1131
cond.rfe |= efuse->ext_lna_2g;
drivers/net/wireless/realtek/rtw88/phy.c
1132
cond.rfe |= efuse->ext_pa_2g << 1;
drivers/net/wireless/realtek/rtw88/phy.c
1133
cond.rfe |= efuse->ext_lna_5g << 2;
drivers/net/wireless/realtek/rtw88/phy.c
1134
cond.rfe |= efuse->ext_pa_5g << 3;
drivers/net/wireless/realtek/rtw88/phy.c
1135
cond.rfe |= efuse->btcoex << 4;
drivers/net/wireless/realtek/rtw88/phy.c
1143
hal->phy_cond = cond;
drivers/net/wireless/realtek/rtw88/phy.c
1150
static bool check_positive(struct rtw_dev *rtwdev, struct rtw_phy_cond cond,
drivers/net/wireless/realtek/rtw88/phy.c
1157
if (cond.cut && cond.cut != drv_cond.cut)
drivers/net/wireless/realtek/rtw88/phy.c
1160
if (cond.pkg && cond.pkg != drv_cond.pkg)
drivers/net/wireless/realtek/rtw88/phy.c
1163
if (cond.intf && cond.intf != drv_cond.intf)
drivers/net/wireless/realtek/rtw88/phy.c
1168
if (!(cond.rfe & 0x0f))
drivers/net/wireless/realtek/rtw88/phy.c
1171
if ((cond.rfe & drv_cond.rfe) != cond.rfe)
drivers/net/wireless/realtek/rtw88/phy.c
1174
if ((cond.rfe & BIT(0)) && cond2.type_glna != drv_cond2.type_glna)
drivers/net/wireless/realtek/rtw88/phy.c
1177
if ((cond.rfe & BIT(1)) && cond2.type_gpa != drv_cond2.type_gpa)
drivers/net/wireless/realtek/rtw88/phy.c
1180
if ((cond.rfe & BIT(2)) && cond2.type_alna != drv_cond2.type_alna)
drivers/net/wireless/realtek/rtw88/phy.c
1183
if ((cond.rfe & BIT(3)) && cond2.type_apa != drv_cond2.type_apa)
drivers/net/wireless/realtek/rtw88/phy.c
1186
if (cond.rfe != drv_cond.rfe)
drivers/net/wireless/realtek/rtw88/phy.c
1204
if (p->cond.pos) {
drivers/net/wireless/realtek/rtw88/phy.c
1205
switch (p->cond.branch) {
drivers/net/wireless/realtek/rtw88/phy.c
1216
pos_cond = p->cond;
drivers/net/wireless/realtek/rtw88/phy.c
1220
} else if (p->cond.neg) {
drivers/net/wireless/realtek/rtw88/phy.c
22
struct rtw_phy_cond cond;
drivers/net/wireless/realtek/rtw89/core.c
5649
rtw89_wait_for_cond_prep(struct rtw89_wait_info *wait, unsigned int cond)
drivers/net/wireless/realtek/rtw89/core.c
5656
cur = atomic_cmpxchg(&wait->cond, RTW89_WAIT_COND_IDLE, cond);
drivers/net/wireless/realtek/rtw89/core.c
5703
atomic_set(&wait->cond, RTW89_WAIT_COND_IDLE);
drivers/net/wireless/realtek/rtw89/core.c
5721
void rtw89_complete_cond(struct rtw89_wait_info *wait, unsigned int cond,
drivers/net/wireless/realtek/rtw89/core.c
5733
cur = atomic_cmpxchg(&wait->cond, cond, RTW89_WAIT_COND_IDLE);
drivers/net/wireless/realtek/rtw89/core.c
5734
if (cur != cond)
drivers/net/wireless/realtek/rtw89/core.h
4689
atomic_t cond;
drivers/net/wireless/realtek/rtw89/core.h
4699
atomic_set(&wait->cond, RTW89_WAIT_COND_IDLE);
drivers/net/wireless/realtek/rtw89/core.h
7795
rtw89_wait_for_cond_prep(struct rtw89_wait_info *wait, unsigned int cond)
drivers/net/wireless/realtek/rtw89/core.h
7800
void rtw89_complete_cond(struct rtw89_wait_info *wait, unsigned int cond,
drivers/net/wireless/realtek/rtw89/fw.c
10010
cond = RTW89_MCC_WAIT_COND(p->group, H2C_FUNC_START_MCC);
drivers/net/wireless/realtek/rtw89/fw.c
10011
return rtw89_h2c_tx_and_wait(rtwdev, skb, wait, cond);
drivers/net/wireless/realtek/rtw89/fw.c
10020
unsigned int cond;
drivers/net/wireless/realtek/rtw89/fw.c
10040
cond = RTW89_MCC_WAIT_COND(group, H2C_FUNC_STOP_MCC);
drivers/net/wireless/realtek/rtw89/fw.c
10041
return rtw89_h2c_tx_and_wait(rtwdev, skb, wait, cond);
drivers/net/wireless/realtek/rtw89/fw.c
10050
unsigned int cond;
drivers/net/wireless/realtek/rtw89/fw.c
10069
cond = RTW89_MCC_WAIT_COND(group, H2C_FUNC_DEL_MCC_GROUP);
drivers/net/wireless/realtek/rtw89/fw.c
10070
return rtw89_h2c_tx_and_wait(rtwdev, skb, wait, cond);
drivers/net/wireless/realtek/rtw89/fw.c
10078
unsigned int cond;
drivers/net/wireless/realtek/rtw89/fw.c
10096
cond = RTW89_MCC_WAIT_COND(group, H2C_FUNC_RESET_MCC_GROUP);
drivers/net/wireless/realtek/rtw89/fw.c
10097
return rtw89_h2c_tx_and_wait(rtwdev, skb, wait, cond);
drivers/net/wireless/realtek/rtw89/fw.c
10108
unsigned int cond;
drivers/net/wireless/realtek/rtw89/fw.c
10129
cond = RTW89_MCC_WAIT_COND(req->group, H2C_FUNC_MCC_REQ_TSF);
drivers/net/wireless/realtek/rtw89/fw.c
10130
ret = rtw89_h2c_tx_and_wait(rtwdev, skb, wait, cond);
drivers/net/wireless/realtek/rtw89/fw.c
10146
unsigned int cond;
drivers/net/wireless/realtek/rtw89/fw.c
10172
cond = RTW89_MCC_WAIT_COND(group, H2C_FUNC_MCC_MACID_BITMAP);
drivers/net/wireless/realtek/rtw89/fw.c
10173
return rtw89_h2c_tx_and_wait(rtwdev, skb, wait, cond);
drivers/net/wireless/realtek/rtw89/fw.c
10182
unsigned int cond;
drivers/net/wireless/realtek/rtw89/fw.c
10203
cond = RTW89_MCC_WAIT_COND(group, H2C_FUNC_MCC_SYNC);
drivers/net/wireless/realtek/rtw89/fw.c
10204
return rtw89_h2c_tx_and_wait(rtwdev, skb, wait, cond);
drivers/net/wireless/realtek/rtw89/fw.c
10213
unsigned int cond;
drivers/net/wireless/realtek/rtw89/fw.c
10241
cond = RTW89_MCC_WAIT_COND(p->group, H2C_FUNC_MCC_SET_DURATION);
drivers/net/wireless/realtek/rtw89/fw.c
10242
return rtw89_h2c_tx_and_wait(rtwdev, skb, wait, cond);
drivers/net/wireless/realtek/rtw89/fw.c
10366
unsigned int cond;
drivers/net/wireless/realtek/rtw89/fw.c
10393
cond = RTW89_MRC_WAIT_COND(arg->sch_idx, H2C_FUNC_START_MRC);
drivers/net/wireless/realtek/rtw89/fw.c
10394
return rtw89_h2c_tx_and_wait(rtwdev, skb, wait, cond);
drivers/net/wireless/realtek/rtw89/fw.c
10403
unsigned int cond;
drivers/net/wireless/realtek/rtw89/fw.c
10423
cond = RTW89_MRC_WAIT_COND(sch_idx, H2C_FUNC_DEL_MRC);
drivers/net/wireless/realtek/rtw89/fw.c
10424
return rtw89_h2c_tx_and_wait(rtwdev, skb, wait, cond);
drivers/net/wireless/realtek/rtw89/fw.c
10685
unsigned int cond;
drivers/net/wireless/realtek/rtw89/fw.c
10706
cond = RTW89_MLO_WAIT_COND(mac_id, H2C_FUNC_MLO_LINK_CFG);
drivers/net/wireless/realtek/rtw89/fw.c
10708
ret = rtw89_h2c_tx_and_wait(rtwdev, skb, wait, cond);
drivers/net/wireless/realtek/rtw89/fw.c
6245
unsigned int cond;
drivers/net/wireless/realtek/rtw89/fw.c
6265
cond = RTW89_FW_OFLD_WAIT_COND_PKT_OFLD(id, RTW89_PKT_OFLD_OP_DEL);
drivers/net/wireless/realtek/rtw89/fw.c
6267
ret = rtw89_h2c_tx_and_wait(rtwdev, skb, wait, cond);
drivers/net/wireless/realtek/rtw89/fw.c
6284
unsigned int cond;
drivers/net/wireless/realtek/rtw89/fw.c
6315
cond = RTW89_FW_OFLD_WAIT_COND_PKT_OFLD(alloc_id, RTW89_PKT_OFLD_OP_ADD);
drivers/net/wireless/realtek/rtw89/fw.c
6317
ret = rtw89_h2c_tx_and_wait(rtwdev, skb, wait, cond);
drivers/net/wireless/realtek/rtw89/fw.c
6339
unsigned int cond;
drivers/net/wireless/realtek/rtw89/fw.c
6395
cond = RTW89_SCANOFLD_WAIT_COND_ADD_CH;
drivers/net/wireless/realtek/rtw89/fw.c
6397
ret = rtw89_h2c_tx_and_wait(rtwdev, skb, wait, cond);
drivers/net/wireless/realtek/rtw89/fw.c
6416
unsigned int cond;
drivers/net/wireless/realtek/rtw89/fw.c
6503
cond = RTW89_SCANOFLD_WAIT_COND_ADD_CH;
drivers/net/wireless/realtek/rtw89/fw.c
6505
ret = rtw89_h2c_tx_and_wait(rtwdev, skb, wait, cond);
drivers/net/wireless/realtek/rtw89/fw.c
6526
unsigned int cond;
drivers/net/wireless/realtek/rtw89/fw.c
6589
cond = RTW89_SCANOFLD_WAIT_COND_START;
drivers/net/wireless/realtek/rtw89/fw.c
6591
cond = RTW89_SCANOFLD_WAIT_COND_STOP;
drivers/net/wireless/realtek/rtw89/fw.c
6593
ret = rtw89_h2c_tx_and_wait(rtwdev, skb, wait, cond);
drivers/net/wireless/realtek/rtw89/fw.c
6648
unsigned int cond;
drivers/net/wireless/realtek/rtw89/fw.c
6847
cond = RTW89_SCANOFLD_BE_WAIT_COND_START;
drivers/net/wireless/realtek/rtw89/fw.c
6849
cond = RTW89_SCANOFLD_BE_WAIT_COND_STOP;
drivers/net/wireless/realtek/rtw89/fw.c
6851
ret = rtw89_h2c_tx_and_wait(rtwdev, skb, wait, cond);
drivers/net/wireless/realtek/rtw89/fw.c
70
struct rtw89_wait_info *wait, unsigned int cond);
drivers/net/wireless/realtek/rtw89/fw.c
814
bool (*cond)(u32 suit_ver_code, u32 comp_ver_code);
drivers/net/wireless/realtek/rtw89/fw.c
824
.cond = __fw_feat_cond_ ## _cond, \
drivers/net/wireless/realtek/rtw89/fw.c
832
.cond = __fw_feat_cond_ ## _cond, \
drivers/net/wireless/realtek/rtw89/fw.c
842
.cond = __fw_feat_cond_ ## _cond, \
drivers/net/wireless/realtek/rtw89/fw.c
940
if (!ent->cond(ver_code, ent->ver_code))
drivers/net/wireless/realtek/rtw89/fw.c
9903
struct rtw89_wait_info *wait, unsigned int cond)
drivers/net/wireless/realtek/rtw89/fw.c
9910
prep = rtw89_wait_for_cond_prep(wait, cond);
drivers/net/wireless/realtek/rtw89/fw.c
9937
unsigned int cond;
drivers/net/wireless/realtek/rtw89/fw.c
9974
cond = RTW89_MCC_WAIT_COND(p->group, H2C_FUNC_ADD_MCC);
drivers/net/wireless/realtek/rtw89/fw.c
9975
return rtw89_h2c_tx_and_wait(rtwdev, skb, wait, cond);
drivers/net/wireless/realtek/rtw89/fw.c
9984
unsigned int cond;
drivers/net/wireless/realtek/rtw89/mac.c
5374
unsigned int cond;
drivers/net/wireless/realtek/rtw89/mac.c
5391
cond = RTW89_PS_WAIT_COND_IPS_CFG;
drivers/net/wireless/realtek/rtw89/mac.c
5396
rtw89_complete_cond(ps_wait, cond, &data);
drivers/net/wireless/realtek/rtw89/mac.c
5403
cond = RTW89_SCANOFLD_WAIT_COND_ADD_CH;
drivers/net/wireless/realtek/rtw89/mac.c
5408
cond = RTW89_SCANOFLD_WAIT_COND_START;
drivers/net/wireless/realtek/rtw89/mac.c
5412
cond = RTW89_SCANOFLD_BE_WAIT_COND_START;
drivers/net/wireless/realtek/rtw89/mac.c
5418
rtw89_complete_cond(fw_ofld_wait, cond, &data);
drivers/net/wireless/realtek/rtw89/mac.c
5461
unsigned int cond;
drivers/net/wireless/realtek/rtw89/mac.c
5467
cond = RTW89_FW_OFLD_WAIT_COND_PKT_OFLD(pkt_id, pkt_op);
drivers/net/wireless/realtek/rtw89/mac.c
5469
rtw89_complete_cond(wait, cond, &data);
drivers/net/wireless/realtek/rtw89/mac.c
5530
unsigned int cond;
drivers/net/wireless/realtek/rtw89/mac.c
5560
cond = RTW89_MCC_WAIT_COND(group, func);
drivers/net/wireless/realtek/rtw89/mac.c
5561
rtw89_complete_cond(&rtwdev->mcc.wait, cond, &data);
drivers/net/wireless/realtek/rtw89/mac.c
5570
unsigned int cond;
drivers/net/wireless/realtek/rtw89/mac.c
5585
cond = RTW89_MCC_WAIT_COND(group, H2C_FUNC_MCC_REQ_TSF);
drivers/net/wireless/realtek/rtw89/mac.c
5586
rtw89_complete_cond(&rtwdev->mcc.wait, cond, &data);
drivers/net/wireless/realtek/rtw89/mac.c
5598
unsigned int cond;
drivers/net/wireless/realtek/rtw89/mac.c
5655
cond = RTW89_MCC_WAIT_COND(group, func);
drivers/net/wireless/realtek/rtw89/mac.c
5656
rtw89_complete_cond(&rtwdev->mcc.wait, cond, &data);
drivers/net/wireless/realtek/rtw89/mac.c
5789
unsigned int cond;
drivers/net/wireless/realtek/rtw89/mac.c
5800
cond = RTW89_MLO_WAIT_COND(mac_id, H2C_FUNC_MLO_LINK_CFG);
drivers/net/wireless/realtek/rtw89/mac.c
5801
rtw89_complete_cond(wait, cond, &data);
drivers/net/wireless/realtek/rtw89/mac.c
5811
unsigned int cond;
drivers/net/wireless/realtek/rtw89/mac.c
5889
cond = RTW89_MRC_WAIT_COND(sch_idx, func);
drivers/net/wireless/realtek/rtw89/mac.c
5890
rtw89_complete_cond(wait, cond, &data);
drivers/net/wireless/realtek/rtw89/mac.c
6005
unsigned int cond;
drivers/net/wireless/realtek/rtw89/mac.c
6017
cond = RTW89_SCANOFLD_BE_WAIT_COND_STOP;
drivers/net/wireless/realtek/rtw89/mac.c
6019
cond = RTW89_SCANOFLD_WAIT_COND_STOP;
drivers/net/wireless/realtek/rtw89/mac.c
6021
rtw89_complete_cond(fw_ofld_wait, cond, &data);
drivers/net/wireless/realtek/rtw89/phy.c
1798
u8 cond;
drivers/net/wireless/realtek/rtw89/phy.c
1813
cond = get_phy_cond(reg->addr);
drivers/net/wireless/realtek/rtw89/phy.c
1814
switch (cond) {
drivers/net/wireless/realtek/rtw89/phy.h
820
#define rtw89_rfk_parser_by_cond(dev, cond, tbl_t, tbl_f) \
drivers/net/wireless/realtek/rtw89/phy.h
823
if (cond) \
drivers/net/wireless/zydas/zd1211rw/zd_def.h
27
# define dev_dbg_f_cond(dev, cond, fmt, args...) ({ \
drivers/net/wireless/zydas/zd1211rw/zd_def.h
28
bool __cond = !!(cond); \
drivers/net/wireless/zydas/zd1211rw/zd_def.h
35
# define dev_dbg_f_cond(dev, cond, fmt, args...) do { (void)(dev); } while (0)
drivers/net/wwan/t7xx/t7xx_dpmaif.c
31
#define ioread32_poll_timeout_atomic(addr, val, cond, delay_us, timeout_us) \
drivers/net/wwan/t7xx/t7xx_dpmaif.c
32
readx_poll_timeout_atomic(ioread32, addr, val, cond, delay_us, timeout_us)
drivers/nfc/nfcsim.c
134
link->cond,
drivers/nfc/nfcsim.c
165
link->cond = 0;
drivers/nfc/nfcsim.c
62
u8 cond;
drivers/nfc/nfcsim.c
87
link->cond = 1;
drivers/nvme/host/zns.c
163
zone.cond = entry->zs >> 4;
drivers/nvme/host/zns.c
167
if (zone.cond == BLK_ZONE_COND_FULL)
drivers/nvme/target/zns.c
224
z->cond != nvme_zrasf_to_blk_zcond[rz->zrasf])
drivers/nvme/target/zns.c
235
zdesc.zs = z->cond << 4;
drivers/nvme/target/zns.c
361
switch (z->cond) {
drivers/nvme/target/zns.c
369
switch (z->cond) {
drivers/nvme/target/zns.c
378
switch (z->cond) {
drivers/phy/freescale/phy-fsl-imx8qm-hsio.c
291
u32 val, addr, cond;
drivers/phy/freescale/phy-fsl-imx8qm-hsio.c
307
cond = HSIO_PM_REQ_CORE_RST;
drivers/phy/freescale/phy-fsl-imx8qm-hsio.c
309
(val & cond) == 0,
drivers/phy/freescale/phy-fsl-imx8qm-hsio.c
320
u32 val, cond;
drivers/phy/freescale/phy-fsl-imx8qm-hsio.c
332
cond = HSIO_REG48_PMA_RDY;
drivers/phy/freescale/phy-fsl-imx8qm-hsio.c
333
ret = read_poll_timeout(readb, val, ((val & cond) == cond),
drivers/phy/freescale/phy-fsl-imx8qm-hsio.c
348
u32 val, cond;
drivers/phy/freescale/phy-fsl-imx8qm-hsio.c
367
cond = HSIO_LANE1_TX_PLL_LOCK;
drivers/phy/freescale/phy-fsl-imx8qm-hsio.c
373
cond = HSIO_LANE0_TX_PLL_LOCK;
drivers/phy/freescale/phy-fsl-imx8qm-hsio.c
376
val, ((val & cond) == cond),
drivers/phy/rockchip/phy-rockchip-inno-hdmi.c
550
#define inno_poll(inno, reg, val, cond, sleep_us, timeout_us) \
drivers/phy/rockchip/phy-rockchip-inno-hdmi.c
551
regmap_read_poll_timeout((inno)->regmap, (reg) * 4, val, cond, \
drivers/pwm/pwm-lpss.c
160
static inline void pwm_lpss_cond_enable(struct pwm_device *pwm, bool cond)
drivers/pwm/pwm-lpss.c
162
if (cond)
drivers/s390/cio/css.c
762
void css_schedule_eval_cond(enum css_eval_cond cond, unsigned long delay)
drivers/s390/cio/css.c
775
switch (cond) {
drivers/sbus/char/oradax.c
124
u32 cond:1; /* Conditional */
drivers/scsi/csiostor/csio_defs.h
127
#define CSIO_ASSERT(cond) BUG_ON(!(cond))
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
641
#define hisi_sas_read32_poll_timeout(off, val, cond, delay_us, \
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
645
readl_poll_timeout(regs, val, cond, delay_us, timeout_us); \
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
648
#define hisi_sas_read32_poll_timeout_atomic(off, val, cond, delay_us, \
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
652
readl_poll_timeout_atomic(regs, val, cond, delay_us, timeout_us);\
drivers/scsi/sd_zbc.c
56
zone.cond = (buf[1] >> 4) & 0xf;
drivers/scsi/sd_zbc.c
83
if (zone.cond == ZBC_ZONE_COND_FULL)
drivers/spmi/spmi-apple-controller.c
35
#define poll_reg(spmi, reg, val, cond) \
drivers/spmi/spmi-apple-controller.c
36
readl_poll_timeout((spmi)->regs + (reg), (val), (cond), \
drivers/staging/media/atomisp/pci/camera/pipe/src/pipe_binarydesc.c
173
bool cond = (out_w * num / den + delta > in_w) &&
drivers/staging/media/atomisp/pci/camera/pipe/src/pipe_binarydesc.c
178
if (cond) {
drivers/staging/media/atomisp/pci/hive_isp_css_include/assert_support.h
36
static inline void compile_time_assert(unsigned int cond)
drivers/staging/media/atomisp/pci/hive_isp_css_include/assert_support.h
40
if (!cond) _compile_time_assert();
drivers/tty/serial/amba-pl011.c
1643
static void pl011_maybe_set_bit(bool cond, unsigned int *ptr, unsigned int mask)
drivers/tty/serial/amba-pl011.c
1645
if (cond)
drivers/tty/serial/amba-pl011.c
1664
static void pl011_assign_bit(bool cond, unsigned int *ptr, unsigned int mask)
drivers/tty/serial/amba-pl011.c
1666
if (cond)
drivers/usb/atm/ueagle-atm.c
548
#define uea_wait(sc, cond, timeo) \
drivers/usb/atm/ueagle-atm.c
551
(cond) || kthread_should_stop(), timeo); \
drivers/usb/gadget/function/u_serial.c
1246
int cond;
drivers/usb/gadget/function/u_serial.c
1249
cond = port->port.count == 0;
drivers/usb/gadget/function/u_serial.c
1252
return cond;
drivers/usb/gadget/function/u_serial.c
682
int cond;
drivers/usb/gadget/function/u_serial.c
686
cond = p->port_usb == NULL || !kfifo_len(&p->port_write_buf) ||
drivers/usb/gadget/function/u_serial.c
690
return cond;
fs/btrfs/messages.h
142
#define ASSERT(cond, args...) \
fs/btrfs/messages.h
145
if (!likely(cond)) { \
fs/btrfs/messages.h
148
#cond, (long)(cond), __FILE__, __LINE__); \
fs/btrfs/messages.h
151
#cond, (long)(cond), __FILE__, __LINE__ __REST_ARGS(args)); \
fs/btrfs/messages.h
159
#define ASSERT(cond, args...) BUILD_BUG_ON_INVALID(cond)
fs/btrfs/zoned.c
1004
zone->cond = BLK_ZONE_COND_FULL;
fs/btrfs/zoned.c
1389
switch (zone.cond) {
fs/btrfs/zoned.c
213
zones[i].cond = BLK_ZONE_COND_NOT_WP;
fs/btrfs/zoned.c
494
switch (zones[i].cond) {
fs/btrfs/zoned.c
75
return (zone->cond == BLK_ZONE_COND_FULL) ||
fs/btrfs/zoned.c
837
if (reset && reset->cond != BLK_ZONE_COND_EMPTY) {
fs/btrfs/zoned.c
849
reset->cond = BLK_ZONE_COND_EMPTY;
fs/btrfs/zoned.c
971
if (zone->cond == BLK_ZONE_COND_FULL) {
fs/btrfs/zoned.c
976
if (zone->cond == BLK_ZONE_COND_EMPTY)
fs/btrfs/zoned.c
977
zone->cond = BLK_ZONE_COND_IMP_OPEN;
fs/btrfs/zoned.c
98
empty[i] = (zones[i].cond == BLK_ZONE_COND_EMPTY);
fs/f2fs/segment.c
5331
blk_zone_cond_str(zone->cond));
fs/f2fs/segment.c
5335
if ((!valid_block_cnt && zone->cond == BLK_ZONE_COND_EMPTY) ||
fs/f2fs/segment.c
5336
(valid_block_cnt && zone->cond == BLK_ZONE_COND_FULL))
fs/f2fs/segment.c
5342
blk_zone_cond_str(zone->cond));
fs/f2fs/segment.c
5360
zone_segno, valid_block_cnt, blk_zone_cond_str(zone->cond));
fs/jfs/jfs_lock.h
22
#define __SLEEP_COND(wq, cond, lock_cmd, unlock_cmd) \
fs/jfs/jfs_lock.h
29
if (cond) \
fs/jfs/jfs_logmgr.c
116
#define LCACHE_SLEEP_COND(wq, cond, flags) \
fs/jfs/jfs_logmgr.c
118
if (cond) \
fs/jfs/jfs_logmgr.c
120
__SLEEP_COND(wq, cond, LCACHE_LOCK(flags), LCACHE_UNLOCK(flags)); \
fs/netfs/fscache_io.c
214
bool using_pgpriv2, bool cond)
fs/netfs/fscache_io.c
233
wreq->set_bits = cond;
fs/netfs/fscache_io.c
261
fscache_clear_page_bits(mapping, start, len, cond);
fs/ocfs2/cluster/masklog.h
183
#define mlog_bug_on_msg(cond, fmt, args...) do { \
fs/ocfs2/cluster/masklog.h
184
if (cond) { \
fs/ocfs2/cluster/masklog.h
185
mlog(ML_ERROR, "bug expression: " #cond "\n"); \
fs/xfs/libxfs/xfs_zones.c
24
switch (zone->cond) {
fs/xfs/libxfs/xfs_zones.c
49
zone_no, zone->cond);
fs/xfs/libxfs/xfs_zones.c
53
zone_no, zone->cond);
fs/xfs/libxfs/xfs_zones.c
64
switch (zone->cond) {
fs/xfs/libxfs/xfs_zones.c
70
zone_no, zone->cond);
fs/xfs/xfs_zone_alloc.c
1016
if (zone.cond != BLK_ZONE_COND_NOT_WP)
fs/zonefs/super.c
1032
(zone->cond == BLK_ZONE_COND_IMP_OPEN ||
fs/zonefs/super.c
1033
zone->cond == BLK_ZONE_COND_EXP_OPEN)) {
fs/zonefs/super.c
194
switch (zone->cond) {
fs/zonefs/super.c
386
zone.cond = BLK_ZONE_COND_NOT_WP;
fs/zonefs/super.c
984
if (next->cond == BLK_ZONE_COND_READONLY &&
fs/zonefs/super.c
985
zone->cond != BLK_ZONE_COND_OFFLINE)
fs/zonefs/super.c
986
zone->cond = BLK_ZONE_COND_READONLY;
fs/zonefs/super.c
987
else if (next->cond == BLK_ZONE_COND_OFFLINE)
fs/zonefs/super.c
988
zone->cond = BLK_ZONE_COND_OFFLINE;
include/linux/bpf.h
378
#define BPF_WARN_ONCE(cond, format...) WARN_ONCE(cond, format)
include/linux/bpf.h
380
#define BPF_WARN_ONCE(cond, format...) BUILD_BUG_ON_INVALID(cond)
include/linux/bpf_verifier.h
881
#define verifier_bug_if(cond, env, fmt, args...) \
include/linux/bpf_verifier.h
883
bool __cond = (cond); \
include/linux/bpf_verifier.h
885
verifier_bug(env, fmt " (" #cond ")", ##args); \
include/linux/bug.h
18
#define MAYBE_BUILD_BUG_ON(cond) (0)
include/linux/bug.h
21
#define MAYBE_BUILD_BUG_ON(cond) \
include/linux/bug.h
23
if (__builtin_constant_p((cond))) \
include/linux/bug.h
24
BUILD_BUG_ON(cond); \
include/linux/bug.h
26
BUG_ON(cond); \
include/linux/build_bug.h
40
#define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
include/linux/compiler.h
55
#define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
include/linux/compiler.h
57
#define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
include/linux/compiler.h
59
#define __trace_if_value(cond) ({ \
include/linux/compiler.h
68
(cond) ? \
include/linux/context_tracking.h
104
#define CT_WARN_ON(cond) do { } while (0)
include/linux/context_tracking.h
91
#define CT_WARN_ON(cond) WARN_ON(context_tracking_enabled() && (cond))
include/linux/fscache.h
180
bool using_pgpriv2, bool cond);
include/linux/hashtable.h
176
#define hash_for_each_possible_rcu(name, obj, member, key, cond...) \
include/linux/hashtable.h
178
member, ## cond)
include/linux/iopoll.h
103
if (cond) { \
include/linux/iopoll.h
143
#define read_poll_timeout(op, val, cond, sleep_us, timeout_us, \
include/linux/iopoll.h
145
poll_timeout_us((val) = op(args), cond, sleep_us, timeout_us, sleep_before_read)
include/linux/iopoll.h
170
#define read_poll_timeout_atomic(op, val, cond, sleep_us, timeout_us, \
include/linux/iopoll.h
172
poll_timeout_us_atomic((val) = op(args), cond, sleep_us, timeout_us, sleep_before_read)
include/linux/iopoll.h
192
#define readx_poll_timeout(op, addr, val, cond, sleep_us, timeout_us) \
include/linux/iopoll.h
193
read_poll_timeout(op, val, cond, sleep_us, timeout_us, false, addr)
include/linux/iopoll.h
212
#define readx_poll_timeout_atomic(op, addr, val, cond, delay_us, timeout_us) \
include/linux/iopoll.h
213
read_poll_timeout_atomic(op, val, cond, delay_us, timeout_us, false, addr)
include/linux/iopoll.h
215
#define readb_poll_timeout(addr, val, cond, delay_us, timeout_us) \
include/linux/iopoll.h
216
readx_poll_timeout(readb, addr, val, cond, delay_us, timeout_us)
include/linux/iopoll.h
218
#define readb_poll_timeout_atomic(addr, val, cond, delay_us, timeout_us) \
include/linux/iopoll.h
219
readx_poll_timeout_atomic(readb, addr, val, cond, delay_us, timeout_us)
include/linux/iopoll.h
221
#define readw_poll_timeout(addr, val, cond, delay_us, timeout_us) \
include/linux/iopoll.h
222
readx_poll_timeout(readw, addr, val, cond, delay_us, timeout_us)
include/linux/iopoll.h
224
#define readw_poll_timeout_atomic(addr, val, cond, delay_us, timeout_us) \
include/linux/iopoll.h
225
readx_poll_timeout_atomic(readw, addr, val, cond, delay_us, timeout_us)
include/linux/iopoll.h
227
#define readl_poll_timeout(addr, val, cond, delay_us, timeout_us) \
include/linux/iopoll.h
228
readx_poll_timeout(readl, addr, val, cond, delay_us, timeout_us)
include/linux/iopoll.h
230
#define readl_poll_timeout_atomic(addr, val, cond, delay_us, timeout_us) \
include/linux/iopoll.h
231
readx_poll_timeout_atomic(readl, addr, val, cond, delay_us, timeout_us)
include/linux/iopoll.h
233
#define readq_poll_timeout(addr, val, cond, delay_us, timeout_us) \
include/linux/iopoll.h
234
readx_poll_timeout(readq, addr, val, cond, delay_us, timeout_us)
include/linux/iopoll.h
236
#define readq_poll_timeout_atomic(addr, val, cond, delay_us, timeout_us) \
include/linux/iopoll.h
237
readx_poll_timeout_atomic(readq, addr, val, cond, delay_us, timeout_us)
include/linux/iopoll.h
239
#define readb_relaxed_poll_timeout(addr, val, cond, delay_us, timeout_us) \
include/linux/iopoll.h
240
readx_poll_timeout(readb_relaxed, addr, val, cond, delay_us, timeout_us)
include/linux/iopoll.h
242
#define readb_relaxed_poll_timeout_atomic(addr, val, cond, delay_us, timeout_us) \
include/linux/iopoll.h
243
readx_poll_timeout_atomic(readb_relaxed, addr, val, cond, delay_us, timeout_us)
include/linux/iopoll.h
245
#define readw_relaxed_poll_timeout(addr, val, cond, delay_us, timeout_us) \
include/linux/iopoll.h
246
readx_poll_timeout(readw_relaxed, addr, val, cond, delay_us, timeout_us)
include/linux/iopoll.h
248
#define readw_relaxed_poll_timeout_atomic(addr, val, cond, delay_us, timeout_us) \
include/linux/iopoll.h
249
readx_poll_timeout_atomic(readw_relaxed, addr, val, cond, delay_us, timeout_us)
include/linux/iopoll.h
251
#define readl_relaxed_poll_timeout(addr, val, cond, delay_us, timeout_us) \
include/linux/iopoll.h
252
readx_poll_timeout(readl_relaxed, addr, val, cond, delay_us, timeout_us)
include/linux/iopoll.h
254
#define readl_relaxed_poll_timeout_atomic(addr, val, cond, delay_us, timeout_us) \
include/linux/iopoll.h
255
readx_poll_timeout_atomic(readl_relaxed, addr, val, cond, delay_us, timeout_us)
include/linux/iopoll.h
257
#define readq_relaxed_poll_timeout(addr, val, cond, delay_us, timeout_us) \
include/linux/iopoll.h
258
readx_poll_timeout(readq_relaxed, addr, val, cond, delay_us, timeout_us)
include/linux/iopoll.h
260
#define readq_relaxed_poll_timeout_atomic(addr, val, cond, delay_us, timeout_us) \
include/linux/iopoll.h
261
readx_poll_timeout_atomic(readq_relaxed, addr, val, cond, delay_us, timeout_us)
include/linux/iopoll.h
34
#define poll_timeout_us(op, cond, sleep_us, timeout_us, sleep_before_op) \
include/linux/iopoll.h
49
if (cond) { \
include/linux/iopoll.h
85
#define poll_timeout_us_atomic(op, cond, delay_us, timeout_us, \
include/linux/kernel.h
141
#define might_sleep_if(cond) do { if (cond) might_sleep(); } while (0)
include/linux/kmsan.h
281
#define KMSAN_WARN_ON(cond) \
include/linux/kmsan.h
283
const bool __cond = WARN_ON(cond); \
include/linux/kvm_host.h
919
#define KVM_BUG(cond, kvm, fmt...) \
include/linux/kvm_host.h
921
bool __ret = !!(cond); \
include/linux/kvm_host.h
928
#define KVM_BUG_ON(cond, kvm) \
include/linux/kvm_host.h
930
bool __ret = !!(cond); \
include/linux/kvm_host.h
945
#define KVM_BUG_ON_DATA_CORRUPTION(cond, kvm) \
include/linux/kvm_host.h
947
bool __ret = !!(cond); \
include/linux/lockdep.h
278
#define lockdep_assert(cond) \
include/linux/lockdep.h
279
do { WARN_ON(debug_locks && !(cond)); } while (0)
include/linux/lockdep.h
281
#define lockdep_assert_once(cond) \
include/linux/lockdep.h
282
do { WARN_ON_ONCE(debug_locks && !(cond)); } while (0)
include/linux/mmdebug.h
101
#define VM_WARN_ON_ONCE_VMA(cond, vma) ({ \
include/linux/mmdebug.h
103
int __ret_warn_once = !!(cond); \
include/linux/mmdebug.h
112
#define VM_WARN_ON_VMG(cond, vmg) ({ \
include/linux/mmdebug.h
113
int __ret_warn = !!(cond); \
include/linux/mmdebug.h
116
dump_vmg(vmg, "VM_WARN_ON_VMG(" __stringify(cond)")"); \
include/linux/mmdebug.h
122
#define VM_WARN_ON(cond) (void)WARN_ON(cond)
include/linux/mmdebug.h
123
#define VM_WARN_ON_ONCE(cond) (void)WARN_ON_ONCE(cond)
include/linux/mmdebug.h
124
#define VM_WARN_ONCE(cond, format...) (void)WARN_ONCE(cond, format)
include/linux/mmdebug.h
125
#define VM_WARN(cond, format...) (void)WARN(cond, format)
include/linux/mmdebug.h
127
#define VM_BUG_ON(cond) BUILD_BUG_ON_INVALID(cond)
include/linux/mmdebug.h
128
#define VM_BUG_ON_PAGE(cond, page) VM_BUG_ON(cond)
include/linux/mmdebug.h
129
#define VM_BUG_ON_FOLIO(cond, folio) VM_BUG_ON(cond)
include/linux/mmdebug.h
130
#define VM_BUG_ON_VMA(cond, vma) VM_BUG_ON(cond)
include/linux/mmdebug.h
131
#define VM_BUG_ON_MM(cond, mm) VM_BUG_ON(cond)
include/linux/mmdebug.h
132
#define VM_WARN_ON(cond) BUILD_BUG_ON_INVALID(cond)
include/linux/mmdebug.h
133
#define VM_WARN_ON_ONCE(cond) BUILD_BUG_ON_INVALID(cond)
include/linux/mmdebug.h
134
#define VM_WARN_ON_PAGE(cond, page) BUILD_BUG_ON_INVALID(cond)
include/linux/mmdebug.h
135
#define VM_WARN_ON_ONCE_PAGE(cond, page) BUILD_BUG_ON_INVALID(cond)
include/linux/mmdebug.h
136
#define VM_WARN_ON_FOLIO(cond, folio) BUILD_BUG_ON_INVALID(cond)
include/linux/mmdebug.h
137
#define VM_WARN_ON_ONCE_FOLIO(cond, folio) BUILD_BUG_ON_INVALID(cond)
include/linux/mmdebug.h
138
#define VM_WARN_ON_ONCE_MM(cond, mm) BUILD_BUG_ON_INVALID(cond)
include/linux/mmdebug.h
139
#define VM_WARN_ON_ONCE_VMA(cond, vma) BUILD_BUG_ON_INVALID(cond)
include/linux/mmdebug.h
140
#define VM_WARN_ON_VMG(cond, vmg) BUILD_BUG_ON_INVALID(cond)
include/linux/mmdebug.h
141
#define VM_WARN_ONCE(cond, format...) BUILD_BUG_ON_INVALID(cond)
include/linux/mmdebug.h
142
#define VM_WARN(cond, format...) BUILD_BUG_ON_INVALID(cond)
include/linux/mmdebug.h
152
#define VIRTUAL_BUG_ON(cond) BUG_ON(cond)
include/linux/mmdebug.h
154
#define VIRTUAL_BUG_ON(cond) do { } while (0)
include/linux/mmdebug.h
158
#define VM_BUG_ON_PGFLAGS(cond, page) VM_BUG_ON_PAGE(cond, page)
include/linux/mmdebug.h
160
#define VM_BUG_ON_PGFLAGS(cond, page) BUILD_BUG_ON_INVALID(cond)
include/linux/mmdebug.h
21
#define VM_BUG_ON(cond) BUG_ON(cond)
include/linux/mmdebug.h
22
#define VM_BUG_ON_PAGE(cond, page) \
include/linux/mmdebug.h
24
if (unlikely(cond)) { \
include/linux/mmdebug.h
25
dump_page(page, "VM_BUG_ON_PAGE(" __stringify(cond)")");\
include/linux/mmdebug.h
29
#define VM_BUG_ON_FOLIO(cond, folio) \
include/linux/mmdebug.h
31
if (unlikely(cond)) { \
include/linux/mmdebug.h
32
dump_page(&folio->page, "VM_BUG_ON_FOLIO(" __stringify(cond)")");\
include/linux/mmdebug.h
36
#define VM_BUG_ON_VMA(cond, vma) \
include/linux/mmdebug.h
38
if (unlikely(cond)) { \
include/linux/mmdebug.h
43
#define VM_BUG_ON_MM(cond, mm) \
include/linux/mmdebug.h
45
if (unlikely(cond)) { \
include/linux/mmdebug.h
50
#define VM_WARN_ON_PAGE(cond, page) ({ \
include/linux/mmdebug.h
51
int __ret_warn = !!(cond); \
include/linux/mmdebug.h
54
dump_page(page, "VM_WARN_ON_PAGE(" __stringify(cond)")");\
include/linux/mmdebug.h
59
#define VM_WARN_ON_ONCE_PAGE(cond, page) ({ \
include/linux/mmdebug.h
61
int __ret_warn_once = !!(cond); \
include/linux/mmdebug.h
64
dump_page(page, "VM_WARN_ON_ONCE_PAGE(" __stringify(cond)")");\
include/linux/mmdebug.h
70
#define VM_WARN_ON_FOLIO(cond, folio) ({ \
include/linux/mmdebug.h
71
int __ret_warn = !!(cond); \
include/linux/mmdebug.h
74
dump_page(&folio->page, "VM_WARN_ON_FOLIO(" __stringify(cond)")");\
include/linux/mmdebug.h
79
#define VM_WARN_ON_ONCE_FOLIO(cond, folio) ({ \
include/linux/mmdebug.h
81
int __ret_warn_once = !!(cond); \
include/linux/mmdebug.h
84
dump_page(&folio->page, "VM_WARN_ON_ONCE_FOLIO(" __stringify(cond)")");\
include/linux/mmdebug.h
90
#define VM_WARN_ON_ONCE_MM(cond, mm) ({ \
include/linux/mmdebug.h
92
int __ret_warn_once = !!(cond); \
include/linux/netfilter.h
301
bool cond)
include/linux/netfilter.h
305
if (!cond ||
include/linux/netfilter.h
412
bool cond)
include/linux/phy.h
1708
#define phy_read_poll_timeout(phydev, regnum, val, cond, sleep_us, \
include/linux/phy.h
1713
__val < 0 || (cond), \
include/linux/phy.h
1807
#define phy_read_mmd_poll_timeout(phydev, devaddr, regnum, val, cond, \
include/linux/phy.h
1812
__val < 0 || (cond), \
include/linux/power/smartreflex.h
188
#define sr_test_cond_timeout(cond, timeout, index) \
include/linux/power/smartreflex.h
191
if (cond) \
include/linux/processor.h
49
#define spin_until_cond(cond) \
include/linux/processor.h
51
if (unlikely(!(cond))) { \
include/linux/processor.h
55
} while (!(cond)); \
include/linux/rculist.h
446
#define list_for_each_entry_rcu(pos, head, member, cond...) \
include/linux/rculist.h
447
for (__list_check_rcu(dummy, ## cond, 0), \
include/linux/rculist.h
465
#define list_for_each_entry_srcu(pos, head, member, cond) \
include/linux/rculist.h
466
for (__list_check_srcu(cond), \
include/linux/rculist.h
72
#define __list_check_rcu(dummy, cond, extra...) \
include/linux/rculist.h
75
RCU_LOCKDEP_WARN(!(cond) && !rcu_read_lock_any_held(), \
include/linux/rculist.h
763
#define hlist_for_each_entry_rcu(pos, head, member, cond...) \
include/linux/rculist.h
764
for (__list_check_rcu(dummy, ## cond, 0), \
include/linux/rculist.h
784
#define hlist_for_each_entry_srcu(pos, head, member, cond) \
include/linux/rculist.h
785
for (__list_check_srcu(cond), \
include/linux/rculist.h
79
#define __list_check_srcu(cond) \
include/linux/rculist.h
81
RCU_LOCKDEP_WARN(!(cond), \
include/linux/rculist.h
85
#define __list_check_rcu(dummy, cond, extra...) \
include/linux/rculist.h
88
#define __list_check_srcu(cond) ({ })
include/linux/regmap.h
133
#define regmap_read_poll_timeout(map, addr, val, cond, sleep_us, timeout_us) \
include/linux/regmap.h
136
__tmp = read_poll_timeout(regmap_read, __ret, __ret || (cond), \
include/linux/regmap.h
163
#define regmap_read_poll_timeout_atomic(map, addr, val, cond, delay_us, timeout_us) \
include/linux/regmap.h
173
if (cond) \
include/linux/regmap.h
183
__ret ?: ((cond) ? 0 : -ETIMEDOUT); \
include/linux/regmap.h
204
#define regmap_field_read_poll_timeout(field, val, cond, sleep_us, timeout_us) \
include/linux/regmap.h
207
__tmp = read_poll_timeout(regmap_field_read, __ret, __ret || (cond), \
include/linux/ring_buffer.h
125
ring_buffer_cond_fn cond, void *data);
include/linux/sched.h
191
# define debug_normal_state_change(cond) do { } while (0)
include/linux/sched.h
192
# define debug_special_state_change(cond) do { } while (0)
include/linux/skbuff.h
4497
static inline ktime_t skb_tstamp_cond(const struct sk_buff *skb, bool cond)
include/linux/skbuff.h
4502
if (static_branch_unlikely(&netstamp_needed_key) || cond)
include/linux/tracepoint.h
299
#define __DECLARE_TRACE(name, proto, args, cond, data_proto) \
include/linux/tracepoint.h
304
if (cond) { \
include/linux/tracepoint.h
313
if (IS_ENABLED(CONFIG_LOCKDEP) && (cond)) { \
include/linux/tracepoint.h
442
#define __DECLARE_TRACE(name, proto, args, cond, data_proto) \
include/linux/tracepoint.h
505
#define DECLARE_TRACE_CONDITION(name, proto, args, cond) \
include/linux/tracepoint.h
507
cpu_online(raw_smp_processor_id()) && (PARAMS(cond)), \
include/linux/tracepoint.h
519
#define DECLARE_TRACE_EVENT_CONDITION(name, proto, args, cond) \
include/linux/tracepoint.h
521
cpu_online(raw_smp_processor_id()) && (PARAMS(cond)), \
include/linux/tracepoint.h
648
args, cond) \
include/linux/tracepoint.h
650
PARAMS(args), PARAMS(cond))
include/linux/tracepoint.h
657
#define TRACE_EVENT_FN_COND(name, proto, args, cond, struct, \
include/linux/tracepoint.h
660
PARAMS(args), PARAMS(cond))
include/linux/tracepoint.h
661
#define TRACE_EVENT_CONDITION(name, proto, args, cond, \
include/linux/tracepoint.h
664
PARAMS(args), PARAMS(cond))
include/linux/util_macros.h
136
#define PTR_IF(cond, ptr) ((cond) ? (ptr) : NULL)
include/linux/vfsdebug.h
12
#define VFS_BUG_ON(cond) BUG_ON(cond)
include/linux/vfsdebug.h
13
#define VFS_WARN_ON(cond) (void)WARN_ON(cond)
include/linux/vfsdebug.h
14
#define VFS_WARN_ON_ONCE(cond) (void)WARN_ON_ONCE(cond)
include/linux/vfsdebug.h
15
#define VFS_WARN_ONCE(cond, format...) (void)WARN_ONCE(cond, format)
include/linux/vfsdebug.h
16
#define VFS_WARN(cond, format...) (void)WARN(cond, format)
include/linux/vfsdebug.h
18
#define VFS_BUG_ON_INODE(cond, inode) ({ \
include/linux/vfsdebug.h
19
if (unlikely(!!(cond))) { \
include/linux/vfsdebug.h
20
dump_inode(inode, "VFS_BUG_ON_INODE(" #cond")");\
include/linux/vfsdebug.h
25
#define VFS_WARN_ON_INODE(cond, inode) ({ \
include/linux/vfsdebug.h
26
int __ret_warn = !!(cond); \
include/linux/vfsdebug.h
29
dump_inode(inode, "VFS_WARN_ON_INODE(" #cond")");\
include/linux/vfsdebug.h
35
#define VFS_BUG_ON(cond) BUILD_BUG_ON_INVALID(cond)
include/linux/vfsdebug.h
36
#define VFS_WARN_ON(cond) BUILD_BUG_ON_INVALID(cond)
include/linux/vfsdebug.h
37
#define VFS_WARN_ON_ONCE(cond) BUILD_BUG_ON_INVALID(cond)
include/linux/vfsdebug.h
38
#define VFS_WARN_ONCE(cond, format...) BUILD_BUG_ON_INVALID(cond)
include/linux/vfsdebug.h
39
#define VFS_WARN(cond, format...) BUILD_BUG_ON_INVALID(cond)
include/linux/vfsdebug.h
41
#define VFS_BUG_ON_INODE(cond, inode) VFS_BUG_ON(cond)
include/linux/vfsdebug.h
42
#define VFS_WARN_ON_INODE(cond, inode) BUILD_BUG_ON_INVALID(cond)
include/linux/wait_bit.h
522
#define wake_up_var_protected(var, cond) \
include/linux/wait_bit.h
524
lockdep_assert(cond); \
include/media/v4l2-device.h
293
#define __v4l2_device_call_subdevs_p(v4l2_dev, sd, cond, o, f, args...) \
include/media/v4l2-device.h
296
if ((cond) && (sd)->ops->o && (sd)->ops->o->f) \
include/media/v4l2-device.h
318
#define __v4l2_device_call_subdevs(v4l2_dev, cond, o, f, args...) \
include/media/v4l2-device.h
322
__v4l2_device_call_subdevs_p(v4l2_dev, __sd, cond, o, \
include/media/v4l2-device.h
350
#define __v4l2_device_call_subdevs_until_err_p(v4l2_dev, sd, cond, o, f, args...) \
include/media/v4l2-device.h
355
if ((cond) && (sd)->ops->o && (sd)->ops->o->f) \
include/media/v4l2-device.h
385
#define __v4l2_device_call_subdevs_until_err(v4l2_dev, cond, o, f, args...) \
include/media/v4l2-device.h
388
__v4l2_device_call_subdevs_until_err_p(v4l2_dev, __sd, cond, o, \
include/net/gre.h
106
IP_TUNNEL_DECLARE_FLAGS(cond) = { };
include/net/gre.h
117
__set_bit(IP_TUNNEL_KEY_BIT, cond);
include/net/gre.h
118
__set_bit(IP_TUNNEL_CSUM_BIT, cond);
include/net/gre.h
119
__set_bit(IP_TUNNEL_SEQ_BIT, cond);
include/net/gre.h
121
if (ip_tunnel_flags_intersect(flags, cond)) {
include/net/net_debug.h
131
#define netif_cond_dbg(priv, type, netdev, cond, level, fmt, args...) \
include/net/net_debug.h
133
if (cond) \
include/net/net_debug.h
152
#define DEBUG_NET_WARN_ON_ONCE(cond) ((void)WARN_ON_ONCE(cond))
include/net/net_debug.h
153
#define DEBUG_NET_WARN_ONCE(cond, format...) ((void)WARN_ONCE(cond, format))
include/net/net_debug.h
155
#define DEBUG_NET_WARN_ON_ONCE(cond) BUILD_BUG_ON_INVALID(cond)
include/net/net_debug.h
156
#define DEBUG_NET_WARN_ONCE(cond, format...) BUILD_BUG_ON_INVALID(cond)
include/net/tcp.h
2606
static inline void tcp_warn_once(const struct sock *sk, bool cond, const char *str)
include/net/tcp.h
2608
WARN_ONCE(cond,
include/rdma/uverbs_types.h
191
#define UVERBS_BUILD_BUG_ON(cond) (sizeof(char[1 - 2 * !!(cond)]) - \
include/sound/core.h
363
#define snd_BUG_ON(cond) WARN_ON((cond))
include/sound/hdaudio.h
627
#define snd_hdac_stream_readb_poll(dev, reg, val, cond, delay_us, timeout_us) \
include/sound/hdaudio.h
628
read_poll_timeout_atomic(snd_hdac_reg_readb, val, cond, delay_us, timeout_us, \
include/sound/hdaudio.h
630
#define snd_hdac_stream_readw_poll(dev, reg, val, cond, delay_us, timeout_us) \
include/sound/hdaudio.h
631
read_poll_timeout_atomic(snd_hdac_reg_readw, val, cond, delay_us, timeout_us, \
include/sound/hdaudio.h
633
#define snd_hdac_stream_readl_poll(dev, reg, val, cond, delay_us, timeout_us) \
include/sound/hdaudio.h
634
read_poll_timeout_atomic(snd_hdac_reg_readl, val, cond, delay_us, timeout_us, \
include/sound/pcm.h
1088
unsigned int cond,
include/sound/pcm.h
1092
unsigned int cond,
include/sound/pcm.h
1096
unsigned int cond,
include/sound/pcm.h
1100
unsigned int cond,
include/sound/pcm.h
1104
unsigned int cond,
include/sound/pcm.h
1108
unsigned int cond,
include/sound/pcm.h
1112
unsigned int cond,
include/sound/pcm.h
1117
unsigned int cond,
include/sound/pcm.h
248
unsigned int cond;
include/trace/define_trace.h
124
#define DECLARE_TRACE_CONDITION(name, proto, args, cond)
include/trace/define_trace.h
129
#define DECLARE_TRACE_EVENT_CONDITION(name, proto, args, cond)
include/trace/define_trace.h
31
#define TRACE_EVENT_CONDITION(name, proto, args, cond, tstruct, assign, print) \
include/trace/define_trace.h
45
#define TRACE_EVENT_FN_COND(name, proto, args, cond, tstruct, \
include/trace/define_trace.h
72
#define DEFINE_EVENT_CONDITION(template, name, proto, args, cond) \
include/trace/define_trace.h
80
#define DECLARE_TRACE_CONDITION(name, proto, args, cond) \
include/trace/define_trace.h
88
#define DECLARE_TRACE_EVENT_CONDITION(name, proto, args, cond) \
include/trace/trace_events.h
94
#define TRACE_EVENT_FN_COND(name, proto, args, cond, tstruct, \
include/trace/trace_events.h
96
TRACE_EVENT_CONDITION(name, PARAMS(proto), PARAMS(args), PARAMS(cond), \
include/uapi/linux/blkzoned.h
134
__u8 cond; /* Zone condition */
kernel/kcsan/kcsan_test.c
35
#define KCSAN_TEST_REQUIRES(test, cond) do { \
kernel/kcsan/kcsan_test.c
36
if (!(cond)) \
kernel/kcsan/kcsan_test.c
37
kunit_skip((test), "Test requires: " #cond); \
kernel/locking/lock_events.h
37
static inline void __lockevent_inc(enum lock_events event, bool cond)
kernel/locking/lock_events.h
39
if (cond)
kernel/locking/mutex.c
41
# define MUTEX_WARN_ON(cond) DEBUG_LOCKS_WARN_ON(cond)
kernel/locking/mutex.c
43
# define MUTEX_WARN_ON(cond)
kernel/locking/spinlock_debug.c
157
#define RWLOCK_BUG_ON(cond, lock, msg) if (unlikely(cond)) rwlock_bug(lock, msg)
kernel/locking/spinlock_debug.c
81
#define SPIN_BUG_ON(cond, lock, msg) if (unlikely(cond)) spin_bug(lock, msg)
kernel/rcu/tree.h
317
#define rcu_wait(cond) \
kernel/rcu/tree.h
321
if (cond) \
kernel/trace/ftrace.c
54
#define FTRACE_WARN_ON(cond) \
kernel/trace/ftrace.c
56
int ___r = cond; \
kernel/trace/ftrace.c
62
#define FTRACE_WARN_ON_ONCE(cond) \
kernel/trace/ftrace.c
64
int ___r = cond; \
kernel/trace/ring_buffer.c
1016
if (!cond) {
kernel/trace/ring_buffer.c
1017
cond = rb_wait_once;
kernel/trace/ring_buffer.c
1024
rb_wait_cond(rbwork, buffer, cpu, full, cond, data));
kernel/trace/ring_buffer.c
1108
#define RB_WARN_ON(b, cond) \
kernel/trace/ring_buffer.c
1110
int _____ret = unlikely(cond); \
kernel/trace/ring_buffer.c
920
int cpu, int full, ring_buffer_cond_fn cond, void *data)
kernel/trace/ring_buffer.c
925
if (cond(data))
kernel/trace/ring_buffer.c
986
ring_buffer_cond_fn cond, void *data)
lib/tests/overflow_kunit.c
20
#define SKIP(cond, reason) do { \
lib/tests/overflow_kunit.c
21
if (cond) { \
lib/zstd/common/error_private.h
106
#define RETURN_ERROR_IF(cond, err, ...) \
lib/zstd/common/error_private.h
108
if (cond) { \
lib/zstd/common/error_private.h
110
__FILE__, __LINE__, ERR_QUOTE(cond), ERR_QUOTE(ERROR(err))); \
mm/internal.h
92
#define WARN_ON_ONCE_GFP(cond, gfp) ({ \
mm/internal.h
94
int __ret_warn_once = !!(cond); \
mm/kfence/core.c
42
#define KFENCE_WARN_ON(cond) \
mm/kfence/core.c
44
const bool __cond = WARN_ON(cond); \
mm/kfence/kfence_test.c
36
#define KFENCE_TEST_REQUIRES(test, cond) do { \
mm/kfence/kfence_test.c
37
if (!(cond)) \
mm/kfence/kfence_test.c
38
kunit_skip((test), "Test requires: " #cond); \
mm/kmsan/kmsan_test.c
207
volatile int cond;
mm/kmsan/kmsan_test.c
210
USE(cond);
mm/kmsan/kmsan_test.c
218
volatile int cond = 1;
mm/kmsan/kmsan_test.c
221
USE(cond);
mm/percpu.c
2578
#define PCPU_SETUP_BUG_ON(cond) do { \
mm/percpu.c
2579
if (unlikely(cond)) { \
mm/percpu.c
2580
pr_emerg("failed to initialize, %s\n", #cond); \
net/ipv4/inet_diag.c
499
const struct inet_diag_hostcond *cond;
net/ipv4/inet_diag.c
502
cond = (const struct inet_diag_hostcond *)(op + 1);
net/ipv4/inet_diag.c
503
if (cond->port != -1 &&
net/ipv4/inet_diag.c
504
cond->port != (op->code == INET_DIAG_BC_S_COND ?
net/ipv4/inet_diag.c
515
if (cond->family != AF_UNSPEC &&
net/ipv4/inet_diag.c
516
cond->family != entry->family) {
net/ipv4/inet_diag.c
518
cond->family == AF_INET) {
net/ipv4/inet_diag.c
522
cond->addr,
net/ipv4/inet_diag.c
523
cond->prefix_len))
net/ipv4/inet_diag.c
530
if (cond->prefix_len == 0)
net/ipv4/inet_diag.c
532
if (bitstring_match(addr, cond->addr,
net/ipv4/inet_diag.c
533
cond->prefix_len))
net/ipv4/inet_diag.c
547
struct inet_diag_markcond *cond;
net/ipv4/inet_diag.c
549
cond = (struct inet_diag_markcond *)(op + 1);
net/ipv4/inet_diag.c
550
if ((entry->mark & cond->mask) != cond->mark)
net/ipv4/inet_diag.c
662
struct inet_diag_hostcond *cond;
net/ipv4/inet_diag.c
669
cond = (struct inet_diag_hostcond *)(op + 1);
net/ipv4/inet_diag.c
672
switch (cond->family) {
net/ipv4/inet_diag.c
690
if (cond->prefix_len > 8 * addr_len)
net/netfilter/nf_conntrack_h323_asn1.c
24
#define IFTHEN(cond, act) if(cond){act;}
net/netfilter/nf_conntrack_h323_asn1.c
32
#define IFTHEN(cond, act)
net/netfilter/xt_dccp.c
27
#define DCCHECK(cond, option, flag, invflag) (!((flag) & (option)) \
net/netfilter/xt_dccp.c
28
|| (!!((invflag) & (option)) ^ (cond)))
net/netfilter/xt_sctp.c
20
#define SCCHECK(cond, option, flag, invflag) (!((flag) & (option)) \
net/netfilter/xt_sctp.c
21
|| (!!((invflag) & (option)) ^ (cond)))
net/tipc/trace.h
235
#define DEFINE_SK_EVENT_FILTER_COND(name, cond) \
net/tipc/trace.h
240
TP_CONDITION(tipc_sk_filtering(sk) && (cond)))
net/tipc/trace.h
275
#define DEFINE_LINK_EVENT_COND(name, cond) \
net/tipc/trace.h
279
TP_CONDITION(cond))
net/wireless/core.h
560
#define CFG80211_DEV_WARN_ON(cond) WARN_ON(cond)
net/wireless/core.h
567
#define CFG80211_DEV_WARN_ON(cond) ({bool __r = (cond); __r; })
rust/helpers/bug.c
10
__rust_helper bool rust_helper_WARN_ON(bool cond)
rust/helpers/bug.c
12
return WARN_ON(cond);
samples/bpf/xdp_sample_user.c
38
#define __sample_print(fmt, cond, ...) \
samples/bpf/xdp_sample_user.c
40
if (cond) \
scripts/asn1_compiler.c
1442
const char *cond, *act;
scripts/asn1_compiler.c
1458
cond = (e->flags & ELEMENT_CONDITIONAL ||
scripts/asn1_compiler.c
1464
cond, act, skippable ? "_OR_SKIP" : "");
scripts/asn1_compiler.c
1479
cond,
scripts/asn1_compiler.c
1492
cond, act,
scripts/kconfig/lkc.h
85
void menu_add_dep(struct expr *dep, struct expr *cond);
scripts/kconfig/menu.c
130
void menu_add_dep(struct expr *dep, struct expr *cond)
scripts/kconfig/menu.c
132
if (cond) {
scripts/kconfig/menu.c
140
expr_trans_compare(cond, E_EQUAL, &symbol_no));
scripts/mod/file2alias.c
146
#define ADD(str, sep, cond, field) \
scripts/mod/file2alias.c
149
if (cond) \
scripts/ssl-common.h
25
#define ERR(cond, fmt, ...) \
scripts/ssl-common.h
27
bool __cond = (cond); \
security/apparmor/af_unix.c
50
struct path_cond cond = {
security/apparmor/af_unix.c
56
PATH_SOCK_COND, mask, &cond);
security/apparmor/apparmorfs.c
710
struct path_cond cond = { };
security/apparmor/apparmorfs.c
713
rules->file, state, &cond));
security/apparmor/domain.c
136
struct path_cond cond = { };
security/apparmor/domain.c
162
&cond));
security/apparmor/domain.c
199
struct path_cond cond = { };
security/apparmor/domain.c
217
&cond));
security/apparmor/domain.c
227
&cond));
security/apparmor/domain.c
662
char *buffer, struct path_cond *cond,
security/apparmor/domain.c
707
OP_EXEC, MAY_EXEC, name, target, new, cond->uid,
security/apparmor/domain.c
719
state = aa_str_perms(rules->file, state, name, cond, &perms);
security/apparmor/domain.c
783
cond->uid, info, error);
security/apparmor/domain.c
795
char *buffer, struct path_cond *cond,
security/apparmor/domain.c
832
state = aa_str_perms(rules->file, state, xname, cond, &perms);
security/apparmor/domain.c
862
NULL, onexec, cond->uid, info, error);
security/apparmor/domain.c
871
char *buffer, struct path_cond *cond,
security/apparmor/domain.c
888
bprm, buffer, cond, unsafe));
security/apparmor/domain.c
897
buffer, cond, unsafe));
security/apparmor/domain.c
931
struct path_cond cond = {
security/apparmor/domain.c
964
bprm, buffer, &cond, &unsafe);
security/apparmor/domain.c
969
&cond, &unsafe));
security/apparmor/file.c
152
const char **name, struct path_cond *cond, u32 request)
security/apparmor/file.c
168
NULL, NULL, cond->uid, info, error));
security/apparmor/file.c
188
aa_state_t state, struct path_cond *cond)
security/apparmor/file.c
196
if (uid_eq(subj_uid, cond->uid))
security/apparmor/file.c
215
const char *name, struct path_cond *cond,
security/apparmor/file.c
221
cond));
security/apparmor/file.c
228
u32 request, struct path_cond *cond, int flags,
security/apparmor/file.c
238
name, cond, perms);
security/apparmor/file.c
243
cond->uid, NULL, e);
security/apparmor/file.c
250
struct path_cond *cond, int flags,
security/apparmor/file.c
260
flags | profile->path_flags, buffer, &name, cond,
security/apparmor/file.c
264
return __aa_path_perm(op, subj_cred, profile, name, request, cond,
security/apparmor/file.c
283
struct path_cond *cond)
security/apparmor/file.c
290
flags |= PATH_DELEGATE_DELETED | (S_ISDIR(cond->mode) ? PATH_IS_DIR :
security/apparmor/file.c
297
request, cond, flags, &perms));
security/apparmor/file.c
328
struct path_cond *cond)
security/apparmor/file.c
340
buffer, &lname, cond, AA_MAY_LINK);
security/apparmor/file.c
347
buffer2, &tname, cond, AA_MAY_LINK);
security/apparmor/file.c
355
cond, &lperms);
security/apparmor/file.c
362
aa_str_perms(rules->file, state, tname, cond, &perms);
security/apparmor/file.c
385
tname, cond, &perms);
security/apparmor/file.c
408
NULL, cond->uid, info, error);
security/apparmor/file.c
438
struct path_cond cond = {
security/apparmor/file.c
455
&target, buffer2, &cond));
security/apparmor/file.c
492
struct path_cond cond = {
security/apparmor/file.c
504
flags = PATH_DELEGATE_DELETED | (S_ISDIR(cond.mode) ? PATH_IS_DIR : 0);
security/apparmor/file.c
513
request, &cond, flags, &perms));
security/apparmor/file.c
527
buffer, request, &cond, flags,
security/apparmor/file.c
533
buffer, request, &cond, flags,
security/apparmor/include/file.h
82
aa_state_t state, struct path_cond *cond);
security/apparmor/include/file.h
84
const char *name, struct path_cond *cond,
security/apparmor/include/file.h
89
u32 request, struct path_cond *cond, int flags,
security/apparmor/include/file.h
93
int flags, u32 request, struct path_cond *cond);
security/apparmor/include/perms.h
116
accum->cond |= addend->cond & ~addend->allow & ~addend->deny;
security/apparmor/include/perms.h
143
accum->cond |= addend->cond & ~accum->allow & ~accum->deny;
security/apparmor/include/perms.h
74
u32 cond; /* set only when ~allow and ~deny */
security/apparmor/lsm.c
220
struct path_cond *cond)
security/apparmor/lsm.c
229
cond);
security/apparmor/lsm.c
247
struct path_cond cond = {
security/apparmor/lsm.c
255
return common_perm(op, path, mask, &cond);
security/apparmor/lsm.c
270
struct path_cond *cond)
security/apparmor/lsm.c
274
return common_perm(op, &path, mask, cond);
security/apparmor/lsm.c
290
struct path_cond cond = { };
security/apparmor/lsm.c
297
cond.uid = vfsuid_into_kuid(vfsuid);
security/apparmor/lsm.c
298
cond.mode = inode->i_mode;
security/apparmor/lsm.c
300
return common_perm_dir_dentry(op, dir, dentry, mask, &cond);
security/apparmor/lsm.c
316
struct path_cond cond = { current_fsuid(), mode };
security/apparmor/lsm.c
321
return common_perm_dir_dentry(op, dir, dentry, mask, &cond);
security/apparmor/lsm.c
402
struct path_cond cond = {
security/apparmor/lsm.c
406
cond.uid = vfsuid_into_kuid(vfsuid);
security/apparmor/lsm.c
432
&cond);
security/apparmor/lsm.c
437
AA_MAY_CREATE, &cond);
security/apparmor/lsm.c
487
struct path_cond cond = {
security/apparmor/lsm.c
491
cond.uid = vfsuid_into_kuid(vfsuid);
security/apparmor/lsm.c
495
aa_map_file_to_perms(file), &cond);
security/apparmor/policy_unpack.c
1500
if (perm->cond & (perm->allow | perm->deny))
security/apparmor/policy_unpack.c
910
aa_unpack_u32(e, &perm->cond, NULL) &&
security/tomoyo/audit.c
343
if (is_granted && matched_acl && matched_acl->cond &&
security/tomoyo/audit.c
344
matched_acl->cond->grant_log != TOMOYO_GRANTLOG_AUTO)
security/tomoyo/audit.c
345
return matched_acl->cond->grant_log == TOMOYO_GRANTLOG_YES;
security/tomoyo/common.c
1243
const struct tomoyo_condition *cond)
security/tomoyo/common.c
1250
if (cond->transit) {
security/tomoyo/common.c
1252
tomoyo_set_string(head, cond->transit->name);
security/tomoyo/common.c
1257
const u16 condc = cond->condc;
security/tomoyo/common.c
1259
(typeof(condp)) (cond + 1);
security/tomoyo/common.c
1264
(numbers_p + cond->numbers_count);
security/tomoyo/common.c
1266
(typeof(argv)) (names_p + cond->names_count);
security/tomoyo/common.c
1268
(typeof(envp)) (argv + cond->argc);
security/tomoyo/common.c
1366
if (cond->grant_log != TOMOYO_GRANTLOG_AUTO)
security/tomoyo/common.c
1368
str_yes_no(cond->grant_log ==
security/tomoyo/common.c
1585
if (acl->cond) {
security/tomoyo/common.c
1591
if (!tomoyo_print_condition(head, acl->cond))
security/tomoyo/common.h
1196
static inline void tomoyo_put_condition(struct tomoyo_condition *cond)
security/tomoyo/common.h
1198
if (cond)
security/tomoyo/common.h
1199
atomic_dec(&cond->head.users);
security/tomoyo/common.h
674
struct tomoyo_condition *cond; /* Maybe NULL. */
security/tomoyo/common.h
963
const struct tomoyo_condition *cond);
security/tomoyo/condition.c
766
const struct tomoyo_condition *cond)
security/tomoyo/condition.c
782
if (!cond)
security/tomoyo/condition.c
784
condc = cond->condc;
security/tomoyo/condition.c
785
argc = cond->argc;
security/tomoyo/condition.c
786
envc = cond->envc;
security/tomoyo/condition.c
792
condp = (struct tomoyo_condition_element *) (cond + 1);
security/tomoyo/condition.c
795
(numbers_p + cond->numbers_count);
security/tomoyo/condition.c
796
argv = (const struct tomoyo_argv *) (names_p + cond->names_count);
security/tomoyo/domain.c
108
new_entry->cond = tomoyo_get_condition(param);
security/tomoyo/domain.c
109
if (!new_entry->cond)
security/tomoyo/domain.c
115
if (new_entry->cond->transit &&
security/tomoyo/domain.c
147
tomoyo_put_condition(new_entry->cond);
security/tomoyo/domain.c
177
if (!tomoyo_condition(r, ptr->cond))
security/tomoyo/domain.c
76
return a->type == b->type && a->cond == b->cond;
security/tomoyo/file.c
621
r->ee->transition = r->matched_acl && r->matched_acl->cond ?
security/tomoyo/file.c
622
r->matched_acl->cond->transit : NULL;
security/tomoyo/gc.c
160
tomoyo_put_condition(acl->cond);
security/tomoyo/gc.c
278
struct tomoyo_condition *cond = container_of(element, typeof(*cond),
security/tomoyo/gc.c
280
const u16 condc = cond->condc;
security/tomoyo/gc.c
281
const u16 numbers_count = cond->numbers_count;
security/tomoyo/gc.c
282
const u16 names_count = cond->names_count;
security/tomoyo/gc.c
283
const u16 argc = cond->argc;
security/tomoyo/gc.c
284
const u16 envc = cond->envc;
security/tomoyo/gc.c
287
= (const struct tomoyo_condition_element *) (cond + 1);
sound/core/pcm_lib.c
1165
int snd_pcm_hw_rule_add(struct snd_pcm_runtime *runtime, unsigned int cond,
sound/core/pcm_lib.c
1188
c->cond = cond;
sound/core/pcm_lib.c
1317
unsigned int cond,
sound/core/pcm_lib.c
1321
return snd_pcm_hw_rule_add(runtime, cond, var,
sound/core/pcm_lib.c
1348
unsigned int cond,
sound/core/pcm_lib.c
1352
return snd_pcm_hw_rule_add(runtime, cond, var,
sound/core/pcm_lib.c
1383
unsigned int cond,
sound/core/pcm_lib.c
1387
return snd_pcm_hw_rule_add(runtime, cond, var,
sound/core/pcm_lib.c
1417
unsigned int cond,
sound/core/pcm_lib.c
1421
return snd_pcm_hw_rule_add(runtime, cond, var,
sound/core/pcm_lib.c
1461
unsigned int cond,
sound/core/pcm_lib.c
1466
return snd_pcm_hw_rule_add(runtime, cond, -1,
sound/core/pcm_lib.c
1490
unsigned int cond,
sound/core/pcm_lib.c
1494
return snd_pcm_hw_rule_add(runtime, cond, var,
sound/core/pcm_lib.c
1521
unsigned int cond,
sound/core/pcm_lib.c
1524
return snd_pcm_hw_rule_add(runtime, cond, var,
sound/core/pcm_native.c
2523
unsigned int cond, u32 *subformats)
sound/core/pcm_native.c
2525
return snd_pcm_hw_rule_add(runtime, cond, -1,
sound/core/pcm_native.c
413
if (r->cond && !(r->cond & params->flags))
sound/isa/wavefront/wavefront_synth.c
117
#define DPRINT(cond, ...) \
sound/isa/wavefront/wavefront_synth.c
118
if ((dev->debug & (cond)) == (cond)) { \
sound/isa/wavefront/wavefront_synth.c
122
#define DPRINT(cond, args...)
sound/pci/asihpi/hpi_internal.h
80
#define compile_time_assert(cond, msg) \
sound/pci/asihpi/hpi_internal.h
81
typedef char ASSERT_##msg[(cond) ? 1 : -1]
sound/pci/asihpi/hpidebug.h
86
#define compile_time_assert(cond, msg) \
sound/pci/asihpi/hpidebug.h
87
typedef char msg[(cond) ? 1 : -1]
sound/soc/intel/avs/registers.h
171
#define snd_hdac_adsp_readb_poll(adev, reg, val, cond, delay_us, timeout_us) \
sound/soc/intel/avs/registers.h
172
readb_poll_timeout((adev)->dsp_ba + (reg), val, cond, \
sound/soc/intel/avs/registers.h
174
#define snd_hdac_adsp_readw_poll(adev, reg, val, cond, delay_us, timeout_us) \
sound/soc/intel/avs/registers.h
175
readw_poll_timeout((adev)->dsp_ba + (reg), val, cond, \
sound/soc/intel/avs/registers.h
177
#define snd_hdac_adsp_readl_poll(adev, reg, val, cond, delay_us, timeout_us) \
sound/soc/intel/avs/registers.h
178
readl_poll_timeout((adev)->dsp_ba + (reg), val, cond, \
sound/soc/intel/avs/registers.h
180
#define snd_hdac_adsp_readq_poll(adev, reg, val, cond, delay_us, timeout_us) \
sound/soc/intel/avs/registers.h
181
readq_poll_timeout((adev)->dsp_ba + (reg), val, cond, \
sound/soc/intel/catpt/registers.h
162
#define catpt_readl_poll_shim(cdev, reg, val, cond, delay_us, timeout_us) \
sound/soc/intel/catpt/registers.h
164
val, cond, delay_us, timeout_us)
sound/soc/intel/catpt/registers.h
174
#define catpt_readl_poll_pci(cdev, reg, val, cond, delay_us, timeout_us) \
sound/soc/intel/catpt/registers.h
176
val, cond, delay_us, timeout_us)
sound/soc/sof/ops.h
607
#define snd_sof_dsp_read_poll_timeout(sdev, bar, offset, val, cond, sleep_us, timeout_us) \
sound/soc/sof/ops.h
615
if (cond) { \
sound/soc/sof/ops.h
632
(cond) ? 0 : -ETIMEDOUT; \
tools/bootconfig/include/linux/bootconfig.h
18
#define WARN_ON(cond) \
tools/bootconfig/include/linux/bootconfig.h
19
((cond) ? printf("Internal warning(%s:%d, %s): %s\n", \
tools/bootconfig/include/linux/bootconfig.h
20
__FILE__, __LINE__, __func__, #cond) : 0)
tools/bootconfig/include/linux/bootconfig.h
22
#define unlikely(cond) (cond)
tools/bpf/bpftool/sign.c
56
#define DISPLAY_OSSL_ERR(cond) \
tools/bpf/bpftool/sign.c
58
bool __cond = (cond); \
tools/include/linux/build_bug.h
40
#define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
tools/include/linux/kernel.h
51
#define BUG_ON(cond) do { if (cond) {} } while (0)
tools/include/linux/kernel.h
53
#define BUG_ON(cond) assert(!(cond))
tools/include/linux/refcount.h
45
#define REFCOUNT_WARN(cond, str) (void)(cond)
tools/include/linux/refcount.h
48
#define REFCOUNT_WARN(cond, str) BUG_ON(cond)
tools/lib/perf/include/internal/tests.h
47
#define __T(text, cond) \
tools/lib/perf/include/internal/tests.h
49
if (!(cond)) { \
tools/objtool/arch/x86/decode.c
9
#define unlikely(cond) (cond)
tools/perf/bench/epoll-ctl.c
65
static struct cond thread_parent, thread_worker;
tools/perf/bench/epoll-wait.c
116
static struct cond thread_parent, thread_worker;
tools/perf/bench/futex-hash.c
42
static struct cond thread_parent, thread_worker;
tools/perf/bench/futex-lock-pi.c
41
static struct cond thread_parent, thread_worker;
tools/perf/bench/futex-requeue.c
39
static struct cond thread_parent, thread_worker;
tools/perf/bench/futex-wake-parallel.c
54
static struct cond thread_parent, thread_worker;
tools/perf/bench/futex-wake.c
39
static struct cond thread_parent, thread_worker;
tools/perf/bench/numa.c
142
struct cond startup_cond;
tools/perf/bench/numa.c
146
struct cond start_work_cond;
tools/perf/builtin-top.c
1119
cond_wait(&top->qe.cond, &top->qe.mutex);
tools/perf/builtin-top.c
1239
cond_init(&top->qe.cond);
tools/perf/builtin-top.c
1247
cond_destroy(&top->qe.cond);
tools/perf/builtin-top.c
1382
cond_signal(&top->qe.cond);
tools/perf/builtin-top.c
905
cond_signal(&top->qe.cond);
tools/perf/tests/parse-events.c
25
static bool check_evlist(const char *test, int line, bool cond, struct evlist *evlist)
tools/perf/tests/parse-events.c
29
if (cond)
tools/perf/tests/parse-events.c
37
#define TEST_ASSERT_EVLIST(test, cond, evlist) \
tools/perf/tests/parse-events.c
38
if (!check_evlist(test, __LINE__, cond, evlist)) \
tools/perf/tests/parse-events.c
41
static bool check_evsel(const char *test, int line, bool cond, struct evsel *evsel)
tools/perf/tests/parse-events.c
45
if (cond)
tools/perf/tests/parse-events.c
52
#define TEST_ASSERT_EVSEL(test, cond, evsel) \
tools/perf/tests/parse-events.c
53
if (!check_evsel(test, __LINE__, cond, evsel)) \
tools/perf/tests/tests.h
14
#define TEST_ASSERT_VAL(text, cond) \
tools/perf/tests/tests.h
16
if (!(cond)) { \
tools/perf/util/annotate-arch/annotate-sparc.c
100
cond[0] == 'o' || cond[0] == 'u') &&
tools/perf/util/annotate-arch/annotate-sparc.c
101
cond[1] == '\0')
tools/perf/util/annotate-arch/annotate-sparc.c
104
if (((cond[0] == 'g' && cond[1] == 'e') ||
tools/perf/util/annotate-arch/annotate-sparc.c
105
(cond[0] == 'l' && (cond[1] == 'e' ||
tools/perf/util/annotate-arch/annotate-sparc.c
106
cond[1] == 'g')) ||
tools/perf/util/annotate-arch/annotate-sparc.c
107
(cond[0] == 'n' && (cond[1] == 'e' ||
tools/perf/util/annotate-arch/annotate-sparc.c
108
cond[1] == 'z')) ||
tools/perf/util/annotate-arch/annotate-sparc.c
109
(cond[0] == 'u' && (cond[1] == 'e' ||
tools/perf/util/annotate-arch/annotate-sparc.c
110
cond[1] == 'g' ||
tools/perf/util/annotate-arch/annotate-sparc.c
111
cond[1] == 'l'))) &&
tools/perf/util/annotate-arch/annotate-sparc.c
112
cond[2] == '\0')
tools/perf/util/annotate-arch/annotate-sparc.c
115
if (cond[0] == 'u' &&
tools/perf/util/annotate-arch/annotate-sparc.c
116
(cond[1] == 'g' || cond[1] == 'l') &&
tools/perf/util/annotate-arch/annotate-sparc.c
117
cond[2] == 'e' &&
tools/perf/util/annotate-arch/annotate-sparc.c
118
cond[3] == '\0')
tools/perf/util/annotate-arch/annotate-sparc.c
12
if (cond[0] == 'a' && cond[1] == '\0')
tools/perf/util/annotate-arch/annotate-sparc.c
144
const char *cond = name + 1;
tools/perf/util/annotate-arch/annotate-sparc.c
146
if (cond[0] == 'r') {
tools/perf/util/annotate-arch/annotate-sparc.c
147
if (is_branch_reg_cond(cond + 1))
tools/perf/util/annotate-arch/annotate-sparc.c
149
} else if (is_branch_cond(cond)) {
tools/perf/util/annotate-arch/annotate-sparc.c
15
if (cond[0] == 'c' &&
tools/perf/util/annotate-arch/annotate-sparc.c
16
(cond[1] == 'c' || cond[1] == 's') &&
tools/perf/util/annotate-arch/annotate-sparc.c
17
cond[2] == '\0')
tools/perf/util/annotate-arch/annotate-sparc.c
20
if (cond[0] == 'e' &&
tools/perf/util/annotate-arch/annotate-sparc.c
21
(cond[1] == '\0' ||
tools/perf/util/annotate-arch/annotate-sparc.c
22
(cond[1] == 'q' && cond[2] == '\0')))
tools/perf/util/annotate-arch/annotate-sparc.c
25
if (cond[0] == 'g' &&
tools/perf/util/annotate-arch/annotate-sparc.c
26
(cond[1] == '\0' ||
tools/perf/util/annotate-arch/annotate-sparc.c
27
(cond[1] == 't' && cond[2] == '\0') ||
tools/perf/util/annotate-arch/annotate-sparc.c
28
(cond[1] == 'e' && cond[2] == '\0') ||
tools/perf/util/annotate-arch/annotate-sparc.c
29
(cond[1] == 'e' && cond[2] == 'u' && cond[3] == '\0')))
tools/perf/util/annotate-arch/annotate-sparc.c
32
if (cond[0] == 'l' &&
tools/perf/util/annotate-arch/annotate-sparc.c
33
(cond[1] == '\0' ||
tools/perf/util/annotate-arch/annotate-sparc.c
34
(cond[1] == 't' && cond[2] == '\0') ||
tools/perf/util/annotate-arch/annotate-sparc.c
35
(cond[1] == 'u' && cond[2] == '\0') ||
tools/perf/util/annotate-arch/annotate-sparc.c
36
(cond[1] == 'e' && cond[2] == '\0') ||
tools/perf/util/annotate-arch/annotate-sparc.c
37
(cond[1] == 'e' && cond[2] == 'u' && cond[3] == '\0')))
tools/perf/util/annotate-arch/annotate-sparc.c
40
if (cond[0] == 'n' &&
tools/perf/util/annotate-arch/annotate-sparc.c
41
(cond[1] == '\0' ||
tools/perf/util/annotate-arch/annotate-sparc.c
42
(cond[1] == 'e' && cond[2] == '\0') ||
tools/perf/util/annotate-arch/annotate-sparc.c
43
(cond[1] == 'z' && cond[2] == '\0') ||
tools/perf/util/annotate-arch/annotate-sparc.c
44
(cond[1] == 'e' && cond[2] == 'g' && cond[3] == '\0')))
tools/perf/util/annotate-arch/annotate-sparc.c
47
if (cond[0] == 'b' &&
tools/perf/util/annotate-arch/annotate-sparc.c
48
cond[1] == 'p' &&
tools/perf/util/annotate-arch/annotate-sparc.c
49
cond[2] == 'o' &&
tools/perf/util/annotate-arch/annotate-sparc.c
50
cond[3] == 's' &&
tools/perf/util/annotate-arch/annotate-sparc.c
51
cond[4] == '\0')
tools/perf/util/annotate-arch/annotate-sparc.c
54
if (cond[0] == 'v' &&
tools/perf/util/annotate-arch/annotate-sparc.c
55
(cond[1] == 'c' || cond[1] == 's') &&
tools/perf/util/annotate-arch/annotate-sparc.c
56
cond[2] == '\0')
tools/perf/util/annotate-arch/annotate-sparc.c
59
if (cond[0] == 'b' &&
tools/perf/util/annotate-arch/annotate-sparc.c
60
cond[1] == 'z' &&
tools/perf/util/annotate-arch/annotate-sparc.c
61
cond[2] == '\0')
tools/perf/util/annotate-arch/annotate-sparc.c
67
static int is_branch_reg_cond(const char *cond)
tools/perf/util/annotate-arch/annotate-sparc.c
69
if ((cond[0] == 'n' || cond[0] == 'l') &&
tools/perf/util/annotate-arch/annotate-sparc.c
7
static int is_branch_cond(const char *cond)
tools/perf/util/annotate-arch/annotate-sparc.c
70
cond[1] == 'z' &&
tools/perf/util/annotate-arch/annotate-sparc.c
71
cond[2] == '\0')
tools/perf/util/annotate-arch/annotate-sparc.c
74
if (cond[0] == 'z' &&
tools/perf/util/annotate-arch/annotate-sparc.c
75
cond[1] == '\0')
tools/perf/util/annotate-arch/annotate-sparc.c
78
if ((cond[0] == 'g' || cond[0] == 'l') &&
tools/perf/util/annotate-arch/annotate-sparc.c
79
cond[1] == 'e' &&
tools/perf/util/annotate-arch/annotate-sparc.c
80
cond[2] == 'z' &&
tools/perf/util/annotate-arch/annotate-sparc.c
81
cond[3] == '\0')
tools/perf/util/annotate-arch/annotate-sparc.c
84
if (cond[0] == 'g' &&
tools/perf/util/annotate-arch/annotate-sparc.c
85
cond[1] == 'z' &&
tools/perf/util/annotate-arch/annotate-sparc.c
86
cond[2] == '\0')
tools/perf/util/annotate-arch/annotate-sparc.c
9
if (cond[0] == '\0')
tools/perf/util/annotate-arch/annotate-sparc.c
92
static int is_branch_float_cond(const char *cond)
tools/perf/util/annotate-arch/annotate-sparc.c
94
if (cond[0] == '\0')
tools/perf/util/annotate-arch/annotate-sparc.c
97
if ((cond[0] == 'a' || cond[0] == 'e' ||
tools/perf/util/annotate-arch/annotate-sparc.c
98
cond[0] == 'z' || cond[0] == 'g' ||
tools/perf/util/annotate-arch/annotate-sparc.c
99
cond[0] == 'l' || cond[0] == 'n' ||
tools/perf/util/mutex.c
102
void cond_init_pshared(struct cond *cnd)
tools/perf/util/mutex.c
107
void cond_destroy(struct cond *cnd)
tools/perf/util/mutex.c
109
CHECK_ERR(pthread_cond_destroy(&cnd->cond));
tools/perf/util/mutex.c
112
void cond_wait(struct cond *cnd, struct mutex *mtx)
tools/perf/util/mutex.c
114
CHECK_ERR(pthread_cond_wait(&cnd->cond, &mtx->lock));
tools/perf/util/mutex.c
117
void cond_signal(struct cond *cnd)
tools/perf/util/mutex.c
119
CHECK_ERR(pthread_cond_signal(&cnd->cond));
tools/perf/util/mutex.c
122
void cond_broadcast(struct cond *cnd)
tools/perf/util/mutex.c
124
CHECK_ERR(pthread_cond_broadcast(&cnd->cond));
tools/perf/util/mutex.c
85
static void __cond_init(struct cond *cnd, bool pshared)
tools/perf/util/mutex.c
93
CHECK_ERR(pthread_cond_init(&cnd->cond, &attr));
tools/perf/util/mutex.c
97
void cond_init(struct cond *cnd)
tools/perf/util/mutex.h
117
void cond_init(struct cond *cnd);
tools/perf/util/mutex.h
122
void cond_init_pshared(struct cond *cnd);
tools/perf/util/mutex.h
123
void cond_destroy(struct cond *cnd);
tools/perf/util/mutex.h
125
void cond_wait(struct cond *cnd, struct mutex *mtx) EXCLUSIVE_LOCKS_REQUIRED(mtx);
tools/perf/util/mutex.h
126
void cond_signal(struct cond *cnd);
tools/perf/util/mutex.h
127
void cond_broadcast(struct cond *cnd);
tools/perf/util/mutex.h
97
pthread_cond_t cond;
tools/perf/util/top.h
58
struct cond cond;
tools/testing/scatterlist/main.c
30
static void fail(struct test *test, struct sg_table *st, const char *cond)
tools/testing/scatterlist/main.c
34
fprintf(stderr, "Failed on '%s'!\n\n", cond);
tools/testing/scatterlist/main.c
48
#define VALIDATE(cond, st, test) \
tools/testing/scatterlist/main.c
49
if (!(cond)) \
tools/testing/scatterlist/main.c
50
fail((test), (st), #cond);
tools/testing/selftests/bpf/bpf_experimental.h
515
#define bpf_assert(cond) if (!(cond)) bpf_throw(0);
tools/testing/selftests/bpf/bpf_experimental.h
524
#define bpf_assert_with(cond, value) if (!(cond)) bpf_throw(value);
tools/testing/selftests/kvm/include/kvm_util.h
352
#define __TEST_ASSERT_VM_VCPU_IOCTL(cond, name, ret, vm) \
tools/testing/selftests/kvm/include/kvm_util.h
358
if (cond) \
tools/testing/selftests/kvm/include/kvm_util.h
367
TEST_ASSERT(cond, __KVM_IOCTL_ERROR(name, ret)); \
tools/testing/selftests/kvm/include/kvm_util.h
370
#define TEST_ASSERT_VM_VCPU_IOCTL(cond, cmd, ret, vm) \
tools/testing/selftests/kvm/include/kvm_util.h
371
__TEST_ASSERT_VM_VCPU_IOCTL(cond, #cmd, ret, vm)
tools/testing/selftests/kvm/include/x86/processor.h
1139
#define TEST_ASSERT_MSR(cond, fmt, msr, str, args...) \
tools/testing/selftests/kvm/include/x86/processor.h
1142
TEST_ASSERT(cond, fmt, str, args); \
tools/testing/selftests/kvm/include/x86/processor.h
1143
} else if (!(cond)) { \
tools/testing/selftests/kvm/include/x86/processor.h
1147
TEST_ASSERT(cond, fmt, buf, args); \
tools/testing/selftests/mm/pkey_sighandler_tests.c
119
pthread_cond_signal(&cond);
tools/testing/selftests/mm/pkey_sighandler_tests.c
131
pthread_cond_signal(&cond);
tools/testing/selftests/mm/pkey_sighandler_tests.c
229
pthread_cond_wait(&cond, &mutex);
tools/testing/selftests/mm/pkey_sighandler_tests.c
269
pthread_cond_wait(&cond, &mutex);
tools/testing/selftests/mm/pkey_sighandler_tests.c
344
pthread_cond_wait(&cond, &mutex);
tools/testing/selftests/mm/pkey_sighandler_tests.c
36
static pthread_cond_t cond = PTHREAD_COND_INITIALIZER;
tools/testing/selftests/mm/pkey_sighandler_tests.c
385
pthread_cond_wait(&cond, &mutex);
tools/testing/selftests/net/psock_tpacket.c
52
# define bug_on(cond) assert(!(cond))
tools/testing/selftests/net/tcp_ao/lib/aolib.h
594
extern int test_skpair_wait_poll(int sk, bool write, test_cnt cond,
tools/testing/selftests/net/tcp_ao/lib/aolib.h
598
test_cnt cond, volatile int *err);
tools/testing/selftests/net/tcp_ao/lib/aolib.h
601
test_cnt cond, volatile int *err)
tools/testing/selftests/net/tcp_ao/lib/aolib.h
607
(void *)&addr, sizeof(addr), cond, err);
tools/testing/selftests/net/tcp_ao/lib/aolib.h
611
test_cnt cond, volatile int *err);
tools/testing/selftests/net/tcp_ao/lib/aolib.h
613
test_cnt cond, volatile int *err);
tools/testing/selftests/net/tcp_ao/lib/sock.c
103
if (c && cond && __skpair_poll_should_stop(sk, c, cond))
tools/testing/selftests/net/tcp_ao/lib/sock.c
149
test_cnt cond, volatile int *err)
tools/testing/selftests/net/tcp_ao/lib/sock.c
159
ret = __test_skpair_poll(sk, write, TEST_TIMEOUT_SEC, &c, cond, err);
tools/testing/selftests/net/tcp_ao/lib/sock.c
590
test_cnt cond, volatile int *err,
tools/testing/selftests/net/tcp_ao/lib/sock.c
600
ret = __test_skpair_poll(sk, 0, timeout_sec, c, cond, err);
tools/testing/selftests/net/tcp_ao/lib/sock.c
611
ret = __test_skpair_poll(sk, 1, timeout_sec, c, cond, err);
tools/testing/selftests/net/tcp_ao/lib/sock.c
632
int test_skpair_server(int sk, ssize_t quota, test_cnt cond, volatile int *err)
tools/testing/selftests/net/tcp_ao/lib/sock.c
642
ret = _test_server_run(sk, quota, &c, cond, err, TEST_TIMEOUT_SEC);
tools/testing/selftests/net/tcp_ao/lib/sock.c
648
struct tcp_counters *c, test_cnt cond,
tools/testing/selftests/net/tcp_ao/lib/sock.c
668
ret = __test_skpair_poll(sk, 1, TEST_TIMEOUT_SEC, c, cond, err);
tools/testing/selftests/net/tcp_ao/lib/sock.c
683
c, cond, err);
tools/testing/selftests/net/tcp_ao/lib/sock.c
714
test_cnt cond, volatile int *err)
tools/testing/selftests/net/tcp_ao/lib/sock.c
725
ret = test_client_loop(sk, buf_sz, msg_len, &c, cond, err);
tools/testing/selftests/net/tcp_ao/lib/sock.c
91
struct tcp_counters *c, test_cnt cond,
tools/testing/selftests/nolibc/nolibc-test.c
187
#define EXPECT_ZR(cond, expr) \
tools/testing/selftests/nolibc/nolibc-test.c
188
do { if (!(cond)) result(llen, SKIPPED); else ret += expect_zr(expr, llen); } while (0)
tools/testing/selftests/nolibc/nolibc-test.c
201
#define EXPECT_NZ(cond, expr) \
tools/testing/selftests/nolibc/nolibc-test.c
202
do { if (!(cond)) result(llen, SKIPPED); else ret += expect_nz(expr, llen); } while (0)
tools/testing/selftests/nolibc/nolibc-test.c
215
#define EXPECT_EQ(cond, expr, val) \
tools/testing/selftests/nolibc/nolibc-test.c
216
do { if (!(cond)) result(llen, SKIPPED); else ret += expect_eq(expr, llen, val); } while (0)
tools/testing/selftests/nolibc/nolibc-test.c
229
#define EXPECT_NE(cond, expr, val) \
tools/testing/selftests/nolibc/nolibc-test.c
230
do { if (!(cond)) result(llen, SKIPPED); else ret += expect_ne(expr, llen, val); } while (0)
tools/testing/selftests/nolibc/nolibc-test.c
243
#define EXPECT_GE(cond, expr, val) \
tools/testing/selftests/nolibc/nolibc-test.c
244
do { if (!(cond)) result(llen, SKIPPED); else ret += expect_ge(expr, llen, val); } while (0)
tools/testing/selftests/nolibc/nolibc-test.c
257
#define EXPECT_GT(cond, expr, val) \
tools/testing/selftests/nolibc/nolibc-test.c
258
do { if (!(cond)) result(llen, SKIPPED); else ret += expect_gt(expr, llen, val); } while (0)
tools/testing/selftests/nolibc/nolibc-test.c
271
#define EXPECT_LE(cond, expr, val) \
tools/testing/selftests/nolibc/nolibc-test.c
272
do { if (!(cond)) result(llen, SKIPPED); else ret += expect_le(expr, llen, val); } while (0)
tools/testing/selftests/nolibc/nolibc-test.c
285
#define EXPECT_LT(cond, expr, val) \
tools/testing/selftests/nolibc/nolibc-test.c
286
do { if (!(cond)) result(llen, SKIPPED); else ret += expect_lt(expr, llen, val); } while (0)
tools/testing/selftests/nolibc/nolibc-test.c
299
#define EXPECT_SYSZR(cond, expr) \
tools/testing/selftests/nolibc/nolibc-test.c
300
do { if (!(cond)) result(llen, SKIPPED); else ret += expect_syszr(expr, llen); } while (0)
tools/testing/selftests/nolibc/nolibc-test.c
322
#define EXPECT_SYSEQ(cond, expr, val) \
tools/testing/selftests/nolibc/nolibc-test.c
323
do { if (!(cond)) result(llen, SKIPPED); else ret += expect_syseq(expr, llen, val); } while (0)
tools/testing/selftests/nolibc/nolibc-test.c
342
#define EXPECT_SYSNE(cond, expr, val) \
tools/testing/selftests/nolibc/nolibc-test.c
343
do { if (!(cond)) result(llen, SKIPPED); else ret += expect_sysne(expr, llen, val); } while (0)
tools/testing/selftests/nolibc/nolibc-test.c
365
#define EXPECT_SYSER2(cond, expr, expret, experr1, experr2) \
tools/testing/selftests/nolibc/nolibc-test.c
366
do { if (!(cond)) result(llen, SKIPPED); else ret += expect_syserr2(expr, expret, experr1, experr2, llen); } while (0)
tools/testing/selftests/nolibc/nolibc-test.c
368
#define EXPECT_SYSER(cond, expr, expret, experr) \
tools/testing/selftests/nolibc/nolibc-test.c
369
EXPECT_SYSER2(cond, expr, expret, experr, 0)
tools/testing/selftests/nolibc/nolibc-test.c
394
#define EXPECT_PTRZR(cond, expr) \
tools/testing/selftests/nolibc/nolibc-test.c
395
do { if (!(cond)) result(llen, SKIPPED); else ret += expect_ptrzr(expr, llen); } while (0)
tools/testing/selftests/nolibc/nolibc-test.c
413
#define EXPECT_PTRNZ(cond, expr) \
tools/testing/selftests/nolibc/nolibc-test.c
414
do { if (!(cond)) result(llen, SKIPPED); else ret += expect_ptrnz(expr, llen); } while (0)
tools/testing/selftests/nolibc/nolibc-test.c
431
#define EXPECT_PTREQ(cond, expr, cmp) \
tools/testing/selftests/nolibc/nolibc-test.c
432
do { if (!(cond)) result(llen, SKIPPED); else ret += expect_ptreq(expr, llen, cmp); } while (0)
tools/testing/selftests/nolibc/nolibc-test.c
449
#define EXPECT_PTRNE(cond, expr, cmp) \
tools/testing/selftests/nolibc/nolibc-test.c
450
do { if (!(cond)) result(llen, SKIPPED); else ret += expect_ptrne(expr, llen, cmp); } while (0)
tools/testing/selftests/nolibc/nolibc-test.c
467
#define EXPECT_PTRGE(cond, expr, cmp) \
tools/testing/selftests/nolibc/nolibc-test.c
468
do { if (!(cond)) result(llen, SKIPPED); else ret += expect_ptrge(expr, llen, cmp); } while (0)
tools/testing/selftests/nolibc/nolibc-test.c
480
#define EXPECT_PTRGT(cond, expr, cmp) \
tools/testing/selftests/nolibc/nolibc-test.c
481
do { if (!(cond)) result(llen, SKIPPED); else ret += expect_ptrgt(expr, llen, cmp); } while (0)
tools/testing/selftests/nolibc/nolibc-test.c
494
#define EXPECT_PTRLE(cond, expr, cmp) \
tools/testing/selftests/nolibc/nolibc-test.c
495
do { if (!(cond)) result(llen, SKIPPED); else ret += expect_ptrle(expr, llen, cmp); } while (0)
tools/testing/selftests/nolibc/nolibc-test.c
508
#define EXPECT_PTRLT(cond, expr, cmp) \
tools/testing/selftests/nolibc/nolibc-test.c
509
do { if (!(cond)) result(llen, SKIPPED); else ret += expect_ptrlt(expr, llen, cmp); } while (0)
tools/testing/selftests/nolibc/nolibc-test.c
521
#define EXPECT_PTRER2(cond, expr, expret, experr1, experr2) \
tools/testing/selftests/nolibc/nolibc-test.c
522
do { if (!(cond)) result(llen, SKIPPED); else ret += expect_ptrerr2(expr, expret, experr1, experr2, llen); } while (0)
tools/testing/selftests/nolibc/nolibc-test.c
524
#define EXPECT_PTRER(cond, expr, expret, experr) \
tools/testing/selftests/nolibc/nolibc-test.c
525
EXPECT_PTRER2(cond, expr, expret, experr, 0)
tools/testing/selftests/nolibc/nolibc-test.c
547
#define EXPECT_STRZR(cond, expr) \
tools/testing/selftests/nolibc/nolibc-test.c
548
do { if (!(cond)) result(llen, SKIPPED); else ret += expect_strzr(expr, llen); } while (0)
tools/testing/selftests/nolibc/nolibc-test.c
566
#define EXPECT_STRNZ(cond, expr) \
tools/testing/selftests/nolibc/nolibc-test.c
567
do { if (!(cond)) result(llen, SKIPPED); else ret += expect_strnz(expr, llen); } while (0)
tools/testing/selftests/nolibc/nolibc-test.c
585
#define EXPECT_STREQ(cond, expr, cmp) \
tools/testing/selftests/nolibc/nolibc-test.c
586
do { if (!(cond)) result(llen, SKIPPED); else ret += expect_streq(expr, llen, cmp); } while (0)
tools/testing/selftests/nolibc/nolibc-test.c
604
#define EXPECT_STRNE(cond, expr, cmp) \
tools/testing/selftests/nolibc/nolibc-test.c
605
do { if (!(cond)) result(llen, SKIPPED); else ret += expect_strne(expr, llen, cmp); } while (0)
tools/testing/selftests/nolibc/nolibc-test.c
622
#define EXPECT_STRBUFEQ(cond, expr, buf, val, cmp) \
tools/testing/selftests/nolibc/nolibc-test.c
623
do { if (!(cond)) result(llen, SKIPPED); else ret += expect_str_buf_eq(expr, buf, val, llen, cmp); } while (0)
tools/testing/selftests/nolibc/nolibc-test.c
642
#define EXPECT_STRTOX(cond, func, input, base, expected, chars, expected_errno) \
tools/testing/selftests/nolibc/nolibc-test.c
643
do { if (!(cond)) result(llen, SKIPPED); else ret += expect_strtox(llen, func, input, base, expected, chars, expected_errno); } while (0)
tools/testing/selftests/seccomp/seccomp_bpf.c
2531
pthread_cond_t *cond;
tools/testing/selftests/seccomp/seccomp_bpf.c
2560
pthread_cond_t cond;
tools/testing/selftests/seccomp/seccomp_bpf.c
2593
pthread_cond_init(&self->cond, NULL);
tools/testing/selftests/seccomp/seccomp_bpf.c
2596
self->sibling[0].cond = &self->cond;
tools/testing/selftests/seccomp/seccomp_bpf.c
2604
self->sibling[1].cond = &self->cond;
tools/testing/selftests/seccomp/seccomp_bpf.c
2634
pthread_cond_destroy(&self->cond);
tools/testing/selftests/seccomp/seccomp_bpf.c
2658
pthread_cond_wait(me->cond, me->mutex);
tools/testing/selftests/seccomp/seccomp_bpf.c
2715
ASSERT_EQ(0, pthread_cond_broadcast(&self->cond)) {
tools/testing/selftests/seccomp/seccomp_bpf.c
2758
ASSERT_EQ(0, pthread_cond_broadcast(&self->cond)) {
tools/testing/selftests/seccomp/seccomp_bpf.c
2783
ASSERT_EQ(0, pthread_cond_broadcast(&self->cond)) {
tools/testing/selftests/seccomp/seccomp_bpf.c
2823
ASSERT_EQ(0, pthread_cond_broadcast(&self->cond)) {
tools/testing/selftests/seccomp/seccomp_bpf.c
2868
ASSERT_EQ(0, pthread_cond_broadcast(&self->cond)) {
tools/testing/selftests/seccomp/seccomp_bpf.c
2917
ASSERT_EQ(0, pthread_cond_broadcast(&self->cond)) {
tools/testing/selftests/seccomp/seccomp_bpf.c
2979
ASSERT_EQ(0, pthread_cond_broadcast(&self->cond)) {
tools/testing/selftests/seccomp/seccomp_bpf.c
3004
ASSERT_EQ(0, pthread_cond_broadcast(&self->cond)) {
tools/testing/selftests/sync/synctest.h
34
#define ASSERT(cond, msg) do { \
tools/testing/selftests/sync/synctest.h
35
if (!(cond)) { \
tools/testing/shared/linux/rcupdate.h
8
#define rcu_dereference_protected(p, cond) rcu_dereference(p)
tools/testing/shared/linux/rcupdate.h
9
#define rcu_dereference_check(p, cond) rcu_dereference(p)
tools/tracing/latency/latency-collector.c
1018
cond_timedwait(&printstate.cond, &printstate.mutex, &future);
tools/tracing/latency/latency-collector.c
193
pthread_cond_t cond;
tools/tracing/latency/latency-collector.c
226
pthread_cond_t cond;
tools/tracing/latency/latency-collector.c
339
static __always_inline void cond_signal(pthread_cond_t *cond)
tools/tracing/latency/latency-collector.c
341
errno = pthread_cond_signal(cond);
tools/tracing/latency/latency-collector.c
346
static __always_inline void cond_wait(pthread_cond_t *restrict cond,
tools/tracing/latency/latency-collector.c
349
errno = pthread_cond_wait(cond, mutex);
tools/tracing/latency/latency-collector.c
354
static __always_inline void cond_broadcast(pthread_cond_t *cond)
tools/tracing/latency/latency-collector.c
356
errno = pthread_cond_broadcast(cond);
tools/tracing/latency/latency-collector.c
414
static __always_inline void cond_init(pthread_cond_t *cond,
tools/tracing/latency/latency-collector.c
417
errno = pthread_cond_init(cond, attr);
tools/tracing/latency/latency-collector.c
423
cond_timedwait(pthread_cond_t *restrict cond,
tools/tracing/latency/latency-collector.c
427
errno = pthread_cond_timedwait(cond, mutex, abstime);
tools/tracing/latency/latency-collector.c
445
cond_init(&printstate.cond, &cattr);
tools/tracing/latency/latency-collector.c
668
cond_broadcast(&printstate.cond);
tools/tracing/latency/latency-collector.c
792
errno = pthread_cond_init(&q->cond, NULL);
tools/tracing/latency/latency-collector.c
840
cond_signal(&q->cond);
tools/tracing/latency/latency-collector.c
845
cond_wait(&q->cond, &q->mutex);
tools/tracing/latency/latency-collector.c
856
cond_signal(&q->cond);
tools/usb/ffs-test.c
101
#define die_on(cond, ...) do { \
tools/usb/ffs-test.c
102
if (cond) \