| /arch/alpha/kernel/ |
| A D | io.c | 280 if (!count) in ioread8_rep() 282 count--; in ioread8_rep() 289 count -= 4; in ioread8_rep() 299 --count; in ioread8_rep() 323 if (!count) in ioread16_rep() 326 count--; in ioread16_rep() 333 count -= 2; in ioread16_rep() 422 --count; in iowrite16_rep() 524 count--; in memcpy_fromio() 579 count--; in memcpy_toio() [all …]
|
| /arch/parisc/lib/ |
| A D | io.c | 26 if (!count) in insb() 28 count--; in insb() 35 count -= 4; in insb() 45 --count; in insb() 66 if (!count) in insw() 88 count--; in insw() 106 --count; in insw() 152 --count; in insl() 168 --count; in insl() 185 --count; in insl() [all …]
|
| A D | checksum.c | 30 int odd, count; in do_csum() local 41 count = len >> 1; /* nr of 16-bit words.. */ in do_csum() 42 if (count) { in do_csum() 45 count--; in do_csum() 49 count >>= 1; /* nr of 32-bit words.. */ in do_csum() 50 if (count) { in do_csum() 51 while (count >= 4) { in do_csum() 61 count -= 4; in do_csum() 64 while (count) { in do_csum() 66 count--; in do_csum()
|
| /arch/riscv/include/asm/ |
| A D | io.h | 67 if (count) { \ 84 if (count) { \ 97 #define readsb(addr, buffer, count) __readsb(addr, buffer, count) argument 98 #define readsw(addr, buffer, count) __readsw(addr, buffer, count) argument 99 #define readsl(addr, buffer, count) __readsl(addr, buffer, count) argument 104 #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) argument 111 #define writesb(addr, buffer, count) __writesb(addr, buffer, count) argument 112 #define writesw(addr, buffer, count) __writesw(addr, buffer, count) argument 113 #define writesl(addr, buffer, count) __writesl(addr, buffer, count) argument 124 #define readsq(addr, buffer, count) __readsq(addr, buffer, count) argument [all …]
|
| /arch/nios2/lib/ |
| A D | memmove.c | 17 if (!count) 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() 56 count--; in memmove() 62 count -= 2; in memmove() 65 while (count > 3) { in memmove() 68 count -= 4; in memmove() [all …]
|
| /arch/csky/lib/ |
| A D | string.c | 36 if (count < MIN_THRESHOLD) in memcpy() 57 for (; count >= BYTES_LONG; count -= BYTES_LONG) { in memcpy() 75 for (; count >= BYTES_LONG; count -= BYTES_LONG) in memcpy() 80 while (count--) in memcpy() 97 const char *s = src + count; in memmove() 98 char *tmp = dest + count; in memmove() 100 while (count--) in memmove() 111 if (count >= MIN_THRESHOLD) { in memset() 120 for (; count && dest.as_uptr & WORD_MASK; count--) in memset() 124 for (; count >= BYTES_LONG; count -= BYTES_LONG) in memset() [all …]
|
| /arch/sh/kernel/ |
| A 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() 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 105 while (count) { in memset_io() [all …]
|
| A D | dwarf.c | 153 count = 0; in dwarf_read_uleb128() 158 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() 246 count += 4; in dwarf_read_encoded_value() 270 int count; in dwarf_entry_len() local 273 count = 4; in dwarf_entry_len() 291 count = 0; in dwarf_entry_len() 742 int count; in dwarf_parse_cie() local [all …]
|
| /arch/sparc/lib/ |
| A D | PeeCeeI.c | 18 while (count--) in outsb() 27 while (count--) { in outsw() 39 if (!count) in outsl() 92 if (count) { in insb() 107 count -= 4; in insb() 120 if (count) { in insw() 126 count--; in insw() 135 count -= 2; in insw() 138 if (count) in insw() 148 if (count) { in insl() [all …]
|
| /arch/arm64/lib/ |
| A D | memset.S | 31 count .req x2 label 53 cmp count, #15 82 sub count, count, tmp2 89 cmp count, #64 107 ands count, count, #15 108 cbz count, 4f 121 sub count, count, #64 127 subs count, count, #64 196 sub count, count, zva_len_x 200 subs count, count, zva_len_x [all …]
|
| A D | memcpy.S | 22 #define count x2 macro 63 cmp count, 128 65 cmp count, 32 69 cmp count, 16 116 cmp count, 64 129 cmp count, 96 159 add count, count, tmp1 /* Count is now 16 too large. */ 177 subs count, count, 64 204 sub count, count, tmp1 211 subs count, count, 128 [all …]
|
| A D | copy_template.S | 26 count .req x2 label 53 cmp count, #16 60 sub count, count, tmp2 84 cmp count, #64 120 tbz count, #3, 1f 124 tbz count, #2, 2f 128 tbz count, #1, 3f 139 subs count, count, #128 154 tst count, #0x3f 182 subs count, count, #64 [all …]
|
| /arch/arm/mach-s3c/ |
| A 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() 69 void s3c_pm_do_restore_core(const struct sleep_save *ptr, int count) in s3c_pm_do_restore_core() argument 71 for (; count > 0; count--, ptr++) in s3c_pm_do_restore_core()
|
| /arch/hexagon/mm/ |
| A 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()
|
| /arch/powerpc/kernel/ |
| A D | io.c | 32 if (unlikely(count <= 0)) in _insb() 40 } while (--count != 0); in _insb() 49 if (unlikely(count <= 0)) in _outsb() 55 } while (--count != 0); in _outsb() 65 if (unlikely(count <= 0)) in _insw() 73 } while (--count != 0); in _insw() 82 if (unlikely(count <= 0)) in _outsw() 88 } while (--count != 0); in _outsw() 98 if (unlikely(count <= 0)) in _insl() 106 } while (--count != 0); in _insl() [all …]
|
| /arch/powerpc/platforms/powernv/ |
| A 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() 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() 77 *index += count; in opal_nvram_write() [all …]
|
| /arch/arm/boot/compressed/ |
| A D | string.c | 27 void *__memset(void *s, int c, size_t count) __alias(memset); 73 return memcpy(__dest, __src, count); in memmove() 75 while (count--) in memmove() 76 d[count] = s[count]; in memmove() 89 size_t strnlen(const char *s, size_t count) in strnlen() argument 93 for (sc = s; count-- && *sc != '\0'; ++sc) in strnlen() 98 int memcmp(const void *cs, const void *ct, size_t count) in memcmp() argument 126 void *memchr(const void *s, int c, size_t count) in memchr() argument 130 while (count--) in memchr() 156 void *memset(void *s, int c, size_t count) in memset() argument [all …]
|
| /arch/arm64/include/asm/ |
| A D | io.h | 148 size_t count) in __const_memcpy_toio_aligned32() argument 150 switch (count) { in __const_memcpy_toio_aligned32() 193 if (__builtin_constant_p(count) && in __iowrite32_copy() 194 (count == 8 || count == 4 || count == 2 || count == 1)) { in __iowrite32_copy() 195 __const_memcpy_toio_aligned32(to, from, count); in __iowrite32_copy() 198 __iowrite32_copy_full(to, from, count); in __iowrite32_copy() 205 size_t count) in __const_memcpy_toio_aligned64() argument 207 switch (count) { in __const_memcpy_toio_aligned64() 250 if (__builtin_constant_p(count) && in __iowrite64_copy() 251 (count == 8 || count == 4 || count == 2 || count == 1)) { in __iowrite64_copy() [all …]
|
| /arch/powerpc/boot/ |
| A D | div64.S | 74 srw r4,r4,r5 # LSW = count > 31 ? 0 : LSW >> count 76 slw r6,r3,r6 # t1 = count > 31 ? 0 : MSW << (32-count) 81 sraw r3,r3,r5 # MSW = MSW >> count 88 slw r3,r3,r5 # MSW = count > 31 ? 0 : MSW << count 90 srw r6,r4,r6 # t1 = count > 31 ? 0 : LSW >> (32-count) 91 slw r7,r4,r7 # t2 = count < 32 ? 0 : LSW << (count-32) 93 slw r4,r4,r5 # LSW = LSW << count 100 srw r4,r4,r5 # LSW = count > 31 ? 0 : LSW >> count 102 slw r6,r3,r6 # t1 = count > 31 ? 0 : MSW << (32-count) 103 srw r7,r3,r7 # t2 = count < 32 ? 0 : MSW >> (count-32) [all …]
|
| /arch/s390/include/asm/ |
| A D | io.h | 61 #define memcpy_fromio(dst, src, count) zpci_memcpy_fromio(dst, src, count) argument 62 #define memcpy_toio(dst, src, count) zpci_memcpy_toio(dst, src, count) argument 63 #define memset_io(dst, val, count) zpci_memset_io(dst, val, count) argument 78 size_t count) in __iowrite32_copy() argument 80 zpci_memcpy_toio(to, from, count * 4); in __iowrite32_copy() 85 size_t count) in __iowrite64_copy() argument 87 zpci_memcpy_toio(to, from, count * 8); in __iowrite64_copy()
|
| /arch/powerpc/sysdev/ |
| A D | mmio_nvram.c | 24 static ssize_t mmio_nvram_read(char *buf, size_t count, loff_t *index) in mmio_nvram_read() argument 30 if (*index + count > mmio_nvram_len) in mmio_nvram_read() 31 count = mmio_nvram_len - *index; in mmio_nvram_read() 35 memcpy_fromio(buf, mmio_nvram_start + *index, count); in mmio_nvram_read() 39 *index += count; in mmio_nvram_read() 40 return count; in mmio_nvram_read() 66 if (*index + count > mmio_nvram_len) in mmio_nvram_write() 67 count = mmio_nvram_len - *index; in mmio_nvram_write() 71 memcpy_toio(mmio_nvram_start + *index, buf, count); in mmio_nvram_write() 75 *index += count; in mmio_nvram_write() [all …]
|
| /arch/m68k/lib/ |
| A D | memset.c | 10 void *memset(void *s, int c, size_t count) in memset() argument 15 if (!count) in memset() 24 count--; in memset() 26 if (count > 2 && (long)s & 2) { in memset() 30 count -= 2; in memset() 32 temp = count >> 2; in memset() 63 if (count & 2) { in memset() 68 if (count & 1) { in memset()
|
| /arch/x86/include/asm/ |
| A 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); 163 extern void *memchr(const void *cs, int c, size_t count); 170 : "a" (c), "1" (s), "0" (count) in __memset_generic() 176 #define __constant_count_memset(s, c, count) __memset_generic((s), (c), (count)) argument 180 extern size_t strnlen(const char *s, size_t count); 186 #define __memset(s, c, count) \ argument 187 (__builtin_constant_p(count) \ 188 ? __constant_count_memset((s), (c), (count)) \ 189 : __memset_generic((s), (c), (count))) [all …]
|
| /arch/arm/kernel/ |
| A D | io.c | 45 void _memcpy_fromio(void *to, const volatile void __iomem *from, size_t count) in _memcpy_fromio() argument 48 while (count) { in _memcpy_fromio() 49 count--; in _memcpy_fromio() 61 void _memcpy_toio(volatile void __iomem *to, const void *from, size_t count) in _memcpy_toio() argument 64 while (count) { in _memcpy_toio() 65 count--; in _memcpy_toio() 77 void _memset_io(volatile void __iomem *dst, int c, size_t count) in _memset_io() argument 79 while (count) { in _memset_io() 80 count--; in _memset_io()
|
| /arch/x86/lib/ |
| A D | string_32.c | 34 char *strncpy(char *dest, const char *src, size_t count) in strncpy() argument 46 : "0" (src), "1" (dest), "2" (count) : "memory"); in strncpy() 70 char *strncat(char *dest, const char *src, size_t count) in strncat() argument 85 : "0" (src), "1" (dest), "2" (0), "3" (0xffffffffu), "g" (count) in strncat() 116 int strncmp(const char *cs, const char *ct, size_t count) in strncmp() argument 133 : "1" (cs), "2" (ct), "3" (count) in strncmp() 177 void *memchr(const void *cs, int c, size_t count) in memchr() argument 181 if (!count) in memchr() 188 : "a" (c), "0" (cs), "1" (count) in memchr() 213 size_t strnlen(const char *s, size_t count) in strnlen() argument [all …]
|