Lines Matching refs:offset

555 xf86ReadMmio8(__volatile__ void *base, const unsigned long offset)
557 unsigned long addr = ((unsigned long) base) + offset;
567 xf86ReadMmio16Be(__volatile__ void *base, const unsigned long offset)
569 unsigned long addr = ((unsigned long) base) + offset;
579 xf86ReadMmio16Le(__volatile__ void *base, const unsigned long offset)
581 unsigned long addr = ((unsigned long) base) + offset;
591 xf86ReadMmio32Be(__volatile__ void *base, const unsigned long offset)
593 unsigned long addr = ((unsigned long) base) + offset;
603 xf86ReadMmio32Le(__volatile__ void *base, const unsigned long offset)
605 unsigned long addr = ((unsigned long) base) + offset;
615 xf86WriteMmio8(__volatile__ void *base, const unsigned long offset,
618 unsigned long addr = ((unsigned long) base) + offset;
627 xf86WriteMmio16Be(__volatile__ void *base, const unsigned long offset,
630 unsigned long addr = ((unsigned long) base) + offset;
639 xf86WriteMmio16Le(__volatile__ void *base, const unsigned long offset,
642 unsigned long addr = ((unsigned long) base) + offset;
651 xf86WriteMmio32Be(__volatile__ void *base, const unsigned long offset,
654 unsigned long addr = ((unsigned long) base) + offset;
663 xf86WriteMmio32Le(__volatile__ void *base, const unsigned long offset,
666 unsigned long addr = ((unsigned long) base) + offset;
675 xf86WriteMmio8NB(__volatile__ void *base, const unsigned long offset,
678 unsigned long addr = ((unsigned long) base) + offset;
685 xf86WriteMmio16BeNB(__volatile__ void *base, const unsigned long offset,
688 unsigned long addr = ((unsigned long) base) + offset;
695 xf86WriteMmio16LeNB(__volatile__ void *base, const unsigned long offset,
698 unsigned long addr = ((unsigned long) base) + offset;
705 xf86WriteMmio32BeNB(__volatile__ void *base, const unsigned long offset,
708 unsigned long addr = ((unsigned long) base) + offset;
715 xf86WriteMmio32LeNB(__volatile__ void *base, const unsigned long offset,
718 unsigned long addr = ((unsigned long) base) + offset;
779 xf86ReadMmio32Be(__volatile__ void *base, const unsigned long offset)
781 unsigned long addr = ((unsigned long) base) + offset;
791 xf86WriteMmio32Be(__volatile__ void *base, const unsigned long offset,
794 unsigned long addr = ((unsigned long) base) + offset;
812 xf86ReadMmio8(__volatile__ void *base, const unsigned long offset)
816 :"b"(base), "r"(offset),
817 "m"(*((volatile unsigned char *) base + offset)));
822 xf86ReadMmio16Be(__volatile__ void *base, const unsigned long offset)
826 :"b"(base), "r"(offset),
827 "m"(*((volatile unsigned char *) base + offset)));
832 xf86ReadMmio16Le(__volatile__ void *base, const unsigned long offset)
836 :"b"(base), "r"(offset),
837 "m"(*((volatile unsigned char *) base + offset)));
842 xf86ReadMmio32Be(__volatile__ void *base, const unsigned long offset)
846 :"b"(base), "r"(offset),
847 "m"(*((volatile unsigned char *) base + offset)));
852 xf86ReadMmio32Le(__volatile__ void *base, const unsigned long offset)
856 :"b"(base), "r"(offset),
857 "m"(*((volatile unsigned char *) base + offset)));
862 xf86WriteMmioNB8(__volatile__ void *base, const unsigned long offset,
867 (*((volatile unsigned char *) base + offset))
868 :"r"(val), "b"(base), "r"(offset));
872 xf86WriteMmioNB16Le(__volatile__ void *base, const unsigned long offset,
877 (*((volatile unsigned char *) base + offset))
878 :"r"(val), "b"(base), "r"(offset));
882 xf86WriteMmioNB16Be(__volatile__ void *base, const unsigned long offset,
887 (*((volatile unsigned char *) base + offset))
888 :"r"(val), "b"(base), "r"(offset));
892 xf86WriteMmioNB32Le(__volatile__ void *base, const unsigned long offset,
897 (*((volatile unsigned char *) base + offset))
898 :"r"(val), "b"(base), "r"(offset));
902 xf86WriteMmioNB32Be(__volatile__ void *base, const unsigned long offset,
907 (*((volatile unsigned char *) base + offset))
908 :"r"(val), "b"(base), "r"(offset));
912 xf86WriteMmio8(__volatile__ void *base, const unsigned long offset,
915 xf86WriteMmioNB8(base, offset, val);
920 xf86WriteMmio16Le(__volatile__ void *base, const unsigned long offset,
923 xf86WriteMmioNB16Le(base, offset, val);
928 xf86WriteMmio16Be(__volatile__ void *base, const unsigned long offset,
931 xf86WriteMmioNB16Be(base, offset, val);
936 xf86WriteMmio32Le(__volatile__ void *base, const unsigned long offset,
939 xf86WriteMmioNB32Le(base, offset, val);
944 xf86WriteMmio32Be(__volatile__ void *base, const unsigned long offset,
947 xf86WriteMmioNB32Be(base, offset, val);
1042 xf86ReadMmio8(__volatile__ void *base, const unsigned long offset)
1044 return *(volatile unsigned char *) ((unsigned char *) base + offset);
1048 xf86WriteMmio8(__volatile__ void *base, const unsigned long offset,
1051 *(volatile unsigned char *) ((unsigned char *) base + offset) = val;
1056 xf86WriteMmio8NB(__volatile__ void *base, const unsigned long offset,
1059 *(volatile unsigned char *) ((unsigned char *) base + offset) = val;
1063 xf86ReadMmio16Swap(__volatile__ void *base, const unsigned long offset)
1065 unsigned long addr = ((unsigned long) base) + offset;
1075 xf86ReadMmio16(__volatile__ void *base, const unsigned long offset)
1077 return *(volatile unsigned short *) ((char *) base + offset);
1081 xf86WriteMmio16Swap(__volatile__ void *base, const unsigned long offset,
1084 unsigned long addr = ((unsigned long) base) + offset;
1093 xf86WriteMmio16(__volatile__ void *base, const unsigned long offset,
1096 *(volatile unsigned short *) ((unsigned char *) base + offset) = val;
1101 xf86WriteMmio16SwapNB(__volatile__ void *base, const unsigned long offset,
1104 unsigned long addr = ((unsigned long) base) + offset;
1111 xf86WriteMmio16NB(__volatile__ void *base, const unsigned long offset,
1114 *(volatile unsigned short *) ((unsigned char *) base + offset) = val;
1118 xf86ReadMmio32Swap(__volatile__ void *base, const unsigned long offset)
1120 unsigned long addr = ((unsigned long) base) + offset;
1131 xf86ReadMmio32(__volatile__ void *base, const unsigned long offset)
1133 return *(volatile unsigned int *) ((unsigned char *) base + offset);
1137 xf86WriteMmio32Swap(__volatile__ void *base, const unsigned long offset,
1140 unsigned long addr = ((unsigned long) base) + offset;
1149 xf86WriteMmio32(__volatile__ void *base, const unsigned long offset,
1152 *(volatile unsigned int *) ((unsigned char *) base + offset) = val;
1157 xf86WriteMmio32SwapNB(__volatile__ void *base, const unsigned long offset,
1160 unsigned long addr = ((unsigned long) base) + offset;
1167 xf86WriteMmio32NB(__volatile__ void *base, const unsigned long offset,
1170 *(volatile unsigned int *) ((unsigned char *) base + offset) = val;
1550 #define MMIO_IN8(base, offset) (*xf86ReadMmio8)(base, offset)
1551 #define MMIO_IN16(base, offset) (*xf86ReadMmio16)(base, offset)
1553 #define MMIO_IN32(base, offset) (*xf86ReadMmio32)(base, offset)
1555 #define MMIO_IN32(base, offset) xf86ReadMmio32(base, offset)
1558 #define MMIO_OUT32(base, offset, val) \
1561 *(volatile CARD32 *)(void *)(((CARD8*)(base)) + (offset)) = (val); \
1563 #define MMIO_ONB32(base, offset, val) \
1564 *(volatile CARD32 *)(void *)(((CARD8*)(base)) + (offset)) = (val)
1566 #define MMIO_OUT8(base, offset, val) \
1567 (*xf86WriteMmio8)((CARD8)(val), base, offset)
1568 #define MMIO_OUT16(base, offset, val) \
1569 (*xf86WriteMmio16)((CARD16)(val), base, offset)
1570 #define MMIO_ONB8(base, offset, val) \
1571 (*xf86WriteMmioNB8)((CARD8)(val), base, offset)
1572 #define MMIO_ONB16(base, offset, val) \
1573 (*xf86WriteMmioNB16)((CARD16)(val), base, offset)
1574 #define MMIO_MOVE32(base, offset, val) \
1575 MMIO_OUT32(base, offset, val)
1583 #define MMIO_IN8(base, offset) xf86ReadMmio8(base, offset)
1584 #define MMIO_OUT8(base, offset, val) \
1585 xf86WriteMmio8(base, offset, (CARD8)(val))
1586 #define MMIO_ONB8(base, offset, val) \
1587 xf86WriteMmioNB8(base, offset, (CARD8)(val))
1590 #define MMIO_IN16(base, offset) xf86ReadMmio16Be(base, offset)
1591 #define MMIO_IN32(base, offset) xf86ReadMmio32Be(base, offset)
1592 #define MMIO_OUT16(base, offset, val) \
1593 xf86WriteMmio16Be(base, offset, (CARD16)(val))
1594 #define MMIO_OUT32(base, offset, val) \
1595 xf86WriteMmio32Be(base, offset, (CARD32)(val))
1596 #define MMIO_ONB16(base, offset, val) \
1597 xf86WriteMmioNB16Be(base, offset, (CARD16)(val))
1598 #define MMIO_ONB32(base, offset, val) \
1599 xf86WriteMmioNB32Be(base, offset, (CARD32)(val))
1601 #define MMIO_IN16(base, offset) xf86ReadMmio16Le(base, offset)
1602 #define MMIO_IN32(base, offset) xf86ReadMmio32Le(base, offset)
1603 #define MMIO_OUT16(base, offset, val) \
1604 xf86WriteMmio16Le(base, offset, (CARD16)(val))
1605 #define MMIO_OUT32(base, offset, val) \
1606 xf86WriteMmio32Le(base, offset, (CARD32)(val))
1607 #define MMIO_ONB16(base, offset, val) \
1608 xf86WriteMmioNB16Le(base, offset, (CARD16)(val))
1609 #define MMIO_ONB32(base, offset, val) \
1610 xf86WriteMmioNB32Le(base, offset, (CARD32)(val))
1613 #define MMIO_MOVE32(base, offset, val) \
1614 xf86WriteMmio32Be(base, offset, (CARD32)(val))
1624 #define MMIO_IN8(base, offset) xf86ReadMmio8(base, offset)
1625 #define MMIO_OUT8(base, offset, val) \
1626 xf86WriteMmio8(base, offset, (CARD8)(val))
1627 #define MMIO_ONB8(base, offset, val) \
1628 xf86WriteMmio8NB(base, offset, (CARD8)(val))
1631 #define MMIO_IN16(base, offset) xf86ReadMmio16Be(base, offset)
1632 #define MMIO_IN32(base, offset) xf86ReadMmio32Be(base, offset)
1633 #define MMIO_OUT16(base, offset, val) \
1634 xf86WriteMmio16Be(base, offset, (CARD16)(val))
1635 #define MMIO_OUT32(base, offset, val) \
1636 xf86WriteMmio32Be(base, offset, (CARD32)(val))
1637 #define MMIO_ONB16(base, offset, val) \
1638 xf86WriteMmio16BeNB(base, offset, (CARD16)(val))
1639 #define MMIO_ONB32(base, offset, val) \
1640 xf86WriteMmio32BeNB(base, offset, (CARD32)(val))
1642 #define MMIO_IN16(base, offset) xf86ReadMmio16Le(base, offset)
1643 #define MMIO_IN32(base, offset) xf86ReadMmio32Le(base, offset)
1644 #define MMIO_OUT16(base, offset, val) \
1645 xf86WriteMmio16Le(base, offset, (CARD16)(val))
1646 #define MMIO_OUT32(base, offset, val) \
1647 xf86WriteMmio32Le(base, offset, (CARD32)(val))
1648 #define MMIO_ONB16(base, offset, val) \
1649 xf86WriteMmio16LeNB(base, offset, (CARD16)(val))
1650 #define MMIO_ONB32(base, offset, val) \
1651 xf86WriteMmio32LeNB(base, offset, (CARD32)(val))
1654 #define MMIO_MOVE32(base, offset, val) \
1655 xf86WriteMmio32Be(base, offset, (CARD32)(val))
1664 #define MMIO_IN8(base, offset) xf86ReadMmio8(base, offset)
1665 #define MMIO_OUT8(base, offset, val) \
1666 xf86WriteMmio8(base, offset, (CARD8)(val))
1667 #define MMIO_ONB8(base, offset, val) \
1668 xf86WriteMmioNB8(base, offset, (CARD8)(val))
1671 #define MMIO_IN16(base, offset) xf86ReadMmio16Swap(base, offset)
1672 #define MMIO_IN32(base, offset) xf86ReadMmio32Swap(base, offset)
1673 #define MMIO_OUT16(base, offset, val) \
1674 xf86WriteMmio16Swap(base, offset, (CARD16)(val))
1675 #define MMIO_OUT32(base, offset, val) \
1676 xf86WriteMmio32Swap(base, offset, (CARD32)(val))
1677 #define MMIO_ONB16(base, offset, val) \
1678 xf86WriteMmioNB16Swap(base, offset, (CARD16)(val))
1679 #define MMIO_ONB32(base, offset, val) \
1680 xf86WriteMmioNB32Swap(base, offset, (CARD32)(val))
1682 #define MMIO_IN16(base, offset) xf86ReadMmio16(base, offset)
1683 #define MMIO_IN32(base, offset) xf86ReadMmio32(base, offset)
1684 #define MMIO_OUT16(base, offset, val) \
1685 xf86WriteMmio16(base, offset, (CARD16)(val))
1686 #define MMIO_OUT32(base, offset, val) \
1687 xf86WriteMmio32(base, offset, (CARD32)(val))
1688 #define MMIO_ONB16(base, offset, val) \
1689 xf86WriteMmioNB16(base, offset, (CARD16)(val))
1690 #define MMIO_ONB32(base, offset, val) \
1691 xf86WriteMmioNB32(base, offset, (CARD32)(val))
1694 #define MMIO_MOVE32(base, offset, val) \
1695 xf86WriteMmio32(base, offset, (CARD32)(val))
1716 #define MMIO_IN8(base, offset) \
1717 *(volatile CARD8 *)(((CARD8*)(base)) + (offset))
1718 #define MMIO_IN16(base, offset) \
1719 *(volatile CARD16 *)(void *)(((CARD8*)(base)) + (offset))
1720 #define MMIO_IN32(base, offset) \
1721 *(volatile CARD32 *)(void *)(((CARD8*)(base)) + (offset))
1722 #define MMIO_OUT8(base, offset, val) \
1723 *(volatile CARD8 *)(((CARD8*)(base)) + (offset)) = (val)
1724 #define MMIO_OUT16(base, offset, val) \
1725 *(volatile CARD16 *)(void *)(((CARD8*)(base)) + (offset)) = (val)
1726 #define MMIO_OUT32(base, offset, val) \
1727 *(volatile CARD32 *)(void *)(((CARD8*)(base)) + (offset)) = (val)
1728 #define MMIO_ONB8(base, offset, val) MMIO_OUT8(base, offset, val)
1729 #define MMIO_ONB16(base, offset, val) MMIO_OUT16(base, offset, val)
1730 #define MMIO_ONB32(base, offset, val) MMIO_OUT32(base, offset, val)
1732 #define MMIO_MOVE32(base, offset, val) MMIO_OUT32(base, offset, val)