Home
last modified time | relevance | path

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

12345678910

/linux/tools/perf/util/annotate-arch/
H A Dannotate-sparc.c7 static int is_branch_cond(const char *cond) in is_branch_cond() argument
9 if (cond[0] == '\0') in is_branch_cond()
12 if (cond[0] == 'a' && cond[1] == '\0') in is_branch_cond()
15 if (cond[0] == 'c' && in is_branch_cond()
16 (cond[1] == 'c' || cond[1] == 's') && in is_branch_cond()
17 cond[2] == '\0') in is_branch_cond()
20 if (cond[0] == 'e' && in is_branch_cond()
21 (cond[1] == '\0' || in is_branch_cond()
22 (cond[1] == 'q' && cond[2] == '\0'))) in is_branch_cond()
25 if (cond[0] == 'g' && in is_branch_cond()
[all …]
/linux/arch/parisc/math-emu/
H A Ddfcmp.c38 unsigned int cond, unsigned int *status) in dbl_fcmp() argument
60 && (Exception(cond) || Dbl_isone_signaling(leftp1))) in dbl_fcmp()
64 && (Exception(cond) || Dbl_isone_signaling(rightp1))) ) in dbl_fcmp()
67 Set_status_cbit(Unordered(cond)); in dbl_fcmp()
71 Set_status_cbit(Unordered(cond)); in dbl_fcmp()
83 Set_status_cbit(Unordered(cond)); in dbl_fcmp()
98 Set_status_cbit(Equal(cond)); in dbl_fcmp()
102 Set_status_cbit(Lessthan(cond)); in dbl_fcmp()
106 Set_status_cbit(Greaterthan(cond)); in dbl_fcmp()
113 Set_status_cbit(Equal(cond)); in dbl_fcmp()
[all …]
H A Dsfcmp.c37 unsigned int cond, unsigned int *status) in sgl_fcmp() argument
60 && (Exception(cond) || Sgl_isone_signaling(left))) in sgl_fcmp()
64 && (Exception(cond) || Sgl_isone_signaling(right)) ) ) in sgl_fcmp()
67 Set_status_cbit(Unordered(cond)); in sgl_fcmp()
71 Set_status_cbit(Unordered(cond)); in sgl_fcmp()
83 Set_status_cbit(Unordered(cond)); in sgl_fcmp()
98 Set_status_cbit(Equal(cond)); in sgl_fcmp()
102 Set_status_cbit(Lessthan(cond)); in sgl_fcmp()
106 Set_status_cbit(Greaterthan(cond)); in sgl_fcmp()
113 Set_status_cbit(Equal(cond)); in sgl_fcmp()
[all …]
/linux/Documentation/arch/arm/nwfpe/
H A Dnetwinder-fpe.rst24 <LDF|STF>{cond}<S|D|E> Fd, Rn
25 <LDF|STF>{cond}<S|D|E> Fd, [Rn, #<expression>]{!}
26 <LDF|STF>{cond}<S|D|E> Fd, [Rn], #<expression>
33 <LFM|SFM>{cond}<S|D|E> Fd, <count>, [Rn]
34 <LFM|SFM>{cond}<S|D|E> Fd, <count>, [Rn, #<expression>]{!}
35 <LFM|SFM>{cond}<S|D|E> Fd, <count>, [Rn], #<expression>
38 <LFM|SFM>{cond}<FD,EA> Fd, <count>, [Rn]{!}
51 FLT{cond}<S,D,E>{P,M,Z} Fn, Rd Convert integer to floating point
52 FIX{cond}{P,M,Z} Rd, Fn Convert floating point to integer
53 WFS{cond} Rd Write floating point status register
[all …]
H A Dtodo.rst6 POW{cond}<S|D|E>{P,M,Z} Fd, Fn, <Fm,#value> - power
7 RPW{cond}<S|D|E>{P,M,Z} Fd, Fn, <Fm,#value> - reverse power
8 POL{cond}<S|D|E>{P,M,Z} Fd, Fn, <Fm,#value> - polar angle (arctan2)
10 LOG{cond}<S|D|E>{P,M,Z} Fd, <Fm,#value> - logarithm to base 10
11 LGN{cond}<S|D|E>{P,M,Z} Fd, <Fm,#value> - logarithm to base e
12 EXP{cond}<S|D|E>{P,M,Z} Fd, <Fm,#value> - exponent
13 SIN{cond}<S|D|E>{P,M,Z} Fd, <Fm,#value> - sine
14 COS{cond}<S|D|E>{P,M,Z} Fd, <Fm,#value> - cosine
15 TAN{cond}<S|D|E>{P,M,Z} Fd, <Fm,#value> - tangent
16 ASN{cond}<S|D|E>{P,M,Z} Fd, <Fm,#value> - arcsine
[all …]
/linux/drivers/block/null_blk/
H A Dzoned.c145 zone->cond = BLK_ZONE_COND_NOT_WP; in null_init_zoned_dev()
163 zone->cond = BLK_ZONE_COND_FULL; in null_init_zoned_dev()
166 zone->cond = BLK_ZONE_COND_EMPTY; in null_init_zoned_dev()
230 blkz.cond = zone->cond; in null_report_zones()
279 if (zone->cond == BLK_ZONE_COND_IMP_OPEN) { in null_close_imp_open_zone()
282 zone->cond = BLK_ZONE_COND_EMPTY; in null_close_imp_open_zone()
284 zone->cond = BLK_ZONE_COND_CLOSED; in null_close_imp_open_zone()
342 switch (zone->cond) { in null_check_zone_resources()
366 trace_nullb_zone_op(cmd, zno, zone->cond); in null_zone_write()
749 null_set_zone_cond(struct nullb_device * dev,struct nullb_zone * zone,enum blk_zone_cond cond) null_set_zone_cond() argument
785 zone_cond_store(struct nullb_device * dev,const char * page,size_t count,enum blk_zone_cond cond) zone_cond_store() argument
[all...]
/linux/tools/perf/util/
H A Dmutex.c156 static void __cond_init(struct cond *cnd, bool pshared)
164 CHECK_ERR(pthread_cond_init(&cnd->cond, &attr));
168 void cond_init(struct cond *cnd)
173 void cond_init_pshared(struct cond *cnd)
178 void cond_destroy(struct cond *cnd)
180 CHECK_ERR(pthread_cond_destroy(&cnd->cond));
183 void cond_wait(struct cond *cnd, struct mutex *mtx)
186 pthread_cond_wait(&cnd->cond, &mtx->lock),
190 void cond_signal(struct cond *cnd)
192 CHECK_ERR(pthread_cond_signal(&cnd->cond));
[all...]
H A Dmutex.h132 struct cond {
133 pthread_cond_t cond;
158 /* Default initialize the cond struct. */
159 void cond_init(struct cond *cnd);
161 * Initialize the cond struct and specify the process-shared rather than default
164 void cond_init_pshared(struct cond *cnd);
165 void cond_destroy(struct cond *cnd);
167 void cond_wait(struct cond *cnd, struct mutex *mtx) EXCLUSIVE_LOCKS_REQUIRED(mtx);
168 void cond_signal(struct cond *cnd);
169 void cond_broadcast(struct cond *cn
96 struct cond { global() struct
97 condcond global() argument
[all...]
/linux/arch/arm/include/asm/
H A Dassembler.h137 .macro asm_trace_hardirqs_on, cond=al, save=1
146 bl\cond trace_hardirqs_on
198 asm_trace_hardirqs_on cond=eq
470 .macro usraccoff, instr, reg, ptr, inc, off, cond, abort, t=TUSER()
473 \instr\()b\t\cond\().w \reg, [\ptr, #\off]
475 \instr\t\cond\().w \reg, [\ptr, #\off]
486 .macro usracc, instr, reg, ptr, inc, cond, rept, abort
489 .ifnc \cond,al
491 itt \cond
493 ittt \cond
[all …]
/linux/Documentation/locking/
H A Dfutex-requeue-pi.rst27 pthread_cond_wait(cond, mutex)
29 lock(cond->__data.__lock);
32 unlock(cond->__data.__lock);
33 futex_wait(cond->__data.__futex);
34 lock(cond->__data.__lock);
36 unlock(cond->__data.__lock);
40 pthread_cond_broadcast(cond)
42 lock(cond->__data.__lock);
43 unlock(cond->__data.__lock);
44 futex_requeue(cond->data.__futex, cond->mutex);
[all …]
/linux/arch/parisc/include/asm/
H A Dalternative.h26 u16 cond; /* see ALT_COND_XXX */ member
36 #define ALTERNATIVE(cond, replacement) "!0:" \ argument
40 ".hword 1, " __stringify(cond) " !" \
47 #define ALTERNATIVE(from, to, cond, replacement)\ argument
51 .hword (to - from)/4, cond ! \
56 #define ALTERNATIVE_CODE(from, num_instructions, cond, new_instr_ptr)\ argument
60 .hword -num_instructions, cond ! \
/linux/security/apparmor/
H A Dfile.c159 const char **name, struct path_cond *cond, u32 request) in path_name() argument
175 NULL, NULL, cond->uid, info, error)); in path_name()
188 * @cond: conditions to consider (NOT NULL)
195 aa_state_t state, struct path_cond *cond) in aa_lookup_condperms() argument
203 if (uid_eq(subj_uid, cond->uid)) in aa_lookup_condperms()
216 * @cond: conditions to consider for permission set computation (NOT NULL)
222 const char *name, struct path_cond *cond, in aa_str_perms() argument
228 cond)); in aa_str_perms()
235 u32 request, struct path_cond *cond, int flags, in __aa_path_perm() argument
245 name, cond, perm in __aa_path_perm()
257 profile_path_perm(const char * op,const struct cred * subj_cred,struct aa_profile * profile,const struct path * path,char * buffer,u32 request,struct path_cond * cond,int flags,struct aa_perms * perms) profile_path_perm() argument
290 aa_path_perm(const char * op,const struct cred * subj_cred,struct aa_label * label,const struct path * path,int flags,u32 request,struct path_cond * cond) aa_path_perm() argument
335 profile_path_link(const struct cred * subj_cred,struct aa_profile * profile,const struct path * link,char * buffer,const struct path * target,char * buffer2,struct path_cond * cond) profile_path_link() argument
445 struct path_cond cond = { aa_path_link() local
499 struct path_cond cond = { __file_path_perm() local
[all...]
/linux/arch/parisc/kernel/
H A Dalternative.c49 u16 cond; in apply_alternatives() local
54 cond = entry->cond; in apply_alternatives()
57 WARN_ON(!cond); in apply_alternatives()
59 if ((cond & ALT_COND_ALWAYS) == 0 && no_alternatives) in apply_alternatives()
63 index, cond, len, from, replacement); in apply_alternatives()
66 if ((cond & cond_check) == 0) in apply_alternatives()
84 index, cond, len, replacement, from, from); in apply_alternatives()
/linux/drivers/gpu/drm/nouveau/include/nvif/
H A Dtimer.h22 #define nvif_nsec(d,n,cond...) ({ \ argument
28 cond \
33 #define nvif_usec(d,u,cond...) nvif_nsec((d), (u) * 1000, ##cond) argument
34 #define nvif_msec(d,m,cond...) nvif_usec((d), (m) * 1000, ##cond) argument
/linux/rust/kernel/
H A Dbuild_assert.rs209 ($cond:expr $(,)?) => {{
210 if !$cond {
211 $crate::build_assert::build_error_fn(concat!("assertion failed: ", stringify!($cond)));
214 ($cond:expr, $msg:expr) => {{
215 if !$cond {
/linux/tools/bootconfig/include/linux/
H A Dbootconfig.h18 #define WARN_ON(cond) \ argument
19 ((cond) ? printf("Internal warning(%s:%d, %s): %s\n", \
20 __FILE__, __LINE__, __func__, #cond) : 0)
22 #define unlikely(cond) (cond) argument
/linux/arch/loongarch/net/
H A Dbpf_jit.h188 static inline int invert_jmp_cond(u8 cond) in move_imm()
190 switch (cond) { in move_imm()
216 static inline void cond_jmp_offset(struct jit_ctx *ctx, u8 cond, enum loongarch_gpr rj, in invert_jmp_cond()
219 switch (cond) { in invert_jmp_cond()
264 static inline void cond_jmp_offs26(struct jit_ctx *ctx, u8 cond, enum loongarch_gpr rj, in cond_jmp_offset()
267 cond = invert_jmp_cond(cond); in cond_jmp_offset()
268 cond_jmp_offset(ctx, cond, rj, rd, 2); in cond_jmp_offset()
277 static inline int emit_cond_jmp(struct jit_ctx *ctx, u8 cond, enum loongarch_gpr rj, in cond_jmp_offset()
292 cond_jmp_offs26(ctx, cond, r in cond_jmp_offs26()
209 invert_jmp_cond(u8 cond) invert_jmp_cond() argument
237 cond_jmp_offset(struct jit_ctx * ctx,u8 cond,enum loongarch_gpr rj,enum loongarch_gpr rd,int jmp_offset) cond_jmp_offset() argument
285 cond_jmp_offs26(struct jit_ctx * ctx,u8 cond,enum loongarch_gpr rj,enum loongarch_gpr rd,int jmp_offset) cond_jmp_offs26() argument
298 emit_cond_jmp(struct jit_ctx * ctx,u8 cond,enum loongarch_gpr rj,enum loongarch_gpr rd,int jmp_offset) emit_cond_jmp() argument
330 emit_tailcall_jmp(struct jit_ctx * ctx,u8 cond,enum loongarch_gpr rj,enum loongarch_gpr rd,int jmp_offset) emit_tailcall_jmp() argument
[all...]
/linux/include/net/
H A Dnet_debug.h131 #define netif_cond_dbg(priv, type, netdev, cond, level, fmt, args...) \ argument
133 if (cond) \
152 #define DEBUG_NET_WARN_ON_ONCE(cond) ((void)WARN_ON_ONCE(cond)) argument
153 #define DEBUG_NET_WARN_ONCE(cond, format...) ((void)WARN_ONCE(cond, format)) argument
155 #define DEBUG_NET_WARN_ON_ONCE(cond) BUILD_BUG_ON_INVALID(cond) argument
156 #define DEBUG_NET_WARN_ONCE(cond, format...) BUILD_BUG_ON_INVALID(cond) argument
/linux/drivers/gpu/drm/nouveau/include/nvkm/subdev/
H A Dtimer.h52 #define nvkm_nsec(d,n,cond...) ({ \ argument
59 cond \
66 #define nvkm_usec(d, u, cond...) nvkm_nsec((d), (u) * 1000ULL, ##cond) argument
67 #define nvkm_msec(d, m, cond...) nvkm_usec((d), (m) * 1000ULL, ##cond) argument
/linux/tools/testing/selftests/nolibc/
H A Dnolibc-test.c206 #define EXPECT_ZR(cond, expr) \ argument
207 do { if (!(cond)) result(llen, SKIPPED); else ret += expect_zr(expr, llen); } while (0)
220 #define EXPECT_NZ(cond, expr) \ argument
221 do { if (!(cond)) result(llen, SKIPPED); else ret += expect_nz(expr, llen); } while (0)
234 #define EXPECT_EQ(cond, expr, val) \ argument
235 do { if (!(cond)) result(llen, SKIPPED); else ret += expect_eq(expr, llen, val); } while (0)
248 #define EXPECT_NE(cond, expr, val) \ argument
249 do { if (!(cond)) result(llen, SKIPPED); else ret += expect_ne(expr, llen, val); } while (0)
262 #define EXPECT_GE(cond, expr, val) \ argument
263 do { if (!(cond)) result(llen, SKIPPED); else ret += expect_ge(expr, llen, val); } while (0)
[all …]
/linux/drivers/gpu/drm/amd/pm/powerplay/inc/
H A Dpp_debug.h37 #define PP_ASSERT_WITH_CODE(cond, msg, code) \ argument
39 if (!(cond)) { \
45 #define PP_ASSERT(cond, msg) \ argument
47 if (!(cond)) { \
/linux/include/linux/
H A Drculist.h72 #define __list_check_rcu(dummy, cond, extra...) \ argument
75 RCU_LOCKDEP_WARN(!(cond) && !rcu_read_lock_any_held(), \
79 #define __list_check_srcu(cond) \ argument
81 RCU_LOCKDEP_WARN(!(cond), \
85 #define __list_check_rcu(dummy, cond, extra...) \ argument
88 #define __list_check_srcu(cond) ({ }) argument
475 #define list_for_each_entry_rcu(pos, head, member, cond...) \ argument
476 for (__list_check_rcu(dummy, ## cond, 0), \
494 #define list_for_each_entry_srcu(pos, head, member, cond) \ argument
495 for (__list_check_srcu(cond), \
[all …]
H A Dtracepoint.h309 #define __DECLARE_TRACE(name, proto, args, cond, data_proto) \ argument
314 if (cond) { \
323 if (IS_ENABLED(CONFIG_LOCKDEP) && (cond)) { \
475 #define __DECLARE_TRACE(name, proto, args, cond, data_proto) \ argument
538 #define DECLARE_TRACE_CONDITION(name, proto, args, cond) \ argument
540 cpu_online(raw_smp_processor_id()) && (PARAMS(cond)), \
552 #define DECLARE_TRACE_EVENT_CONDITION(name, proto, args, cond) \ argument
554 cpu_online(raw_smp_processor_id()) && (PARAMS(cond)), \
681 args, cond) \ argument
683 PARAMS(args), PARAMS(cond))
[all …]
/linux/drivers/gpu/drm/panthor/
H A Dpanthor_device.h541 #define gpu_read_poll_timeout(iomem, reg, val, cond, delay_us, timeout_us) \
542 read_poll_timeout(gpu_read, val, cond, delay_us, timeout_us, false, \
545 #define gpu_read_poll_timeout_atomic(iomem, reg, val, cond, delay_us, \
547 read_poll_timeout_atomic(gpu_read, val, cond, delay_us, timeout_us, \
550 #define gpu_read64_poll_timeout(iomem, reg, val, cond, delay_us, timeout_us) \
551 read_poll_timeout(gpu_read64, val, cond, delay_us, timeout_us, false, \
554 #define gpu_read64_poll_timeout_atomic(iomem, reg, val, cond, delay_us, \
556 read_poll_timeout_atomic(gpu_read64, val, cond, delay_us, timeout_us, \
559 #define gpu_read_relaxed_poll_timeout_atomic(iomem, reg, val, cond, delay_us, \
561 read_poll_timeout_atomic(gpu_read_relaxed, val, cond, delay_u
681 gpu_read_poll_timeout(iomem,reg,val,cond,delay_us,timeout_us) global() argument
685 gpu_read_poll_timeout_atomic(iomem,reg,val,cond,delay_us,timeout_us) global() argument
690 gpu_read64_poll_timeout(iomem,reg,val,cond,delay_us,timeout_us) global() argument
694 gpu_read64_poll_timeout_atomic(iomem,reg,val,cond,delay_us,timeout_us) global() argument
699 gpu_read_relaxed_poll_timeout_atomic(iomem,reg,val,cond,delay_us,timeout_us) global() argument
704 gpu_read64_relaxed_poll_timeout(iomem,reg,val,cond,delay_us,timeout_us) global() argument
[all...]
/linux/sound/soc/intel/avs/
H A Dregisters.h171 #define snd_hdac_adsp_readb_poll(adev, reg, val, cond, delay_us, timeout_us) \ argument
172 readb_poll_timeout((adev)->dsp_ba + (reg), val, cond, \
174 #define snd_hdac_adsp_readw_poll(adev, reg, val, cond, delay_us, timeout_us) \ argument
175 readw_poll_timeout((adev)->dsp_ba + (reg), val, cond, \
177 #define snd_hdac_adsp_readl_poll(adev, reg, val, cond, delay_us, timeout_us) \ argument
178 readl_poll_timeout((adev)->dsp_ba + (reg), val, cond, \
180 #define snd_hdac_adsp_readq_poll(adev, reg, val, cond, delay_us, timeout_us) \ argument
181 readq_poll_timeout((adev)->dsp_ba + (reg), val, cond, \

12345678910