Lines Matching refs:offset

536 xf86ReadMmio8(__volatile__ void *base, const unsigned long offset)
538 unsigned long addr = ((unsigned long)base) + offset;
548 xf86ReadMmio16Be(__volatile__ void *base, const unsigned long offset)
550 unsigned long addr = ((unsigned long)base) + offset;
560 xf86ReadMmio16Le(__volatile__ void *base, const unsigned long offset)
562 unsigned long addr = ((unsigned long)base) + offset;
572 xf86ReadMmio32Be(__volatile__ void *base, const unsigned long offset)
574 unsigned long addr = ((unsigned long)base) + offset;
584 xf86ReadMmio32Le(__volatile__ void *base, const unsigned long offset)
586 unsigned long addr = ((unsigned long)base) + offset;
596 xf86WriteMmio8(__volatile__ void *base, const unsigned long offset,
599 unsigned long addr = ((unsigned long)base) + offset;
608 xf86WriteMmio16Be(__volatile__ void *base, const unsigned long offset,
611 unsigned long addr = ((unsigned long)base) + offset;
620 xf86WriteMmio16Le(__volatile__ void *base, const unsigned long offset,
623 unsigned long addr = ((unsigned long)base) + offset;
632 xf86WriteMmio32Be(__volatile__ void *base, const unsigned long offset,
635 unsigned long addr = ((unsigned long)base) + offset;
644 xf86WriteMmio32Le(__volatile__ void *base, const unsigned long offset,
647 unsigned long addr = ((unsigned long)base) + offset;
656 xf86WriteMmio8NB(__volatile__ void *base, const unsigned long offset,
659 unsigned long addr = ((unsigned long)base) + offset;
667 xf86WriteMmio16BeNB(__volatile__ void *base, const unsigned long offset,
670 unsigned long addr = ((unsigned long)base) + offset;
678 xf86WriteMmio16LeNB(__volatile__ void *base, const unsigned long offset,
681 unsigned long addr = ((unsigned long)base) + offset;
689 xf86WriteMmio32BeNB(__volatile__ void *base, const unsigned long offset,
692 unsigned long addr = ((unsigned long)base) + offset;
700 xf86WriteMmio32LeNB(__volatile__ void *base, const unsigned long offset,
703 unsigned long addr = ((unsigned long)base) + offset;
760 xf86ReadMmio32Be(__volatile__ void *base, const unsigned long offset)
762 unsigned long addr = ((unsigned long)base) + offset;
772 xf86WriteMmio32Be(__volatile__ void *base, const unsigned long offset,
775 unsigned long addr = ((unsigned long)base) + offset;
794 xf86ReadMmio8(__volatile__ void *base, const unsigned long offset)
801 : "b" (base), "r" (offset),
802 "m" (*((volatile unsigned char *)base+offset)));
807 xf86ReadMmio16Be(__volatile__ void *base, const unsigned long offset)
814 : "b" (base), "r" (offset),
815 "m" (*((volatile unsigned char *)base+offset)));
820 xf86ReadMmio16Le(__volatile__ void *base, const unsigned long offset)
827 : "b" (base), "r" (offset),
828 "m" (*((volatile unsigned char *)base+offset)));
833 xf86ReadMmio32Be(__volatile__ void *base, const unsigned long offset)
840 : "b" (base), "r" (offset),
841 "m" (*((volatile unsigned char *)base+offset)));
846 xf86ReadMmio32Le(__volatile__ void *base, const unsigned long offset)
853 : "b" (base), "r" (offset),
854 "m" (*((volatile unsigned char *)base+offset)));
859 xf86WriteMmioNB8(__volatile__ void *base, const unsigned long offset,
864 : "=m" (*((volatile unsigned char *)base+offset))
865 : "r" (val), "b" (base), "r" (offset));
869 xf86WriteMmioNB16Le(__volatile__ void *base, const unsigned long offset,
874 : "=m" (*((volatile unsigned char *)base+offset))
875 : "r" (val), "b" (base), "r" (offset));
879 xf86WriteMmioNB16Be(__volatile__ void *base, const unsigned long offset,
884 : "=m" (*((volatile unsigned char *)base+offset))
885 : "r" (val), "b" (base), "r" (offset));
889 xf86WriteMmioNB32Le(__volatile__ void *base, const unsigned long offset,
894 : "=m" (*((volatile unsigned char *)base+offset))
895 : "r" (val), "b" (base), "r" (offset));
899 xf86WriteMmioNB32Be(__volatile__ void *base, const unsigned long offset,
904 : "=m" (*((volatile unsigned char *)base+offset))
905 : "r" (val), "b" (base), "r" (offset));
909 xf86WriteMmio8(__volatile__ void *base, const unsigned long offset,
912 xf86WriteMmioNB8(base, offset, val);
917 xf86WriteMmio16Le(__volatile__ void *base, const unsigned long offset,
920 xf86WriteMmioNB16Le(base, offset, val);
925 xf86WriteMmio16Be(__volatile__ void *base, const unsigned long offset,
928 xf86WriteMmioNB16Be(base, offset, val);
933 xf86WriteMmio32Le(__volatile__ void *base, const unsigned long offset,
936 xf86WriteMmioNB32Le(base, offset, val);
941 xf86WriteMmio32Be(__volatile__ void *base, const unsigned long offset,
944 xf86WriteMmioNB32Be(base, offset, val);
1034 xf86ReadMmio8(__volatile__ void *base, const unsigned long offset)
1036 return *(volatile unsigned char *)((unsigned char *)base + offset) ;
1040 xf86WriteMmio8(__volatile__ void *base, const unsigned long offset,
1043 *(volatile unsigned char *)((unsigned char *)base + offset) = val ;
1048 xf86WriteMmio8NB(__volatile__ void *base, const unsigned long offset,
1051 *(volatile unsigned char *)((unsigned char *)base + offset) = val ;
1055 xf86ReadMmio16Swap(__volatile__ void *base, const unsigned long offset)
1057 unsigned long addr = ((unsigned long)base) + offset;
1069 xf86ReadMmio16(__volatile__ void *base, const unsigned long offset)
1071 return *(volatile unsigned short *)((char *)base + offset) ;
1075 xf86WriteMmio16Swap(__volatile__ void *base, const unsigned long offset,
1078 unsigned long addr = ((unsigned long)base) + offset;
1089 xf86WriteMmio16(__volatile__ void *base, const unsigned long offset,
1092 *(volatile unsigned short *)((unsigned char *)base + offset) = val ;
1097 xf86WriteMmio16SwapNB(__volatile__ void *base, const unsigned long offset,
1100 unsigned long addr = ((unsigned long)base) + offset;
1110 xf86WriteMmio16NB(__volatile__ void *base, const unsigned long offset,
1113 *(volatile unsigned short *)((unsigned char *)base + offset) = val ;
1117 xf86ReadMmio32Swap(__volatile__ void *base, const unsigned long offset)
1119 unsigned long addr = ((unsigned long)base) + offset;
1132 xf86ReadMmio32(__volatile__ void *base, const unsigned long offset)
1134 return *(volatile unsigned int *)((unsigned char *)base + offset) ;
1138 xf86WriteMmio32Swap(__volatile__ void *base, const unsigned long offset,
1141 unsigned long addr = ((unsigned long)base) + offset;
1153 xf86WriteMmio32(__volatile__ void *base, const unsigned long offset,
1156 *(volatile unsigned int *)((unsigned char *)base + offset) = val ;
1161 xf86WriteMmio32SwapNB(__volatile__ void *base, const unsigned long offset,
1164 unsigned long addr = ((unsigned long)base) + offset;
1175 xf86WriteMmio32NB(__volatile__ void *base, const unsigned long offset,
1178 *(volatile unsigned int *)((unsigned char *)base + offset) = val ;
1570 # define MMIO_IN8(base, offset) (*xf86ReadMmio8)(base, offset)
1571 # define MMIO_IN16(base, offset) (*xf86ReadMmio16)(base, offset)
1573 # define MMIO_IN32(base, offset) (*xf86ReadMmio32)(base, offset)
1575 # define MMIO_IN32(base, offset) xf86ReadMmio32(base, offset)
1578 # define MMIO_OUT32(base, offset, val) \
1581 *(volatile CARD32 *)(void *)(((CARD8*)(base)) + (offset)) = (val); \
1583 # define MMIO_ONB32(base, offset, val) \
1584 *(volatile CARD32 *)(void *)(((CARD8*)(base)) + (offset)) = (val)
1586 # define MMIO_OUT8(base, offset, val) \
1587 (*xf86WriteMmio8)((CARD8)(val), base, offset)
1588 # define MMIO_OUT16(base, offset, val) \
1589 (*xf86WriteMmio16)((CARD16)(val), base, offset)
1590 # define MMIO_ONB8(base, offset, val) \
1591 (*xf86WriteMmioNB8)((CARD8)(val), base, offset)
1592 # define MMIO_ONB16(base, offset, val) \
1593 (*xf86WriteMmioNB16)((CARD16)(val), base, offset)
1594 # define MMIO_MOVE32(base, offset, val) \
1595 MMIO_OUT32(base, offset, val)
1603 # define MMIO_IN8(base, offset) xf86ReadMmio8(base, offset)
1604 # define MMIO_OUT8(base, offset, val) \
1605 xf86WriteMmio8(base, offset, (CARD8)(val))
1606 # define MMIO_ONB8(base, offset, val) \
1607 xf86WriteMmioNB8(base, offset, (CARD8)(val))
1610 # define MMIO_IN16(base, offset) xf86ReadMmio16Be(base, offset)
1611 # define MMIO_IN32(base, offset) xf86ReadMmio32Be(base, offset)
1612 # define MMIO_OUT16(base, offset, val) \
1613 xf86WriteMmio16Be(base, offset, (CARD16)(val))
1614 # define MMIO_OUT32(base, offset, val) \
1615 xf86WriteMmio32Be(base, offset, (CARD32)(val))
1616 # define MMIO_ONB16(base, offset, val) \
1617 xf86WriteMmioNB16Be(base, offset, (CARD16)(val))
1618 # define MMIO_ONB32(base, offset, val) \
1619 xf86WriteMmioNB32Be(base, offset, (CARD32)(val))
1621 # define MMIO_IN16(base, offset) xf86ReadMmio16Le(base, offset)
1622 # define MMIO_IN32(base, offset) xf86ReadMmio32Le(base, offset)
1623 # define MMIO_OUT16(base, offset, val) \
1624 xf86WriteMmio16Le(base, offset, (CARD16)(val))
1625 # define MMIO_OUT32(base, offset, val) \
1626 xf86WriteMmio32Le(base, offset, (CARD32)(val))
1627 # define MMIO_ONB16(base, offset, val) \
1628 xf86WriteMmioNB16Le(base, offset, (CARD16)(val))
1629 # define MMIO_ONB32(base, offset, val) \
1630 xf86WriteMmioNB32Le(base, offset, (CARD32)(val))
1633 # define MMIO_MOVE32(base, offset, val) \
1634 xf86WriteMmio32Be(base, offset, (CARD32)(val))
1644 # define MMIO_IN8(base, offset) xf86ReadMmio8(base, offset)
1645 # define MMIO_OUT8(base, offset, val) \
1646 xf86WriteMmio8(base, offset, (CARD8)(val))
1647 # define MMIO_ONB8(base, offset, val) \
1648 xf86WriteMmio8NB(base, offset, (CARD8)(val))
1651 # define MMIO_IN16(base, offset) xf86ReadMmio16Be(base, offset)
1652 # define MMIO_IN32(base, offset) xf86ReadMmio32Be(base, offset)
1653 # define MMIO_OUT16(base, offset, val) \
1654 xf86WriteMmio16Be(base, offset, (CARD16)(val))
1655 # define MMIO_OUT32(base, offset, val) \
1656 xf86WriteMmio32Be(base, offset, (CARD32)(val))
1657 # define MMIO_ONB16(base, offset, val) \
1658 xf86WriteMmio16BeNB(base, offset, (CARD16)(val))
1659 # define MMIO_ONB32(base, offset, val) \
1660 xf86WriteMmio32BeNB(base, offset, (CARD32)(val))
1662 # define MMIO_IN16(base, offset) xf86ReadMmio16Le(base, offset)
1663 # define MMIO_IN32(base, offset) xf86ReadMmio32Le(base, offset)
1664 # define MMIO_OUT16(base, offset, val) \
1665 xf86WriteMmio16Le(base, offset, (CARD16)(val))
1666 # define MMIO_OUT32(base, offset, val) \
1667 xf86WriteMmio32Le(base, offset, (CARD32)(val))
1668 # define MMIO_ONB16(base, offset, val) \
1669 xf86WriteMmio16LeNB(base, offset, (CARD16)(val))
1670 # define MMIO_ONB32(base, offset, val) \
1671 xf86WriteMmio32LeNB(base, offset, (CARD32)(val))
1674 # define MMIO_MOVE32(base, offset, val) \
1675 xf86WriteMmio32Be(base, offset, (CARD32)(val))
1684 # define MMIO_IN8(base, offset) xf86ReadMmio8(base, offset)
1685 # define MMIO_OUT8(base, offset, val) \
1686 xf86WriteMmio8(base, offset, (CARD8)(val))
1687 # define MMIO_ONB8(base, offset, val) \
1688 xf86WriteMmioNB8(base, offset, (CARD8)(val))
1691 # define MMIO_IN16(base, offset) xf86ReadMmio16Swap(base, offset)
1692 # define MMIO_IN32(base, offset) xf86ReadMmio32Swap(base, offset)
1693 # define MMIO_OUT16(base, offset, val) \
1694 xf86WriteMmio16Swap(base, offset, (CARD16)(val))
1695 # define MMIO_OUT32(base, offset, val) \
1696 xf86WriteMmio32Swap(base, offset, (CARD32)(val))
1697 # define MMIO_ONB16(base, offset, val) \
1698 xf86WriteMmioNB16Swap(base, offset, (CARD16)(val))
1699 # define MMIO_ONB32(base, offset, val) \
1700 xf86WriteMmioNB32Swap(base, offset, (CARD32)(val))
1702 # define MMIO_IN16(base, offset) xf86ReadMmio16(base, offset)
1703 # define MMIO_IN32(base, offset) xf86ReadMmio32(base, offset)
1704 # define MMIO_OUT16(base, offset, val) \
1705 xf86WriteMmio16(base, offset, (CARD16)(val))
1706 # define MMIO_OUT32(base, offset, val) \
1707 xf86WriteMmio32(base, offset, (CARD32)(val))
1708 # define MMIO_ONB16(base, offset, val) \
1709 xf86WriteMmioNB16(base, offset, (CARD16)(val))
1710 # define MMIO_ONB32(base, offset, val) \
1711 xf86WriteMmioNB32(base, offset, (CARD32)(val))
1714 # define MMIO_MOVE32(base, offset, val) \
1715 xf86WriteMmio32(base, offset, (CARD32)(val))
1740 # define MMIO_IN8(base, offset) \
1741 *(volatile CARD8 *)(((CARD8*)(base)) + (offset))
1742 # define MMIO_IN16(base, offset) \
1743 *(volatile CARD16 *)(void *)(((CARD8*)(base)) + (offset))
1744 # define MMIO_IN32(base, offset) \
1745 *(volatile CARD32 *)(void *)(((CARD8*)(base)) + (offset))
1746 # define MMIO_OUT8(base, offset, val) \
1747 *(volatile CARD8 *)(((CARD8*)(base)) + (offset)) = (val)
1748 # define MMIO_OUT16(base, offset, val) \
1749 *(volatile CARD16 *)(void *)(((CARD8*)(base)) + (offset)) = (val)
1750 # define MMIO_OUT32(base, offset, val) \
1751 *(volatile CARD32 *)(void *)(((CARD8*)(base)) + (offset)) = (val)
1752 # define MMIO_ONB8(base, offset, val) MMIO_OUT8(base, offset, val)
1753 # define MMIO_ONB16(base, offset, val) MMIO_OUT16(base, offset, val)
1754 # define MMIO_ONB32(base, offset, val) MMIO_OUT32(base, offset, val)
1756 # define MMIO_MOVE32(base, offset, val) MMIO_OUT32(base, offset, val)