Home
last modified time | relevance | path

Searched refs:size_t (Results 1 – 25 of 712) sorted by relevance

12345678910>>...29

/arch/s390/include/asm/
Dstring.h22 void *memcpy(void *dest, const void *src, size_t n);
23 void *memset(void *s, int c, size_t n);
24 void *memmove(void *dest, const void *src, size_t n);
41 int memcmp(const void *s1, const void *s2, size_t n);
43 size_t strlcat(char *dest, const char *src, size_t n);
44 char *strncat(char *dest, const char *src, size_t n);
45 char *strncpy(char *dest, const char *src, size_t n);
70 void *__memcpy(void *dest, const void *src, size_t n);
71 void *__memset(void *s, int c, size_t n);
72 void *__memmove(void *dest, const void *src, size_t n);
[all …]
/arch/alpha/include/asm/
Dstring.h15 extern void * memcpy(void *, const void *, size_t);
17 extern void * memmove(void *, const void *, size_t);
20 extern void * __memcpy(void *, const void *, size_t);
25 extern void * __constant_c_memset(void *, unsigned long, size_t);
26 extern void * ___memset(void *, int, size_t);
27 extern void * __memset(void *, int, size_t);
28 extern void * memset(void *, int, size_t);
33 extern inline void *__memset(void *s, int c, size_t n) in __memset()
51 extern char * strncpy(char *, const char *, size_t);
55 extern char * strncat(char *, const char *, size_t);
[all …]
/arch/x86/include/asm/
Dstring_64.h18 extern void *memcpy(void *to, const void *from, size_t len);
19 extern void *__memcpy(void *to, const void *from, size_t len);
22 void *memset(void *s, int c, size_t n);
23 void *__memset(void *s, int c, size_t n);
31 static inline void *memset16(uint16_t *s, uint16_t v, size_t n) in memset16()
43 static inline void *memset32(uint32_t *s, uint32_t v, size_t n) in memset32()
55 static inline void *memset64(uint64_t *s, uint64_t v, size_t n) in memset64()
68 void *memmove(void *dest, const void *src, size_t count);
69 void *__memmove(void *dest, const void *src, size_t count);
71 int memcmp(const void *cs, const void *ct, size_t count);
[all …]
Dstring_32.h13 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);
31 extern size_t strlen(const char *s);
33 static __always_inline void *__memcpy(void *to, const void *from, size_t n) in __memcpy()
53 size_t n) in __constant_memcpy()
146 extern void *memcpy(void *, const void *, size_t);
155 void *memmove(void *dest, const void *src, size_t n);
157 extern int memcmp(const void *, const void *, size_t);
163 extern void *memchr(const void *cs, int c, size_t count);
[all …]
Dintel_scu_ipc.h47 u8 *data, size_t len);
49 u8 *data, size_t len);
57 int sub, const void *in, size_t inlen,
58 size_t size, void *out, size_t outlen);
61 int sub, const void *in, size_t inlen, in intel_scu_ipc_dev_command()
62 void *out, size_t outlen) in intel_scu_ipc_dev_command()
/arch/powerpc/boot/
Dstring.h7 extern char *strncpy(char *dest, const char *src, size_t n);
12 extern int strncmp(const char *s1, const char *s2, size_t n);
13 extern size_t strlen(const char *s);
14 extern size_t strnlen(const char *s, size_t count);
16 extern void *memset(void *s, int c, size_t n);
19 extern void *memchr(const void *s, int c, size_t n);
20 extern int memcmp(const void *s1, const void *s2, size_t n);
/arch/x86/boot/
Dstring.h10 void *memcpy(void *dst, const void *src, size_t len);
11 void *memmove(void *dst, const void *src, size_t len);
12 void *memset(void *dst, int c, size_t len);
13 int memcmp(const void *s1, const void *s2, size_t len);
14 int bcmp(const void *s1, const void *s2, size_t len);
22 extern int strncmp(const char *cs, const char *ct, size_t count);
23 extern size_t strlen(const char *s);
26 extern size_t strnlen(const char *s, size_t maxlen);
/arch/s390/lib/
Dstring.c36 static inline char *__strnend(const char *s, size_t n) in __strnend()
57 size_t strlen(const char *s) in strlen()
72 size_t strnlen(const char *s, size_t n) in strnlen()
113 char *strncpy(char *dest, const char *src, size_t n) in strncpy()
115 size_t len = __strnend(src, n) - src; in strncpy()
157 size_t strlcat(char *dest, const char *src, size_t n) in strlcat()
159 size_t dsize = __strend(dest) - dest; in strlcat()
160 size_t len = __strend(src) - src; in strlcat()
161 size_t res = dsize + len; in strlcat()
188 char *strncat(char *dest, const char *src, size_t n) in strncat()
[all …]
/arch/arm64/kvm/hyp/include/nvhe/
Diommu.h43 size_t kvm_iommu_map_pages(pkvm_handle_t domain_id,
44 unsigned long iova, phys_addr_t paddr, size_t pgsize,
45 size_t pgcount, int prot);
46 size_t kvm_iommu_unmap_pages(pkvm_handle_t domain_id,
47 unsigned long iova, size_t pgsize, size_t pgcount);
53 size_t size);
58 #define KVM_IOMMU_PADDR_CACHE_MAX ((size_t)511)
71 size_t pgsize[KVM_IOMMU_PADDR_CACHE_MAX];
134 phys_addr_t paddr, size_t pgsize,
135 size_t pgcount, int prot, size_t *total_mapped);
[all …]
/arch/powerpc/mm/
Ddma-noncoherent.c22 static void __dma_sync(void *vaddr, size_t size, int direction) in __dma_sync()
60 unsigned long offset, size_t size, int direction) in __dma_sync_page_highmem()
62 size_t seg_size = min((size_t)(PAGE_SIZE - offset), size); in __dma_sync_page_highmem()
63 size_t cur_size = seg_size; in __dma_sync_page_highmem()
79 seg_size = min((size_t)PAGE_SIZE, size - cur_size); in __dma_sync_page_highmem()
94 static void __dma_sync_page(phys_addr_t paddr, size_t size, int dir) in __dma_sync_page()
107 void arch_sync_dma_for_device(phys_addr_t paddr, size_t size, in arch_sync_dma_for_device()
113 void arch_sync_dma_for_cpu(phys_addr_t paddr, size_t size, in arch_sync_dma_for_cpu()
119 void arch_dma_prep_coherent(struct page *page, size_t size) in arch_dma_prep_coherent()
/arch/riscv/include/asm/
Dstring.h13 extern asmlinkage void *memset(void *, int, size_t);
14 extern asmlinkage void *__memset(void *, int, size_t);
16 extern asmlinkage void *memcpy(void *, const void *, size_t);
17 extern asmlinkage void *__memcpy(void *, const void *, size_t);
19 extern asmlinkage void *memmove(void *, const void *, size_t);
20 extern asmlinkage void *__memmove(void *, const void *, size_t);
29 extern asmlinkage int strncmp(const char *cs, const char *ct, size_t count);
/arch/arm/boot/compressed/
Dstring.c25 void *__memcpy(void *__dest, __const void *__src, size_t __n) __alias(memcpy);
26 void *__memmove(void *__dest, __const void *__src, size_t count) __alias(memmove);
27 void *__memset(void *s, int c, size_t count) __alias(memset);
30 void *memcpy(void *__dest, __const void *__src, size_t __n) in memcpy()
64 void *memmove(void *__dest, __const void *__src, size_t count) in memmove()
80 size_t strlen(const char *s) in strlen()
89 size_t strnlen(const char *s, size_t count) in strnlen()
98 int memcmp(const void *cs, const void *ct, size_t count) in memcmp()
126 void *memchr(const void *s, int c, size_t count) in memchr()
156 void *memset(void *s, int c, size_t count) in memset()
/arch/x86/boot/compressed/
Dstring.c14 static void *____memcpy(void *dest, const void *src, size_t n) in ____memcpy()
28 static void *____memcpy(void *dest, const void *src, size_t n) in ____memcpy()
43 void *memset(void *s, int c, size_t n) in memset()
53 void *memmove(void *dest, const void *src, size_t n) in memmove()
68 void *memcpy(void *dest, const void *src, size_t n) in memcpy()
78 extern void *__memset(void *s, int c, size_t n) __alias(memset);
79 extern void *__memmove(void *dest, const void *src, size_t n) __alias(memmove);
80 extern void *__memcpy(void *dest, const void *src, size_t n) __alias(memcpy);
/arch/mips/mm/
Ddma-noncoherent.c47 void arch_dma_prep_coherent(struct page *page, size_t size) in arch_dma_prep_coherent()
52 void *arch_dma_set_uncached(void *addr, size_t size) in arch_dma_set_uncached()
57 static inline void dma_sync_virt_for_device(void *addr, size_t size, in dma_sync_virt_for_device()
75 static inline void dma_sync_virt_for_cpu(void *addr, size_t size, in dma_sync_virt_for_cpu()
95 static inline void dma_sync_phys(phys_addr_t paddr, size_t size, in dma_sync_phys()
100 size_t left = size; in dma_sync_phys()
103 size_t len = left; in dma_sync_phys()
124 void arch_sync_dma_for_device(phys_addr_t paddr, size_t size, in arch_sync_dma_for_device()
131 void arch_sync_dma_for_cpu(phys_addr_t paddr, size_t size, in arch_sync_dma_for_cpu()
/arch/xtensa/kernel/
Dpci-dma.c24 static void do_cache_op(phys_addr_t paddr, size_t size, in do_cache_op()
35 size_t sz = min_t(size_t, size, PAGE_SIZE - off); in do_cache_op()
46 void arch_sync_dma_for_cpu(phys_addr_t paddr, size_t size, in arch_sync_dma_for_cpu()
64 void arch_sync_dma_for_device(phys_addr_t paddr, size_t size, in arch_sync_dma_for_device()
83 void arch_dma_prep_coherent(struct page *page, size_t size) in arch_dma_prep_coherent()
94 void *arch_dma_set_uncached(void *p, size_t size) in arch_dma_set_uncached()
/arch/um/include/asm/
Darchrandom.h8 ssize_t os_getrandom(void *buf, size_t len, unsigned int flags);
10 static inline size_t __must_check arch_get_random_longs(unsigned long *v, size_t max_longs) in arch_get_random_longs()
20 static inline size_t __must_check arch_get_random_seed_longs(unsigned long *v, size_t max_longs) in arch_get_random_seed_longs()
/arch/loongarch/include/asm/
Dstring.h9 extern void *memset(void *__s, int __c, size_t __count);
10 extern void *__memset(void *__s, int __c, size_t __count);
13 extern void *memcpy(void *__to, __const__ void *__from, size_t __n);
14 extern void *__memcpy(void *__to, __const__ void *__from, size_t __n);
17 extern void *memmove(void *__dest, __const__ void *__src, size_t __n);
18 extern void *__memmove(void *__dest, __const__ void *__src, size_t __n);
/arch/sparc/include/asm/
Dasm-prototypes.h16 void *__memscan_zero(void *, size_t);
17 void *__memscan_generic(void *, int, size_t);
18 void *__bzero(void *, size_t);
22 void *memcpy(void *dest, const void *src, size_t n);
23 void *memset(void *s, int c, size_t n);
/arch/x86/lib/
Dstring_32.c34 char *strncpy(char *dest, const char *src, size_t count) in strncpy()
72 char *strncat(char *dest, const char *src, size_t count) in strncat()
119 int strncmp(const char *cs, const char *ct, size_t count) in strncmp()
166 size_t strlen(const char *s) in strlen()
169 size_t res; in strlen()
181 void *memchr(const void *cs, int c, size_t count) in memchr()
201 void *memscan(void *addr, int c, size_t size) in memscan()
218 size_t strnlen(const char *s, size_t count) in strnlen()
Diomem.c10 static __always_inline void rep_movs(void *to, const void *from, size_t n) in rep_movs()
26 static void string_memcpy_fromio(void *to, const volatile void __iomem *from, size_t n) in string_memcpy_fromio()
45 static void string_memcpy_toio(volatile void __iomem *to, const void *from, size_t n) in string_memcpy_toio()
64 static void unrolled_memcpy_fromio(void *to, const volatile void __iomem *from, size_t n) in unrolled_memcpy_fromio()
74 static void unrolled_memcpy_toio(volatile void __iomem *to, const void *from, size_t n) in unrolled_memcpy_toio()
84 static void unrolled_memset_io(volatile void __iomem *a, int b, size_t c) in unrolled_memset_io()
93 void memcpy_fromio(void *to, const volatile void __iomem *from, size_t n) in memcpy_fromio()
102 void memcpy_toio(volatile void __iomem *to, const void *from, size_t n) in memcpy_toio()
111 void memset_io(volatile void __iomem *a, int b, size_t c) in memset_io()
/arch/xtensa/include/asm/
Dstring.h38 static inline char *strncpy(char *__dest, const char *__src, size_t __n) in strncpy()
85 static inline int strncmp(const char *__cs, const char *__ct, size_t __n) in strncmp()
110 extern void *memset(void *__s, int __c, size_t __count);
111 extern void *__memset(void *__s, int __c, size_t __count);
114 extern void *memcpy(void *__to, __const__ void *__from, size_t __n);
115 extern void *__memcpy(void *__to, __const__ void *__from, size_t __n);
118 extern void *memmove(void *__dest, __const__ void *__src, size_t __n);
119 extern void *__memmove(void *__dest, __const__ void *__src, size_t __n);
/arch/riscv/kernel/vdso/
Dhwprobe.c10 extern int riscv_hwprobe(struct riscv_hwprobe *pairs, size_t pair_count,
11 size_t cpu_count, unsigned long *cpus,
15 int __vdso_riscv_hwprobe(struct riscv_hwprobe *pairs, size_t pair_count,
16 size_t cpu_count, unsigned long *cpus,
19 int __vdso_riscv_hwprobe(struct riscv_hwprobe *pairs, size_t pair_count, in __vdso_riscv_hwprobe()
20 size_t cpu_count, unsigned long *cpus, in __vdso_riscv_hwprobe()
/arch/riscv/kernel/
Dpatch.c66 static int __patch_insn_set(void *addr, u8 c, size_t len) in __patch_insn_set()
103 static int __patch_insn_write(void *addr, const void *insn, size_t len) in __patch_insn_write()
149 static int __patch_insn_set(void *addr, u8 c, size_t len) in __patch_insn_set()
157 static int __patch_insn_write(void *addr, const void *insn, size_t len) in __patch_insn_write()
164 static int patch_insn_set(void *addr, u8 c, size_t len) in patch_insn_set()
166 size_t patched = 0; in patch_insn_set()
167 size_t size; in patch_insn_set()
175 size = min_t(size_t, PAGE_SIZE * 2 - offset_in_page(addr + patched), len - patched); in patch_insn_set()
185 int patch_text_set_nosync(void *addr, u8 c, size_t len) in patch_text_set_nosync()
199 static int patch_insn_write(void *addr, const void *insn, size_t len) in patch_insn_write()
[all …]
/arch/sh/include/asm/
Dstring_32.h56 static inline int strncmp(const char *__cs, const char *__ct, size_t __n) in strncmp()
88 extern void *memset(void *__s, int __c, size_t __count);
91 extern void *memcpy(void *__to, __const__ void *__from, size_t __n);
94 extern void *memmove(void *__dest, __const__ void *__src, size_t __n);
97 extern void *memchr(const void *__s, int __c, size_t __n);
100 extern size_t strlen(const char *);
/arch/arm/include/asm/
Dio.h137 extern void __iomem *__arm_ioremap_caller(phys_addr_t, size_t, unsigned int,
139 extern void __iomem *__arm_ioremap_pfn(unsigned long, unsigned long, size_t, unsigned int);
140 extern void __iomem *__arm_ioremap_exec(phys_addr_t, size_t, bool cached);
141 void __arm_iomem_set_ro(void __iomem *ptr, size_t size);
143 extern void __iomem * (*arch_ioremap_caller)(phys_addr_t, size_t,
195 void __iomem *pci_remap_cfgspace(resource_size_t res_cookie, size_t size);
259 extern void _memcpy_fromio(void *, const volatile void __iomem *, size_t);
260 extern void _memcpy_toio(volatile void __iomem *, const void *, size_t);
261 extern void _memset_io(volatile void __iomem *, int, size_t);
302 size_t count) in memset_io()
[all …]

12345678910>>...29