/third_party/skia/third_party/externals/abseil-cpp/absl/strings/ |
H A D | str_replace.h | 137 absl::string_view old; member 143 : old(old_str), replacement(replacement_str), offset(offset_val) {} in ViableSubstitution() 149 return old.size() > y.old.size(); in OccursBefore() 165 absl::string_view old(get<0>(rep)); in FindSubstitutions() 167 size_t pos = s.find(old); in FindSubstitutions() 173 if (old.empty()) continue; in FindSubstitutions() 175 subs.emplace_back(old, get<1>(rep), pos); in FindSubstitutions()
|
/third_party/toybox/toys/pending/ |
H A D | stty.c | 319 struct termios old, sane; in do_stty() local 322 xtcgetattr(&old); in do_stty() 325 struct termios new = old; in do_stty() 331 else if (!strcmp(arg, "speed")) show_speed(&old, 0); in do_stty() 397 xtcgetattr(&old); in do_stty() 398 if (memcmp(&old, &new, sizeof(old))) in do_stty() 405 xprintf("%x:%x:%x:%x:", old.c_iflag, old.c_oflag, old in do_stty() [all...] |
/kernel/linux/linux-5.10/fs/ |
H A D | fs_struct.c | 12 * Replace the fs->{rootmnt,root} with {mnt,dentry}. Put the old values. 31 * Replace the fs->{pwdmnt,pwd} with {mnt,dentry}. Put the old values. 50 static inline int replace_path(struct path *p, const struct path *old, const struct path *new) in replace_path() argument 52 if (likely(p->dentry != old->dentry || p->mnt != old->mnt)) in replace_path() 112 struct fs_struct *copy_fs_struct(struct fs_struct *old) in copy_fs_struct() argument 121 fs->umask = old->umask; in copy_fs_struct() 123 spin_lock(&old->lock); in copy_fs_struct() 124 fs->root = old->root; in copy_fs_struct() 126 fs->pwd = old in copy_fs_struct() [all...] |
/kernel/linux/linux-6.6/fs/ |
H A D | fs_struct.c | 12 * Replace the fs->{rootmnt,root} with {mnt,dentry}. Put the old values. 31 * Replace the fs->{pwdmnt,pwd} with {mnt,dentry}. Put the old values. 50 static inline int replace_path(struct path *p, const struct path *old, const struct path *new) in replace_path() argument 52 if (likely(p->dentry != old->dentry || p->mnt != old->mnt)) in replace_path() 112 struct fs_struct *copy_fs_struct(struct fs_struct *old) in copy_fs_struct() argument 121 fs->umask = old->umask; in copy_fs_struct() 123 spin_lock(&old->lock); in copy_fs_struct() 124 fs->root = old->root; in copy_fs_struct() 126 fs->pwd = old in copy_fs_struct() [all...] |
/kernel/linux/linux-6.6/arch/s390/kvm/ |
H A D | gaccess.c | 280 union ipte_control old, new, *ic; in ipte_lock_simple() local 290 old = READ_ONCE(*ic); in ipte_lock_simple() 291 if (old.k) { in ipte_lock_simple() 296 new = old; in ipte_lock_simple() 298 } while (cmpxchg(&ic->val, old.val, new.val) != old.val); in ipte_lock_simple() 306 union ipte_control old, new, *ic; in ipte_unlock_simple() local 315 old = READ_ONCE(*ic); in ipte_unlock_simple() 316 new = old; in ipte_unlock_simple() 318 } while (cmpxchg(&ic->val, old in ipte_unlock_simple() 327 union ipte_control old, new, *ic; ipte_lock_siif() local 348 union ipte_control old, new, *ic; ipte_unlock_siif() local 1220 u8 old; cmpxchg_guest_abs_with_key() local 1228 u16 old; cmpxchg_guest_abs_with_key() local 1236 u32 old; cmpxchg_guest_abs_with_key() local 1244 u64 old; cmpxchg_guest_abs_with_key() local 1252 __uint128_t old; cmpxchg_guest_abs_with_key() local [all...] |
/kernel/linux/linux-6.6/include/linux/atomic/ |
H A D | atomic-arch-fallback.h | 1991 * @old: int value to compare with 1994 * If (@v == @old), atomically updates @v to @new with full ordering. 2001 raw_atomic_cmpxchg(atomic_t *v, int old, int new) in raw_atomic_cmpxchg() argument 2004 return arch_atomic_cmpxchg(v, old, new); in raw_atomic_cmpxchg() 2008 ret = arch_atomic_cmpxchg_relaxed(v, old, new); in raw_atomic_cmpxchg() 2012 return raw_cmpxchg(&v->counter, old, new); in raw_atomic_cmpxchg() 2019 * @old: int value to compare with 2022 * If (@v == @old), atomically updates @v to @new with acquire ordering. 2029 raw_atomic_cmpxchg_acquire(atomic_t *v, int old, int new) in raw_atomic_cmpxchg_acquire() argument 2032 return arch_atomic_cmpxchg_acquire(v, old, ne in raw_atomic_cmpxchg_acquire() 2057 raw_atomic_cmpxchg_release(atomic_t *v, int old, int new) raw_atomic_cmpxchg_release() argument 2084 raw_atomic_cmpxchg_relaxed(atomic_t *v, int old, int new) raw_atomic_cmpxchg_relaxed() argument 2109 raw_atomic_try_cmpxchg(atomic_t *v, int *old, int new) raw_atomic_try_cmpxchg() argument 2142 raw_atomic_try_cmpxchg_acquire(atomic_t *v, int *old, int new) raw_atomic_try_cmpxchg_acquire() argument 2175 raw_atomic_try_cmpxchg_release(atomic_t *v, int *old, int new) raw_atomic_try_cmpxchg_release() argument 2207 raw_atomic_try_cmpxchg_relaxed(atomic_t *v, int *old, int new) raw_atomic_try_cmpxchg_relaxed() argument 4113 raw_atomic64_cmpxchg(atomic64_t *v, s64 old, s64 new) raw_atomic64_cmpxchg() argument 4141 raw_atomic64_cmpxchg_acquire(atomic64_t *v, s64 old, s64 new) raw_atomic64_cmpxchg_acquire() argument 4169 raw_atomic64_cmpxchg_release(atomic64_t *v, s64 old, s64 new) raw_atomic64_cmpxchg_release() argument 4196 raw_atomic64_cmpxchg_relaxed(atomic64_t *v, s64 old, s64 new) raw_atomic64_cmpxchg_relaxed() argument 4221 raw_atomic64_try_cmpxchg(atomic64_t *v, s64 *old, s64 new) raw_atomic64_try_cmpxchg() argument 4254 raw_atomic64_try_cmpxchg_acquire(atomic64_t *v, s64 *old, s64 new) raw_atomic64_try_cmpxchg_acquire() argument 4287 raw_atomic64_try_cmpxchg_release(atomic64_t *v, s64 *old, s64 new) raw_atomic64_try_cmpxchg_release() argument 4319 raw_atomic64_try_cmpxchg_relaxed(atomic64_t *v, s64 *old, s64 new) raw_atomic64_try_cmpxchg_relaxed() argument [all...] |
/device/soc/rockchip/common/vendor/drivers/gpu/arm/midgard/ |
H A D | mali_kbase_context.h | 57 int old, new;
in kbase_ctx_flag_clear() local 60 old = atomic_read(&kctx->flags);
in kbase_ctx_flag_clear() 61 new = old & ~flag;
in kbase_ctx_flag_clear() 62 } while (atomic_cmpxchg(&kctx->flags, old, new) != old);
in kbase_ctx_flag_clear()
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/midgard/ |
H A D | mali_kbase_context.h | 62 int old, new; in kbase_ctx_flag_clear() local 65 old = atomic_read(&kctx->flags); in kbase_ctx_flag_clear() 66 new = old & ~flag; in kbase_ctx_flag_clear() 68 } while (atomic_cmpxchg(&kctx->flags, old, new) != old); in kbase_ctx_flag_clear()
|
/third_party/musl/src/unistd/ |
H A D | dup3.c | 7 int __dup3(int old, int new, int flags) in __dup3() argument 11 if (old==new) return __syscall_ret(-EINVAL); in __dup3() 13 while ((r=__syscall(SYS_dup3, old, new, flags))==-EBUSY); in __dup3() 17 while ((r=__syscall(SYS_dup2, old, new))==-EBUSY); in __dup3() 21 while ((r=__syscall(SYS_dup3, old, new, flags))==-EBUSY); in __dup3()
|
/kernel/linux/linux-5.10/arch/powerpc/kernel/trace/ |
H A D | ftrace.c | 58 ftrace_modify_code(unsigned long ip, struct ppc_inst old, struct ppc_inst new) in ftrace_modify_code() argument 75 if (!ppc_inst_equal(replaced, old)) { in ftrace_modify_code() 76 pr_err("%p: replaced (%s) != old (%s)", in ftrace_modify_code() 77 (void *)ip, ppc_inst_as_str(replaced), ppc_inst_as_str(old)); in ftrace_modify_code() 437 struct ppc_inst old, new; in ftrace_make_nop() local 446 old = ftrace_call_replace(ip, addr, 1); in ftrace_make_nop() 448 return ftrace_modify_code(ip, old, new); in ftrace_make_nop() 676 struct ppc_inst old, new; local 685 old = ppc_inst(PPC_INST_NOP); 687 return ftrace_modify_code(ip, old, ne 809 struct ppc_inst old, new; global() local 849 struct ppc_inst old, new; global() local 945 struct ppc_inst old, new; global() local 958 struct ppc_inst old, new; global() local [all...] |
/kernel/linux/linux-5.10/drivers/firewire/ |
H A D | core-iso.c | 207 int try, new, old = allocate ? BANDWIDTH_AVAILABLE_INITIAL : 0; in manage_bandwidth() local 216 new = allocate ? old - bandwidth : old + bandwidth; in manage_bandwidth() 220 data[0] = cpu_to_be32(old); in manage_bandwidth() 231 if (be32_to_cpup(data) == old) in manage_bandwidth() 234 old = be32_to_cpup(data); in manage_bandwidth() 245 __be32 bit, all, old; in manage_channel() local 249 old = all = allocate ? cpu_to_be32(~0) : 0; in manage_channel() 258 if ((old & bit) != (all & bit)) in manage_channel() 261 data[0] = old; in manage_channel() [all...] |
/kernel/linux/linux-5.10/include/linux/ |
H A D | rbtree_augmented.h | 29 void (*copy)(struct rb_node *old, struct rb_node *new); 30 void (*rotate)(struct rb_node *old, struct rb_node *new); 34 void (*augment_rotate)(struct rb_node *old, struct rb_node *new)); 89 RBSTRUCT *old = rb_entry(rb_old, RBSTRUCT, RBFIELD); \ 91 new->RBAUGMENTED = old->RBAUGMENTED; \ 96 RBSTRUCT *old = rb_entry(rb_old, RBSTRUCT, RBFIELD); \ 98 new->RBAUGMENTED = old->RBAUGMENTED; \ 99 RBCOMPUTE(old, false); \ 169 __rb_change_child(struct rb_node *old, struct rb_node *new, in __rb_change_child() argument 173 if (parent->rb_left == old) in __rb_change_child() 182 __rb_change_child_rcu(struct rb_node *old, struct rb_node *new, struct rb_node *parent, struct rb_root *root) __rb_change_child_rcu() argument [all...] |
H A D | blk-cgroup.h | 540 int old = atomic_read(&blkg->use_delay); in blkcg_unuse_delay() local 542 if (WARN_ON_ONCE(old < 0)) in blkcg_unuse_delay() 544 if (old == 0) in blkcg_unuse_delay() 554 while (old) { in blkcg_unuse_delay() 555 int cur = atomic_cmpxchg(&blkg->use_delay, old, old - 1); in blkcg_unuse_delay() 556 if (cur == old) in blkcg_unuse_delay() 558 old = cur; in blkcg_unuse_delay() 561 if (old == 0) in blkcg_unuse_delay() 563 if (old in blkcg_unuse_delay() 579 int old = atomic_read(&blkg->use_delay); blkcg_set_delay() local 596 int old = atomic_read(&blkg->use_delay); blkcg_clear_delay() local [all...] |
/kernel/linux/linux-6.6/include/linux/ |
H A D | rbtree_augmented.h | 29 void (*copy)(struct rb_node *old, struct rb_node *new); 30 void (*rotate)(struct rb_node *old, struct rb_node *new); 34 void (*augment_rotate)(struct rb_node *old, struct rb_node *new)); 115 RBSTRUCT *old = rb_entry(rb_old, RBSTRUCT, RBFIELD); \ 117 new->RBAUGMENTED = old->RBAUGMENTED; \ 122 RBSTRUCT *old = rb_entry(rb_old, RBSTRUCT, RBFIELD); \ 124 new->RBAUGMENTED = old->RBAUGMENTED; \ 125 RBCOMPUTE(old, false); \ 195 __rb_change_child(struct rb_node *old, struct rb_node *new, in __rb_change_child() argument 199 if (parent->rb_left == old) in __rb_change_child() 208 __rb_change_child_rcu(struct rb_node *old, struct rb_node *new, struct rb_node *parent, struct rb_root *root) __rb_change_child_rcu() argument [all...] |
/kernel/linux/linux-6.6/drivers/firewire/ |
H A D | core-iso.c | 207 int try, new, old = allocate ? BANDWIDTH_AVAILABLE_INITIAL : 0; in manage_bandwidth() local 216 new = allocate ? old - bandwidth : old + bandwidth; in manage_bandwidth() 220 data[0] = cpu_to_be32(old); in manage_bandwidth() 231 if (be32_to_cpup(data) == old) in manage_bandwidth() 234 old = be32_to_cpup(data); in manage_bandwidth() 245 __be32 bit, all, old; in manage_channel() local 249 old = all = allocate ? cpu_to_be32(~0) : 0; in manage_channel() 258 if ((old & bit) != (all & bit)) in manage_channel() 261 data[0] = old; in manage_channel() [all...] |
/third_party/mesa3d/src/mesa/main/ |
H A D | shaderobj.c | 68 /* Unreference the old shader */ in _reference_shader() 69 struct gl_shader *old = *ptr; in _reference_shader() local 71 assert(old->RefCount > 0); in _reference_shader() 73 if (p_atomic_dec_zero(&old->RefCount)) { in _reference_shader() 74 if (old->Name != 0) { in _reference_shader() 76 _mesa_HashRemoveLocked(ctx->Shared->ShaderObjects, old->Name); in _reference_shader() 78 _mesa_HashRemove(ctx->Shared->ShaderObjects, old->Name); in _reference_shader() 80 _mesa_delete_shader(ctx, old); in _reference_shader() 255 /* Unreference the old shader program */ in _mesa_reference_shader_program_() 256 struct gl_shader_program *old in _mesa_reference_shader_program_() local [all...] |
/third_party/ltp/testcases/open_posix_testsuite/stress/threads/pthread_create/ |
H A D | threads_scenarii.c | 145 int old; in scenar_init() local 191 pthread_attr_getdetachstate(&scenarii[i].ta, &old); in scenar_init() 196 if (old != PTHREAD_CREATE_JOINABLE) { in scenar_init() 263 pthread_attr_getschedpolicy(&scenarii[i].ta, &old); in scenar_init() 270 sp.sched_priority = sched_get_priority_max(old); in scenar_init() 272 sp.sched_priority = sched_get_priority_min(old); in scenar_init() 288 ret = pthread_attr_getscope(&scenarii[i].ta, &old); in scenar_init() 295 if (old == PTHREAD_SCOPE_PROCESS) in scenar_init() 296 old = PTHREAD_SCOPE_SYSTEM; in scenar_init() 298 old in scenar_init() [all...] |
/third_party/ltp/testcases/open_posix_testsuite/stress/threads/pthread_exit/ |
H A D | threads_scenarii.c | 145 int old; in scenar_init() local 191 pthread_attr_getdetachstate(&scenarii[i].ta, &old); in scenar_init() 196 if (old != PTHREAD_CREATE_JOINABLE) { in scenar_init() 263 pthread_attr_getschedpolicy(&scenarii[i].ta, &old); in scenar_init() 270 sp.sched_priority = sched_get_priority_max(old); in scenar_init() 272 sp.sched_priority = sched_get_priority_min(old); in scenar_init() 288 ret = pthread_attr_getscope(&scenarii[i].ta, &old); in scenar_init() 295 if (old == PTHREAD_SCOPE_PROCESS) in scenar_init() 296 old = PTHREAD_SCOPE_SYSTEM; in scenar_init() 298 old in scenar_init() [all...] |
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/testfrmw/ |
H A D | threads_scenarii.c | 198 int old; in scenar_init() local 240 pthread_attr_getdetachstate(&scenarii[i].ta, &old); in scenar_init() 244 if (old != PTHREAD_CREATE_JOINABLE) in scenar_init() 310 pthread_attr_getschedpolicy(&scenarii[i].ta, &old); in scenar_init() 316 sp.sched_priority = sched_get_priority_max(old); in scenar_init() 318 sp.sched_priority = sched_get_priority_min(old); in scenar_init() 334 ret = pthread_attr_getscope(&scenarii[i].ta, &old); in scenar_init() 340 if (old == PTHREAD_SCOPE_PROCESS) in scenar_init() 341 old = PTHREAD_SCOPE_SYSTEM; in scenar_init() 343 old in scenar_init() [all...] |
/third_party/ltp/testcases/open_posix_testsuite/stress/threads/pthread_self/ |
H A D | threads_scenarii.c | 212 int old; in scenar_init() local 258 pthread_attr_getdetachstate(&scenarii[i].ta, &old); in scenar_init() 263 if (old != PTHREAD_CREATE_JOINABLE) { in scenar_init() 330 pthread_attr_getschedpolicy(&scenarii[i].ta, &old); in scenar_init() 337 sp.sched_priority = sched_get_priority_max(old); in scenar_init() 339 sp.sched_priority = sched_get_priority_min(old); in scenar_init() 355 ret = pthread_attr_getscope(&scenarii[i].ta, &old); in scenar_init() 362 if (old == PTHREAD_SCOPE_PROCESS) in scenar_init() 363 old = PTHREAD_SCOPE_SYSTEM; in scenar_init() 365 old in scenar_init() [all...] |
/device/soc/hisilicon/common/platform/hieth-sf/src/ |
H A D | ctrl.c | 148 unsigned long old; in IrqEnable() local 150 old = HiethRead(ld, GLB_RW_IRQ_ENA); in IrqEnable() 151 HiethWrite(ld, old | (unsigned long)irqs, GLB_RW_IRQ_ENA); in IrqEnable() 152 old = HiethRead(ld, GLB_RW_IRQ_ENA); in IrqEnable() 153 return old; in IrqEnable() 158 unsigned long old; in IrqDisable() local 160 old = HiethRead(ld, GLB_RW_IRQ_ENA); in IrqDisable() 161 HiethWrite(ld, old & (~(unsigned long)irqs), GLB_RW_IRQ_ENA); in IrqDisable() 162 return old; in IrqDisable() 228 int32_t old; in HiethIrqEnable() local 238 int32_t old; HiethIrqDisable() local 264 int32_t old; HiethSetEndianMode() local [all...] |
/kernel/liteos_a/testsuites/unittest/process/basic/pthread/full/ |
H A D | pthread_test_002.cpp | 56 int old; in ThreadFuncTest2() local 73 old = g_testCnt1; in ThreadFuncTest2() 83 ICUNIT_GOTO_EQUAL(g_testCnt1, old, g_testCnt1, EXIT); in ThreadFuncTest2() 89 old = g_testCnt1; in ThreadFuncTest2() 99 ICUNIT_GOTO_EQUAL(g_testCnt1, old, g_testCnt1, EXIT); in ThreadFuncTest2() 118 int old = 0; in ThreadFuncTest3() local 135 old = g_testCnt2; in ThreadFuncTest3() 145 ICUNIT_GOTO_EQUAL(g_testCnt2, old, g_testCnt2, EXIT); in ThreadFuncTest3() 151 old = g_testCnt2; in ThreadFuncTest3() 161 ICUNIT_GOTO_EQUAL(g_testCnt2, old, g_testCnt in ThreadFuncTest3() [all...] |
/device/soc/rockchip/common/vendor/drivers/gpu/arm/bifrost/context/ |
H A D | mali_kbase_context.h | 125 int old, new; in kbase_ctx_flag_clear() local 128 old = atomic_read(&kctx->flags); in kbase_ctx_flag_clear() 129 new = old & ~flag; in kbase_ctx_flag_clear() 130 } while (atomic_cmpxchg(&kctx->flags, old, new) != old); in kbase_ctx_flag_clear()
|
/kernel/linux/linux-5.10/arch/parisc/lib/ |
H A D | bitops.c | 59 u64 __cmpxchg_u64(volatile u64 *ptr, u64 old, u64 new) in __cmpxchg_u64() argument 65 if ((prev = *ptr) == old) in __cmpxchg_u64() 71 unsigned long __cmpxchg_u32(volatile unsigned int *ptr, unsigned int old, unsigned int new) in __cmpxchg_u32() argument 77 if ((prev = *ptr) == old) in __cmpxchg_u32() 83 u8 __cmpxchg_u8(volatile u8 *ptr, u8 old, u8 new) in __cmpxchg_u8() argument 89 if ((prev = *ptr) == old) in __cmpxchg_u8()
|
/kernel/linux/linux-5.10/arch/openrisc/include/asm/ |
H A D | atomic.h | 54 int tmp, old; \ 62 : "=&r"(old), "=&r"(tmp) \ 66 return old; \ 105 int old, tmp; in atomic_fetch_add_unless() local 116 : "=&r"(old), "=&r" (tmp) in atomic_fetch_add_unless() 120 return old; in atomic_fetch_add_unless()
|