Lines Matching refs:from
2 * I/O device access primitives. Based on early versions from the Linux kernel.
280 #define outsb_p(port,from,len) outsb(port,from,len)
281 #define outsw_p(port,from,len) outsw(port,from,len)
282 #define outsl_p(port,from,len) outsl(port,from,len)
301 /* Optimized copy functions to read from/write to IO sapce */
305 * Copy data from IO memory space to "real" memory space.
308 void __memcpy_fromio(void *to, const volatile void __iomem *from, size_t count)
310 while (count && !IS_ALIGNED((unsigned long)from, 8)) {
311 *(u8 *)to = __raw_readb(from);
312 from++;
319 *(u64 *)to = __raw_readq(from);
320 from += 8;
327 *(u8 *)to = __raw_readb(from);
328 from++;
335 * Copy data from "real" memory space to IO memory space.
338 void __memcpy_toio(volatile void __iomem *to, const void *from, size_t count)
341 __raw_writeb(*(u8 *)from, to);
342 from++;
349 __raw_writeq(*(u64 *)from, to);
350 from += 8;
357 __raw_writeb(*(u8 *)from, to);
358 from++;