| /arch/arm64/include/asm/ |
| A D | io.h | 161 : "rZ"(from[0]), "rZ"(from[1]), "rZ"(from[2]), in __const_memcpy_toio_aligned32() 162 "rZ"(from[3]), "rZ"(from[4]), "rZ"(from[5]), in __const_memcpy_toio_aligned32() 163 "rZ"(from[6]), "rZ"(from[7]), "r"(to)); in __const_memcpy_toio_aligned32() 171 : "rZ"(from[0]), "rZ"(from[1]), "rZ"(from[2]), in __const_memcpy_toio_aligned32() 178 : "rZ"(from[0]), "rZ"(from[1]), "r"(to)); in __const_memcpy_toio_aligned32() 181 __raw_writel(*from, to); in __const_memcpy_toio_aligned32() 218 : "rZ"(from[0]), "rZ"(from[1]), "rZ"(from[2]), in __const_memcpy_toio_aligned64() 219 "rZ"(from[3]), "rZ"(from[4]), "rZ"(from[5]), in __const_memcpy_toio_aligned64() 220 "rZ"(from[6]), "rZ"(from[7]), "r"(to)); in __const_memcpy_toio_aligned64() 228 : "rZ"(from[0]), "rZ"(from[1]), "rZ"(from[2]), in __const_memcpy_toio_aligned64() [all …]
|
| A D | page.h | 22 extern void copy_page(void *to, const void *from); 25 void copy_user_highpage(struct page *to, struct page *from, 29 void copy_highpage(struct page *to, struct page *from); 40 #define copy_user_page(to, from, vaddr, pg) copy_page(to, from) argument
|
| /arch/x86/lib/ |
| A D | iomem.c | 6 #define movs(type,to,from) \ argument 7 asm volatile("movs" type:"=&D" (to), "=&S" (from):"0" (to), "1" (from):"memory") 36 movs("b", to, from); in string_memcpy_fromio() 40 movs("w", to, from); in string_memcpy_fromio() 43 rep_movs(to, (const void *)from, n); in string_memcpy_fromio() 54 kmsan_check_memory(from, n); in string_memcpy_toio() 57 movs("b", to, from); in string_memcpy_toio() 61 movs("w", to, from); in string_memcpy_toio() 80 const char *in = from; in unrolled_memcpy_toio() 101 string_memcpy_fromio(to, from, n); in memcpy_fromio() [all …]
|
| A D | usercopy_32.c | 186 : "1"(to), "2"(from), "0"(size) in __copy_user_intel() 192 const void __user *from, unsigned long size) in __copy_user_intel_nocache() argument 270 : "1"(to), "2"(from), "0"(size) in __copy_user_intel_nocache() 286 #define __copy_user(to, from, size) \ argument 309 : "3"(size), "0"(size), "1"(to), "2"(from) \ 316 if (movsl_is_ok(to, from, n)) in __copy_user_ll() 317 __copy_user(to, from, n); in __copy_user_ll() 319 n = __copy_user_intel(to, from, n); in __copy_user_ll() 331 n = __copy_user_intel_nocache(to, from, n); in __copy_from_user_ll_nocache_nozero() 333 __copy_user(to, from, n); in __copy_from_user_ll_nocache_nozero() [all …]
|
| A D | usercopy.c | 32 copy_from_user_nmi(void *to, const void __user *from, unsigned long n) in copy_from_user_nmi() argument 36 if (!__access_ok(from, n)) in copy_from_user_nmi() 48 instrument_copy_from_user_before(to, from, n); in copy_from_user_nmi() 49 ret = raw_copy_from_user(to, from, n); in copy_from_user_nmi() 50 instrument_copy_from_user_after(to, from, n, ret); in copy_from_user_nmi()
|
| /arch/sh/kernel/ |
| A D | io.c | 53 : "7"(from), "0" (to), "1" (count) in memcpy_fromio() 58 if ((((u32)to | (u32)from) & 0x3) == 0) { in memcpy_fromio() 60 *(u32 *)to = *(volatile u32 *)from; in memcpy_fromio() 62 from += 4; in memcpy_fromio() 67 *(u8 *)to = *(volatile u8 *)from; in memcpy_fromio() 69 from++; in memcpy_fromio() 81 if ((((u32)to | (u32)from) & 0x3) == 0) { in memcpy_toio() 83 *(volatile u32 *)to = *(u32 *)from; in memcpy_toio() 85 from += 4; in memcpy_toio() 90 *(volatile u8 *)to = *(u8 *)from; in memcpy_toio() [all …]
|
| A D | machvec.c | 40 static int __init early_parse_mv(char *from) in early_parse_mv() argument 48 mv_end = strchr(from, ' '); in early_parse_mv() 50 mv_end = from + strlen(from); in early_parse_mv() 52 mv_comma = strchr(from, ','); in early_parse_mv() 53 mv_len = mv_end - from; in early_parse_mv() 56 memcpy(mv_name, from, mv_len); in early_parse_mv() 58 from = mv_end; in early_parse_mv()
|
| /arch/m68k/include/asm/ |
| A D | uaccess.h | 225 : "+d" (res), "+&a" (to), "+a" (from), "=&d" (tmp) \ 275 return __generic_copy_from_user(to, from, n); in __constant_copy_from_user() 312 : "+d" (res), "+a" (to), "+a" (from), "=&d" (tmp) \ 322 __put_user_asm(MOVES, res, *(u8 *)from, (u8 __user *)to, in __constant_copy_to_user() 326 __put_user_asm(MOVES, res, *(u16 *)from, (u16 __user *)to, in __constant_copy_to_user() 330 __constant_copy_to_user_asm(res, to, from, tmp, 3, w, b,); in __constant_copy_to_user() 359 return __generic_copy_to_user(to, from, n); in __constant_copy_to_user() 369 return __constant_copy_from_user(to, from, n); in raw_copy_from_user() 370 return __generic_copy_from_user(to, from, n); in raw_copy_from_user() 377 return __constant_copy_to_user(to, from, n); in raw_copy_to_user() [all …]
|
| /arch/m68k/lib/ |
| A D | memcpy.c | 19 const char *cfrom = from; in memcpy() 22 from = cfrom; in memcpy() 26 if ((long)from & 1) { in memcpy() 28 const char *cfrom = from; in memcpy() 36 const short *sfrom = from; in memcpy() 39 from = sfrom; in memcpy() 45 const long *lfrom = from; in memcpy() 73 from = lfrom; in memcpy() 77 const short *sfrom = from; in memcpy() 80 from = sfrom; in memcpy() [all …]
|
| /arch/arc/include/asm/ |
| A D | uaccess.h | 177 "=&r" (tmp), "+r" (to), "+r" (from) in raw_copy_from_user() 218 : "+r" (res), "+r"(to), "+r"(from), in raw_copy_from_user() 242 : "+r" (res), "+r"(to), "+r"(from), in raw_copy_from_user() 263 : "+r" (res), "+r"(to), "+r"(from), "=r"(tmp1) in raw_copy_from_user() 283 : "+r" (res), "+r"(to), "+r"(from), "=r"(tmp1) in raw_copy_from_user() 301 : "+r" (res), "+r"(to), "+r"(from), "=r"(tmp1) in raw_copy_from_user() 404 "=&r" (tmp), "+r" (to), "+r" (from) in raw_copy_to_user() 441 : "+r" (res), "+r"(to), "+r"(from), in raw_copy_to_user() 465 : "+r" (res), "+r"(to), "+r"(from), in raw_copy_to_user() 486 : "+r" (res), "+r"(to), "+r"(from), "=r"(tmp1) in raw_copy_to_user() [all …]
|
| /arch/arm/mach-omap2/ |
| A D | pm44xx.c | 43 const char *from; member 178 {.from = NULL} /* TERMINATION */ 182 {.from = "mpu_clkdm", .to = "emif_clkdm"}, 183 {.from = NULL} /* TERMINATION */ 193 struct clockdomain *from, *to; in omap4plus_init_static_deps() local 198 while (map->from) { in omap4plus_init_static_deps() 199 from = clkdm_lookup(map->from); in omap4plus_init_static_deps() 201 if (!from || !to) { in omap4plus_init_static_deps() 203 map->from, map->to); in omap4plus_init_static_deps() 206 ret = clkdm_add_wkdep(from, to); in omap4plus_init_static_deps() [all …]
|
| /arch/s390/include/asm/ |
| A D | uaccess.h | 52 : [spec] "I" (0x81), [from] "Q" (*(const char __user *)from) in raw_copy_from_user() 60 from += 4096; in raw_copy_from_user() 80 : [spec] "I" (0x81), [from] "Q" (*(const char *)from) in raw_copy_to_user() 88 from += 4096; in raw_copy_to_user() 109 if (check_copy_size(from, n, true)) in copy_to_user_key() 121 unsigned type *from, \ 131 : [size] "d" (size), [from] "Q" (*from), \ 146 unsigned type *from, \ 159 : [size] "d" (size), [from] "Q" (*from), \ 246 : [size] "d" (size), [from] "Q" (*from), \ [all …]
|
| /arch/x86/include/asm/ |
| A D | uaccess_32.h | 13 (void *to, const void *from, unsigned long n); 15 (void *to, const void __user *from, unsigned long n); 18 raw_copy_to_user(void __user *to, const void *from, unsigned long n) in raw_copy_to_user() argument 20 return __copy_user_ll((__force void *)to, from, n); in raw_copy_to_user() 24 raw_copy_from_user(void *to, const void __user *from, unsigned long n) in raw_copy_from_user() argument 26 return __copy_user_ll(to, (__force const void *)from, n); in raw_copy_from_user() 30 __copy_from_user_inatomic_nocache(void *to, const void __user *from, in __copy_from_user_inatomic_nocache() argument 33 return __copy_from_user_ll_nocache_nozero(to, from, n); in __copy_from_user_inatomic_nocache()
|
| A D | string_32.h | 61 *(char *)to = *(char *)from; in __constant_memcpy() 64 *(short *)to = *(short *)from; in __constant_memcpy() 67 *(int *)to = *(int *)from; in __constant_memcpy() 70 *(short *)to = *(short *)from; in __constant_memcpy() 71 *((char *)to + 2) = *((char *)from + 2); in __constant_memcpy() 74 *(int *)to = *(int *)from; in __constant_memcpy() 75 *((char *)to + 4) = *((char *)from + 4); in __constant_memcpy() 78 *(int *)to = *(int *)from; in __constant_memcpy() 82 *(int *)to = *(int *)from; in __constant_memcpy() 83 *((int *)to + 1) = *((int *)from + 1); in __constant_memcpy() [all …]
|
| /arch/x86/entry/vdso/ |
| A D | extable.h | 11 #define _ASM_VDSO_EXTABLE_HANDLE(from, to) \ argument 12 ASM_VDSO_EXTABLE_HANDLE from to 14 .macro ASM_VDSO_EXTABLE_HANDLE from:req to:req 16 .long (\from) - __ex_table 21 #define _ASM_VDSO_EXTABLE_HANDLE(from, to) \ 23 ".long (" #from ") - __ex_table\n" \
|
| /arch/arm/include/asm/ |
| A D | page.h | 109 void (*cpu_copy_user_highpage)(struct page *to, struct page *from, 113 void fa_copy_user_highpage(struct page *to, struct page *from, 116 void feroceon_copy_user_highpage(struct page *to, struct page *from, 119 void v4_mc_copy_user_highpage(struct page *to, struct page *from, 122 void v4wb_copy_user_highpage(struct page *to, struct page *from, 125 void v4wt_copy_user_highpage(struct page *to, struct page *from, 128 void xsc3_mc_copy_user_highpage(struct page *to, struct page *from, 131 void xscale_mc_copy_user_highpage(struct page *to, struct page *from, 155 #define copy_user_highpage(to,from,vaddr,vma) \ argument 156 __cpu_copy_user_highpage(to, from, vaddr, vma) [all …]
|
| /arch/powerpc/kernel/ |
| A D | signal.h | 40 void __user *from); 42 void __user *from); 68 #define unsafe_copy_fpr_from_user(task, from, label) do { \ argument 70 u64 __user *buf = (u64 __user *)from; \ 78 #define unsafe_copy_vsx_from_user(task, from, label) do { \ argument 80 u64 __user *buf = (u64 __user *)from; \ 111 u64 __user *buf = (u64 __user *)from; \ 121 u64 __user *buf = (u64 __user *)from; \ 135 #define unsafe_copy_fpr_from_user(task, from, label) \ argument 136 unsafe_copy_from_user((task)->thread.fp_state.fpr, from, \ [all …]
|
| /arch/sh/include/asm/ |
| A D | dma.h | 107 extern int dma_xfer(unsigned int chan, unsigned long from, 110 #define dma_write(chan, from, to, size) \ argument 111 dma_xfer(chan, from, to, size, DMA_MODE_WRITE) 112 #define dma_write_page(chan, from, to) \ argument 113 dma_write(chan, from, to, PAGE_SIZE) 115 #define dma_read(chan, from, to, size) \ argument 116 dma_xfer(chan, from, to, size, DMA_MODE_READ) 117 #define dma_read_page(chan, from, to) \ argument 118 dma_read(chan, from, to, PAGE_SIZE)
|
| /arch/x86/events/ |
| A D | utils.c | 88 static int get_branch_type(unsigned long from, unsigned long to, int abort, in get_branch_type() argument 104 from_plm = kernel_ip(from) ? X86_BR_KERNEL : X86_BR_USER; in get_branch_type() 110 if (from == 0 || to == 0) in get_branch_type() 125 bytes_left = copy_from_user_nmi(buf, (void __user *)from, in get_branch_type() 139 if (kernel_text_address(from) && !in_gate_area_no_mm(from)) { in get_branch_type() 140 addr = (void *)from; in get_branch_type() 208 int branch_type(unsigned long from, unsigned long to, int abort) in branch_type() argument 210 return get_branch_type(from, to, abort, false, NULL); in branch_type() 213 int branch_type_fused(unsigned long from, unsigned long to, int abort, in branch_type_fused() argument 216 return get_branch_type(from, to, abort, true, offset); in branch_type_fused()
|
| /arch/arm64/mm/ |
| A D | copypage.c | 17 void copy_highpage(struct page *to, struct page *from) in copy_highpage() argument 20 void *kfrom = page_address(from); in copy_highpage() 21 struct folio *src = page_folio(from); in copy_highpage() 35 from != folio_page(src, 0)) in copy_highpage() 53 } else if (page_mte_tagged(from)) { in copy_highpage() 63 void copy_user_highpage(struct page *to, struct page *from, in copy_user_highpage() argument 66 copy_highpage(to, from); in copy_user_highpage()
|
| /arch/csky/lib/ |
| A D | usercopy.c | 7 unsigned long raw_copy_from_user(void *to, const void *from, in raw_copy_from_user() argument 69 : "=r"(n), "=r"(to), "=r"(from), "=r"(nsave), in raw_copy_from_user() 71 : "0"(n), "1"(to), "2"(from) in raw_copy_from_user() 78 unsigned long raw_copy_to_user(void *to, const void *from, in raw_copy_to_user() argument 136 : "=r"(n), "=r"(to), "=r"(from), "=r"(w0), in raw_copy_to_user() 138 : "0"(n), "1"(to), "2"(from) in raw_copy_to_user()
|
| /arch/x86/kernel/ |
| A D | ioport.c | 71 long ksys_ioperm(unsigned long from, unsigned long num, int turn_on) in ksys_ioperm() argument 77 if ((from + num <= from) || (from + num > IO_BITMAP_BITS)) in ksys_ioperm() 128 bitmap_clear(iobm->bitmap, from, num); in ksys_ioperm() 130 bitmap_set(iobm->bitmap, from, num); in ksys_ioperm() 158 SYSCALL_DEFINE3(ioperm, unsigned long, from, unsigned long, num, int, turn_on) in SYSCALL_DEFINE3() argument 160 return ksys_ioperm(from, num, turn_on); in SYSCALL_DEFINE3() 207 long ksys_ioperm(unsigned long from, unsigned long num, int turn_on) in ksys_ioperm() argument 211 SYSCALL_DEFINE3(ioperm, unsigned long, from, unsigned long, num, int, turn_on) in SYSCALL_DEFINE3() argument
|
| /arch/arm64/kernel/ |
| A D | io.c | 17 #define memcpy_toio_aligned(to, from, count, bits) \ argument 20 const u##bits *_from = from; \ 40 void __iowrite64_copy_full(void __iomem *to, const void *from, size_t count) in __iowrite64_copy_full() argument 42 memcpy_toio_aligned(to, from, count, 64); in __iowrite64_copy_full() 47 void __iowrite32_copy_full(void __iomem *to, const void *from, size_t count) in __iowrite32_copy_full() argument 49 memcpy_toio_aligned(to, from, count, 32); in __iowrite32_copy_full()
|
| /arch/parisc/kernel/ |
| A D | alternative.c | 48 u32 *from, replacement; in apply_alternatives() local 52 from = (u32 *)((ulong)&entry->orig_offset + entry->orig_offset); in apply_alternatives() 63 index, cond, len, from, replacement); in apply_alternatives() 71 replacement = *from; in apply_alternatives() 84 index, cond, len, replacement, from, from); in apply_alternatives() 91 memcpy(from, source, 4 * len); in apply_alternatives() 94 *from = replacement; in apply_alternatives()
|
| /arch/x86/um/ |
| A D | ptrace.c | 123 const struct user_i387_struct *from); 126 const struct user_i387_struct *from) in um_fxsr_from_i387() argument 133 fxsave->fip = from->fip; in um_fxsr_from_i387() 135 fxsave->fcs = (from->fcs & 0xffff); in um_fxsr_from_i387() 136 fxsave->foo = from->foo; in um_fxsr_from_i387() 137 fxsave->fos = from->fos; in um_fxsr_from_i387() 141 (void *)from->st_space + i * 10, 10); in um_fxsr_from_i387() 153 const struct user_i387_struct *from; in fpregs_legacy_set() local 159 from = &buf; in fpregs_legacy_set() 161 from = kbuf; in fpregs_legacy_set() [all …]
|