| /linux/fs/nfsd/ |
| H A D | auth.c | 26 struct cred *new; in nfsd_setuser() local 30 /* discard any old override before preparing the new set */ in nfsd_setuser() 32 new = prepare_creds(); in nfsd_setuser() 33 if (!new) in nfsd_setuser() 36 new->fsuid = cred->cr_uid; in nfsd_setuser() 37 new->fsgid = cred->cr_gid; in nfsd_setuser() 42 new->fsuid = exp->ex_anon_uid; in nfsd_setuser() 43 new->fsgid = exp->ex_anon_gid; in nfsd_setuser() 48 if (uid_eq(new->fsuid, GLOBAL_ROOT_UID)) in nfsd_setuser() 49 new->fsuid = exp->ex_anon_uid; in nfsd_setuser() [all …]
|
| /linux/arch/x86/include/asm/ |
| H A D | cmpxchg.h | 82 * store NEW in MEM. Return the initial value in MEM. Success is 85 #define __raw_cmpxchg(ptr, old, new, size, lock) \ argument 89 __typeof__(*(ptr)) __new = (new); \ 133 #define __cmpxchg(ptr, old, new, size) \ argument 134 __raw_cmpxchg((ptr), (old), (new), (size), LOCK_PREFIX) 136 #define __sync_cmpxchg(ptr, old, new, size) \ argument 137 __raw_cmpxchg((ptr), (old), (new), (size), "lock ") 139 #define __cmpxchg_local(ptr, old, new, size) \ argument 140 __raw_cmpxchg((ptr), (old), (new), (size), "") 148 #define arch_cmpxchg(ptr, old, new) \ argument [all …]
|
| /linux/security/ipe/ |
| H A D | policy.c | 76 * ipe_update_policy() - parse a new policy and replace old with it. 96 struct ipe_policy *old, *ap, *new = NULL; in ipe_update_policy() local 103 new = ipe_new_policy(text, textlen, pkcs7, pkcs7len); in ipe_update_policy() 104 if (IS_ERR(new)) in ipe_update_policy() 105 return PTR_ERR(new); in ipe_update_policy() 107 if (strcmp(new->parsed->name, old->parsed->name)) { in ipe_update_policy() 112 if (ver_to_u64(old) >= ver_to_u64(new)) { in ipe_update_policy() 117 root->i_private = new; in ipe_update_policy() 118 swap(new->policyfs, old->policyfs); in ipe_update_policy() 119 ipe_audit_policy_load(new); in ipe_update_policy() 162 struct ipe_policy *new = NULL; ipe_new_policy() local [all...] |
| /linux/security/ |
| H A D | commoncap.c | 262 * @new: The proposed new credentials; alterations should be made here 264 * @effective: A pointer to the proposed new effective capabilities set 265 * @inheritable: A pointer to the proposed new inheritable capabilities set 266 * @permitted: A pointer to the proposed new permitted capabilities set 269 * process's capability sets. The changes are made to the proposed new 272 int cap_capset(struct cred *new, in cap_capset() argument 288 /* no new pI capabilities outside bounding set */ in cap_capset() 291 /* verify restrictions on target's new Permitted set */ in cap_capset() 299 new in cap_capset() 631 struct cred *new = bprm->cred; bprm_caps_from_vfs_caps() local 832 struct cred *new = bprm->cred; handle_privileged_root() local 886 nonroot_raised_pE(struct cred * new,const struct cred * old,kuid_t root,bool has_fcap) nonroot_raised_pE() argument 923 struct cred *new = bprm->cred; cap_bprm_creds_from_file() local 1120 cap_emulate_setxuid(struct cred * new,const struct cred * old) cap_emulate_setxuid() argument 1159 cap_task_fix_setuid(struct cred * new,const struct cred * old,int flags) cap_task_fix_setuid() argument 1272 struct cred *new; cap_prctl_drop() local 1305 struct cred *new; cap_task_prctl() local [all...] |
| /linux/fs/nfs/blocklayout/ |
| H A D | extent_tree.c | 138 struct pnfs_block_extent *new, bool merge_ok) in __ext_tree_insert() argument 147 if (new->be_f_offset < be->be_f_offset) { in __ext_tree_insert() 148 if (merge_ok && ext_can_merge(new, be)) { in __ext_tree_insert() 149 be->be_f_offset = new->be_f_offset; in __ext_tree_insert() 151 be->be_v_offset = new->be_v_offset; in __ext_tree_insert() 152 be->be_length += new->be_length; in __ext_tree_insert() 157 } else if (new->be_f_offset >= ext_f_end(be)) { in __ext_tree_insert() 158 if (merge_ok && ext_can_merge(be, new)) { in __ext_tree_insert() 159 be->be_length += new->be_length; in __ext_tree_insert() 169 rb_link_node(&new->be_node, parent, p); in __ext_tree_insert() [all …]
|
| /linux/security/keys/ |
| H A D | process_keys.c | 231 int install_thread_keyring_to_cred(struct cred *new) in install_thread_keyring_to_cred() 235 if (new->thread_keyring) in install_thread_keyring_to_cred() 238 keyring = keyring_alloc("_tid", new->uid, new->gid, new, 245 new->thread_keyring = keyring; in install_thread_keyring() 256 struct cred *new; in install_thread_keyring() 259 new = prepare_creds(); in install_thread_keyring() 260 if (!new) in install_thread_keyring() 263 ret = install_thread_keyring_to_cred(new); 221 install_thread_keyring_to_cred(struct cred * new) install_thread_keyring_to_cred() argument 246 struct cred *new; install_thread_keyring() local 268 install_process_keyring_to_cred(struct cred * new) install_process_keyring_to_cred() argument 293 struct cred *new; install_process_keyring() local 358 struct cred *new; install_session_keyring() local 840 struct cred *new; join_session_keyring() local 914 struct cred *new = container_of(twork, struct cred, rcu); key_change_session_keyring() local [all...] |
| /linux/arch/sparc/kernel/ |
| H A D | ftrace.c | 26 static int ftrace_modify_code(unsigned long ip, u32 old, u32 new) in ftrace_modify_code() argument 32 "1: cas [%[ip]], %[old], %[new]\n" in ftrace_modify_code() 47 : [new] "0" (new), [old] "r" (old), [ip] "r" (ip) in ftrace_modify_code() 50 if (replaced != old && replaced != new) in ftrace_modify_code() 59 u32 old, new; in ftrace_make_nop() local 62 new = ftrace_nop; in ftrace_make_nop() 63 return ftrace_modify_code(ip, old, new); in ftrace_make_nop() 69 u32 old, new; in ftrace_make_call() local 72 new = ftrace_call_replace(ip, addr); in ftrace_make_call() 73 return ftrace_modify_code(ip, old, new); in ftrace_make_call() [all …]
|
| /linux/rust/helpers/ |
| H A D | atomic.c | 375 rust_helper_atomic_xchg(atomic_t *v, int new) in rust_helper_atomic_fetch_xor_relaxed() 377 return atomic_xchg(v, new); in rust_helper_atomic_fetch_xor_relaxed() 381 rust_helper_atomic_xchg_acquire(atomic_t *v, int new) in rust_helper_atomic_xchg() 383 return atomic_xchg_acquire(v, new); in rust_helper_atomic_xchg() 387 rust_helper_atomic_xchg_release(atomic_t *v, int new) in rust_helper_atomic_xchg_acquire() 389 return atomic_xchg_release(v, new); in rust_helper_atomic_xchg_acquire() 393 rust_helper_atomic_xchg_relaxed(atomic_t *v, int new) in rust_helper_atomic_xchg_release() 395 return atomic_xchg_relaxed(v, new); in rust_helper_atomic_xchg_release() 399 rust_helper_atomic_cmpxchg(atomic_t *v, int old, int new) in rust_helper_atomic_xchg_relaxed() 401 return atomic_cmpxchg(v, old, new); in rust_helper_atomic_xchg_relaxed() 380 rust_helper_atomic_xchg(atomic_t * v,int new) rust_helper_atomic_xchg() argument 386 rust_helper_atomic_xchg_acquire(atomic_t * v,int new) rust_helper_atomic_xchg_acquire() argument 392 rust_helper_atomic_xchg_release(atomic_t * v,int new) rust_helper_atomic_xchg_release() argument 398 rust_helper_atomic_xchg_relaxed(atomic_t * v,int new) rust_helper_atomic_xchg_relaxed() argument 404 rust_helper_atomic_cmpxchg(atomic_t * v,int old,int new) rust_helper_atomic_cmpxchg() argument 410 rust_helper_atomic_cmpxchg_acquire(atomic_t * v,int old,int new) rust_helper_atomic_cmpxchg_acquire() argument 416 rust_helper_atomic_cmpxchg_release(atomic_t * v,int old,int new) rust_helper_atomic_cmpxchg_release() argument 422 rust_helper_atomic_cmpxchg_relaxed(atomic_t * v,int old,int new) rust_helper_atomic_cmpxchg_relaxed() argument 428 rust_helper_atomic_try_cmpxchg(atomic_t * v,int * old,int new) rust_helper_atomic_try_cmpxchg() argument 434 rust_helper_atomic_try_cmpxchg_acquire(atomic_t * v,int * old,int new) rust_helper_atomic_try_cmpxchg_acquire() argument 440 rust_helper_atomic_try_cmpxchg_release(atomic_t * v,int * old,int new) rust_helper_atomic_try_cmpxchg_release() argument 446 rust_helper_atomic_try_cmpxchg_relaxed(atomic_t * v,int * old,int new) rust_helper_atomic_try_cmpxchg_relaxed() argument 890 rust_helper_atomic64_xchg(atomic64_t * v,s64 new) rust_helper_atomic64_xchg() argument 896 rust_helper_atomic64_xchg_acquire(atomic64_t * v,s64 new) rust_helper_atomic64_xchg_acquire() argument 902 rust_helper_atomic64_xchg_release(atomic64_t * v,s64 new) rust_helper_atomic64_xchg_release() argument 908 rust_helper_atomic64_xchg_relaxed(atomic64_t * v,s64 new) rust_helper_atomic64_xchg_relaxed() argument 914 rust_helper_atomic64_cmpxchg(atomic64_t * v,s64 old,s64 new) rust_helper_atomic64_cmpxchg() argument 920 rust_helper_atomic64_cmpxchg_acquire(atomic64_t * v,s64 old,s64 new) rust_helper_atomic64_cmpxchg_acquire() argument 926 rust_helper_atomic64_cmpxchg_release(atomic64_t * v,s64 old,s64 new) rust_helper_atomic64_cmpxchg_release() argument 932 rust_helper_atomic64_cmpxchg_relaxed(atomic64_t * v,s64 old,s64 new) rust_helper_atomic64_cmpxchg_relaxed() argument 938 rust_helper_atomic64_try_cmpxchg(atomic64_t * v,s64 * old,s64 new) rust_helper_atomic64_try_cmpxchg() argument 944 rust_helper_atomic64_try_cmpxchg_acquire(atomic64_t * v,s64 * old,s64 new) rust_helper_atomic64_try_cmpxchg_acquire() argument 950 rust_helper_atomic64_try_cmpxchg_release(atomic64_t * v,s64 * old,s64 new) rust_helper_atomic64_try_cmpxchg_release() argument 956 rust_helper_atomic64_try_cmpxchg_relaxed(atomic64_t * v,s64 * old,s64 new) rust_helper_atomic64_try_cmpxchg_relaxed() argument [all...] |
| /linux/drivers/mtd/ |
| H A D | mtd_blkdevs.c | 281 int add_mtd_blktrans_dev(struct mtd_blktrans_dev *new) in add_mtd_blktrans_dev() 283 struct mtd_blktrans_ops *tr = new->tr; in add_mtd_blktrans_dev() 293 if (new->devnum == -1) { in add_mtd_blktrans_dev() 297 new->devnum = last_devnum+1; in add_mtd_blktrans_dev() 298 list_add_tail(&new->list, &d->list); in add_mtd_blktrans_dev() 301 } else if (d->devnum == new->devnum) { in add_mtd_blktrans_dev() 304 } else if (d->devnum > new->devnum) { in add_mtd_blktrans_dev() 306 list_add_tail(&new->list, &d->list); in add_mtd_blktrans_dev() 313 if (new->devnum == -1) in add_mtd_blktrans_dev() 314 new in add_mtd_blktrans_dev() 276 add_mtd_blktrans_dev(struct mtd_blktrans_dev * new) add_mtd_blktrans_dev() argument [all...] |
| /linux/arch/powerpc/include/asm/ |
| H A D | cmpxchg.h | 42 u32 __cmpxchg_##type##sfx(volatile void *p, u32 old, u32 new) \ 50 new <<= bitoff; \ 67 : "r" (p), "r" (old), "r" (new), "r" (prev_mask) \ 269 * Compare and exchange - if *p == old, set it to new, 283 __cmpxchg_u8(volatile unsigned char *p, unsigned long old, unsigned long new) in __cmpxchg_u8() argument 298 : "r" (p), "r" (old), "r" (new) in __cmpxchg_u8() 306 unsigned long new) in __cmpxchg_u8_local() argument 318 : "r" (p), "r" (old), "r" (new) in __cmpxchg_u8_local() 325 __cmpxchg_u8_relaxed(u8 *p, unsigned long old, unsigned long new) in __cmpxchg_u8_relaxed() argument 337 : "r" (p), "r" (old), "r" (new) in __cmpxchg_u8_relaxed() [all …]
|
| /linux/fs/ |
| H A D | signalfd.c | 86 struct signalfd_siginfo new; in signalfd_copyinfo() 93 memset(&new, 0, sizeof(new)); in signalfd_copyinfo() 99 new.ssi_signo = kinfo->si_signo; in signalfd_copyinfo() 100 new.ssi_errno = kinfo->si_errno; in signalfd_copyinfo() 101 new.ssi_code = kinfo->si_code; in signalfd_copyinfo() 104 new.ssi_pid = kinfo->si_pid; in signalfd_copyinfo() 105 new.ssi_uid = kinfo->si_uid; in signalfd_copyinfo() 108 new.ssi_tid = kinfo->si_tid; in signalfd_copyinfo() 109 new in signalfd_copyinfo() 73 struct signalfd_siginfo new; signalfd_copyinfo() local [all...] |
| H A D | anon_inodes.c | 109 * Return: Pointer to new inode on success, ERR_PTR on failure. 183 * anon_inode_getfile - creates a new file instance by hooking it up to an 187 * @name: [in] name of the "class" of the new file 188 * @fops: [in] file operations for the new file 189 * @priv: [in] private data for the new file (will be file's private_data) 192 * Creates a new file by hooking it on a single inode. This is useful for files 207 * anon_inode_getfile_fmode - creates a new file instance by hooking it up to an 211 * @name: [in] name of the "class" of the new file 212 * @fops: [in] file operations for the new file 213 * @priv: [in] private data for the new file (will be file's private_data) [all …]
|
| /linux/security/apparmor/ |
| H A D | label.c | 63 struct aa_proxy *new; in aa_alloc_proxy() local 65 new = kzalloc_obj(struct aa_proxy, gfp); in aa_alloc_proxy() 66 if (new) { in aa_alloc_proxy() 67 kref_init(&new->count.count); in aa_alloc_proxy() 68 new->count.reftype = REF_PROXY; in aa_alloc_proxy() 69 rcu_assign_pointer(new->label, aa_get_label(label)); in aa_alloc_proxy() 71 return new; in aa_alloc_proxy() 75 void __aa_proxy_redirect(struct aa_label *orig, struct aa_label *new) in __aa_proxy_redirect() argument 80 AA_BUG(!new); in __aa_proxy_redirect() 85 rcu_assign_pointer(orig->proxy->label, aa_get_label(new)); in __aa_proxy_redirect() 90 __proxy_share(struct aa_label * old,struct aa_label * new) __proxy_share() argument 204 accum_label_info(struct aa_label * new) accum_label_info() argument 400 label_free_or_put_new(struct aa_label * label,struct aa_label * new) label_free_or_put_new() argument 437 struct aa_label *new; aa_label_alloc() local 605 __label_remove(struct aa_label * label,struct aa_label * new) __label_remove() argument 641 __label_replace(struct aa_label * old,struct aa_label * new) __label_replace() argument 681 struct rb_node **new, *parent = NULL; __label_insert() local 850 aa_label_replace(struct aa_label * old,struct aa_label * new) aa_label_replace() argument 911 struct aa_label *new; vec_create_and_insert_label() local 1082 label_merge_insert(struct aa_label * new,struct aa_label * a,struct aa_label * b) label_merge_insert() argument 1267 struct aa_label *new; aa_label_merge() local 2060 struct aa_label *new, *tmp; __label_update() local [all...] |
| H A D | domain.c | 46 * to trace the new domain 466 * The new match isn't more specific in find_attach() 544 struct aa_profile *new = aa_find_child(profile, lookup); in x_table_lookup() local 546 if (new) in x_table_lookup() 548 return &new->label; in x_table_lookup() 580 struct aa_label *new = NULL; in x_to_label() local 597 new = x_table_lookup(profile, xindex, lookupname); in x_to_label() 598 if (!new || **lookupname != '&') in x_to_label() 600 stack = new; in x_to_label() 601 new = NULL; in x_to_label() [all …]
|
| /linux/scripts/include/ |
| H A D | list.h | 58 * Insert a new entry between two known consecutive entries. 63 static inline void __list_add(struct list_head *new, in __list_add() argument 67 next->prev = new; in __list_add() 68 new->next = next; in __list_add() 69 new->prev = prev; in __list_add() 70 prev->next = new; in __list_add() 74 * list_add - add a new entry 75 * @new: new entry to be added 78 * Insert a new entry after the specified head. 81 static inline void list_add(struct list_head *new, struct list_head *head) in list_add() argument [all …]
|
| /linux/scripts/kconfig/tests/transitional/ |
| H A D | Kconfig | 12 bool "New bool option" 20 tristate "New tristate option" 28 string "New string option" 36 hex "New hex option" 44 int "New int option" 53 bool "New bool option with precedence" 61 string "New string option with precedence" 69 tristate "New tristate option with precedence" 77 hex "New hex option with precedence" 85 int "New int option with precedence" [all …]
|
| /linux/rust/kernel/irq/ |
| H A D | flags.rs | 31 pub const TRIGGER_NONE: Flags = Flags::new(bindings::IRQF_TRIGGER_NONE); 34 pub const TRIGGER_RISING: Flags = Flags::new(bindings::IRQF_TRIGGER_RISING); 37 pub const TRIGGER_FALLING: Flags = Flags::new(bindings::IRQF_TRIGGER_FALLING); 40 pub const TRIGGER_HIGH: Flags = Flags::new(bindings::IRQF_TRIGGER_HIGH); 43 pub const TRIGGER_LOW: Flags = Flags::new(bindings::IRQF_TRIGGER_LOW); 46 pub const SHARED: Flags = Flags::new(bindings::IRQF_SHARED); 49 pub const PROBE_SHARED: Flags = Flags::new(bindings::IRQF_PROBE_SHARED); 52 pub const TIMER: Flags = Flags::new(bindings::IRQF_TIMER); 55 pub const PERCPU: Flags = Flags::new(bindings::IRQF_PERCPU); 58 pub const NOBALANCING: Flags = Flags::new(bindings::IRQF_NOBALANCING); [all …]
|
| /linux/arch/s390/lib/ |
| H A D | uaccess.c | 40 unsigned int old, unsigned int new, in __cmpxchg_key_small() argument 54 " or %[new],%[prev]\n" in __cmpxchg_key_small() 57 "2: cs %[prev],%[new],%[address]\n" in __cmpxchg_key_small() 60 " xr %[new],%[tmp]\n" in __cmpxchg_key_small() 73 [new] "+&d" (new), in __cmpxchg_key_small() 87 unsigned char new, unsigned long key) in __cmpxchg_key1() argument 96 _new = (unsigned int)new << shift; in __cmpxchg_key1() 105 unsigned short new, unsigned long key) in __cmpxchg_key2() argument 114 _new = (unsigned int)new << shift; in __cmpxchg_key2() 123 unsigned int new, unsigned long key) in __cmpxchg_key4() argument [all …]
|
| /linux/lib/ |
| H A D | errseq.c | 19 * can later be used to tell whether any new errors have occurred since that 22 * Note that there is a risk of collisions if new errors are being recorded 26 * been sampled since a new value was recorded. That allows us to avoid bumping 30 * A new errseq_t should always be zeroed out. A errseq_t value of all zeroes 80 errseq_t new; in errseq_set() local 82 /* Clear out error bits and set new error */ in errseq_set() 83 new = (old & ~(ERRNO_MASK | ERRSEQ_SEEN)) | -err; in errseq_set() 87 new += ERRSEQ_CTR_INC; in errseq_set() 90 if (new == old) { in errseq_set() 91 cur = new; in errseq_set() 179 errseq_t old, new; errseq_check_and_advance() local [all...] |
| /linux/arch/s390/include/asm/ |
| H A D | futex.h | 17 int rc, new; \ 25 "2: cs %[old],%[new],%[uaddr]\n" \ 32 [new] "=&d" (new), [uaddr] "+Q" (*uaddr) \ 41 FUTEX_OP_FUNC(set, "lr %[new],%[oparg]\n") 42 FUTEX_OP_FUNC(add, "lr %[new],%[old]\n ar %[new],%[oparg]\n") 43 FUTEX_OP_FUNC(or, "lr %[new],%[old]\n or %[new],%[oparg]\n") 44 FUTEX_OP_FUNC(and, "lr %[new],%[old]\n nr %[new],%[oparg]\n") 45 FUTEX_OP_FUNC(xor, "lr %[new],%[old]\n xr %[new],%[oparg]\n") 86 "0: cs %[old],%[new],%[uaddr]\n" in futex_atomic_cmpxchg_inatomic() 91 : [new] "d" (newval) in futex_atomic_cmpxchg_inatomic()
|
| /linux/net/smc/ |
| H A D | smc_cdc.h | 146 /* calculate cursor difference between old and new, where old <= new and 151 union smc_host_cursor *new) in smc_curs_diff() argument 153 if (old->wrap != new->wrap) in smc_curs_diff() 155 ((size - old->count) + new->count)); in smc_curs_diff() 157 return max_t(int, 0, (new->count - old->count)); in smc_curs_diff() 160 /* calculate cursor difference between old and new - returns negative 161 * value in case old > new 165 union smc_host_cursor *new) in smc_curs_comp() argument 167 if (old->wrap > new->wrap || in smc_curs_comp() 168 (old->wrap == new->wrap && old->count > new->count)) in smc_curs_comp() [all …]
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | setget_sockopt.c | 26 int new; member 39 { .opt = SO_SNDBUF, .new = 8123, .expected = 8123 * 2, }, 40 { .opt = SO_RCVBUF, .new = 8123, .expected = 8123 * 2, }, 42 { .opt = SO_PRIORITY, .new = 0xeb9f, .expected = 0xeb9f, }, 44 { .opt = SO_RCVLOWAT, .new = 8123, .expected = 8123, }, 45 { .opt = SO_MARK, .new = 0xeb9f, .expected = 0xeb9f, }, 46 { .opt = SO_MAX_PACING_RATE, .new = 0xeb9f, .expected = 0xeb9f, }, 53 { .opt = TCP_KEEPIDLE, .new = 123, .expected = 123, .restore = 321, }, 54 { .opt = TCP_KEEPINTVL, .new = 123, .expected = 123, .restore = 321, }, 55 { .opt = TCP_KEEPCNT, .new 100 int old, tmp, new, opt = t->opt; bpf_test_sockopt_flip() local 130 int old, tmp, new, expected, opt; bpf_test_sockopt_int() local [all...] |
| /linux/fs/jfs/ |
| H A D | resize.c | 39 * new LVSize: in LV blocks (required) 40 * new LogSize: in LV blocks (optional) 41 * new FSSize: in LV blocks (optional) 43 * new configuration: 44 * 1. set new LogSize as specified or default from new LVSize; 45 * 2. compute new FSCKSize from new LVSize; 46 * 3. set new FSSize as MIN(FSSize, LVSize-(LogSize+FSCKSize)) where 47 * assert(new FSSize >= old FSSize), 119 * validate new size, or, if not specified, determine new size in jfs_extendfs() 168 * compute new file system space; in jfs_extendfs() [all …]
|
| /linux/crypto/asymmetric_keys/ |
| H A D | restrict.c | 60 * @payload: The payload of the new key. 61 * @trust_keyring: A ring of keys that can be used to vouch for the new cert. 63 * Check the new certificate against the ones in the trust keyring. If one of 64 * those is the signing key and validates the new certificate, then mark the 65 * new certificate as being trusted. 67 * Returns 0 if the new certificate was accepted, -ENOKEY if we couldn't find a 122 * @payload: The payload of the new key. 125 * Check if the new certificate is a CA. If it is a CA, then mark the new 128 * Returns 0 if the new certificat [all...] |
| /linux/arch/sparc/include/asm/ |
| H A D | cmpxchg_64.h | 11 __cmpxchg_u32(volatile int *m, int old, int new) in __cmpxchg_u32() argument 14 : "=&r" (new) in __cmpxchg_u32() 15 : "0" (new), "r" (m), "r" (old) in __cmpxchg_u32() 18 return new; in __cmpxchg_u32() 107 * store NEW in MEM. Return the initial value in MEM. Success is 115 __cmpxchg_u64(volatile long *m, unsigned long old, unsigned long new) in __cmpxchg_u64() argument 118 : "=&r" (new) in __cmpxchg_u64() 119 : "0" (new), "r" (m), "r" (old) in __cmpxchg_u64() 122 return new; in __cmpxchg_u64() 131 __cmpxchg_u8(volatile unsigned char *m, unsigned char old, unsigned char new) in __cmpxchg_u8() argument [all …]
|