/arch/parisc/lib/ |
D | io.c | 18 void memcpy_toio(volatile void __iomem *dst, const void *src, int count) in memcpy_toio() argument 25 count--; in memcpy_toio() 27 while (count > 3) { in memcpy_toio() 31 count -= 4; in memcpy_toio() 34 while (count--) { in memcpy_toio() 53 void memcpy_fromio(void *dst, const volatile void __iomem *src, int count) in memcpy_fromio() argument 56 if ( (((unsigned long)dst ^ (unsigned long)src) & 1) || (count < 2) ) in memcpy_fromio() 59 if ( (((unsigned long)dst ^ (unsigned long)src) & 2) || (count < 4) ) in memcpy_fromio() 67 count--; in memcpy_fromio() 68 if (count < 2) goto bytecopy; in memcpy_fromio() [all …]
|
/arch/alpha/kernel/ |
D | io.c | 213 void ioread8_rep(void __iomem *port, void *dst, unsigned long count) in ioread8_rep() argument 216 if (!count) in ioread8_rep() 218 count--; in ioread8_rep() 223 while (count >= 4) { in ioread8_rep() 225 count -= 4; in ioread8_rep() 234 while (count) { in ioread8_rep() 235 --count; in ioread8_rep() 241 void insb(unsigned long port, void *dst, unsigned long count) in insb() argument 243 ioread8_rep(ioport_map(port, 1), dst, count); in insb() 256 void ioread16_rep(void __iomem *port, void *dst, unsigned long count) in ioread16_rep() argument [all …]
|
/arch/mips/include/asm/mach-generic/ |
D | ide.h | 60 unsigned int count) in __ide_insw() argument 63 insw(port, addr, count); in __ide_insw() 64 __ide_flush_dcache_range((unsigned long)addr, count * 2); in __ide_insw() 68 static inline void __ide_insl(unsigned long port, void *addr, unsigned int count) in __ide_insl() argument 71 insl(port, addr, count); in __ide_insl() 72 __ide_flush_dcache_range((unsigned long)addr, count * 4); in __ide_insl() 77 unsigned long count) in __ide_outsw() argument 80 outsw(port, addr, count); in __ide_outsw() 81 __ide_flush_dcache_range((unsigned long)addr, count * 2); in __ide_outsw() 86 unsigned long count) in __ide_outsl() argument [all …]
|
/arch/alpha/include/asm/ |
D | rwsem.h | 28 oldcount = sem->count; in __down_read() 29 sem->count += RWSEM_ACTIVE_READ_BIAS; in __down_read() 41 :"=&r" (oldcount), "=m" (sem->count), "=&r" (temp) in __down_read() 42 :"Ir" (RWSEM_ACTIVE_READ_BIAS), "m" (sem->count) : "memory"); in __down_read() 55 res = sem->count; in __down_read_trylock() 61 res = cmpxchg(&sem->count, old, new); in __down_read_trylock() 70 oldcount = sem->count; in __down_write() 71 sem->count += RWSEM_ACTIVE_WRITE_BIAS; in __down_write() 83 :"=&r" (oldcount), "=m" (sem->count), "=&r" (temp) in __down_write() 84 :"Ir" (RWSEM_ACTIVE_WRITE_BIAS), "m" (sem->count) : "memory"); in __down_write() [all …]
|
/arch/arm64/kernel/ |
D | io.c | 26 void __memcpy_fromio(void *to, const volatile void __iomem *from, size_t count) in __memcpy_fromio() argument 28 while (count && !IS_ALIGNED((unsigned long)from, 8)) { in __memcpy_fromio() 32 count--; in __memcpy_fromio() 35 while (count >= 8) { in __memcpy_fromio() 39 count -= 8; in __memcpy_fromio() 42 while (count) { in __memcpy_fromio() 46 count--; in __memcpy_fromio() 54 void __memcpy_toio(volatile void __iomem *to, const void *from, size_t count) in __memcpy_toio() argument 56 while (count && !IS_ALIGNED((unsigned long)to, 8)) { in __memcpy_toio() 60 count--; in __memcpy_toio() [all …]
|
/arch/sh/kernel/ |
D | io.c | 19 void memcpy_fromio(void *to, const volatile void __iomem *from, unsigned long count) in memcpy_fromio() argument 26 if ((count >= 0x20) && in memcpy_fromio() 53 : "=&r" (to), "=&r" (count), in memcpy_fromio() 56 : "7"(from), "0" (to), "1" (count) in memcpy_fromio() 62 for (; count > 3; count -= 4) { in memcpy_fromio() 69 for (; count > 0; count--) { in memcpy_fromio() 82 void memcpy_toio(volatile void __iomem *to, const void *from, unsigned long count) in memcpy_toio() argument 85 for ( ; count > 3; count -= 4) { in memcpy_toio() 92 for (; count > 0; count--) { in memcpy_toio() 106 void memset_io(volatile void __iomem *dst, int c, unsigned long count) in memset_io() argument [all …]
|
D | iomap.c | 80 static inline void mmio_insb(void __iomem *addr, u8 *dst, int count) in mmio_insb() argument 82 while (--count >= 0) { in mmio_insb() 89 static inline void mmio_insw(void __iomem *addr, u16 *dst, int count) in mmio_insw() argument 91 while (--count >= 0) { in mmio_insw() 98 static inline void mmio_insl(void __iomem *addr, u32 *dst, int count) in mmio_insl() argument 100 while (--count >= 0) { in mmio_insl() 107 static inline void mmio_outsb(void __iomem *addr, const u8 *src, int count) in mmio_outsb() argument 109 while (--count >= 0) { in mmio_outsb() 115 static inline void mmio_outsw(void __iomem *addr, const u16 *src, int count) in mmio_outsw() argument 117 while (--count >= 0) { in mmio_outsw() [all …]
|
/arch/hexagon/mm/ |
D | uaccess.c | 35 __kernel_size_t __clear_user_hexagon(void __user *dest, unsigned long count) in __clear_user_hexagon() argument 39 while (count > PAGE_SIZE) { in __clear_user_hexagon() 43 return count - (PAGE_SIZE - uncleared); in __clear_user_hexagon() 44 count -= PAGE_SIZE; in __clear_user_hexagon() 47 if (count) in __clear_user_hexagon() 48 count = __copy_to_user_hexagon(dest, &empty_zero_page, count); in __clear_user_hexagon() 50 return count; in __clear_user_hexagon() 53 unsigned long clear_user_hexagon(void __user *dest, unsigned long count) in clear_user_hexagon() argument 55 if (!access_ok(VERIFY_WRITE, dest, count)) in clear_user_hexagon() 56 return count; in clear_user_hexagon() [all …]
|
/arch/mn10300/include/asm/ |
D | io.h | 121 static inline void insb(unsigned long addr, void *buffer, int count) in insb() argument 123 if (count) { in insb() 128 } while (--count); in insb() 132 static inline void insw(unsigned long addr, void *buffer, int count) in insw() argument 134 if (count) { in insw() 139 } while (--count); in insw() 143 static inline void insl(unsigned long addr, void *buffer, int count) in insl() argument 145 if (count) { in insl() 150 } while (--count); in insl() 154 static inline void outsb(unsigned long addr, const void *buffer, int count) in outsb() argument [all …]
|
D | spinlock.h | 122 atomic_t *count = (atomic_t *)rw; in arch_read_lock() local 123 while (atomic_dec_return(count) < 0) in arch_read_lock() 124 atomic_inc(count); in arch_read_lock() 135 atomic_t *count = (atomic_t *)rw; in arch_write_lock() local 136 while (!atomic_sub_and_test(RW_LOCK_BIAS, count)) in arch_write_lock() 137 atomic_add(RW_LOCK_BIAS, count); in arch_write_lock() 148 atomic_t *count = (atomic_t *)rw; in arch_read_unlock() local 149 atomic_inc(count); in arch_read_unlock() 160 atomic_t *count = (atomic_t *)rw; in arch_write_unlock() local 161 atomic_add(RW_LOCK_BIAS, count); in arch_write_unlock() [all …]
|
/arch/alpha/oprofile/ |
D | op_model_ev4.c | 25 unsigned long ctl = 0, count, hilo; in ev4_reg_setup() local 49 count = ctr[0].count; in ev4_reg_setup() 50 if (count <= 4096) in ev4_reg_setup() 51 count = 4096, hilo = 1; in ev4_reg_setup() 53 count = 65536, hilo = 0; in ev4_reg_setup() 54 ctr[0].count = count; in ev4_reg_setup() 57 count = ctr[1].count; in ev4_reg_setup() 58 if (count <= 256) in ev4_reg_setup() 59 count = 256, hilo = 1; in ev4_reg_setup() 61 count = 4096, hilo = 0; in ev4_reg_setup() [all …]
|
/arch/sparc/lib/ |
D | PeeCeeI.c | 12 void outsb(unsigned long __addr, const void *src, unsigned long count) in outsb() argument 17 while (count--) in outsb() 22 void outsw(unsigned long __addr, const void *src, unsigned long count) in outsw() argument 26 while (count--) { in outsw() 33 void outsl(unsigned long __addr, const void *src, unsigned long count) in outsl() argument 38 if (!count) in outsl() 44 while (count--) { in outsl() 51 while (count--) { in outsl() 63 while (count--) { in outsl() 75 while (count--) { in outsl() [all …]
|
/arch/arm64/lib/ |
D | memset.S | 42 count .req x2 label 64 cmp count, #15 67 tbz count, #3, 1f 70 tbz count, #2, 2f 73 tbz count, #1, 3f 76 tbz count, #0, 4f 93 sub count, count, tmp2 100 cmp count, #64 103 ands tmp1, count, #0x30 118 ands count, count, #15 [all …]
|
/arch/ia64/include/asm/ |
D | mutex.h | 22 __mutex_fastpath_lock(atomic_t *count, void (*fail_fn)(atomic_t *)) in __mutex_fastpath_lock() argument 24 if (unlikely(ia64_fetchadd4_acq(count, -1) != 1)) in __mutex_fastpath_lock() 25 fail_fn(count); in __mutex_fastpath_lock() 37 __mutex_fastpath_lock_retval(atomic_t *count) in __mutex_fastpath_lock_retval() argument 39 if (unlikely(ia64_fetchadd4_acq(count, -1) != 1)) in __mutex_fastpath_lock_retval() 58 __mutex_fastpath_unlock(atomic_t *count, void (*fail_fn)(atomic_t *)) in __mutex_fastpath_unlock() argument 60 int ret = ia64_fetchadd4_rel(count, 1); in __mutex_fastpath_unlock() 62 fail_fn(count); in __mutex_fastpath_unlock() 83 __mutex_fastpath_trylock(atomic_t *count, int (*fail_fn)(atomic_t *)) in __mutex_fastpath_trylock() argument 85 if (cmpxchg_acq(count, 1, 0) == 1) in __mutex_fastpath_trylock()
|
/arch/blackfin/include/asm/ |
D | io.h | 36 extern void outsb(unsigned long port, const void *addr, unsigned long count); 37 extern void outsw(unsigned long port, const void *addr, unsigned long count); 38 extern void outsw_8(unsigned long port, const void *addr, unsigned long count); 39 extern void outsl(unsigned long port, const void *addr, unsigned long count); 44 extern void insb(unsigned long port, void *addr, unsigned long count); 45 extern void insw(unsigned long port, void *addr, unsigned long count); 46 extern void insw_8(unsigned long port, void *addr, unsigned long count); 47 extern void insl(unsigned long port, void *addr, unsigned long count); 48 extern void insl_16(unsigned long port, void *addr, unsigned long count); 53 extern void dma_outsb(unsigned long port, const void *addr, unsigned short count); [all …]
|
/arch/mips/lib/ |
D | iomap.c | 104 static inline void mmio_insb(void __iomem *addr, u8 *dst, int count) in mmio_insb() argument 106 while (--count >= 0) { in mmio_insb() 113 static inline void mmio_insw(void __iomem *addr, u16 *dst, int count) in mmio_insw() argument 115 while (--count >= 0) { in mmio_insw() 122 static inline void mmio_insl(void __iomem *addr, u32 *dst, int count) in mmio_insl() argument 124 while (--count >= 0) { in mmio_insl() 131 static inline void mmio_outsb(void __iomem *addr, const u8 *src, int count) in mmio_outsb() argument 133 while (--count >= 0) { in mmio_outsb() 139 static inline void mmio_outsw(void __iomem *addr, const u16 *src, int count) in mmio_outsw() argument 141 while (--count >= 0) { in mmio_outsw() [all …]
|
/arch/frv/kernel/ |
D | uaccess.c | 20 long strncpy_from_user(char *dst, const char __user *src, long count) in strncpy_from_user() argument 26 BUG_ON(count < 0); in strncpy_from_user() 39 if ((unsigned long) count > max) { in strncpy_from_user() 40 memset(dst + max, 0, count - max); in strncpy_from_user() 41 count = max; in strncpy_from_user() 45 for (; count > 0; count--, p++, src++) { in strncpy_from_user() 57 if (count > 0) in strncpy_from_user() 58 memset(p, 0, count); /* clear remainder of buffer [security] */ in strncpy_from_user() 72 long strnlen_user(const char __user *src, long count) in strnlen_user() argument 78 BUG_ON(count < 0); in strnlen_user() [all …]
|
/arch/x86/include/asm/ |
D | mutex_32.h | 24 #define __mutex_fastpath_lock(count, fail_fn) \ argument 28 typecheck(atomic_t *, count); \ 36 : "a" (count) \ 49 static inline int __mutex_fastpath_lock_retval(atomic_t *count) in __mutex_fastpath_lock_retval() argument 51 if (unlikely(atomic_dec_return(count) < 0)) in __mutex_fastpath_lock_retval() 70 #define __mutex_fastpath_unlock(count, fail_fn) \ argument 74 typecheck(atomic_t *, count); \ 82 : "a" (count) \ 100 static inline int __mutex_fastpath_trylock(atomic_t *count, in __mutex_fastpath_trylock() argument 104 if (likely(atomic_cmpxchg(count, 1, 0) == 1)) in __mutex_fastpath_trylock()
|
D | string_32.h | 12 extern char *strncpy(char *dest, const char *src, size_t count); 18 extern char *strncat(char *dest, const char *src, size_t count); 24 extern int strncmp(const char *cs, const char *ct, size_t count); 205 extern void *memchr(const void *cs, int c, size_t count); 207 static inline void *__memset_generic(void *s, char c, size_t count) in __memset_generic() argument 213 : "a" (c), "1" (s), "0" (count) in __memset_generic() 219 #define __constant_count_memset(s, c, count) __memset_generic((s), (c), (count)) argument 227 void *__constant_c_memset(void *s, unsigned long c, size_t count) in __constant_c_memset() argument 239 : "a" (c), "q" (count), "0" (count/4), "1" ((long)s) in __constant_c_memset() 246 extern size_t strnlen(const char *s, size_t count); [all …]
|
/arch/s390/include/asm/ |
D | rwsem.h | 77 : "=&d" (old), "=&d" (new), "=Q" (sem->count) in __down_read() 78 : "Q" (sem->count), "i" (RWSEM_ACTIVE_READ_BIAS) in __down_read() 109 : "=&d" (old), "=&d" (new), "=Q" (sem->count) in __down_read_trylock() 110 : "Q" (sem->count), "i" (RWSEM_ACTIVE_READ_BIAS) in __down_read_trylock() 137 : "=&d" (old), "=&d" (new), "=Q" (sem->count) in __down_write_nested() 138 : "Q" (sem->count), "m" (tmp) in __down_write_nested() 171 : "=&d" (old), "=Q" (sem->count) in __down_write_trylock() 172 : "Q" (sem->count), "d" (RWSEM_ACTIVE_WRITE_BIAS) in __down_write_trylock() 198 : "=&d" (old), "=&d" (new), "=Q" (sem->count) in __up_read() 199 : "Q" (sem->count), "i" (-RWSEM_ACTIVE_READ_BIAS) in __up_read() [all …]
|
/arch/s390/lib/ |
D | spinlock.c | 31 int count; in arch_spin_lock_wait() local 47 count = spin_retry; in arch_spin_lock_wait() 50 } while (owner && count-- > 0); in arch_spin_lock_wait() 67 int count; in arch_spin_lock_wait_flags() local 85 count = spin_retry; in arch_spin_lock_wait_flags() 88 } while (owner && count-- > 0); in arch_spin_lock_wait_flags() 103 int count; in arch_spin_trylock_retry() local 105 for (count = spin_retry; count > 0; count--) in arch_spin_trylock_retry() 115 int count = spin_retry; in _raw_read_lock_wait() local 122 if (count-- <= 0) { in _raw_read_lock_wait() [all …]
|
/arch/metag/kernel/ |
D | ptrace.c | 38 unsigned int pos, unsigned int count, in metag_gp_regs_copyout() argument 46 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in metag_gp_regs_copyout() 51 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in metag_gp_regs_copyout() 60 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in metag_gp_regs_copyout() 65 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in metag_gp_regs_copyout() 70 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in metag_gp_regs_copyout() 76 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in metag_gp_regs_copyout() 81 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in metag_gp_regs_copyout() 86 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, in metag_gp_regs_copyout() 93 unsigned int pos, unsigned int count, in metag_gp_regs_copyin() argument [all …]
|
/arch/tile/lib/ |
D | checksum.c | 21 int odd, count; in do_csum() local 32 count = len >> 1; /* nr of 16-bit words.. */ in do_csum() 33 if (count) { in do_csum() 36 count--; in do_csum() 40 count >>= 1; /* nr of 32-bit words.. */ in do_csum() 41 if (count) { in do_csum() 46 count--; in do_csum() 50 count >>= 1; /* nr of 64-bit words.. */ in do_csum() 57 BUG_ON(count >= 65530); in do_csum() 59 while (count) { in do_csum() [all …]
|
/arch/arm/plat-samsung/ |
D | pm-common.c | 31 void s3c_pm_do_save(struct sleep_save *ptr, int count) in s3c_pm_do_save() argument 33 for (; count > 0; count--, ptr++) { in s3c_pm_do_save() 50 void s3c_pm_do_restore(const struct sleep_save *ptr, int count) in s3c_pm_do_restore() argument 52 for (; count > 0; count--, ptr++) { in s3c_pm_do_restore() 71 void s3c_pm_do_restore_core(const struct sleep_save *ptr, int count) in s3c_pm_do_restore_core() argument 73 for (; count > 0; count--, ptr++) in s3c_pm_do_restore_core()
|
/arch/sh/include/asm/ |
D | mutex-llsc.h | 22 __mutex_fastpath_lock(atomic_t *count, void (*fail_fn)(atomic_t *)) in __mutex_fastpath_lock() argument 32 : "r" (&(count)->counter) in __mutex_fastpath_lock() 36 fail_fn(count); in __mutex_fastpath_lock() 40 __mutex_fastpath_lock_retval(atomic_t *count) in __mutex_fastpath_lock_retval() argument 50 : "r" (&(count)->counter) in __mutex_fastpath_lock_retval() 60 __mutex_fastpath_unlock(atomic_t *count, void (*fail_fn)(atomic_t *)) in __mutex_fastpath_unlock() argument 70 : "r" (&(count)->counter) in __mutex_fastpath_unlock() 74 fail_fn(count); in __mutex_fastpath_unlock() 88 __mutex_fastpath_trylock(atomic_t *count, int (*fail_fn)(atomic_t *)) in __mutex_fastpath_trylock() argument 104 : "r" (&count->counter) in __mutex_fastpath_trylock()
|