Lines Matching defs:from
47 static inline void copy_pc_to_user(void *to, const void *from, size_t n)
52 put_user(readl_ns(from), (int *)to);
53 (char *)from += 4; (char *)to += 4; n -= 4;
56 put_user(readb((char *)from++), (char *)to++);
59 static inline void copy_user_to_pc(void *to, const void *from, size_t n)
66 get_user(l, (int *)from);
68 (char *)to += 4; (char *)from += 4; n -= 4;
71 get_user(c, (char *)from++);
78 static inline void copy_from_pc(void *to, const void *from, size_t n)
83 *(u_short *)to = readw_ns(from);
84 (char *)to += 2; (char *)from += 2; n -= 2;
87 *(u_char *)to = readb(from);
90 static inline void copy_to_pc(void *to, const void *from, size_t n)
95 writew_ns(*(u_short *)from, to);
96 (char *)to += 2; (char *)from += 2; n -= 2;
99 writeb(*(u_char *)from, to);
102 static inline void copy_pc_to_user(void *to, const void *from, size_t n)
107 put_user(readw_ns(from), (short *)to);
108 (char *)to += 2; (char *)from += 2; n -= 2;
111 put_user(readb(from), (char *)to);
114 static inline void copy_user_to_pc(void *to, const void *from, size_t n)
121 get_user(s, (short *)from);
123 (char *)to += 2; (char *)from += 2; n -= 2;
126 get_user(c, (char *)from);