/arch/s390/include/asm/ |
D | rwsem.h | 123 signed long old, new; in __down_read() local 139 : "=&d" (old), "=&d" (new), "=m" (sem->count) in __down_read() 151 signed long old, new; in __down_read_trylock() local 171 : "=&d" (old), "=&d" (new), "=m" (sem->count) in __down_read_trylock() 182 signed long old, new, tmp; in __down_write_nested() local 199 : "=&d" (old), "=&d" (new), "=m" (sem->count) in __down_write_nested() 244 signed long old, new; in __up_read() local 260 : "=&d" (old), "=&d" (new), "=m" (sem->count) in __up_read() 264 if (new < 0) in __up_read() 265 if ((new & RWSEM_ACTIVE_MASK) == 0) in __up_read() [all …]
|
/arch/powerpc/boot/dtc-src/ |
D | livetree.c | 29 struct property *new = xmalloc(sizeof(*new)); in build_property() local 31 new->name = name; in build_property() 32 new->val = val; in build_property() 34 new->next = NULL; in build_property() 36 new->label = label; in build_property() 38 return new; in build_property() 66 struct node *new = xmalloc(sizeof(*new)); in build_node() local 69 memset(new, 0, sizeof(*new)); in build_node() 71 new->proplist = reverse_properties(proplist); in build_node() 72 new->children = children; in build_node() [all …]
|
/arch/avr32/include/asm/ |
D | system.h | 101 unsigned long new) in __cmpxchg_u32() argument 114 : "m"(m), [old] "ir"(old), [new] "r"(new) in __cmpxchg_u32() 120 volatile int * m, unsigned long old, unsigned long new); 130 unsigned long new, int size) in __cmpxchg() argument 134 return __cmpxchg_u32(ptr, old, new); in __cmpxchg() 136 return __cmpxchg_u64(ptr, old, new); in __cmpxchg() 143 #define cmpxchg(ptr, old, new) \ argument 145 (unsigned long)(new), \ 152 unsigned long new, int size) in __cmpxchg_local() argument 156 return __cmpxchg_u32(ptr, old, new); in __cmpxchg_local() [all …]
|
/arch/x86/include/asm/ |
D | cmpxchg_64.h | 64 unsigned long new, int size) in __cmpxchg() argument 71 : "q"(new), "m"(*__xg(ptr)), "0"(old) in __cmpxchg() 77 : "r"(new), "m"(*__xg(ptr)), "0"(old) in __cmpxchg() 83 : "r"(new), "m"(*__xg(ptr)), "0"(old) in __cmpxchg() 89 : "r"(new), "m"(*__xg(ptr)), "0"(old) in __cmpxchg() 103 unsigned long new, int size) in __sync_cmpxchg() argument 110 : "q"(new), "m"(*__xg(ptr)), "0"(old) in __sync_cmpxchg() 116 : "r"(new), "m"(*__xg(ptr)), "0"(old) in __sync_cmpxchg() 122 : "r"(new), "m"(*__xg(ptr)), "0"(old) in __sync_cmpxchg() 131 unsigned long new, int size) in __cmpxchg_local() argument [all …]
|
D | cmpxchg_32.h | 137 unsigned long new, int size) in __cmpxchg() argument 144 : "q"(new), "m"(*__xg(ptr)), "0"(old) in __cmpxchg() 150 : "r"(new), "m"(*__xg(ptr)), "0"(old) in __cmpxchg() 156 : "r"(new), "m"(*__xg(ptr)), "0"(old) in __cmpxchg() 170 unsigned long new, int size) in __sync_cmpxchg() argument 177 : "q"(new), "m"(*__xg(ptr)), "0"(old) in __sync_cmpxchg() 183 : "r"(new), "m"(*__xg(ptr)), "0"(old) in __sync_cmpxchg() 189 : "r"(new), "m"(*__xg(ptr)), "0"(old) in __sync_cmpxchg() 198 unsigned long new, int size) in __cmpxchg_local() argument 205 : "q"(new), "m"(*__xg(ptr)), "0"(old) in __cmpxchg_local() [all …]
|
/arch/ia64/include/asm/ |
D | atomic.h | 33 __s32 old, new; in ia64_atomic_add() local 39 new = old + i; in ia64_atomic_add() 40 } while (ia64_cmpxchg(acq, v, old, new, sizeof(atomic_t)) != old); in ia64_atomic_add() 41 return new; in ia64_atomic_add() 47 __s64 old, new; in ia64_atomic64_add() local 53 new = old + i; in ia64_atomic64_add() 54 } while (ia64_cmpxchg(acq, v, old, new, sizeof(atomic64_t)) != old); in ia64_atomic64_add() 55 return new; in ia64_atomic64_add() 61 __s32 old, new; in ia64_atomic_sub() local 67 new = old - i; in ia64_atomic_sub() [all …]
|
D | bitops.h | 40 __u32 bit, old, new; in set_bit() local 49 new = old | bit; in set_bit() 50 } while (cmpxchg_acq(m, old, new) != old); in set_bit() 87 __u32 mask, old, new; in clear_bit() local 96 new = old & mask; in clear_bit() 97 } while (cmpxchg_acq(m, old, new) != old); in clear_bit() 111 __u32 mask, old, new; in clear_bit_unlock() local 120 new = old & mask; in clear_bit_unlock() 121 } while (cmpxchg_rel(m, old, new) != old); in clear_bit_unlock() 136 __u32 const new = *m & ~(1 << (nr & 31)); in __clear_bit_unlock() local [all …]
|
D | rwsem.h | 87 long old, new; in __down_write() local 91 new = old + RWSEM_ACTIVE_WRITE_BIAS; in __down_write() 92 } while (cmpxchg_acq(&sem->count, old, new) != old); in __down_write() 116 long old, new; in __up_write() local 120 new = old - RWSEM_ACTIVE_WRITE_BIAS; in __up_write() 121 } while (cmpxchg_rel(&sem->count, old, new) != old); in __up_write() 123 if (new < 0 && (new & RWSEM_ACTIVE_MASK) == 0) in __up_write() 159 long old, new; in __downgrade_write() local 163 new = old - RWSEM_WAITING_BIAS; in __downgrade_write() 164 } while (cmpxchg_rel(&sem->count, old, new) != old); in __downgrade_write()
|
D | acpi.h | 65 unsigned int old, new, val; in ia64_acpi_acquire_global_lock() local 68 new = (((old & ~0x3) + 2) + ((old >> 1) & 0x1)); in ia64_acpi_acquire_global_lock() 69 val = ia64_cmpxchg4_acq(lock, new, old); in ia64_acpi_acquire_global_lock() 71 return (new < 3) ? -1 : 0; in ia64_acpi_acquire_global_lock() 77 unsigned int old, new, val; in ia64_acpi_release_global_lock() local 80 new = old & ~0x3; in ia64_acpi_release_global_lock() 81 val = ia64_cmpxchg4_acq(lock, new, old); in ia64_acpi_release_global_lock()
|
D | gcc_intrin.h | 309 #define ia64_cmpxchg1_acq(ptr, new, old) \ argument 314 "=r"(ia64_intri_res) : "r"(ptr), "r"(new) : "memory"); \ 318 #define ia64_cmpxchg1_rel(ptr, new, old) \ argument 323 "=r"(ia64_intri_res) : "r"(ptr), "r"(new) : "memory"); \ 327 #define ia64_cmpxchg2_acq(ptr, new, old) \ argument 332 "=r"(ia64_intri_res) : "r"(ptr), "r"(new) : "memory"); \ 336 #define ia64_cmpxchg2_rel(ptr, new, old) \ argument 342 "=r"(ia64_intri_res) : "r"(ptr), "r"(new) : "memory"); \ 346 #define ia64_cmpxchg4_acq(ptr, new, old) \ argument 351 "=r"(ia64_intri_res) : "r"(ptr), "r"(new) : "memory"); \ [all …]
|
/arch/mips/include/asm/ |
D | cmpxchg.h | 15 #define __cmpxchg_asm(ld, st, m, old, new) \ argument 34 : "R" (*m), "Jr" (old), "Jr" (new) \ 54 : "R" (*m), "Jr" (old), "Jr" (new) \ 62 *m = new; \ 75 #define __cmpxchg(ptr, old, new, barrier) \ argument 79 __typeof__(*(ptr)) __new = (new); \ 104 #define cmpxchg(ptr, old, new) __cmpxchg(ptr, old, new, smp_llsc_mb()) argument 105 #define cmpxchg_local(ptr, old, new) __cmpxchg(ptr, old, new, ) argument
|
/arch/sh/kernel/ |
D | ftrace.c | 96 unsigned char old[MCOUNT_INSN_SIZE], *new; in ftrace_update_ftrace_func() local 99 new = ftrace_call_replace(ip, (unsigned long)func); in ftrace_update_ftrace_func() 101 return ftrace_modify_code(ip + MCOUNT_INSN_OFFSET, old, new); in ftrace_update_ftrace_func() 107 unsigned char *new, *old; in ftrace_make_nop() local 111 new = ftrace_nop_replace(); in ftrace_make_nop() 113 return ftrace_modify_code(rec->ip, old, new); in ftrace_make_nop() 118 unsigned char *new, *old; in ftrace_make_call() local 122 new = ftrace_call_replace(ip, addr); in ftrace_make_call() 124 return ftrace_modify_code(rec->ip, old, new); in ftrace_make_call()
|
/arch/x86/kernel/cpu/ |
D | cmpxchg.c | 10 unsigned long cmpxchg_386_u8(volatile void *ptr, u8 old, u8 new) in cmpxchg_386_u8() argument 19 *(u8 *)ptr = new; in cmpxchg_386_u8() 25 unsigned long cmpxchg_386_u16(volatile void *ptr, u16 old, u16 new) in cmpxchg_386_u16() argument 34 *(u16 *)ptr = new; in cmpxchg_386_u16() 40 unsigned long cmpxchg_386_u32(volatile void *ptr, u32 old, u32 new) in cmpxchg_386_u32() argument 49 *(u32 *)ptr = new; in cmpxchg_386_u32() 57 unsigned long long cmpxchg_486_u64(volatile void *ptr, u64 old, u64 new) in cmpxchg_486_u64() argument 66 *(u64 *)ptr = new; in cmpxchg_486_u64()
|
/arch/sparc/kernel/ |
D | ftrace.c | 33 u32 new = *(u32 *)new_code; in ftrace_modify_code() local 53 : [new] "0" (new), [old] "r" (old), [ip] "r" (ip) in ftrace_modify_code() 56 if (replaced != old && replaced != new) in ftrace_modify_code() 65 unsigned char old[MCOUNT_INSN_SIZE], *new; in ftrace_update_ftrace_func() local 68 new = ftrace_call_replace(ip, (unsigned long)func); in ftrace_update_ftrace_func() 69 return ftrace_modify_code(ip, old, new); in ftrace_update_ftrace_func()
|
/arch/alpha/include/asm/ |
D | system.h | 556 __cmpxchg_u8(volatile char *m, long old, long new) in __cmpxchg_u8() argument 578 : "=&r" (prev), "=&r" (new), "=&r" (tmp), "=&r" (cmp), "=&r" (addr64) in __cmpxchg_u8() 579 : "r" ((long)m), "Ir" (old), "1" (new) : "memory"); in __cmpxchg_u8() 585 __cmpxchg_u16(volatile short *m, long old, long new) in __cmpxchg_u16() argument 607 : "=&r" (prev), "=&r" (new), "=&r" (tmp), "=&r" (cmp), "=&r" (addr64) in __cmpxchg_u16() 608 : "r" ((long)m), "Ir" (old), "1" (new) : "memory"); in __cmpxchg_u16() 614 __cmpxchg_u32(volatile int *m, int old, int new) in __cmpxchg_u32() argument 633 : "r"((long) old), "r"(new), "m"(*m) : "memory"); in __cmpxchg_u32() 639 __cmpxchg_u64(volatile long *m, unsigned long old, unsigned long new) in __cmpxchg_u64() argument 658 : "r"((long) old), "r"(new), "m"(*m) : "memory"); in __cmpxchg_u64() [all …]
|
/arch/sparc/include/asm/ |
D | system_64.h | 261 __cmpxchg_u32(volatile int *m, int old, int new) in __cmpxchg_u32() argument 264 : "=&r" (new) in __cmpxchg_u32() 265 : "0" (new), "r" (m), "r" (old) in __cmpxchg_u32() 268 return new; in __cmpxchg_u32() 272 __cmpxchg_u64(volatile long *m, unsigned long old, unsigned long new) in __cmpxchg_u64() argument 275 : "=&r" (new) in __cmpxchg_u64() 276 : "0" (new), "r" (m), "r" (old) in __cmpxchg_u64() 279 return new; in __cmpxchg_u64() 287 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, int size) in __cmpxchg() argument 291 return __cmpxchg_u32(ptr, old, new); in __cmpxchg() [all …]
|
/arch/um/sys-i386/ |
D | bugs.c | 26 struct sigaction old, new; in arch_check_bugs() local 29 new.sa_handler = cmov_sigill_test_handler; in arch_check_bugs() 32 new.sa_flags = SA_NODEFER; in arch_check_bugs() 33 sigemptyset(&new.sa_mask); in arch_check_bugs() 34 sigaction(SIGILL, &new, &old); in arch_check_bugs() 43 sigaction(SIGILL, &old, &new); in arch_check_bugs()
|
/arch/um/drivers/ |
D | xterm.c | 90 int pid, fd, new, err; in xterm_open() local 153 new = xterm_fd(fd, &data->helper_pid); in xterm_open() 154 if (new < 0) { in xterm_open() 155 err = new; in xterm_open() 161 err = os_set_fd_block(new, 0); in xterm_open() 168 CATCH_EINTR(err = tcgetattr(new, &data->tt)); in xterm_open() 170 new = err; in xterm_open() 175 err = raw(new); in xterm_open() 177 new = err; in xterm_open() 186 return new; in xterm_open() [all …]
|
/arch/s390/kernel/ |
D | irq.c | 66 unsigned long flags, old, new; in do_softirq() local 77 new = S390_lowcore.async_stack; in do_softirq() 78 if (((new - old) >> (PAGE_SHIFT + THREAD_ORDER)) != 0) { in do_softirq() 80 new -= STACK_FRAME_OVERHEAD; in do_softirq() 81 ((struct stack_frame *) new)->back_chain = old; in do_softirq() 86 : : "a" (new), "a" (old), in do_softirq()
|
/arch/arm/kernel/ |
D | ftrace.c | 52 unsigned long err = 0, replaced = 0, old, new; in ftrace_modify_code() local 55 new = *(unsigned long *)new_code; in ftrace_modify_code() 76 : "r"(pc), "r"(new), "r"(old), "0"(err), "1"(replaced) in ftrace_modify_code() 89 unsigned char *new; in ftrace_update_ftrace_func() local 93 new = ftrace_call_replace(pc, (unsigned long)func); in ftrace_update_ftrace_func() 94 ret = ftrace_modify_code(pc, (unsigned char *)&old, new); in ftrace_update_ftrace_func()
|
/arch/avr32/kernel/ |
D | setup.c | 81 struct resource *new; in resource_init() local 86 new = alloc_bootmem_low(sizeof(struct resource)); in resource_init() 87 memcpy(new, mem, sizeof(struct resource)); in resource_init() 89 new->sibling = NULL; in resource_init() 90 if (request_resource(&iomem_resource, new)) in resource_init() 96 new = alloc_bootmem_low(sizeof(struct resource)); in resource_init() 97 memcpy(new, res, sizeof(struct resource)); in resource_init() 99 new->sibling = NULL; in resource_init() 100 if (insert_resource(&iomem_resource, new)) in resource_init() 110 struct resource *new, *next, **pprev; in add_physical_memory() local [all …]
|
/arch/powerpc/kernel/ |
D | proc_ppc64.c | 83 loff_t new; in page_map_seek() local 88 new = off; in page_map_seek() 91 new = file->f_pos + off; in page_map_seek() 94 new = dp->size + off; in page_map_seek() 99 if ( new < 0 || new > dp->size ) in page_map_seek() 101 return (file->f_pos = new); in page_map_seek()
|
/arch/frv/mb93090-mb00/ |
D | pci-dma-nommu.c | 38 struct dma_alloc_record *new; in dma_alloc_coherent() local 49 new = kmalloc(sizeof (*new), GFP_ATOMIC); in dma_alloc_coherent() 50 if (!new) in dma_alloc_coherent() 54 new->len = (size + 31) & ~31; in dma_alloc_coherent() 73 new->ofs = start; in dma_alloc_coherent() 74 list_add_tail(&new->list, this); in dma_alloc_coherent() 81 kfree(new); in dma_alloc_coherent()
|
/arch/alpha/kernel/ |
D | err_common.c | 279 cdl_register_subpacket_annotation(struct el_subpacket_annotation *new) in cdl_register_subpacket_annotation() argument 283 if (a == NULL) subpacket_annotation_list = new; in cdl_register_subpacket_annotation() 286 if ((a->class == new->class && a->type == new->type) || in cdl_register_subpacket_annotation() 287 a == new) { in cdl_register_subpacket_annotation() 293 a->next = new; in cdl_register_subpacket_annotation() 295 new->next = NULL; in cdl_register_subpacket_annotation() 301 cdl_register_subpacket_handler(struct el_subpacket_handler *new) in cdl_register_subpacket_handler() argument 305 if (h == NULL) subpacket_handler_list = new; in cdl_register_subpacket_handler() 308 if (h->class == new->class || h == new) { in cdl_register_subpacket_handler() 314 h->next = new; in cdl_register_subpacket_handler() [all …]
|
/arch/sh/drivers/ |
D | heartbeat.c | 37 unsigned int new; in heartbeat_toggle_bit() local 39 new = (1 << hd->bit_pos[bit]); in heartbeat_toggle_bit() 41 new = ~new; in heartbeat_toggle_bit() 45 iowrite32(new, hd->base); in heartbeat_toggle_bit() 48 iowrite16(new, hd->base); in heartbeat_toggle_bit() 51 iowrite8(new, hd->base); in heartbeat_toggle_bit()
|