Home
last modified time | relevance | path

Searched refs:old (Results 126 - 150 of 3979) sorted by relevance

12345678910>>...160

/kernel/linux/linux-5.10/sound/pci/ice1712/
H A Dwtm.c67 unsigned char new, old; in stac9460_dac_mute_all() local
77 old = stac9460_get(ice, idx); in stac9460_dac_mute_all()
78 new = (~mute << 7 & 0x80) | (old & ~0x80); in stac9460_dac_mute_all()
79 change = (new != old); in stac9460_dac_mute_all()
96 old = stac9460_2_get(ice, idx); in stac9460_dac_mute_all()
97 new = (~mute << 7 & 0x80) | (old & ~0x80); in stac9460_dac_mute_all()
98 change = (new != old); in stac9460_dac_mute_all()
144 unsigned char new, old; in stac9460_dac_mute_put() local
150 old = stac9460_get(ice, idx); in stac9460_dac_mute_put()
152 (old in stac9460_dac_mute_put()
284 unsigned char new, old; stac9460_adc_mute_put() local
415 unsigned char new, old; stac9460_mic_sw_put() local
440 unsigned char old, new; stac9460_set_rate_val() local
[all...]
/kernel/linux/linux-6.6/sound/pci/ice1712/
H A Dwtm.c67 unsigned char new, old; in stac9460_dac_mute_all() local
77 old = stac9460_get(ice, idx); in stac9460_dac_mute_all()
78 new = (~mute << 7 & 0x80) | (old & ~0x80); in stac9460_dac_mute_all()
79 change = (new != old); in stac9460_dac_mute_all()
96 old = stac9460_2_get(ice, idx); in stac9460_dac_mute_all()
97 new = (~mute << 7 & 0x80) | (old & ~0x80); in stac9460_dac_mute_all()
98 change = (new != old); in stac9460_dac_mute_all()
144 unsigned char new, old; in stac9460_dac_mute_put() local
150 old = stac9460_get(ice, idx); in stac9460_dac_mute_put()
152 (old in stac9460_dac_mute_put()
284 unsigned char new, old; stac9460_adc_mute_put() local
415 unsigned char new, old; stac9460_mic_sw_put() local
440 unsigned char old, new; stac9460_set_rate_val() local
[all...]
/kernel/linux/linux-5.10/arch/m68k/include/asm/
H A Dcmpxchg.h95 static inline unsigned long __cmpxchg(volatile void *p, unsigned long old, in __cmpxchg() argument
101 : "=d" (old), "=m" (*(char *)p) in __cmpxchg()
102 : "d" (new), "0" (old), "m" (*(char *)p)); in __cmpxchg()
106 : "=d" (old), "=m" (*(short *)p) in __cmpxchg()
107 : "d" (new), "0" (old), "m" (*(short *)p)); in __cmpxchg()
111 : "=d" (old), "=m" (*(int *)p) in __cmpxchg()
112 : "d" (new), "0" (old), "m" (*(int *)p)); in __cmpxchg()
115 old = __invalid_cmpxchg_size(p, old, new, size); in __cmpxchg()
118 return old; in __cmpxchg()
[all...]
/kernel/linux/linux-6.6/arch/m68k/include/asm/
H A Dcmpxchg.h94 static inline unsigned long __cmpxchg(volatile void *p, unsigned long old, in __cmpxchg() argument
100 : "=d" (old), "=m" (*(char *)p) in __cmpxchg()
101 : "d" (new), "0" (old), "m" (*(char *)p)); in __cmpxchg()
105 : "=d" (old), "=m" (*(short *)p) in __cmpxchg()
106 : "d" (new), "0" (old), "m" (*(short *)p)); in __cmpxchg()
110 : "=d" (old), "=m" (*(int *)p) in __cmpxchg()
111 : "d" (new), "0" (old), "m" (*(int *)p)); in __cmpxchg()
114 old = __invalid_cmpxchg_size(p, old, new, size); in __cmpxchg()
117 return old; in __cmpxchg()
[all...]
/third_party/toybox/lib/
H A Dllist.c29 void *old = list; in llist_traverse() local
36 if (old == list) break; in llist_traverse()
137 struct num_cache *old = get_num_cache(*cache, num); in add_num_cache() local
139 if (old) return old; in add_num_cache()
141 old = xzalloc(sizeof(struct num_cache)+len); in add_num_cache()
142 old->next = *cache; in add_num_cache()
143 old->num = num; in add_num_cache()
144 memcpy(old->data, data, len); in add_num_cache()
145 *cache = old; in add_num_cache()
[all...]
/kernel/linux/linux-6.6/include/linux/atomic/
H A Datomic-long.h1351 * @old: long value to compare with
1354 * If (@v == @old), atomically updates @v to @new with full ordering.
1361 raw_atomic_long_cmpxchg(atomic_long_t *v, long old, long new) in raw_atomic_long_cmpxchg() argument
1364 return raw_atomic64_cmpxchg(v, old, new); in raw_atomic_long_cmpxchg()
1366 return raw_atomic_cmpxchg(v, old, new); in raw_atomic_long_cmpxchg()
1373 * @old: long value to compare with
1376 * If (@v == @old), atomically updates @v to @new with acquire ordering.
1383 raw_atomic_long_cmpxchg_acquire(atomic_long_t *v, long old, long new) in raw_atomic_long_cmpxchg_acquire() argument
1386 return raw_atomic64_cmpxchg_acquire(v, old, new); in raw_atomic_long_cmpxchg_acquire()
1388 return raw_atomic_cmpxchg_acquire(v, old, ne in raw_atomic_long_cmpxchg_acquire()
1405 raw_atomic_long_cmpxchg_release(atomic_long_t *v, long old, long new) raw_atomic_long_cmpxchg_release() argument
1427 raw_atomic_long_cmpxchg_relaxed(atomic_long_t *v, long old, long new) raw_atomic_long_cmpxchg_relaxed() argument
1450 raw_atomic_long_try_cmpxchg(atomic_long_t *v, long *old, long new) raw_atomic_long_try_cmpxchg() argument
1473 raw_atomic_long_try_cmpxchg_acquire(atomic_long_t *v, long *old, long new) raw_atomic_long_try_cmpxchg_acquire() argument
1496 raw_atomic_long_try_cmpxchg_release(atomic_long_t *v, long *old, long new) raw_atomic_long_try_cmpxchg_release() argument
1519 raw_atomic_long_try_cmpxchg_relaxed(atomic_long_t *v, long *old, long new) raw_atomic_long_try_cmpxchg_relaxed() argument
[all...]
/third_party/musl/src/unistd/
H A Ddup2.c6 int dup2(int old, int new) in dup2() argument
10 while ((r=__syscall(SYS_dup2, old, new))==-EBUSY); in dup2()
12 if (old==new) { in dup2()
13 r = __syscall(SYS_fcntl, old, F_GETFD); in dup2()
14 if (r >= 0) return old; in dup2()
16 while ((r=__syscall(SYS_dup3, old, new, 0))==-EBUSY); in dup2()
/third_party/musl/porting/liteos_m/user/src/include/
H A Dfeatures.h9 #define weak_alias(old, new) \
10 extern __typeof(old) new __attribute__((__weak__, __alias__(#old)))
13 #define strong_alias(old, new) \
14 extern __typeof(old) new __attribute__((__alias__(#old)))
/third_party/musl/porting/liteos_m/kernel/src/include/
H A Dfeatures.h9 #define weak_alias(old, new) \
10 extern __typeof(old) new __attribute__((__weak__, __alias__(#old)))
13 #define strong_alias(old, new) \
14 extern __typeof(old) new __attribute__((__alias__(#old)))
/third_party/musl/porting/uniproton/kernel/src/include/
H A Dfeatures.h9 #define weak_alias(old, new) \
10 extern __typeof(old) new __attribute__((__weak__, __alias__(#old)))
13 #define strong_alias(old, new) \
14 extern __typeof(old) new __attribute__((__alias__(#old)))
/third_party/musl/src/signal/
H A Dgetitimer.c4 int getitimer(int which, struct itimerval *old) in getitimer() argument
11 old->it_interval.tv_sec = old32[0]; in getitimer()
12 old->it_interval.tv_usec = old32[1]; in getitimer()
13 old->it_value.tv_sec = old32[2]; in getitimer()
14 old->it_value.tv_usec = old32[3]; in getitimer()
19 return syscall(SYS_getitimer, which, old); in getitimer()
H A Dsigaction.c20 int __libc_sigaction(int sig, const struct sigaction *restrict sa, struct sigaction *restrict old) in __libc_sigaction() argument
54 int r = __syscall(SYS_rt_sigaction, sig, sa?&ksa:0, old?&ksa_old:0, _NSIG/8); in __libc_sigaction()
55 if (old && !r) { in __libc_sigaction()
56 old->sa_handler = ksa_old.handler; in __libc_sigaction()
57 old->sa_flags = ksa_old.flags; in __libc_sigaction()
58 memcpy(&old->sa_mask, &ksa_old.mask, _NSIG/8); in __libc_sigaction()
63 int __sigaction(int sig, const struct sigaction *restrict sa, struct sigaction *restrict old) in __sigaction() argument
79 int r = __libc_sigaction(sig, sa, old); in __sigaction()
/third_party/musl/compat/time32/
H A Dtimer_gettime32.c6 struct itimerspec old; in __timer_gettime32() local
7 int r = timer_gettime(t, &old); in __timer_gettime32()
10 val32->it_interval.tv_sec = old.it_interval.tv_sec; in __timer_gettime32()
11 val32->it_interval.tv_nsec = old.it_interval.tv_nsec; in __timer_gettime32()
12 val32->it_value.tv_sec = old.it_value.tv_sec; in __timer_gettime32()
13 val32->it_value.tv_nsec = old.it_value.tv_nsec; in __timer_gettime32()
/third_party/musl/arch/riscv64/
H A Datomic_arch.h10 int old, tmp; in a_cas() local
17 : "=&r"(old), "=&r"(tmp) in a_cas()
20 return old; in a_cas()
26 void *old; in a_cas_p() local
34 : "=&r"(old), "=&r"(tmp) in a_cas_p()
37 return old; in a_cas_p()
/kernel/linux/linux-6.6/arch/arm64/kernel/
H A Dftrace.c148 * If @validate == true, a replaced instruction is checked against 'old'.
150 static int ftrace_modify_code(unsigned long pc, u32 old, u32 new, in ftrace_modify_code() argument
167 if (replaced != old) in ftrace_modify_code()
327 u32 old, new; in ftrace_make_call() local
337 old = aarch64_insn_gen_nop(); in ftrace_make_call()
340 return ftrace_modify_code(pc, old, new, true); in ftrace_make_call()
348 u32 old, new; in ftrace_modify_call() local
360 old = aarch64_insn_gen_branch_imm(pc, old_addr, in ftrace_modify_call()
364 return ftrace_modify_code(pc, old, new, true); in ftrace_modify_call()
394 u32 old, ne in ftrace_init_nop() local
416 u32 old = 0, new; ftrace_make_nop() local
462 unsigned long old; prepare_ftrace_return() local
[all...]
/kernel/linux/linux-5.10/tools/include/linux/
H A Drefcount.h78 unsigned int old, new, val = atomic_read(&r->refs); in refcount_inc_not_zero() local
89 old = atomic_cmpxchg_relaxed(&r->refs, val, new); in refcount_inc_not_zero()
90 if (old == val) in refcount_inc_not_zero()
93 val = old; in refcount_inc_not_zero()
123 unsigned int old, new, val = atomic_read(&r->refs); in refcount_sub_and_test() local
135 old = atomic_cmpxchg_release(&r->refs, val, new); in refcount_sub_and_test()
136 if (old == val) in refcount_sub_and_test()
139 val = old; in refcount_sub_and_test()
/kernel/linux/linux-6.6/tools/include/linux/
H A Drefcount.h78 unsigned int old, new, val = atomic_read(&r->refs); in refcount_inc_not_zero() local
89 old = atomic_cmpxchg_relaxed(&r->refs, val, new); in refcount_inc_not_zero()
90 if (old == val) in refcount_inc_not_zero()
93 val = old; in refcount_inc_not_zero()
123 unsigned int old, new, val = atomic_read(&r->refs); in refcount_sub_and_test() local
135 old = atomic_cmpxchg_release(&r->refs, val, new); in refcount_sub_and_test()
136 if (old == val) in refcount_sub_and_test()
139 val = old; in refcount_sub_and_test()
/third_party/node/test/parallel/
H A Dtest-stream2-readable-wrap.js30 const old = new EE();
32 assert.strictEqual(r, r.wrap(old));
36 old.pause = function() {
37 old.emit('pause');
41 old.resume = function() {
42 old.emit('resume');
65 old.emit('data', item);
69 old.emit('end');
/third_party/musl/porting/liteos_a/user/src/thread/
H A Dpthread_mutex_trylock.c5 int old, own; in __pthread_mutex_trylock_owner() local
10 old = m->_m_lock; in __pthread_mutex_trylock_owner()
11 own = old & 0x3fffffff; in __pthread_mutex_trylock_owner()
20 if (own || (old && !(type & 4))) return EBUSY; in __pthread_mutex_trylock_owner()
29 tid |= old & 0x40000000; in __pthread_mutex_trylock_owner()
31 if (a_cas(&m->_m_lock, old, tid) != old) { in __pthread_mutex_trylock_owner()
44 if (old) { in __pthread_mutex_trylock_owner()
/kernel/linux/linux-5.10/arch/arc/include/asm/
H A Dbitops.h52 * set it and return 0 (old value)
54 * return 1 (old value).
57 * and the old value of bit is returned
62 unsigned long old, temp; \
79 : "=&r"(old), "=&r"(temp) \
85 return (old & (1 << nr)) != 0; \
126 unsigned long old, flags; \
131 old = *m; \
132 *m = old c_op (1UL << (nr & 0x1f)); \
136 return (old
[all...]
/kernel/linux/linux-6.6/drivers/dma-buf/
H A Ddma-resv.c184 struct dma_resv_list *old, *new; in dma_resv_reserve_fences() local
189 old = dma_resv_fences_list(obj); in dma_resv_reserve_fences()
190 if (old && old->max_fences) { in dma_resv_reserve_fences()
191 if ((old->num_fences + num_fences) <= old->max_fences) in dma_resv_reserve_fences()
193 max = max(old->num_fences + num_fences, old->max_fences * 2); in dma_resv_reserve_fences()
205 * references from the old struct are carried over to in dma_resv_reserve_fences()
208 for (i = 0, j = 0, k = max; i < (old in dma_resv_reserve_fences()
284 struct dma_fence *old; dma_resv_add_fence() local
346 struct dma_fence *old; dma_resv_replace_fences() local
[all...]
/kernel/linux/linux-5.10/arch/x86/kvm/vmx/
H A Dposted_intr.c28 struct pi_desc old, new; in vmx_vcpu_pi_load() local
54 old.control = new.control = pi_desc->control; in vmx_vcpu_pi_load()
64 } while (cmpxchg64(&pi_desc->control, old.control, in vmx_vcpu_pi_load()
65 new.control) != old.control); in vmx_vcpu_pi_load()
103 struct pi_desc old, new; in __pi_post_block() local
107 old.control = new.control = pi_desc->control; in __pi_post_block()
108 WARN(old.nv != POSTED_INTR_WAKEUP_VECTOR, in __pi_post_block()
120 } while (cmpxchg64(&pi_desc->control, old.control, in __pi_post_block()
121 new.control) != old.control); in __pi_post_block()
147 struct pi_desc old, ne in pi_pre_block() local
[all...]
/kernel/linux/linux-5.10/arch/sparc/include/asm/
H A Dcmpxchg_32.h42 unsigned long __cmpxchg_u32(volatile u32 *m, u32 old, u32 new_);
46 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new_, int size) in __cmpxchg() argument
50 return __cmpxchg_u32((u32 *)ptr, (u32)old, (u32)new_); in __cmpxchg()
55 return old; in __cmpxchg()
66 u64 __cmpxchg_u64(u64 *ptr, u64 old, u64 new);
67 #define cmpxchg64(ptr, old, new) __cmpxchg_u64(ptr, old, new)
/kernel/linux/linux-6.6/arch/sparc/include/asm/
H A Dcmpxchg_32.h42 unsigned long __cmpxchg_u32(volatile u32 *m, u32 old, u32 new_);
46 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new_, int size) in __cmpxchg() argument
50 return __cmpxchg_u32((u32 *)ptr, (u32)old, (u32)new_); in __cmpxchg()
55 return old; in __cmpxchg()
66 u64 __cmpxchg_u64(u64 *ptr, u64 old, u64 new);
67 #define arch_cmpxchg64(ptr, old, new) __cmpxchg_u64(ptr, old, new)
/kernel/linux/linux-5.10/include/asm-generic/
H A Dcmpxchg-local.h16 unsigned long old, unsigned long new, int size) in __cmpxchg_local_generic()
29 if (prev == old) in __cmpxchg_local_generic()
33 if (prev == old) in __cmpxchg_local_generic()
37 if (prev == old) in __cmpxchg_local_generic()
41 if (prev == old) in __cmpxchg_local_generic()
55 u64 old, u64 new) in __cmpxchg64_local_generic()
62 if (prev == old) in __cmpxchg64_local_generic()
15 __cmpxchg_local_generic(volatile void *ptr, unsigned long old, unsigned long new, int size) __cmpxchg_local_generic() argument
54 __cmpxchg64_local_generic(volatile void *ptr, u64 old, u64 new) __cmpxchg64_local_generic() argument

Completed in 12 milliseconds

12345678910>>...160