/linux/drivers/gpu/drm/amd/display/dc/dsc/ |
H A D | rc_calc_dpi.c | 29 static void copy_pps_fields(struct drm_dsc_config *to, const struct drm_dsc_config *from) in copy_pps_fields() argument 31 to->line_buf_depth = from->line_buf_depth; in copy_pps_fields() 32 to->bits_per_component = from->bits_per_component; in copy_pps_fields() 33 to->convert_rgb = from->convert_rgb; in copy_pps_fields() 34 to->slice_width = from->slice_width; in copy_pps_fields() 35 to->slice_height = from->slice_height; in copy_pps_fields() 36 to->simple_422 = from->simple_422; in copy_pps_fields() 37 to->native_422 = from->native_422; in copy_pps_fields() 38 to->native_420 = from->native_420; in copy_pps_fields() 39 to->pic_width = from->pic_width; in copy_pps_fields() [all …]
|
/linux/drivers/staging/media/atomisp/pci/isp/kernels/eed1_8/ |
H A D | ia_css_eed1_8.host.c | 82 const struct ia_css_eed1_8_config *from, in ia_css_eed1_8_vmem_encode() argument 122 assert(from->dew_enhance_seg_x[j] > -1); in ia_css_eed1_8_vmem_encode() 123 assert(from->dew_enhance_seg_y[j] > -1); in ia_css_eed1_8_vmem_encode() 127 assert(from->dew_enhance_seg_x[j] > from->dew_enhance_seg_x[j - 1]); in ia_css_eed1_8_vmem_encode() 128 assert(from->dew_enhance_seg_y[j] > from->dew_enhance_seg_y[j - 1]); in ia_css_eed1_8_vmem_encode() 131 assert(from->dew_enhance_seg_x[0] == 0); in ia_css_eed1_8_vmem_encode() 132 assert(from->dew_enhance_seg_y[0] == 0); in ia_css_eed1_8_vmem_encode() 166 to->e_dew_enh_x[0][base + j] = clamp(from->dew_enhance_seg_x[j], in ia_css_eed1_8_vmem_encode() 168 to->e_dew_enh_y[0][base + j] = clamp(from->dew_enhance_seg_y[j], in ia_css_eed1_8_vmem_encode() 173 to->e_dew_enh_a[0][base + j] = clamp(from->dew_enhance_seg_slope[j], in ia_css_eed1_8_vmem_encode() [all …]
|
/linux/arch/arm64/include/asm/ |
H A D | io.h | 147 __const_memcpy_toio_aligned32(volatile u32 __iomem *to, const u32 *from, in __const_memcpy_toio_aligned32() argument 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() 172 "rZ"(from[3]), "r"(to)); 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() 188 void __iowrite32_copy_full(void __iomem *to, const void *from, size_t count); 191 __iowrite32_copy(void __iomem *to, const void *from, size_t count) in __iowrite32_copy() argument [all …]
|
/linux/drivers/infiniband/hw/hfi1/ |
H A D | pio_copy.c | 31 const void *from, size_t count) in pio_copy() argument 51 writeq(*(u64 *)from, dest); in pio_copy() 52 from += sizeof(u64); in pio_copy() 67 writeq(*(u64 *)from, dest); in pio_copy() 68 from += sizeof(u64); in pio_copy() 86 writeq(*(u64 *)from, dest); in pio_copy() 87 from += sizeof(u64); in pio_copy() 97 writeq(*(u64 *)from, dest); in pio_copy() 98 from += sizeof(u64); in pio_copy() 109 val.val32[0] = *(u32 *)from; in pio_copy() [all …]
|
/linux/arch/x86/lib/ |
H 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") 10 static __always_inline void rep_movs(void *to, const void *from, size_t n) in rep_movs() argument 22 : "0" (n / 4), "q" (n), "1" ((long)to), "2" ((long)from) in rep_movs() 26 static void string_memcpy_fromio(void *to, const volatile void __iomem *from, size_t n) in string_memcpy_fromio() argument 35 if (unlikely(1 & (unsigned long)from)) { in string_memcpy_fromio() 36 movs("b", to, from); in string_memcpy_fromio() 39 if (n > 1 && unlikely(2 & (unsigned long)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() [all …]
|
/linux/ipc/ |
H A D | compat.c | 39 struct compat_ipc64_perm __user *from) in get_compat_ipc64_perm() argument 42 if (copy_from_user(&v, from, sizeof(v))) in get_compat_ipc64_perm() 51 struct compat_ipc_perm __user *from) in get_compat_ipc_perm() argument 54 if (copy_from_user(&v, from, sizeof(v))) in get_compat_ipc_perm() 62 void to_compat_ipc64_perm(struct compat_ipc64_perm *to, struct ipc64_perm *from) in to_compat_ipc64_perm() argument 64 to->key = from->key; in to_compat_ipc64_perm() 65 to->uid = from->uid; in to_compat_ipc64_perm() 66 to->gid = from->gid; in to_compat_ipc64_perm() 67 to->cuid = from->cuid; in to_compat_ipc64_perm() 68 to->cgid = from->cgid; in to_compat_ipc64_perm() [all …]
|
/linux/fs/xfs/libxfs/ |
H A D | xfs_sb.c | 751 struct xfs_dsb *from, in __xfs_sb_from_disk() argument 754 to->sb_magicnum = be32_to_cpu(from->sb_magicnum); in __xfs_sb_from_disk() 755 to->sb_blocksize = be32_to_cpu(from->sb_blocksize); in __xfs_sb_from_disk() 756 to->sb_dblocks = be64_to_cpu(from->sb_dblocks); in __xfs_sb_from_disk() 757 to->sb_rblocks = be64_to_cpu(from->sb_rblocks); in __xfs_sb_from_disk() 758 to->sb_rextents = be64_to_cpu(from->sb_rextents); in __xfs_sb_from_disk() 759 memcpy(&to->sb_uuid, &from->sb_uuid, sizeof(to->sb_uuid)); in __xfs_sb_from_disk() 760 to->sb_logstart = be64_to_cpu(from->sb_logstart); in __xfs_sb_from_disk() 761 to->sb_rootino = be64_to_cpu(from->sb_rootino); in __xfs_sb_from_disk() 762 to->sb_rbmino = be64_to_cpu(from->sb_rbmino); in __xfs_sb_from_disk() [all …]
|
/linux/arch/m68k/include/asm/ |
H A D | uaccess.h | 182 unsigned long __generic_copy_from_user(void *to, const void __user *from, unsigned long n); 183 unsigned long __generic_copy_to_user(void __user *to, const void *from, unsigned long n); 190 #define ____constant_copy_from_user_asm(res, to, from, tmp, n1, n2, n3, s1, s2, s3)\ argument 225 : "+d" (res), "+&a" (to), "+a" (from), "=&d" (tmp) \ 228 #define ___constant_copy_from_user_asm(res, to, from, tmp, n1, n2, n3, s1, s2, s3)\ argument 229 ____constant_copy_from_user_asm(res, to, from, tmp, n1, n2, n3, s1, s2, s3) 230 #define __constant_copy_from_user_asm(res, to, from, tmp, n1, n2, n3) \ argument 231 ___constant_copy_from_user_asm(res, to, from, tmp, n1, n2, n3, \ 235 __constant_copy_from_user(void *to, const void __user *from, unsigned long n) in __constant_copy_from_user() argument 241 __constant_copy_from_user_asm(res, to, from, tmp, 1, 0, 0); in __constant_copy_from_user() [all …]
|
/linux/Documentation/admin-guide/perf/ |
H A D | meson-ddr-pmu.rst | 26 + arm - from CPU 27 + vpu_read1 - from OSD + VPP read 28 + gpu - from 3D GPU 29 + pcie - from PCIe controller 30 + hdcp - from HDCP controller 31 + hevc_front - from HEVC codec front end 32 + usb3_0 - from USB3.0 controller 33 + hevc_back - from HEVC codec back end 34 + h265enc - from HEVC encoder 35 + vpu_read2 - from DI read [all …]
|
/linux/include/linux/ |
H A D | uaccess.h | 90 __copy_from_user_inatomic(void *to, const void __user *from, unsigned long n) in __copy_from_user_inatomic() argument 94 instrument_copy_from_user_before(to, from, n); in __copy_from_user_inatomic() 96 res = raw_copy_from_user(to, from, n); in __copy_from_user_inatomic() 97 instrument_copy_from_user_after(to, from, n, res); in __copy_from_user_inatomic() 102 __copy_from_user(void *to, const void __user *from, unsigned long n) in __copy_from_user() argument 107 instrument_copy_from_user_before(to, from, n); in __copy_from_user() 111 res = raw_copy_from_user(to, from, n); in __copy_from_user() 112 instrument_copy_from_user_after(to, from, n, res); in __copy_from_user() 130 __copy_to_user_inatomic(void __user *to, const void *from, unsigned long n) in __copy_to_user_inatomic() argument 134 instrument_copy_to_user(to, from, n); in __copy_to_user_inatomic() [all …]
|
H A D | highmem.h | 303 static inline void copy_user_highpage(struct page *to, struct page *from, in copy_user_highpage() argument 308 vfrom = kmap_local_page(from); in copy_user_highpage() 320 static inline void copy_highpage(struct page *to, struct page *from) in copy_highpage() argument 324 vfrom = kmap_local_page(from); in copy_highpage() 327 kmsan_copy_page_meta(to, from); in copy_highpage() 341 static inline int copy_mc_user_highpage(struct page *to, struct page *from, in copy_mc_user_highpage() argument 347 vfrom = kmap_local_page(from); in copy_mc_user_highpage() 356 memory_failure_queue(page_to_pfn(from), 0); in copy_mc_user_highpage() 361 static inline int copy_mc_highpage(struct page *to, struct page *from) in copy_mc_highpage() argument 366 vfrom = kmap_local_page(from); in copy_mc_highpage() [all …]
|
/linux/arch/sh/kernel/ |
H A D | io.c | 16 void memcpy_fromio(void *to, const volatile void __iomem *from, unsigned long count) in memcpy_fromio() argument 24 (((u32)to & 0x1f) == 0) && (((u32)from & 0x3) == 0)) { in memcpy_fromio() 52 "=&r" (tmp5), "=&r" (tmp6), "=&r" (from) in memcpy_fromio() 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() 79 void memcpy_toio(volatile void __iomem *to, const void *from, unsigned long count) in memcpy_toio() argument [all …]
|
/linux/scripts/coccinelle/api/ |
H A D | kstrdup.cocci | 18 expression from,to; 23 - to = kmalloc(strlen(from) + 1,flag); 24 + to = kstrdup(from, flag); 25 ... when != \(from = E1 \| to = E1 \) 27 ... when != \(from = E2 \| to = E2 \) 28 - strcpy(to, from); 31 expression x,from,to; 36 - x = strlen(from) + 1; 37 ... when != \( x = E1 \| from = E1 \) 39 + to = kstrdup(from, flag); [all …]
|
/linux/lib/ |
H A D | kunit_iov_iter.c | 23 int from, to; member 86 if (pr->from < 0) in iov_kunit_load_kvec() 88 KUNIT_ASSERT_GE(test, pr->to, pr->from); in iov_kunit_load_kvec() 90 kvec[i].iov_base = buffer + pr->from; in iov_kunit_load_kvec() 91 kvec[i].iov_len = pr->to - pr->from; in iov_kunit_load_kvec() 92 size += pr->to - pr->from; in iov_kunit_load_kvec() 135 for (pr = kvec_test_ranges; pr->from >= 0; pr++) in iov_kunit_copy_to_kvec() 136 for (i = pr->from; i < pr->to; i++) in iov_kunit_copy_to_kvec() 185 for (pr = kvec_test_ranges; pr->from >= 0; pr++) { in iov_kunit_copy_from_kvec() 186 for (j = pr->from; j < pr->to; j++) { in iov_kunit_copy_from_kvec() [all …]
|
H A D | usercopy.c | 16 unsigned long _copy_from_user(void *to, const void __user *from, unsigned long n) in _copy_from_user() argument 18 return _inline_copy_from_user(to, from, n); in _copy_from_user() 24 unsigned long _copy_to_user(void __user *to, const void *from, unsigned long n) in _copy_to_user() argument 26 return _inline_copy_to_user(to, from, n); in _copy_to_user() 45 int check_zeroed_user(const void __user *from, size_t size) in check_zeroed_user() argument 48 uintptr_t align = (uintptr_t) from % sizeof(unsigned long); in check_zeroed_user() 53 from -= align; in check_zeroed_user() 56 if (!user_read_access_begin(from, size)) in check_zeroed_user() 59 unsafe_get_user(val, (unsigned long __user *) from, err_fault); in check_zeroed_user() 67 from += sizeof(unsigned long); in check_zeroed_user() [all …]
|
/linux/tools/arch/x86/include/asm/ |
H A D | asm.h | 127 # define _ASM_EXTABLE_HANDLE(from, to, handler) \ 130 .long (from) - . ; \ 135 # define _ASM_EXTABLE(from, to) \ 136 _ASM_EXTABLE_HANDLE(from, to, ex_handler_default) 138 # define _ASM_EXTABLE_UA(from, to) \ 139 _ASM_EXTABLE_HANDLE(from, to, ex_handler_uaccess) 141 # define _ASM_EXTABLE_CPY(from, to) \ 142 _ASM_EXTABLE_HANDLE(from, to, ex_handler_copy) 144 # define _ASM_EXTABLE_FAULT(from, to) \ 145 _ASM_EXTABLE_HANDLE(from, to, ex_handler_fault) [all …]
|
/linux/lib/zlib_inflate/ |
H A D | inffast.c | 93 unsigned char *from; /* where to copy match from */ in inflate_fast() local 187 from = window; in inflate_fast() 189 from += wsize - op; in inflate_fast() 193 *out++ = *from++; in inflate_fast() 195 from = out - dist; /* rest from output */ in inflate_fast() 199 from += wsize + write - op; in inflate_fast() 204 *out++ = *from++; in inflate_fast() 206 from = window; in inflate_fast() 211 *out++ = *from++; in inflate_fast() 213 from = out - dist; /* rest from output */ in inflate_fast() [all …]
|
/linux/arch/s390/lib/ |
H A D | uaccess.c | 34 static unsigned long raw_copy_from_user_key(void *to, const void __user *from, in raw_copy_from_user_key() argument 67 : [size] "+&a" (size), [from] "+&a" (from), [to] "+&a" (to), [rem] "=&a" (rem) in raw_copy_from_user_key() 73 unsigned long raw_copy_from_user(void *to, const void __user *from, unsigned long n) in raw_copy_from_user() argument 75 return raw_copy_from_user_key(to, from, n, 0); in raw_copy_from_user() 79 unsigned long _copy_from_user_key(void *to, const void __user *from, in _copy_from_user_key() argument 86 instrument_copy_from_user_before(to, from, n); in _copy_from_user_key() 87 res = raw_copy_from_user_key(to, from, n, key); in _copy_from_user_key() 88 instrument_copy_from_user_after(to, from, n, res); in _copy_from_user_key() 96 static unsigned long raw_copy_to_user_key(void __user *to, const void *from, in raw_copy_to_user_key() argument 129 : [size] "+&a" (size), [to] "+&a" (to), [from] "+&a" (from), [rem] "=&a" (rem) in raw_copy_to_user_key() [all …]
|
/linux/arch/m68k/lib/ |
H A D | memcpy.c | 10 void *memcpy(void *to, const void *from, size_t n) in memcpy() argument 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() [all …]
|
/linux/fs/jfs/ |
H A D | jfs_unicode.c | 19 int jfs_strfromUCS_le(char *to, const __le16 * from, in jfs_strfromUCS_le() argument 28 for (i = 0; (i < len) && from[i]; i++) { in jfs_strfromUCS_le() 31 codepage->uni2char(le16_to_cpu(from[i]), in jfs_strfromUCS_le() 40 for (i = 0; (i < len) && from[i]; i++) { in jfs_strfromUCS_le() 41 if (unlikely(le16_to_cpu(from[i]) & 0xff00)) { in jfs_strfromUCS_le() 48 le16_to_cpu(from[i])); in jfs_strfromUCS_le() 55 to[i] = (char) (le16_to_cpu(from[i])); in jfs_strfromUCS_le() 69 static int jfs_strtoUCS(wchar_t * to, const unsigned char *from, int len, in jfs_strtoUCS() argument 76 for (i = 0; len && *from; i++, from += charlen, len -= charlen) in jfs_strtoUCS() 78 charlen = codepage->char2uni(from, len, &to[i]); in jfs_strtoUCS() [all …]
|
/linux/arch/arc/include/asm/ |
H A D | uaccess.h | 139 raw_copy_from_user(void *to, const void __user *from, unsigned long n) in raw_copy_from_user() argument 151 (((unsigned long)to & 0x3) || ((unsigned long)from & 0x3))) { in raw_copy_from_user() 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() 357 : "=r" (res), "+r"(to), "+r"(from), "+r"(n), "=r"(val), in raw_copy_from_user() 367 raw_copy_to_user(void __user *to, const void *from, unsigned long n) in raw_copy_to_user() argument [all …]
|
/linux/drivers/net/fddi/skfp/ |
H A D | pmf.c | 551 char *from ; in smt_add_para() local 884 from = mib_addr + pt->p_offset ; in smt_add_para() 907 to[2] = *from++ ; in smt_add_para() 908 to[3] = *from++ ; in smt_add_para() 911 to[3] = *from++ ; in smt_add_para() 912 to[2] = *from++ ; in smt_add_para() 915 to[2] = *from++ ; in smt_add_para() 916 to[3] = *from++ ; in smt_add_para() 925 to[1] = *from++ ; in smt_add_para() 926 to[0] = *from++ ; in smt_add_para() [all …]
|
/linux/arch/arm/mach-omap2/ |
H A D | pm44xx.c | 43 const char *from; member 173 {.from = "mpuss_clkdm", .to = "l3_emif_clkdm"}, 174 {.from = "mpuss_clkdm", .to = "l3_1_clkdm"}, 175 {.from = "mpuss_clkdm", .to = "l3_2_clkdm"}, 176 {.from = "ducati_clkdm", .to = "l3_1_clkdm"}, 177 {.from = "ducati_clkdm", .to = "l3_2_clkdm"}, 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 [all …]
|
/linux/fs/proc/ |
H A D | proc_tty.c | 27 dev_t from, int num) in show_tty_range() argument 32 seq_printf(m, "%3d %d-%d ", MAJOR(from), MINOR(from), in show_tty_range() 33 MINOR(from) + num - 1); in show_tty_range() 35 seq_printf(m, "%3d %7d ", MAJOR(from), MINOR(from)); in show_tty_range() 70 dev_t from = MKDEV(p->major, p->minor_start); in show_tty_driver() local 71 dev_t to = from + p->num; in show_tty_driver() 93 while (MAJOR(from) < MAJOR(to)) { in show_tty_driver() 94 dev_t next = MKDEV(MAJOR(from)+1, 0); in show_tty_driver() 95 show_tty_range(m, p, from, next - from); in show_tty_driver() 96 from = next; in show_tty_driver() [all …]
|
/linux/arch/x86/include/asm/ |
H A D | string_32.h | 33 static __always_inline void *__memcpy(void *to, const void *from, size_t n) in __memcpy() argument 43 : "0" (n / 4), "g" (n), "1" ((long)to), "2" ((long)from) in __memcpy() 52 static __always_inline void *__constant_memcpy(void *to, const void *from, in __constant_memcpy() argument 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() [all …]
|