Lines Matching refs:offset
554 xf86ReadMmio8(__volatile__ void *base, const unsigned long offset)
556 unsigned long addr = ((unsigned long) base) + offset;
566 xf86ReadMmio16Be(__volatile__ void *base, const unsigned long offset)
568 unsigned long addr = ((unsigned long) base) + offset;
578 xf86ReadMmio16Le(__volatile__ void *base, const unsigned long offset)
580 unsigned long addr = ((unsigned long) base) + offset;
590 xf86ReadMmio32Be(__volatile__ void *base, const unsigned long offset)
592 unsigned long addr = ((unsigned long) base) + offset;
602 xf86ReadMmio32Le(__volatile__ void *base, const unsigned long offset)
604 unsigned long addr = ((unsigned long) base) + offset;
614 xf86WriteMmio8(__volatile__ void *base, const unsigned long offset,
617 unsigned long addr = ((unsigned long) base) + offset;
626 xf86WriteMmio16Be(__volatile__ void *base, const unsigned long offset,
629 unsigned long addr = ((unsigned long) base) + offset;
638 xf86WriteMmio16Le(__volatile__ void *base, const unsigned long offset,
641 unsigned long addr = ((unsigned long) base) + offset;
650 xf86WriteMmio32Be(__volatile__ void *base, const unsigned long offset,
653 unsigned long addr = ((unsigned long) base) + offset;
662 xf86WriteMmio32Le(__volatile__ void *base, const unsigned long offset,
665 unsigned long addr = ((unsigned long) base) + offset;
674 xf86WriteMmio8NB(__volatile__ void *base, const unsigned long offset,
677 unsigned long addr = ((unsigned long) base) + offset;
684 xf86WriteMmio16BeNB(__volatile__ void *base, const unsigned long offset,
687 unsigned long addr = ((unsigned long) base) + offset;
694 xf86WriteMmio16LeNB(__volatile__ void *base, const unsigned long offset,
697 unsigned long addr = ((unsigned long) base) + offset;
704 xf86WriteMmio32BeNB(__volatile__ void *base, const unsigned long offset,
707 unsigned long addr = ((unsigned long) base) + offset;
714 xf86WriteMmio32LeNB(__volatile__ void *base, const unsigned long offset,
717 unsigned long addr = ((unsigned long) base) + offset;
778 xf86ReadMmio32Be(__volatile__ void *base, const unsigned long offset)
780 unsigned long addr = ((unsigned long) base) + offset;
790 xf86WriteMmio32Be(__volatile__ void *base, const unsigned long offset,
793 unsigned long addr = ((unsigned long) base) + offset;
811 xf86ReadMmio8(__volatile__ void *base, const unsigned long offset)
815 :"b"(base), "r"(offset),
816 "m"(*((volatile unsigned char *) base + offset)));
821 xf86ReadMmio16Be(__volatile__ void *base, const unsigned long offset)
825 :"b"(base), "r"(offset),
826 "m"(*((volatile unsigned char *) base + offset)));
831 xf86ReadMmio16Le(__volatile__ void *base, const unsigned long offset)
835 :"b"(base), "r"(offset),
836 "m"(*((volatile unsigned char *) base + offset)));
841 xf86ReadMmio32Be(__volatile__ void *base, const unsigned long offset)
845 :"b"(base), "r"(offset),
846 "m"(*((volatile unsigned char *) base + offset)));
851 xf86ReadMmio32Le(__volatile__ void *base, const unsigned long offset)
855 :"b"(base), "r"(offset),
856 "m"(*((volatile unsigned char *) base + offset)));
861 xf86WriteMmioNB8(__volatile__ void *base, const unsigned long offset,
866 (*((volatile unsigned char *) base + offset))
867 :"r"(val), "b"(base), "r"(offset));
871 xf86WriteMmioNB16Le(__volatile__ void *base, const unsigned long offset,
876 (*((volatile unsigned char *) base + offset))
877 :"r"(val), "b"(base), "r"(offset));
881 xf86WriteMmioNB16Be(__volatile__ void *base, const unsigned long offset,
886 (*((volatile unsigned char *) base + offset))
887 :"r"(val), "b"(base), "r"(offset));
891 xf86WriteMmioNB32Le(__volatile__ void *base, const unsigned long offset,
896 (*((volatile unsigned char *) base + offset))
897 :"r"(val), "b"(base), "r"(offset));
901 xf86WriteMmioNB32Be(__volatile__ void *base, const unsigned long offset,
906 (*((volatile unsigned char *) base + offset))
907 :"r"(val), "b"(base), "r"(offset));
911 xf86WriteMmio8(__volatile__ void *base, const unsigned long offset,
914 xf86WriteMmioNB8(base, offset, val);
919 xf86WriteMmio16Le(__volatile__ void *base, const unsigned long offset,
922 xf86WriteMmioNB16Le(base, offset, val);
927 xf86WriteMmio16Be(__volatile__ void *base, const unsigned long offset,
930 xf86WriteMmioNB16Be(base, offset, val);
935 xf86WriteMmio32Le(__volatile__ void *base, const unsigned long offset,
938 xf86WriteMmioNB32Le(base, offset, val);
943 xf86WriteMmio32Be(__volatile__ void *base, const unsigned long offset,
946 xf86WriteMmioNB32Be(base, offset, val);
1041 xf86ReadMmio8(__volatile__ void *base, const unsigned long offset)
1043 return *(volatile unsigned char *) ((unsigned char *) base + offset);
1047 xf86WriteMmio8(__volatile__ void *base, const unsigned long offset,
1050 *(volatile unsigned char *) ((unsigned char *) base + offset) = val;
1055 xf86WriteMmio8NB(__volatile__ void *base, const unsigned long offset,
1058 *(volatile unsigned char *) ((unsigned char *) base + offset) = val;
1062 xf86ReadMmio16Swap(__volatile__ void *base, const unsigned long offset)
1064 unsigned long addr = ((unsigned long) base) + offset;
1074 xf86ReadMmio16(__volatile__ void *base, const unsigned long offset)
1076 return *(volatile unsigned short *) ((char *) base + offset);
1080 xf86WriteMmio16Swap(__volatile__ void *base, const unsigned long offset,
1083 unsigned long addr = ((unsigned long) base) + offset;
1092 xf86WriteMmio16(__volatile__ void *base, const unsigned long offset,
1095 *(volatile unsigned short *) ((unsigned char *) base + offset) = val;
1100 xf86WriteMmio16SwapNB(__volatile__ void *base, const unsigned long offset,
1103 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;
1130 xf86ReadMmio32(__volatile__ void *base, const unsigned long offset)
1132 return *(volatile unsigned int *) ((unsigned char *) base + offset);
1136 xf86WriteMmio32Swap(__volatile__ void *base, const unsigned long offset,
1139 unsigned long addr = ((unsigned long) base) + offset;
1148 xf86WriteMmio32(__volatile__ void *base, const unsigned long offset,
1151 *(volatile unsigned int *) ((unsigned char *) base + offset) = val;
1156 xf86WriteMmio32SwapNB(__volatile__ void *base, const unsigned long offset,
1159 unsigned long addr = ((unsigned long) base) + offset;
1166 xf86WriteMmio32NB(__volatile__ void *base, const unsigned long offset,
1169 *(volatile unsigned int *) ((unsigned char *) base + offset) = val;
1546 #define MMIO_IN8(base, offset) (*xf86ReadMmio8)(base, offset)
1547 #define MMIO_IN16(base, offset) (*xf86ReadMmio16)(base, offset)
1549 #define MMIO_IN32(base, offset) (*xf86ReadMmio32)(base, offset)
1551 #define MMIO_IN32(base, offset) xf86ReadMmio32(base, offset)
1554 #define MMIO_OUT32(base, offset, val) \
1557 *(volatile CARD32 *)(void *)(((CARD8*)(base)) + (offset)) = (val); \
1559 #define MMIO_ONB32(base, offset, val) \
1560 *(volatile CARD32 *)(void *)(((CARD8*)(base)) + (offset)) = (val)
1562 #define MMIO_OUT8(base, offset, val) \
1563 (*xf86WriteMmio8)((CARD8)(val), base, offset)
1564 #define MMIO_OUT16(base, offset, val) \
1565 (*xf86WriteMmio16)((CARD16)(val), base, offset)
1566 #define MMIO_ONB8(base, offset, val) \
1567 (*xf86WriteMmioNB8)((CARD8)(val), base, offset)
1568 #define MMIO_ONB16(base, offset, val) \
1569 (*xf86WriteMmioNB16)((CARD16)(val), base, offset)
1570 #define MMIO_MOVE32(base, offset, val) \
1571 MMIO_OUT32(base, offset, val)
1579 #define MMIO_IN8(base, offset) xf86ReadMmio8(base, offset)
1580 #define MMIO_OUT8(base, offset, val) \
1581 xf86WriteMmio8(base, offset, (CARD8)(val))
1582 #define MMIO_ONB8(base, offset, val) \
1583 xf86WriteMmioNB8(base, offset, (CARD8)(val))
1586 #define MMIO_IN16(base, offset) xf86ReadMmio16Be(base, offset)
1587 #define MMIO_IN32(base, offset) xf86ReadMmio32Be(base, offset)
1588 #define MMIO_OUT16(base, offset, val) \
1589 xf86WriteMmio16Be(base, offset, (CARD16)(val))
1590 #define MMIO_OUT32(base, offset, val) \
1591 xf86WriteMmio32Be(base, offset, (CARD32)(val))
1592 #define MMIO_ONB16(base, offset, val) \
1593 xf86WriteMmioNB16Be(base, offset, (CARD16)(val))
1594 #define MMIO_ONB32(base, offset, val) \
1595 xf86WriteMmioNB32Be(base, offset, (CARD32)(val))
1597 #define MMIO_IN16(base, offset) xf86ReadMmio16Le(base, offset)
1598 #define MMIO_IN32(base, offset) xf86ReadMmio32Le(base, offset)
1599 #define MMIO_OUT16(base, offset, val) \
1600 xf86WriteMmio16Le(base, offset, (CARD16)(val))
1601 #define MMIO_OUT32(base, offset, val) \
1602 xf86WriteMmio32Le(base, offset, (CARD32)(val))
1603 #define MMIO_ONB16(base, offset, val) \
1604 xf86WriteMmioNB16Le(base, offset, (CARD16)(val))
1605 #define MMIO_ONB32(base, offset, val) \
1606 xf86WriteMmioNB32Le(base, offset, (CARD32)(val))
1609 #define MMIO_MOVE32(base, offset, val) \
1610 xf86WriteMmio32Be(base, offset, (CARD32)(val))
1620 #define MMIO_IN8(base, offset) xf86ReadMmio8(base, offset)
1621 #define MMIO_OUT8(base, offset, val) \
1622 xf86WriteMmio8(base, offset, (CARD8)(val))
1623 #define MMIO_ONB8(base, offset, val) \
1624 xf86WriteMmio8NB(base, offset, (CARD8)(val))
1627 #define MMIO_IN16(base, offset) xf86ReadMmio16Be(base, offset)
1628 #define MMIO_IN32(base, offset) xf86ReadMmio32Be(base, offset)
1629 #define MMIO_OUT16(base, offset, val) \
1630 xf86WriteMmio16Be(base, offset, (CARD16)(val))
1631 #define MMIO_OUT32(base, offset, val) \
1632 xf86WriteMmio32Be(base, offset, (CARD32)(val))
1633 #define MMIO_ONB16(base, offset, val) \
1634 xf86WriteMmio16BeNB(base, offset, (CARD16)(val))
1635 #define MMIO_ONB32(base, offset, val) \
1636 xf86WriteMmio32BeNB(base, offset, (CARD32)(val))
1638 #define MMIO_IN16(base, offset) xf86ReadMmio16Le(base, offset)
1639 #define MMIO_IN32(base, offset) xf86ReadMmio32Le(base, offset)
1640 #define MMIO_OUT16(base, offset, val) \
1641 xf86WriteMmio16Le(base, offset, (CARD16)(val))
1642 #define MMIO_OUT32(base, offset, val) \
1643 xf86WriteMmio32Le(base, offset, (CARD32)(val))
1644 #define MMIO_ONB16(base, offset, val) \
1645 xf86WriteMmio16LeNB(base, offset, (CARD16)(val))
1646 #define MMIO_ONB32(base, offset, val) \
1647 xf86WriteMmio32LeNB(base, offset, (CARD32)(val))
1650 #define MMIO_MOVE32(base, offset, val) \
1651 xf86WriteMmio32Be(base, offset, (CARD32)(val))
1660 #define MMIO_IN8(base, offset) xf86ReadMmio8(base, offset)
1661 #define MMIO_OUT8(base, offset, val) \
1662 xf86WriteMmio8(base, offset, (CARD8)(val))
1663 #define MMIO_ONB8(base, offset, val) \
1664 xf86WriteMmioNB8(base, offset, (CARD8)(val))
1667 #define MMIO_IN16(base, offset) xf86ReadMmio16Swap(base, offset)
1668 #define MMIO_IN32(base, offset) xf86ReadMmio32Swap(base, offset)
1669 #define MMIO_OUT16(base, offset, val) \
1670 xf86WriteMmio16Swap(base, offset, (CARD16)(val))
1671 #define MMIO_OUT32(base, offset, val) \
1672 xf86WriteMmio32Swap(base, offset, (CARD32)(val))
1673 #define MMIO_ONB16(base, offset, val) \
1674 xf86WriteMmioNB16Swap(base, offset, (CARD16)(val))
1675 #define MMIO_ONB32(base, offset, val) \
1676 xf86WriteMmioNB32Swap(base, offset, (CARD32)(val))
1678 #define MMIO_IN16(base, offset) xf86ReadMmio16(base, offset)
1679 #define MMIO_IN32(base, offset) xf86ReadMmio32(base, offset)
1680 #define MMIO_OUT16(base, offset, val) \
1681 xf86WriteMmio16(base, offset, (CARD16)(val))
1682 #define MMIO_OUT32(base, offset, val) \
1683 xf86WriteMmio32(base, offset, (CARD32)(val))
1684 #define MMIO_ONB16(base, offset, val) \
1685 xf86WriteMmioNB16(base, offset, (CARD16)(val))
1686 #define MMIO_ONB32(base, offset, val) \
1687 xf86WriteMmioNB32(base, offset, (CARD32)(val))
1690 #define MMIO_MOVE32(base, offset, val) \
1691 xf86WriteMmio32(base, offset, (CARD32)(val))
1712 #define MMIO_IN8(base, offset) \
1713 *(volatile CARD8 *)(((CARD8*)(base)) + (offset))
1714 #define MMIO_IN16(base, offset) \
1715 *(volatile CARD16 *)(void *)(((CARD8*)(base)) + (offset))
1716 #define MMIO_IN32(base, offset) \
1717 *(volatile CARD32 *)(void *)(((CARD8*)(base)) + (offset))
1718 #define MMIO_OUT8(base, offset, val) \
1719 *(volatile CARD8 *)(((CARD8*)(base)) + (offset)) = (val)
1720 #define MMIO_OUT16(base, offset, val) \
1721 *(volatile CARD16 *)(void *)(((CARD8*)(base)) + (offset)) = (val)
1722 #define MMIO_OUT32(base, offset, val) \
1723 *(volatile CARD32 *)(void *)(((CARD8*)(base)) + (offset)) = (val)
1724 #define MMIO_ONB8(base, offset, val) MMIO_OUT8(base, offset, val)
1725 #define MMIO_ONB16(base, offset, val) MMIO_OUT16(base, offset, val)
1726 #define MMIO_ONB32(base, offset, val) MMIO_OUT32(base, offset, val)
1728 #define MMIO_MOVE32(base, offset, val) MMIO_OUT32(base, offset, val)