/arch/parisc/lib/ |
D | io.c | 19 void memcpy_toio(volatile void __iomem *dst, const void *src, int count) in memcpy_toio() argument 26 count--; in memcpy_toio() 28 while (count > 3) { in memcpy_toio() 32 count -= 4; in memcpy_toio() 35 while (count--) { in memcpy_toio() 54 void memcpy_fromio(void *dst, const volatile void __iomem *src, int count) in memcpy_fromio() argument 57 if ( (((unsigned long)dst ^ (unsigned long)src) & 1) || (count < 2) ) in memcpy_fromio() 60 if ( (((unsigned long)dst ^ (unsigned long)src) & 2) || (count < 4) ) in memcpy_fromio() 68 count--; in memcpy_fromio() 69 if (count < 2) goto bytecopy; in memcpy_fromio() [all …]
|
/arch/alpha/kernel/ |
D | io.c | 214 void ioread8_rep(void __iomem *port, void *dst, unsigned long count) in ioread8_rep() argument 217 if (!count) in ioread8_rep() 219 count--; in ioread8_rep() 224 while (count >= 4) { in ioread8_rep() 226 count -= 4; in ioread8_rep() 235 while (count) { in ioread8_rep() 236 --count; in ioread8_rep() 242 void insb(unsigned long port, void *dst, unsigned long count) in insb() argument 244 ioread8_rep(ioport_map(port, 1), dst, count); in insb() 257 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/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/alpha/include/asm/ |
D | rwsem.h | 29 oldcount = sem->count.counter; in __down_read() 30 sem->count.counter += RWSEM_ACTIVE_READ_BIAS; in __down_read() 42 :"=&r" (oldcount), "=m" (sem->count), "=&r" (temp) in __down_read() 43 :"Ir" (RWSEM_ACTIVE_READ_BIAS), "m" (sem->count) : "memory"); in __down_read() 56 res = atomic_long_read(&sem->count); in __down_read_trylock() 62 res = atomic_long_cmpxchg(&sem->count, old, new); in __down_read_trylock() 71 oldcount = sem->count.counter; in ___down_write() 72 sem->count.counter += RWSEM_ACTIVE_WRITE_BIAS; in ___down_write() 84 :"=&r" (oldcount), "=m" (sem->count), "=&r" (temp) in ___down_write() 85 :"Ir" (RWSEM_ACTIVE_WRITE_BIAS), "m" (sem->count) : "memory"); in ___down_write() [all …]
|
/arch/nios2/lib/ |
D | memmove.c | 13 void *memmove(void *d, const void *s, size_t count) in memmove() argument 17 if (!count) in memmove() 24 if ((count < 8) || ((dst ^ src) & 3)) in memmove() 29 count--; in memmove() 35 count -= 2; in memmove() 37 while (count > 3) { in memmove() 41 count -= 4; in memmove() 44 while (count--) in memmove() 47 dst = (unsigned long) d + count; in memmove() 48 src = (unsigned long) s + count; in memmove() [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() 42 return count - (PAGE_SIZE - uncleared); in __clear_user_hexagon() 43 count -= PAGE_SIZE; in __clear_user_hexagon() 46 if (count) in __clear_user_hexagon() 47 count = raw_copy_to_user(dest, &empty_zero_page, count); in __clear_user_hexagon() 49 return count; in __clear_user_hexagon() 52 unsigned long clear_user_hexagon(void __user *dest, unsigned long count) in clear_user_hexagon() argument 54 if (!access_ok(VERIFY_WRITE, dest, count)) in clear_user_hexagon() 55 return count; in clear_user_hexagon() [all …]
|
/arch/mn10300/include/asm/ |
D | io.h | 125 static inline void insb(unsigned long addr, void *buffer, int count) in insb() argument 127 if (count) { in insb() 132 } while (--count); in insb() 136 static inline void insw(unsigned long addr, void *buffer, int count) in insw() argument 138 if (count) { in insw() 143 } while (--count); in insw() 147 static inline void insl(unsigned long addr, void *buffer, int count) in insl() argument 149 if (count) { in insl() 154 } while (--count); in insl() 158 static inline void outsb(unsigned long addr, const void *buffer, int count) in outsb() argument [all …]
|
D | spinlock.h | 123 atomic_t *count = (atomic_t *)rw; in arch_read_lock() local 124 while (atomic_dec_return(count) < 0) in arch_read_lock() 125 atomic_inc(count); in arch_read_lock() 136 atomic_t *count = (atomic_t *)rw; in arch_write_lock() local 137 while (!atomic_sub_and_test(RW_LOCK_BIAS, count)) in arch_write_lock() 138 atomic_add(RW_LOCK_BIAS, count); in arch_write_lock() 149 atomic_t *count = (atomic_t *)rw; in arch_read_unlock() local 150 atomic_inc(count); in arch_read_unlock() 161 atomic_t *count = (atomic_t *)rw; in arch_write_unlock() local 162 atomic_add(RW_LOCK_BIAS, count); in arch_write_unlock() [all …]
|
/arch/sparc/lib/ |
D | PeeCeeI.c | 13 void outsb(unsigned long __addr, const void *src, unsigned long count) in outsb() argument 18 while (count--) in outsb() 23 void outsw(unsigned long __addr, const void *src, unsigned long count) in outsw() argument 27 while (count--) { in outsw() 34 void outsl(unsigned long __addr, const void *src, unsigned long count) in outsl() argument 39 if (!count) in outsl() 45 while (count--) { in outsl() 52 while (count--) { in outsl() 64 while (count--) { in outsl() 76 while (count--) { in outsl() [all …]
|
/arch/alpha/oprofile/ |
D | op_model_ev4.c | 24 unsigned long ctl = 0, count, hilo; in ev4_reg_setup() local 48 count = ctr[0].count; in ev4_reg_setup() 49 if (count <= 4096) in ev4_reg_setup() 50 count = 4096, hilo = 1; in ev4_reg_setup() 52 count = 65536, hilo = 0; in ev4_reg_setup() 53 ctr[0].count = count; in ev4_reg_setup() 56 count = ctr[1].count; in ev4_reg_setup() 57 if (count <= 256) in ev4_reg_setup() 58 count = 256, hilo = 1; in ev4_reg_setup() 60 count = 4096, hilo = 0; in ev4_reg_setup() [all …]
|
/arch/mips/lib/ |
D | iomap.c | 105 static inline void mmio_insb(void __iomem *addr, u8 *dst, int count) in mmio_insb() argument 107 while (--count >= 0) { in mmio_insb() 114 static inline void mmio_insw(void __iomem *addr, u16 *dst, int count) in mmio_insw() argument 116 while (--count >= 0) { in mmio_insw() 123 static inline void mmio_insl(void __iomem *addr, u32 *dst, int count) in mmio_insl() argument 125 while (--count >= 0) { in mmio_insl() 132 static inline void mmio_outsb(void __iomem *addr, const u8 *src, int count) in mmio_outsb() argument 134 while (--count >= 0) { in mmio_outsb() 140 static inline void mmio_outsw(void __iomem *addr, const u16 *src, int count) in mmio_outsw() argument 142 while (--count >= 0) { in mmio_outsw() [all …]
|
/arch/arm64/lib/ |
D | memset.S | 42 count .req x2 label 66 cmp count, #15 69 tbz count, #3, 1f 72 tbz count, #2, 2f 75 tbz count, #1, 3f 78 tbz count, #0, 4f 95 sub count, count, tmp2 102 cmp count, #64 105 ands tmp1, count, #0x30 120 ands count, count, #15 [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/s390/lib/ |
D | spinlock.c | 67 int owner, count; in arch_spin_lock_wait() local 74 count = spin_retry; in arch_spin_lock_wait() 83 if (count-- >= 0) in arch_spin_lock_wait() 85 count = spin_retry; in arch_spin_lock_wait() 100 int owner, count; in arch_spin_lock_wait_flags() local 109 count = spin_retry; in arch_spin_lock_wait_flags() 120 if (count-- >= 0) in arch_spin_lock_wait_flags() 122 count = spin_retry; in arch_spin_lock_wait_flags() 137 int owner, count; in arch_spin_trylock_retry() local 139 for (count = spin_retry; count > 0; count--) { in arch_spin_trylock_retry() [all …]
|
/arch/metag/kernel/ |
D | ptrace.c | 40 unsigned int pos, unsigned int count, in metag_gp_regs_copyout() argument 48 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in metag_gp_regs_copyout() 53 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in metag_gp_regs_copyout() 62 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in metag_gp_regs_copyout() 67 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in metag_gp_regs_copyout() 72 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in metag_gp_regs_copyout() 78 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in metag_gp_regs_copyout() 83 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in metag_gp_regs_copyout() 88 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, in metag_gp_regs_copyout() 95 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/sparc/kernel/ |
D | ptrace_32.c | 51 unsigned int pos, unsigned int count, in genregs32_get() argument 64 count /= sizeof(reg); in genregs32_get() 67 for (; count > 0 && pos < 16; count--) in genregs32_get() 72 for (; count > 0 && pos < 32; count--) { in genregs32_get() 77 for (; count > 0 && pos < 16; count--) { in genregs32_get() 84 for (; count > 0 && pos < 32; count--) { in genregs32_get() 90 while (count > 0) { in genregs32_get() 117 count--; in genregs32_get() 121 count *= sizeof(reg); in genregs32_get() 123 return user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, in genregs32_get() [all …]
|
/arch/s390/include/asm/ |
D | rwsem.h | 63 : "=&d" (old), "=&d" (new), "=Q" (sem->count) in __down_read() 64 : "Q" (sem->count), "i" (RWSEM_ACTIVE_READ_BIAS) in __down_read() 85 : "=&d" (old), "=&d" (new), "=Q" (sem->count) in __down_read_trylock() 86 : "Q" (sem->count), "i" (RWSEM_ACTIVE_READ_BIAS) in __down_read_trylock() 105 : "=&d" (old), "=&d" (new), "=Q" (sem->count) in ___down_write() 106 : "Q" (sem->count), "m" (tmp) in ___down_write() 141 : "=&d" (old), "=Q" (sem->count) in __down_write_trylock() 142 : "Q" (sem->count), "d" (RWSEM_ACTIVE_WRITE_BIAS) in __down_write_trylock() 160 : "=&d" (old), "=&d" (new), "=Q" (sem->count) in __up_read() 161 : "Q" (sem->count), "i" (-RWSEM_ACTIVE_READ_BIAS) in __up_read() [all …]
|
/arch/x86/include/asm/ |
D | string_32.h | 13 extern char *strncpy(char *dest, const char *src, size_t count); 19 extern char *strncat(char *dest, const char *src, size_t count); 25 extern int strncmp(const char *cs, const char *ct, size_t count); 203 extern void *memchr(const void *cs, int c, size_t count); 205 static inline void *__memset_generic(void *s, char c, size_t count) in __memset_generic() argument 211 : "a" (c), "1" (s), "0" (count) in __memset_generic() 217 #define __constant_count_memset(s, c, count) __memset_generic((s), (c), (count)) argument 225 void *__constant_c_memset(void *s, unsigned long c, size_t count) in __constant_c_memset() argument 237 : "a" (c), "q" (count), "0" (count/4), "1" ((long)s) in __constant_c_memset() 244 extern size_t strnlen(const char *s, size_t count); [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/arm/boot/compressed/ |
D | string.c | 44 void *memmove(void *__dest, __const void *__src, size_t count) in memmove() argument 53 return memcpy(__dest, __src, count); in memmove() 55 while (count--) in memmove() 56 d[count] = s[count]; in memmove() 69 size_t strnlen(const char *s, size_t count) in strnlen() argument 73 for (sc = s; count-- && *sc != '\0'; ++sc) in strnlen() 78 int memcmp(const void *cs, const void *ct, size_t count) in memcmp() argument 80 const unsigned char *su1 = cs, *su2 = ct, *end = su1 + count; in memcmp() 106 void *memchr(const void *s, int c, size_t count) in memchr() argument 110 while (count--) in memchr() [all …]
|
/arch/sparc/include/asm/ |
D | ide.h | 36 static inline void __ide_insw(void __iomem *port, void *dst, u32 count) in __ide_insw() argument 39 unsigned long end = (unsigned long)dst + (count << 1); in __ide_insw() 46 count--; in __ide_insw() 49 while(count >= 2) { in __ide_insw() 55 count -= 2; in __ide_insw() 58 if(count) in __ide_insw() 66 static inline void __ide_outsw(void __iomem *port, const void *src, u32 count) in __ide_outsw() argument 69 unsigned long end = (unsigned long)src + (count << 1); in __ide_outsw() 76 count--; in __ide_outsw() 79 while(count >= 2) { in __ide_outsw() [all …]
|