Lines Matching defs:base
634 xf86ReadMmio8(__volatile__ void *base, const unsigned long offset)
636 unsigned long addr = ((unsigned long)base) + offset;
646 xf86ReadMmio16Be(__volatile__ void *base, const unsigned long offset)
648 unsigned long addr = ((unsigned long)base) + offset;
658 xf86ReadMmio16Le(__volatile__ void *base, const unsigned long offset)
660 unsigned long addr = ((unsigned long)base) + offset;
670 xf86ReadMmio32Be(__volatile__ void *base, const unsigned long offset)
672 unsigned long addr = ((unsigned long)base) + offset;
682 xf86ReadMmio32Le(__volatile__ void *base, const unsigned long offset)
684 unsigned long addr = ((unsigned long)base) + offset;
694 xf86WriteMmio8(__volatile__ void *base, const unsigned long offset,
697 unsigned long addr = ((unsigned long)base) + offset;
706 xf86WriteMmio16Be(__volatile__ void *base, const unsigned long offset,
709 unsigned long addr = ((unsigned long)base) + offset;
718 xf86WriteMmio16Le(__volatile__ void *base, const unsigned long offset,
721 unsigned long addr = ((unsigned long)base) + offset;
730 xf86WriteMmio32Be(__volatile__ void *base, const unsigned long offset,
733 unsigned long addr = ((unsigned long)base) + offset;
742 xf86WriteMmio32Le(__volatile__ void *base, const unsigned long offset,
745 unsigned long addr = ((unsigned long)base) + offset;
754 xf86WriteMmio8NB(__volatile__ void *base, const unsigned long offset,
757 unsigned long addr = ((unsigned long)base) + offset;
765 xf86WriteMmio16BeNB(__volatile__ void *base, const unsigned long offset,
768 unsigned long addr = ((unsigned long)base) + offset;
776 xf86WriteMmio16LeNB(__volatile__ void *base, const unsigned long offset,
779 unsigned long addr = ((unsigned long)base) + offset;
787 xf86WriteMmio32BeNB(__volatile__ void *base, const unsigned long offset,
790 unsigned long addr = ((unsigned long)base) + offset;
798 xf86WriteMmio32LeNB(__volatile__ void *base, const unsigned long offset,
801 unsigned long addr = ((unsigned long)base) + offset;
1009 xf86ReadMmio32Be(__volatile__ void *base, const unsigned long offset)
1011 unsigned long addr = ((unsigned long)base) + offset;
1021 xf86WriteMmio32Be(__volatile__ void *base, const unsigned long offset,
1024 unsigned long addr = ((unsigned long)base) + offset;
1089 xf86ReadMmio8(__volatile__ void *base, const unsigned long offset)
1096 : "b" (base), "r" (offset),
1097 "m" (*((volatile unsigned char *)base+offset)));
1102 xf86ReadMmio16Be(__volatile__ void *base, const unsigned long offset)
1109 : "b" (base), "r" (offset),
1110 "m" (*((volatile unsigned char *)base+offset)));
1115 xf86ReadMmio16Le(__volatile__ void *base, const unsigned long offset)
1122 : "b" (base), "r" (offset),
1123 "m" (*((volatile unsigned char *)base+offset)));
1128 xf86ReadMmio32Be(__volatile__ void *base, const unsigned long offset)
1135 : "b" (base), "r" (offset),
1136 "m" (*((volatile unsigned char *)base+offset)));
1141 xf86ReadMmio32Le(__volatile__ void *base, const unsigned long offset)
1148 : "b" (base), "r" (offset),
1149 "m" (*((volatile unsigned char *)base+offset)));
1154 xf86WriteMmioNB8(__volatile__ void *base, const unsigned long offset,
1159 : "=m" (*((volatile unsigned char *)base+offset))
1160 : "r" (val), "b" (base), "r" (offset));
1164 xf86WriteMmioNB16Le(__volatile__ void *base, const unsigned long offset,
1169 : "=m" (*((volatile unsigned char *)base+offset))
1170 : "r" (val), "b" (base), "r" (offset));
1174 xf86WriteMmioNB16Be(__volatile__ void *base, const unsigned long offset,
1179 : "=m" (*((volatile unsigned char *)base+offset))
1180 : "r" (val), "b" (base), "r" (offset));
1184 xf86WriteMmioNB32Le(__volatile__ void *base, const unsigned long offset,
1189 : "=m" (*((volatile unsigned char *)base+offset))
1190 : "r" (val), "b" (base), "r" (offset));
1194 xf86WriteMmioNB32Be(__volatile__ void *base, const unsigned long offset,
1199 : "=m" (*((volatile unsigned char *)base+offset))
1200 : "r" (val), "b" (base), "r" (offset));
1204 xf86WriteMmio8(__volatile__ void *base, const unsigned long offset,
1207 xf86WriteMmioNB8(base, offset, val);
1212 xf86WriteMmio16Le(__volatile__ void *base, const unsigned long offset,
1215 xf86WriteMmioNB16Le(base, offset, val);
1220 xf86WriteMmio16Be(__volatile__ void *base, const unsigned long offset,
1223 xf86WriteMmioNB16Be(base, offset, val);
1228 xf86WriteMmio32Le(__volatile__ void *base, const unsigned long offset,
1231 xf86WriteMmioNB32Le(base, offset, val);
1236 xf86WriteMmio32Be(__volatile__ void *base, const unsigned long offset,
1239 xf86WriteMmioNB32Be(base, offset, val);
1614 # define MMIO_IN8(base, offset) (*xf86ReadMmio8)(base, offset)
1615 # define MMIO_IN16(base, offset) (*xf86ReadMmio16)(base, offset)
1617 # define MMIO_IN32(base, offset) (*xf86ReadMmio32)(base, offset)
1619 # define MMIO_IN32(base, offset) xf86ReadMmio32(base, offset)
1623 # define MMIO_OUT32(base, offset, val) \
1624 (*xf86WriteMmio32)((CARD32)(val), base, offset)
1625 # define MMIO_ONB32(base, offset, val) \
1626 (*xf86WriteMmioNB32)((CARD32)(val), base, offset)
1628 # define MMIO_OUT32(base, offset, val) \
1631 *(volatile CARD32 *)(void *)(((CARD8*)(base)) + (offset)) = (val); \
1633 # define MMIO_ONB32(base, offset, val) \
1634 *(volatile CARD32 *)(void *)(((CARD8*)(base)) + (offset)) = (val)
1637 # define MMIO_OUT8(base, offset, val) \
1638 (*xf86WriteMmio8)((CARD8)(val), base, offset)
1639 # define MMIO_OUT16(base, offset, val) \
1640 (*xf86WriteMmio16)((CARD16)(val), base, offset)
1641 # define MMIO_ONB8(base, offset, val) \
1642 (*xf86WriteMmioNB8)((CARD8)(val), base, offset)
1643 # define MMIO_ONB16(base, offset, val) \
1644 (*xf86WriteMmioNB16)((CARD16)(val), base, offset)
1645 # define MMIO_MOVE32(base, offset, val) \
1646 MMIO_OUT32(base, offset, val)
1654 # define MMIO_IN8(base, offset) xf86ReadMmio8(base, offset)
1655 # define MMIO_OUT8(base, offset, val) \
1656 xf86WriteMmio8(base, offset, (CARD8)(val))
1657 # define MMIO_ONB8(base, offset, val) \
1658 xf86WriteMmioNB8(base, offset, (CARD8)(val))
1661 # define MMIO_IN16(base, offset) xf86ReadMmio16Be(base, offset)
1662 # define MMIO_IN32(base, offset) xf86ReadMmio32Be(base, offset)
1663 # define MMIO_OUT16(base, offset, val) \
1664 xf86WriteMmio16Be(base, offset, (CARD16)(val))
1665 # define MMIO_OUT32(base, offset, val) \
1666 xf86WriteMmio32Be(base, offset, (CARD32)(val))
1667 # define MMIO_ONB16(base, offset, val) \
1668 xf86WriteMmioNB16Be(base, offset, (CARD16)(val))
1669 # define MMIO_ONB32(base, offset, val) \
1670 xf86WriteMmioNB32Be(base, offset, (CARD32)(val))
1672 # define MMIO_IN16(base, offset) xf86ReadMmio16Le(base, offset)
1673 # define MMIO_IN32(base, offset) xf86ReadMmio32Le(base, offset)
1674 # define MMIO_OUT16(base, offset, val) \
1675 xf86WriteMmio16Le(base, offset, (CARD16)(val))
1676 # define MMIO_OUT32(base, offset, val) \
1677 xf86WriteMmio32Le(base, offset, (CARD32)(val))
1678 # define MMIO_ONB16(base, offset, val) \
1679 xf86WriteMmioNB16Le(base, offset, (CARD16)(val))
1680 # define MMIO_ONB32(base, offset, val) \
1681 xf86WriteMmioNB32Le(base, offset, (CARD32)(val))
1684 # define MMIO_MOVE32(base, offset, val) \
1685 xf86WriteMmio32Be(base, offset, (CARD32)(val))
1706 # define MMIO_IN8(base, offset) xf86ReadMmio8(base, offset)
1707 # define MMIO_OUT8(base, offset, val) \
1708 xf86WriteMmio8(base, offset, (CARD8)(val))
1709 # define MMIO_ONB8(base, offset, val) \
1710 xf86WriteMmio8NB(base, offset, (CARD8)(val))
1713 # define MMIO_IN16(base, offset) xf86ReadMmio16Be(base, offset)
1714 # define MMIO_IN32(base, offset) xf86ReadMmio32Be(base, offset)
1715 # define MMIO_OUT16(base, offset, val) \
1716 xf86WriteMmio16Be(base, offset, (CARD16)(val))
1717 # define MMIO_OUT32(base, offset, val) \
1718 xf86WriteMmio32Be(base, offset, (CARD32)(val))
1719 # define MMIO_ONB16(base, offset, val) \
1720 xf86WriteMmio16BeNB(base, offset, (CARD16)(val))
1721 # define MMIO_ONB32(base, offset, val) \
1722 xf86WriteMmio32BeNB(base, offset, (CARD32)(val))
1724 # define MMIO_IN16(base, offset) xf86ReadMmio16Le(base, offset)
1725 # define MMIO_IN32(base, offset) xf86ReadMmio32Le(base, offset)
1726 # define MMIO_OUT16(base, offset, val) \
1727 xf86WriteMmio16Le(base, offset, (CARD16)(val))
1728 # define MMIO_OUT32(base, offset, val) \
1729 xf86WriteMmio32Le(base, offset, (CARD32)(val))
1730 # define MMIO_ONB16(base, offset, val) \
1731 xf86WriteMmio16LeNB(base, offset, (CARD16)(val))
1732 # define MMIO_ONB32(base, offset, val) \
1733 xf86WriteMmio32LeNB(base, offset, (CARD32)(val))
1736 # define MMIO_MOVE32(base, offset, val) \
1737 xf86WriteMmio32Be(base, offset, (CARD32)(val))
1741 # define MMIO_IN8(base, offset) \
1742 *(volatile CARD8 *)(((CARD8*)(base)) + (offset))
1743 # define MMIO_IN16(base, offset) \
1744 *(volatile CARD16 *)(void *)(((CARD8*)(base)) + (offset))
1745 # define MMIO_IN32(base, offset) \
1746 *(volatile CARD32 *)(void *)(((CARD8*)(base)) + (offset))
1747 # define MMIO_OUT8(base, offset, val) \
1748 *(volatile CARD8 *)(((CARD8*)(base)) + (offset)) = (val)
1749 # define MMIO_OUT16(base, offset, val) \
1750 *(volatile CARD16 *)(void *)(((CARD8*)(base)) + (offset)) = (val)
1751 # define MMIO_OUT32(base, offset, val) \
1752 *(volatile CARD32 *)(void *)(((CARD8*)(base)) + (offset)) = (val)
1753 # define MMIO_ONB8(base, offset, val) MMIO_OUT8(base, offset, val)
1754 # define MMIO_ONB16(base, offset, val) MMIO_OUT16(base, offset, val)
1755 # define MMIO_ONB32(base, offset, val) MMIO_OUT32(base, offset, val)
1757 # define MMIO_MOVE32(base, offset, val) MMIO_OUT32(base, offset, val)