/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 | 15 void __memcpy_fromio(void *to, const volatile void __iomem *from, size_t count) in __memcpy_fromio() argument 17 while (count && !IS_ALIGNED((unsigned long)from, 8)) { in __memcpy_fromio() 21 count--; in __memcpy_fromio() 24 while (count >= 8) { in __memcpy_fromio() 28 count -= 8; in __memcpy_fromio() 31 while (count) { in __memcpy_fromio() 35 count--; in __memcpy_fromio() 43 void __memcpy_toio(volatile void __iomem *to, const void *from, size_t count) in __memcpy_toio() argument 45 while (count && !IS_ALIGNED((unsigned long)to, 8)) { in __memcpy_toio() 49 count--; in __memcpy_toio() [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 | 16 void memcpy_fromio(void *to, const volatile void __iomem *from, unsigned long count) in memcpy_fromio() argument 23 if ((count >= 0x20) && in memcpy_fromio() 50 : "=&r" (to), "=&r" (count), in memcpy_fromio() 53 : "7"(from), "0" (to), "1" (count) in memcpy_fromio() 59 for (; count > 3; count -= 4) { in memcpy_fromio() 66 for (; count > 0; count--) { in memcpy_fromio() 79 void memcpy_toio(volatile void __iomem *to, const void *from, unsigned long count) in memcpy_toio() argument 82 for ( ; count > 3; count -= 4) { in memcpy_toio() 89 for (; count > 0; count--) { in memcpy_toio() 103 void memset_io(volatile void __iomem *dst, int c, unsigned long count) in memset_io() argument [all …]
|
D | iomap.c | 77 static inline void mmio_insb(void __iomem *addr, u8 *dst, int count) in mmio_insb() argument 79 while (--count >= 0) { in mmio_insb() 86 static inline void mmio_insw(void __iomem *addr, u16 *dst, int count) in mmio_insw() argument 88 while (--count >= 0) { in mmio_insw() 95 static inline void mmio_insl(void __iomem *addr, u32 *dst, int count) in mmio_insl() argument 97 while (--count >= 0) { in mmio_insl() 104 static inline void mmio_outsb(void __iomem *addr, const u8 *src, int count) in mmio_outsb() argument 106 while (--count >= 0) { in mmio_outsb() 112 static inline void mmio_outsw(void __iomem *addr, const u16 *src, int count) in mmio_outsw() argument 114 while (--count >= 0) { in mmio_outsw() [all …]
|
D | dwarf.c | 149 int shift, count; in dwarf_read_uleb128() local 153 count = 0; in dwarf_read_uleb128() 158 count++; in dwarf_read_uleb128() 169 return count; in dwarf_read_uleb128() 185 int count; in dwarf_read_leb128() local 189 count = 0; in dwarf_read_leb128() 196 count++; in dwarf_read_leb128() 210 return count; in dwarf_read_leb128() 227 int count = 0; in dwarf_read_encoded_value() local 246 count += 4; in dwarf_read_encoded_value() [all …]
|
/arch/hexagon/mm/ |
D | uaccess.c | 22 __kernel_size_t __clear_user_hexagon(void __user *dest, unsigned long count) in __clear_user_hexagon() argument 26 while (count > PAGE_SIZE) { in __clear_user_hexagon() 29 return count - (PAGE_SIZE - uncleared); in __clear_user_hexagon() 30 count -= PAGE_SIZE; in __clear_user_hexagon() 33 if (count) in __clear_user_hexagon() 34 count = raw_copy_to_user(dest, &empty_zero_page, count); in __clear_user_hexagon() 36 return count; in __clear_user_hexagon() 39 unsigned long clear_user_hexagon(void __user *dest, unsigned long count) in clear_user_hexagon() argument 41 if (!access_ok(dest, count)) in clear_user_hexagon() 42 return count; in clear_user_hexagon() [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/arm64/lib/ |
D | memset.S | 30 count .req x2 label 54 cmp count, #15 57 tbz count, #3, 1f 60 tbz count, #2, 2f 63 tbz count, #1, 3f 66 tbz count, #0, 4f 83 sub count, count, tmp2 90 cmp count, #64 93 ands tmp1, count, #0x30 108 ands count, count, #15 [all …]
|
/arch/ia64/lib/ |
D | io.c | 11 void memcpy_fromio(void *to, const volatile void __iomem *from, long count) in memcpy_fromio() argument 15 while (count) { in memcpy_fromio() 16 count--; in memcpy_fromio() 26 void memcpy_toio(volatile void __iomem *to, const void *from, long count) in memcpy_toio() argument 30 while (count) { in memcpy_toio() 31 count--; in memcpy_toio() 41 void memset_io(volatile void __iomem *dst, int c, long count) in memset_io() argument 45 while (count) { in memset_io() 46 count--; in memset_io()
|
/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 …]
|
D | ptrace_64.c | 250 unsigned int pos, unsigned int count, in genregs64_get() argument 259 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in genregs64_get() 262 if (!ret && count && pos < (32 * sizeof(u64))) { in genregs64_get() 267 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in genregs64_get() 275 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in genregs64_get() 284 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, in genregs64_get() 291 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, in genregs64_get() 300 unsigned int pos, unsigned int count, in genregs64_set() argument 309 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs64_set() 312 if (!ret && count && pos < (32 * sizeof(u64))) { in genregs64_set() [all …]
|
/arch/arm/plat-samsung/ |
D | pm-common.c | 27 void s3c_pm_do_save(struct sleep_save *ptr, int count) in s3c_pm_do_save() argument 29 for (; count > 0; count--, ptr++) { in s3c_pm_do_save() 46 void s3c_pm_do_restore(const struct sleep_save *ptr, int count) in s3c_pm_do_restore() argument 48 for (; count > 0; count--, ptr++) { in s3c_pm_do_restore() 67 void s3c_pm_do_restore_core(const struct sleep_save *ptr, int count) in s3c_pm_do_restore_core() argument 69 for (; count > 0; count--, ptr++) in s3c_pm_do_restore_core()
|
/arch/x86/lib/ |
D | csum-partial_64.c | 37 unsigned odd, count; in do_csum() local 48 count = len >> 1; /* nr of 16-bit words.. */ in do_csum() 49 if (count) { in do_csum() 52 count--; in do_csum() 56 count >>= 1; /* nr of 32-bit words.. */ in do_csum() 57 if (count) { in do_csum() 62 count--; in do_csum() 66 count >>= 1; /* nr of 64-bit words.. */ in do_csum() 70 count64 = count >> 3; in do_csum() 89 count %= 8; in do_csum() [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 …]
|
/arch/s390/mm/ |
D | maccess.c | 23 unsigned long aligned, offset, count; in s390_kernel_write_odd() local 29 count = size - 1; in s390_kernel_write_odd() 38 : "+&a" (aligned), "+&a" (count), "=m" (tmp) in s390_kernel_write_odd() 73 static int __no_sanitize_address __memcpy_real(void *dest, void *src, size_t count) in __memcpy_real() argument 76 register unsigned long _len1 asm("3") = (unsigned long) count; in __memcpy_real() 78 register unsigned long _len2 asm("5") = (unsigned long) count; in __memcpy_real() 96 unsigned long count) in _memcpy_real() argument 101 if (!count) in _memcpy_real() 108 rc = __memcpy_real((void *) dest, (void *) src, (size_t) count); in _memcpy_real() 120 int memcpy_real(void *dest, void *src, size_t count) in memcpy_real() argument [all …]
|
/arch/powerpc/kernel/ |
D | io.c | 27 void _insb(const volatile u8 __iomem *port, void *buf, long count) in _insb() argument 32 if (unlikely(count <= 0)) in _insb() 39 } while (--count != 0); in _insb() 44 void _outsb(volatile u8 __iomem *port, const void *buf, long count) in _outsb() argument 48 if (unlikely(count <= 0)) in _outsb() 53 } while (--count != 0); in _outsb() 58 void _insw_ns(const volatile u16 __iomem *port, void *buf, long count) in _insw_ns() argument 63 if (unlikely(count <= 0)) in _insw_ns() 70 } while (--count != 0); in _insw_ns() 75 void _outsw_ns(volatile u16 __iomem *port, const void *buf, long count) in _outsw_ns() argument [all …]
|
/arch/powerpc/platforms/powernv/ |
D | opal-nvram.c | 26 static ssize_t opal_nvram_read(char *buf, size_t count, loff_t *index) in opal_nvram_read() argument 34 if ((off + count) > nvram_size) in opal_nvram_read() 35 count = nvram_size - off; in opal_nvram_read() 36 rc = opal_read_nvram(__pa(buf), count, off); in opal_nvram_read() 39 *index += count; in opal_nvram_read() 40 return count; in opal_nvram_read() 47 static ssize_t opal_nvram_write(char *buf, size_t count, loff_t *index) in opal_nvram_write() argument 55 if ((off + count) > nvram_size) in opal_nvram_write() 56 count = nvram_size - off; in opal_nvram_write() 59 rc = opal_write_nvram(__pa(buf), count, off); in opal_nvram_write() [all …]
|
/arch/hexagon/include/asm/ |
D | io.h | 193 int count) in memcpy_fromio() argument 195 memcpy(dst, (void *) src, count); in memcpy_fromio() 199 int count) in memcpy_toio() argument 201 memcpy((void *) dst, src, count); in memcpy_toio() 261 static inline void insb(unsigned long port, void *buffer, int count) in insb() argument 263 if (count) { in insb() 268 } while (--count); in insb() 272 static inline void insw(unsigned long port, void *buffer, int count) in insw() argument 274 if (count) { in insw() 279 } while (--count); in insw() [all …]
|
/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/riscv/include/asm/ |
D | io.h | 215 unsigned int count) \ 218 if (count) { \ 224 } while (--count); \ 232 unsigned int count) \ 235 if (count) { \ 240 } while (--count); \ 248 #define readsb(addr, buffer, count) __readsb(addr, buffer, count) argument 249 #define readsw(addr, buffer, count) __readsw(addr, buffer, count) argument 250 #define readsl(addr, buffer, count) __readsl(addr, buffer, count) argument 255 #define insb(addr, buffer, count) __insb((void __iomem *)(long)addr, buffer, count) argument [all …]
|
/arch/parisc/include/asm/ |
D | ide.h | 24 static __inline__ void __ide_mm_insw(void __iomem *port, void *addr, u32 count) in __ide_mm_insw() argument 26 while (count--) { in __ide_mm_insw() 32 static __inline__ void __ide_mm_insl(void __iomem *port, void *addr, u32 count) in __ide_mm_insl() argument 34 while (count--) { in __ide_mm_insl() 40 static __inline__ void __ide_mm_outsw(void __iomem *port, void *addr, u32 count) in __ide_mm_outsw() argument 42 while (count--) { in __ide_mm_outsw() 48 static __inline__ void __ide_mm_outsl(void __iomem *port, void *addr, u32 count) in __ide_mm_outsl() argument 50 while (count--) { in __ide_mm_outsl()
|