/openbmc/linux/tools/perf/arch/sparc/annotate/ |
H A D | instructions.c | 3 static int is_branch_cond(const char *cond) in is_branch_cond() argument 5 if (cond[0] == '\0') in is_branch_cond() 8 if (cond[0] == 'a' && cond[1] == '\0') in is_branch_cond() 11 if (cond[0] == 'c' && in is_branch_cond() 12 (cond[1] == 'c' || cond[1] == 's') && in is_branch_cond() 13 cond[2] == '\0') in is_branch_cond() 16 if (cond[0] == 'e' && in is_branch_cond() 17 (cond[1] == '\0' || in is_branch_cond() 18 (cond[1] == 'q' && cond[2] == '\0'))) in is_branch_cond() 21 if (cond[0] == 'g' && in is_branch_cond() [all …]
|
/openbmc/linux/include/linux/ |
H A D | mmdebug.h | 19 #define VM_BUG_ON(cond) BUG_ON(cond) argument 20 #define VM_BUG_ON_PAGE(cond, page) \ argument 22 if (unlikely(cond)) { \ 23 dump_page(page, "VM_BUG_ON_PAGE(" __stringify(cond)")");\ 27 #define VM_BUG_ON_FOLIO(cond, folio) \ argument 29 if (unlikely(cond)) { \ 30 dump_page(&folio->page, "VM_BUG_ON_FOLIO(" __stringify(cond)")");\ 34 #define VM_BUG_ON_VMA(cond, vma) \ argument 36 if (unlikely(cond)) { \ 41 #define VM_BUG_ON_MM(cond, mm) \ argument [all …]
|
H A D | iopoll.h | 36 #define read_poll_timeout(op, val, cond, sleep_us, timeout_us, \ argument 47 if (cond) \ 58 (cond) ? 0 : -ETIMEDOUT; \ 84 #define read_poll_timeout_atomic(op, val, cond, delay_us, timeout_us, \ argument 98 if (cond) \ 113 (cond) ? 0 : -ETIMEDOUT; \ 134 #define readx_poll_timeout(op, addr, val, cond, sleep_us, timeout_us) \ argument 135 read_poll_timeout(op, val, cond, sleep_us, timeout_us, false, addr) 154 #define readx_poll_timeout_atomic(op, addr, val, cond, delay_us, timeout_us) \ argument 155 read_poll_timeout_atomic(op, val, cond, delay_us, timeout_us, false, addr) [all …]
|
/openbmc/u-boot/include/linux/ |
H A D | iopoll.h | 27 #define readx_poll_timeout(op, addr, val, cond, timeout_us) \ argument 32 if (cond) \ 39 (cond) ? 0 : -ETIMEDOUT; \ 43 #define readb_poll_timeout(addr, val, cond, timeout_us) \ argument 44 readx_poll_timeout(readb, addr, val, cond, timeout_us) 46 #define readw_poll_timeout(addr, val, cond, timeout_us) \ argument 47 readx_poll_timeout(readw, addr, val, cond, timeout_us) 49 #define readl_poll_timeout(addr, val, cond, timeout_us) \ argument 50 readx_poll_timeout(readl, addr, val, cond, timeout_us) 52 #define readq_poll_timeout(addr, val, cond, timeout_us) \ argument [all …]
|
/openbmc/linux/arch/parisc/math-emu/ |
H A D | dfcmp.c | 38 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 D | sfcmp.c | 37 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 …]
|
/openbmc/u-boot/arch/arm/include/asm/ |
H A D | unified.h | 62 .macro it, cond 64 .macro itt, cond 66 .macro ite, cond 68 .macro ittt, cond 70 .macro itte, cond 72 .macro itet, cond 74 .macro itee, cond 76 .macro itttt, cond 78 .macro ittte, cond 80 .macro ittet, cond [all …]
|
/openbmc/linux/Documentation/arch/arm/nwfpe/ |
H A D | netwinder-fpe.rst | 24 <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 …]
|
/openbmc/linux/drivers/block/null_blk/ |
H A D | zoned.c | 143 zone->cond = BLK_ZONE_COND_NOT_WP; in null_init_zoned_dev() 160 zone->cond = BLK_ZONE_COND_EMPTY; in null_init_zoned_dev() 225 blkz.cond = zone->cond; in null_report_zones() 262 switch (zone->cond) { in __null_close_zone() 279 zone->cond = BLK_ZONE_COND_EMPTY; in __null_close_zone() 281 zone->cond = BLK_ZONE_COND_CLOSED; in __null_close_zone() 303 if (zone->cond == BLK_ZONE_COND_IMP_OPEN) { in null_close_imp_open_zone() 359 switch (zone->cond) { in null_check_zone_resources() 382 trace_nullb_zone_op(cmd, zno, zone->cond); in null_zone_write() 392 if (zone->cond == BLK_ZONE_COND_FULL || in null_zone_write() [all …]
|
/openbmc/qemu/util/ |
H A D | qemu-thread-posix.c | 162 void qemu_cond_init(QemuCond *cond) in qemu_cond_init() argument 177 err = pthread_cond_init(&cond->cond, &attr); in qemu_cond_init() 185 cond->initialized = true; in qemu_cond_init() 188 void qemu_cond_destroy(QemuCond *cond) in qemu_cond_destroy() argument 192 assert(cond->initialized); in qemu_cond_destroy() 193 cond->initialized = false; in qemu_cond_destroy() 194 err = pthread_cond_destroy(&cond->cond); in qemu_cond_destroy() 199 void qemu_cond_signal(QemuCond *cond) in qemu_cond_signal() argument 203 assert(cond->initialized); in qemu_cond_signal() 204 err = pthread_cond_signal(&cond->cond); in qemu_cond_signal() [all …]
|
H A D | qemu-thread-win32.c | 140 void qemu_cond_init(QemuCond *cond) in qemu_cond_init() argument 142 memset(cond, 0, sizeof(*cond)); in qemu_cond_init() 143 InitializeConditionVariable(&cond->var); in qemu_cond_init() 144 cond->initialized = true; in qemu_cond_init() 147 void qemu_cond_destroy(QemuCond *cond) in qemu_cond_destroy() argument 149 assert(cond->initialized); in qemu_cond_destroy() 150 cond->initialized = false; in qemu_cond_destroy() 151 InitializeConditionVariable(&cond->var); in qemu_cond_destroy() 154 void qemu_cond_signal(QemuCond *cond) in qemu_cond_signal() argument 156 assert(cond->initialized); in qemu_cond_signal() [all …]
|
/openbmc/linux/tools/perf/util/ |
H A D | mutex.c | 79 static void __cond_init(struct cond *cnd, bool pshared) in __cond_init() 87 CHECK_ERR(pthread_cond_init(&cnd->cond, &attr)); in __cond_init() 91 void cond_init(struct cond *cnd) in cond_init() 96 void cond_init_pshared(struct cond *cnd) in cond_init_pshared() 101 void cond_destroy(struct cond *cnd) in cond_destroy() 103 CHECK_ERR(pthread_cond_destroy(&cnd->cond)); in cond_destroy() 106 void cond_wait(struct cond *cnd, struct mutex *mtx) in cond_wait() 108 CHECK_ERR(pthread_cond_wait(&cnd->cond, &mtx->lock)); in cond_wait() 111 void cond_signal(struct cond *cnd) in cond_signal() 113 CHECK_ERR(pthread_cond_signal(&cnd->cond)); in cond_signal() [all …]
|
H A D | mutex.h | 77 struct cond { struct 78 pthread_cond_t cond; member 96 void cond_init(struct cond *cnd); 101 void cond_init_pshared(struct cond *cnd); 102 void cond_destroy(struct cond *cnd); 104 void cond_wait(struct cond *cnd, struct mutex *mtx) EXCLUSIVE_LOCKS_REQUIRED(mtx); 105 void cond_signal(struct cond *cnd); 106 void cond_broadcast(struct cond *cnd);
|
/openbmc/linux/arch/arm64/kvm/hyp/ |
H A D | aarch32.c | 51 int cond; in kvm_condition_valid32() local 72 cond = kvm_vcpu_get_condition(vcpu); in kvm_condition_valid32() 73 if (cond == 0xE) in kvm_condition_valid32() 78 if (cond < 0) { in kvm_condition_valid32() 89 cond = (it >> 4); in kvm_condition_valid32() 94 if (!((cc_map[cond] >> cpsr_cond) & 1)) in kvm_condition_valid32() 112 unsigned long itbits, cond; in kvm_adjust_itstate() local 119 cond = (cpsr & 0xe000) >> 13; in kvm_adjust_itstate() 125 itbits = cond = 0; in kvm_adjust_itstate() 130 cpsr |= cond << 13; in kvm_adjust_itstate()
|
/openbmc/linux/arch/arm/include/asm/ |
H A D | assembler.h | 136 .macro asm_trace_hardirqs_on, cond=al, save=1 145 bl\cond trace_hardirqs_on 197 asm_trace_hardirqs_on cond=eq 469 .macro usraccoff, instr, reg, ptr, inc, off, cond, abort, t=TUSER() 472 \instr\()b\t\cond\().w \reg, [\ptr, #\off] 474 \instr\t\cond\().w \reg, [\ptr, #\off] 485 .macro usracc, instr, reg, ptr, inc, cond, rept, abort 488 .ifnc \cond,al 490 itt \cond 492 ittt \cond [all …]
|
/openbmc/qemu/tcg/arm/ |
H A D | tcg-target.c.inc | 505 TCGType type, TCGCond cond, int vece) 539 static void tcg_out_b_imm(TCGContext *s, ARMCond cond, int32_t offset) 541 tcg_out32(s, (cond << 28) | INSN_B | 545 static void tcg_out_bl_imm(TCGContext *s, ARMCond cond, int32_t offset) 547 tcg_out32(s, (cond << 28) | 0x0b000000 | 551 static void tcg_out_blx_reg(TCGContext *s, ARMCond cond, TCGReg rn) 553 tcg_out32(s, (cond << 28) | 0x012fff30 | rn); 562 static void tcg_out_dat_reg(TCGContext *s, ARMCond cond, ARMInsn opc, 565 tcg_out32(s, (cond << 28) | (0 << 25) | opc | 569 static void tcg_out_mov_reg(TCGContext *s, ARMCond cond, TCGReg rd, TCGReg rm) [all …]
|
/openbmc/linux/arch/x86/include/asm/ |
H A D | paravirt_types.h | 439 #define ____PVOP_ALT_CALL(ret, op, alt, cond, call_clbr, \ argument 445 alt, cond) \ 457 #define __PVOP_ALT_CALL(rettype, op, alt, cond, ...) \ argument 458 ____PVOP_ALT_CALL(PVOP_RETVAL(rettype), op, alt, cond, \ 466 #define __PVOP_ALT_CALLEESAVE(rettype, op, alt, cond, ...) \ argument 467 ____PVOP_ALT_CALL(PVOP_RETVAL(rettype), op.func, alt, cond, \ 475 #define __PVOP_ALT_VCALL(op, alt, cond, ...) \ argument 476 (void)____PVOP_ALT_CALL(, op, alt, cond, \ 484 #define __PVOP_ALT_VCALLEESAVE(op, alt, cond, ...) \ argument 485 (void)____PVOP_ALT_CALL(, op.func, alt, cond, \ [all …]
|
/openbmc/linux/Documentation/locking/ |
H A D | futex-requeue-pi.rst | 27 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 …]
|
/openbmc/u-boot/include/test/ |
H A D | ut.h | 25 const char *func, const char *cond); 38 const char *func, const char *cond, const char *fmt, ...) 43 #define ut_assert(cond) \ argument 44 if (!(cond)) { \ 45 ut_fail(uts, __FILE__, __LINE__, __func__, #cond); \ 50 #define ut_assertf(cond, fmt, args...) \ argument 51 if (!(cond)) { \ 52 ut_failf(uts, __FILE__, __LINE__, __func__, #cond, \ 149 #define ut_assertok(cond) ut_asserteq(0, cond) argument
|
/openbmc/qemu/include/block/ |
H A D | aio-wait.h | 78 #define AIO_WAIT_WHILE_INTERNAL(ctx, cond) ({ \ argument 87 while ((cond)) { \ 94 while ((cond)) { \ 102 #define AIO_WAIT_WHILE(ctx, cond) \ argument 103 AIO_WAIT_WHILE_INTERNAL(ctx, cond) 106 #define AIO_WAIT_WHILE_UNLOCKED(ctx, cond) \ argument 107 AIO_WAIT_WHILE_INTERNAL(ctx, cond)
|
/openbmc/linux/arch/parisc/include/asm/ |
H A D | alternative.h | 26 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 ! \
|
/openbmc/linux/security/apparmor/ |
H A D | file.c | 163 const char **name, struct path_cond *cond, u32 request) in path_name() argument 175 NULL, NULL, cond->uid, info, error)); in path_name() 194 aa_state_t state, struct path_cond *cond) in aa_lookup_fperms() argument 201 if (uid_eq(current_fsuid(), cond->uid)) in aa_lookup_fperms() 218 const char *name, struct path_cond *cond, in aa_str_perms() argument 223 *perms = *(aa_lookup_fperms(file_rules, state, cond)); in aa_str_perms() 230 u32 request, struct path_cond *cond, int flags, in __aa_path_perm() argument 240 name, cond, perms); in __aa_path_perm() 245 cond->uid, NULL, e); in __aa_path_perm() 252 struct path_cond *cond, int flags, in profile_path_perm() argument [all …]
|
/openbmc/qemu/target/arm/ |
H A D | syndrome.h | 171 static inline uint32_t syn_cp14_rt_trap(int cv, int cond, int opc1, int opc2, in syn_cp14_rt_trap() argument 177 | (cv << 24) | (cond << 20) | (opc2 << 17) | (opc1 << 14) in syn_cp14_rt_trap() 181 static inline uint32_t syn_cp15_rt_trap(int cv, int cond, int opc1, int opc2, in syn_cp15_rt_trap() argument 187 | (cv << 24) | (cond << 20) | (opc2 << 17) | (opc1 << 14) in syn_cp15_rt_trap() 191 static inline uint32_t syn_cp14_rrt_trap(int cv, int cond, int opc1, int crm, in syn_cp14_rrt_trap() argument 197 | (cv << 24) | (cond << 20) | (opc1 << 16) in syn_cp14_rrt_trap() 201 static inline uint32_t syn_cp15_rrt_trap(int cv, int cond, int opc1, int crm, in syn_cp15_rrt_trap() argument 207 | (cv << 24) | (cond << 20) | (opc1 << 16) in syn_cp15_rrt_trap() 211 static inline uint32_t syn_fp_access_trap(int cv, int cond, bool is_16bit, in syn_fp_access_trap() argument 217 | (cv << 24) | (cond << 20) | coproc; in syn_fp_access_trap() [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/include/nvif/ |
H A D | timer.h | 22 #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
|
/openbmc/linux/arch/parisc/kernel/ |
H A D | alternative.c | 49 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()
|