• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/arch/alpha/kernel/

Lines Matching defs:to

252  * IDE driver to read disk sectors.  Performance is important, but
253 * the interfaces seems to be slow: just using the inlined version
293 * but the interfaces seems to be slow: just using the inlined version
346 * driver to write disk sectors. Performance is important, but the
347 * interfaces seems to be slow: just using the inlined version of the
386 * driver to write disk sectors. Works with any alignment in SRC.
387 * Performance is important, but the interfaces seems to be slow:
417 * Copy data from IO memory space to "real" memory space.
418 * This needs to be optimized.
420 void memcpy_fromio(void *to, const volatile void __iomem *from, long count)
425 if (count >= 8 && ((u64)to & 7) == ((u64)from & 7)) {
428 *(u64 *)to = __raw_readq(from);
430 to += 8;
436 if (count >= 4 && ((u64)to & 3) == ((u64)from & 3)) {
439 *(u32 *)to = __raw_readl(from);
441 to += 4;
447 if (count >= 2 && ((u64)to & 1) == ((u64)from & 1)) {
450 *(u16 *)to = __raw_readw(from);
452 to += 2;
459 *(u8 *) to = __raw_readb(from);
461 to++;
471 * Copy data from "real" memory space to IO memory space.
472 * This needs to be optimized.
474 void memcpy_toio(volatile void __iomem *to, const void *from, long count)
479 if (count >= 8 && ((u64)to & 7) == ((u64)from & 7)) {
482 __raw_writeq(*(const u64 *)from, to);
484 to += 8;
490 if (count >= 4 && ((u64)to & 3) == ((u64)from & 3)) {
493 __raw_writel(*(const u32 *)from, to);
495 to += 4;
501 if (count >= 2 && ((u64)to & 1) == ((u64)from & 1)) {
504 __raw_writew(*(const u16 *)from, to);
506 to += 2;
513 __raw_writeb(*(const u8 *) from, to);
515 to++;
527 void _memset_c_io(volatile void __iomem *to, unsigned long c, long count)
530 if (count > 0 && ((u64)to & 1)) {
531 __raw_writeb(c, to);
532 to++;
537 if (count >= 2 && ((u64)to & 2)) {
538 __raw_writew(c, to);
539 to += 2;
544 if (count >= 4 && ((u64)to & 4)) {
545 __raw_writel(c, to);
546 to += 4;
555 __raw_writeq(c, to);
556 to += 8;
564 __raw_writel(c, to);
565 to += 4;
571 __raw_writew(c, to);
572 to += 2;
578 __raw_writeb(c, to);
585 /* A version of memcpy used by the vga console routines to move data around