/include/asm-generic/bitops/ |
D | lock.h | 21 long old; in test_and_set_bit_lock() local 28 old = atomic_long_fetch_or_acquire(mask, (atomic_long_t *)p); in test_and_set_bit_lock() 29 return !!(old & mask); in test_and_set_bit_lock() 60 unsigned long old; in __clear_bit_unlock() local 63 old = READ_ONCE(*p); in __clear_bit_unlock() 64 old &= ~BIT_MASK(nr); in __clear_bit_unlock() 65 atomic_long_set_release((atomic_long_t *)p, old); in __clear_bit_unlock() 81 long old; in clear_bit_unlock_is_negative_byte() local 85 old = atomic_long_fetch_andnot_release(mask, (atomic_long_t *)p); in clear_bit_unlock_is_negative_byte() 86 return !!(old & BIT(7)); in clear_bit_unlock_is_negative_byte()
|
D | atomic.h | 34 long old; in test_and_set_bit() local 38 old = atomic_long_fetch_or(mask, (atomic_long_t *)p); in test_and_set_bit() 39 return !!(old & mask); in test_and_set_bit() 44 long old; in test_and_clear_bit() local 48 old = atomic_long_fetch_andnot(mask, (atomic_long_t *)p); in test_and_clear_bit() 49 return !!(old & mask); in test_and_clear_bit() 54 long old; in test_and_change_bit() local 58 old = atomic_long_fetch_xor(mask, (atomic_long_t *)p); in test_and_change_bit() 59 return !!(old & mask); in test_and_change_bit()
|
D | non-atomic.h | 62 unsigned long old = *p; in __test_and_set_bit() local 64 *p = old | mask; in __test_and_set_bit() 65 return (old & mask) != 0; in __test_and_set_bit() 81 unsigned long old = *p; in __test_and_clear_bit() local 83 *p = old & ~mask; in __test_and_clear_bit() 84 return (old & mask) != 0; in __test_and_clear_bit() 93 unsigned long old = *p; in __test_and_change_bit() local 95 *p = old ^ mask; in __test_and_change_bit() 96 return (old & mask) != 0; in __test_and_change_bit()
|
/include/linux/ |
D | iversion.h | 126 u64 cur, old; in inode_set_max_iversion_raw() local 132 old = atomic64_cmpxchg(&inode->i_version, cur, val); in inode_set_max_iversion_raw() 133 if (likely(old == cur)) in inode_set_max_iversion_raw() 135 cur = old; in inode_set_max_iversion_raw() 200 u64 cur, old, new; in inode_maybe_inc_iversion() local 222 old = atomic64_cmpxchg(&inode->i_version, cur, new); in inode_maybe_inc_iversion() 223 if (likely(old == cur)) in inode_maybe_inc_iversion() 225 cur = old; in inode_maybe_inc_iversion() 307 u64 cur, old, new; in inode_query_iversion() local 323 old = atomic64_cmpxchg(&inode->i_version, cur, new); in inode_query_iversion() [all …]
|
D | refcount.h | 157 int old = refcount_read(r); in refcount_add_not_zero() local 160 if (!old) in refcount_add_not_zero() 162 } while (!atomic_try_cmpxchg_relaxed(&r->refs, &old, old + i)); in refcount_add_not_zero() 164 if (unlikely(old < 0 || old + i < 0)) in refcount_add_not_zero() 167 return old; in refcount_add_not_zero() 188 int old = atomic_fetch_add_relaxed(i, &r->refs); in refcount_add() local 190 if (unlikely(!old)) in refcount_add() 192 else if (unlikely(old < 0 || old + i < 0)) in refcount_add() 253 int old = atomic_fetch_sub_release(i, &r->refs); in refcount_sub_and_test() local 255 if (old == i) { in refcount_sub_and_test() [all …]
|
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() [all …]
|
D | via-core.h | 204 u8 old; in via_write_reg_mask() local 207 old = inb(port + 1); in via_write_reg_mask() 208 outb((data & mask) | (old & ~mask), port + 1); in via_write_reg_mask() 216 u8 old = inb(VIA_MISC_REG_READ); in via_write_misc_reg_mask() local 217 outb((data & mask) | (old & ~mask), VIA_MISC_REG_WRITE); in via_write_misc_reg_mask()
|
D | atomic-fallback.h | 872 atomic_cmpxchg_acquire(atomic_t *v, int old, int new) in atomic_cmpxchg_acquire() argument 874 int ret = atomic_cmpxchg_relaxed(v, old, new); in atomic_cmpxchg_acquire() 883 atomic_cmpxchg_release(atomic_t *v, int old, int new) in atomic_cmpxchg_release() argument 886 return atomic_cmpxchg_relaxed(v, old, new); in atomic_cmpxchg_release() 893 atomic_cmpxchg(atomic_t *v, int old, int new) in atomic_cmpxchg() argument 897 ret = atomic_cmpxchg_relaxed(v, old, new); in atomic_cmpxchg() 915 atomic_try_cmpxchg(atomic_t *v, int *old, int new) in atomic_try_cmpxchg() argument 917 int r, o = *old; in atomic_try_cmpxchg() 920 *old = r; in atomic_try_cmpxchg() 928 atomic_try_cmpxchg_acquire(atomic_t *v, int *old, int new) in atomic_try_cmpxchg_acquire() argument [all …]
|
D | blk-cgroup.h | 791 int old = atomic_read(&blkg->use_delay); in blkcg_unuse_delay() local 793 if (old == 0) in blkcg_unuse_delay() 803 while (old) { in blkcg_unuse_delay() 804 int cur = atomic_cmpxchg(&blkg->use_delay, old, old - 1); in blkcg_unuse_delay() 805 if (cur == old) in blkcg_unuse_delay() 807 old = cur; in blkcg_unuse_delay() 810 if (old == 0) in blkcg_unuse_delay() 812 if (old == 1) in blkcg_unuse_delay() 819 int old = atomic_read(&blkg->use_delay); in blkcg_clear_delay() local 820 if (!old) in blkcg_clear_delay() [all …]
|
D | rculist.h | 188 static inline void list_replace_rcu(struct list_head *old, in list_replace_rcu() argument 191 new->next = old->next; in list_replace_rcu() 192 new->prev = old->prev; in list_replace_rcu() 195 old->prev = LIST_POISON2; in list_replace_rcu() 486 static inline void hlist_replace_rcu(struct hlist_node *old, in hlist_replace_rcu() argument 489 struct hlist_node *next = old->next; in hlist_replace_rcu() 492 new->pprev = old->pprev; in hlist_replace_rcu() 496 old->pprev = LIST_POISON2; in hlist_replace_rcu()
|
D | serial_8250.h | 34 struct ktermios *old); 40 unsigned old); 155 struct ktermios *termios, struct ktermios *old);
|
D | swap_cgroup.h | 10 unsigned short old, unsigned short new);
|
D | compiler-gcc.h | 14 # error Sorry, your compiler is too old - please upgrade it. 20 # error Sorry, your version of GCC is too old - please use 5.1 or newer.
|
/include/asm-generic/ |
D | cmpxchg-local.h | 16 unsigned long old, unsigned long new, int size) in __cmpxchg_local_generic() argument 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() argument 62 if (prev == old) in __cmpxchg64_local_generic()
|
D | atomic.h | 39 int c, old; \ 42 while ((old = cmpxchg(&v->counter, c, c c_op i)) != c) \ 43 c = old; \ 49 int c, old; \ 52 while ((old = cmpxchg(&v->counter, c, c c_op i)) != c) \ 53 c = old; \ 61 int c, old; \ 64 while ((old = cmpxchg(&v->counter, c, c c_op i)) != c) \ 65 c = old; \ 196 #define atomic_cmpxchg(v, old, new) (cmpxchg(&((v)->counter), (old), (new))) argument
|
D | atomic-long.h | 410 atomic_long_cmpxchg(atomic_long_t *v, long old, long new) in atomic_long_cmpxchg() argument 412 return atomic64_cmpxchg(v, old, new); in atomic_long_cmpxchg() 416 atomic_long_cmpxchg_acquire(atomic_long_t *v, long old, long new) in atomic_long_cmpxchg_acquire() argument 418 return atomic64_cmpxchg_acquire(v, old, new); in atomic_long_cmpxchg_acquire() 422 atomic_long_cmpxchg_release(atomic_long_t *v, long old, long new) in atomic_long_cmpxchg_release() argument 424 return atomic64_cmpxchg_release(v, old, new); in atomic_long_cmpxchg_release() 428 atomic_long_cmpxchg_relaxed(atomic_long_t *v, long old, long new) in atomic_long_cmpxchg_relaxed() argument 430 return atomic64_cmpxchg_relaxed(v, old, new); in atomic_long_cmpxchg_relaxed() 434 atomic_long_try_cmpxchg(atomic_long_t *v, long *old, long new) in atomic_long_try_cmpxchg() argument 436 return atomic64_try_cmpxchg(v, (s64 *)old, new); in atomic_long_try_cmpxchg() [all …]
|
D | atomic-instrumented.h | 651 atomic_cmpxchg(atomic_t *v, int old, int new) in atomic_cmpxchg() argument 654 return arch_atomic_cmpxchg(v, old, new); in atomic_cmpxchg() 661 atomic_cmpxchg_acquire(atomic_t *v, int old, int new) in atomic_cmpxchg_acquire() argument 664 return arch_atomic_cmpxchg_acquire(v, old, new); in atomic_cmpxchg_acquire() 671 atomic_cmpxchg_release(atomic_t *v, int old, int new) in atomic_cmpxchg_release() argument 674 return arch_atomic_cmpxchg_release(v, old, new); in atomic_cmpxchg_release() 681 atomic_cmpxchg_relaxed(atomic_t *v, int old, int new) in atomic_cmpxchg_relaxed() argument 684 return arch_atomic_cmpxchg_relaxed(v, old, new); in atomic_cmpxchg_relaxed() 691 atomic_try_cmpxchg(atomic_t *v, int *old, int new) in atomic_try_cmpxchg() argument 694 kasan_check_write(old, sizeof(*old)); in atomic_try_cmpxchg() [all …]
|
/include/trace/events/ |
D | filemap.h | 83 TP_PROTO(struct file *file, errseq_t old), 85 TP_ARGS(file, old), 91 __field(errseq_t, old) 104 __entry->old = old; 110 MINOR(__entry->s_dev), __entry->i_ino, __entry->old,
|
D | kvm.h | 373 unsigned int old), 374 TP_ARGS(grow, vcpu_id, new, old), 380 __field(unsigned int, old) 387 __entry->old = old; 394 __entry->old) 397 #define trace_kvm_halt_poll_ns_grow(vcpu_id, new, old) \ argument 398 trace_kvm_halt_poll_ns(true, vcpu_id, new, old) 399 #define trace_kvm_halt_poll_ns_shrink(vcpu_id, new, old) \ argument 400 trace_kvm_halt_poll_ns(false, vcpu_id, new, old)
|
/include/net/sctp/ |
D | checksum.h | 55 __le32 old = sh->checksum; in sctp_compute_cksum() local 61 sh->checksum = old; in sctp_compute_cksum()
|
/include/media/ |
D | v4l2-event.h | 49 void (*replace)(struct v4l2_event *old, const struct v4l2_event *new); 50 void (*merge)(const struct v4l2_event *old, struct v4l2_event *new);
|
/include/net/ |
D | netevent.h | 19 struct dst_entry *old; member
|
D | checksum.h | 138 static __always_inline void csum_replace2(__sum16 *sum, __be16 old, __be16 new) in csum_replace2() argument 140 *sum = ~csum16_add(csum16_sub(~(*sum), old), new); in csum_replace2() 143 static inline void csum_replace(__wsum *csum, __wsum old, __wsum new) in csum_replace() argument 145 *csum = csum_add(csum_sub(*csum, old), new); in csum_replace()
|
/include/uapi/linux/ |
D | virtio_ring.h | 188 static inline int vring_need_event(__u16 event_idx, __u16 new_idx, __u16 old) in vring_need_event() argument 195 return (__u16)(new_idx - event_idx - 1) < (__u16)(new_idx - old); in vring_need_event()
|
/include/media/i2c/ |
D | ir-kbd-i2c.h | 17 unsigned char old; member
|