Lines Matching refs:offset
517 xf86ReadMmio8(__volatile__ void *base, const unsigned long offset)
519 unsigned long addr = ((unsigned long)base) + offset;
529 xf86ReadMmio16Be(__volatile__ void *base, const unsigned long offset)
531 unsigned long addr = ((unsigned long)base) + offset;
541 xf86ReadMmio16Le(__volatile__ void *base, const unsigned long offset)
543 unsigned long addr = ((unsigned long)base) + offset;
553 xf86ReadMmio32Be(__volatile__ void *base, const unsigned long offset)
555 unsigned long addr = ((unsigned long)base) + offset;
565 xf86ReadMmio32Le(__volatile__ void *base, const unsigned long offset)
567 unsigned long addr = ((unsigned long)base) + offset;
577 xf86WriteMmio8(__volatile__ void *base, const unsigned long offset,
580 unsigned long addr = ((unsigned long)base) + offset;
589 xf86WriteMmio16Be(__volatile__ void *base, const unsigned long offset,
592 unsigned long addr = ((unsigned long)base) + offset;
601 xf86WriteMmio16Le(__volatile__ void *base, const unsigned long offset,
604 unsigned long addr = ((unsigned long)base) + offset;
613 xf86WriteMmio32Be(__volatile__ void *base, const unsigned long offset,
616 unsigned long addr = ((unsigned long)base) + offset;
625 xf86WriteMmio32Le(__volatile__ void *base, const unsigned long offset,
628 unsigned long addr = ((unsigned long)base) + offset;
637 xf86WriteMmio8NB(__volatile__ void *base, const unsigned long offset,
640 unsigned long addr = ((unsigned long)base) + offset;
648 xf86WriteMmio16BeNB(__volatile__ void *base, const unsigned long offset,
651 unsigned long addr = ((unsigned long)base) + offset;
659 xf86WriteMmio16LeNB(__volatile__ void *base, const unsigned long offset,
662 unsigned long addr = ((unsigned long)base) + offset;
670 xf86WriteMmio32BeNB(__volatile__ void *base, const unsigned long offset,
673 unsigned long addr = ((unsigned long)base) + offset;
681 xf86WriteMmio32LeNB(__volatile__ void *base, const unsigned long offset,
684 unsigned long addr = ((unsigned long)base) + offset;
741 xf86ReadMmio32Be(__volatile__ void *base, const unsigned long offset)
743 unsigned long addr = ((unsigned long)base) + offset;
753 xf86WriteMmio32Be(__volatile__ void *base, const unsigned long offset,
756 unsigned long addr = ((unsigned long)base) + offset;
775 xf86ReadMmio8(__volatile__ void *base, const unsigned long offset)
782 : "b" (base), "r" (offset),
783 "m" (*((volatile unsigned char *)base+offset)));
788 xf86ReadMmio16Be(__volatile__ void *base, const unsigned long offset)
795 : "b" (base), "r" (offset),
796 "m" (*((volatile unsigned char *)base+offset)));
801 xf86ReadMmio16Le(__volatile__ void *base, const unsigned long offset)
808 : "b" (base), "r" (offset),
809 "m" (*((volatile unsigned char *)base+offset)));
814 xf86ReadMmio32Be(__volatile__ void *base, const unsigned long offset)
821 : "b" (base), "r" (offset),
822 "m" (*((volatile unsigned char *)base+offset)));
827 xf86ReadMmio32Le(__volatile__ void *base, const unsigned long offset)
834 : "b" (base), "r" (offset),
835 "m" (*((volatile unsigned char *)base+offset)));
840 xf86WriteMmioNB8(__volatile__ void *base, const unsigned long offset,
845 : "=m" (*((volatile unsigned char *)base+offset))
846 : "r" (val), "b" (base), "r" (offset));
850 xf86WriteMmioNB16Le(__volatile__ void *base, const unsigned long offset,
855 : "=m" (*((volatile unsigned char *)base+offset))
856 : "r" (val), "b" (base), "r" (offset));
860 xf86WriteMmioNB16Be(__volatile__ void *base, const unsigned long offset,
865 : "=m" (*((volatile unsigned char *)base+offset))
866 : "r" (val), "b" (base), "r" (offset));
870 xf86WriteMmioNB32Le(__volatile__ void *base, const unsigned long offset,
875 : "=m" (*((volatile unsigned char *)base+offset))
876 : "r" (val), "b" (base), "r" (offset));
880 xf86WriteMmioNB32Be(__volatile__ void *base, const unsigned long offset,
885 : "=m" (*((volatile unsigned char *)base+offset))
886 : "r" (val), "b" (base), "r" (offset));
890 xf86WriteMmio8(__volatile__ void *base, const unsigned long offset,
893 xf86WriteMmioNB8(base, offset, val);
898 xf86WriteMmio16Le(__volatile__ void *base, const unsigned long offset,
901 xf86WriteMmioNB16Le(base, offset, val);
906 xf86WriteMmio16Be(__volatile__ void *base, const unsigned long offset,
909 xf86WriteMmioNB16Be(base, offset, val);
914 xf86WriteMmio32Le(__volatile__ void *base, const unsigned long offset,
917 xf86WriteMmioNB32Le(base, offset, val);
922 xf86WriteMmio32Be(__volatile__ void *base, const unsigned long offset,
925 xf86WriteMmioNB32Be(base, offset, val);
1015 xf86ReadMmio8(__volatile__ void *base, const unsigned long offset)
1017 return *(volatile unsigned char *)((unsigned char *)base + offset) ;
1021 xf86WriteMmio8(__volatile__ void *base, const unsigned long offset,
1024 *(volatile unsigned char *)((unsigned char *)base + offset) = val ;
1029 xf86WriteMmio8NB(__volatile__ void *base, const unsigned long offset,
1032 *(volatile unsigned char *)((unsigned char *)base + offset) = val ;
1036 xf86ReadMmio16Swap(__volatile__ void *base, const unsigned long offset)
1038 unsigned long addr = ((unsigned long)base) + offset;
1050 xf86ReadMmio16(__volatile__ void *base, const unsigned long offset)
1052 return *(volatile unsigned short *)((char *)base + offset) ;
1056 xf86WriteMmio16Swap(__volatile__ void *base, const unsigned long offset,
1059 unsigned long addr = ((unsigned long)base) + offset;
1070 xf86WriteMmio16(__volatile__ void *base, const unsigned long offset,
1073 *(volatile unsigned short *)((unsigned char *)base + offset) = val ;
1078 xf86WriteMmio16SwapNB(__volatile__ void *base, const unsigned long offset,
1081 unsigned long addr = ((unsigned long)base) + offset;
1091 xf86WriteMmio16NB(__volatile__ void *base, const unsigned long offset,
1094 *(volatile unsigned short *)((unsigned char *)base + offset) = val ;
1098 xf86ReadMmio32Swap(__volatile__ void *base, const unsigned long offset)
1100 unsigned long addr = ((unsigned long)base) + offset;
1113 xf86ReadMmio32(__volatile__ void *base, const unsigned long offset)
1115 return *(volatile unsigned int *)((unsigned char *)base + offset) ;
1119 xf86WriteMmio32Swap(__volatile__ void *base, const unsigned long offset,
1122 unsigned long addr = ((unsigned long)base) + offset;
1134 xf86WriteMmio32(__volatile__ void *base, const unsigned long offset,
1137 *(volatile unsigned int *)((unsigned char *)base + offset) = val ;
1142 xf86WriteMmio32SwapNB(__volatile__ void *base, const unsigned long offset,
1145 unsigned long addr = ((unsigned long)base) + offset;
1156 xf86WriteMmio32NB(__volatile__ void *base, const unsigned long offset,
1159 *(volatile unsigned int *)((unsigned char *)base + offset) = val ;
1551 # define MMIO_IN8(base, offset) (*xf86ReadMmio8)(base, offset)
1552 # define MMIO_IN16(base, offset) (*xf86ReadMmio16)(base, offset)
1554 # define MMIO_IN32(base, offset) (*xf86ReadMmio32)(base, offset)
1556 # define MMIO_IN32(base, offset) xf86ReadMmio32(base, offset)
1559 # define MMIO_OUT32(base, offset, val) \
1562 *(volatile CARD32 *)(void *)(((CARD8*)(base)) + (offset)) = (val); \
1564 # define MMIO_ONB32(base, offset, val) \
1565 *(volatile CARD32 *)(void *)(((CARD8*)(base)) + (offset)) = (val)
1567 # define MMIO_OUT8(base, offset, val) \
1568 (*xf86WriteMmio8)((CARD8)(val), base, offset)
1569 # define MMIO_OUT16(base, offset, val) \
1570 (*xf86WriteMmio16)((CARD16)(val), base, offset)
1571 # define MMIO_ONB8(base, offset, val) \
1572 (*xf86WriteMmioNB8)((CARD8)(val), base, offset)
1573 # define MMIO_ONB16(base, offset, val) \
1574 (*xf86WriteMmioNB16)((CARD16)(val), base, offset)
1575 # define MMIO_MOVE32(base, offset, val) \
1576 MMIO_OUT32(base, offset, val)
1584 # define MMIO_IN8(base, offset) xf86ReadMmio8(base, offset)
1585 # define MMIO_OUT8(base, offset, val) \
1586 xf86WriteMmio8(base, offset, (CARD8)(val))
1587 # define MMIO_ONB8(base, offset, val) \
1588 xf86WriteMmioNB8(base, offset, (CARD8)(val))
1591 # define MMIO_IN16(base, offset) xf86ReadMmio16Be(base, offset)
1592 # define MMIO_IN32(base, offset) xf86ReadMmio32Be(base, offset)
1593 # define MMIO_OUT16(base, offset, val) \
1594 xf86WriteMmio16Be(base, offset, (CARD16)(val))
1595 # define MMIO_OUT32(base, offset, val) \
1596 xf86WriteMmio32Be(base, offset, (CARD32)(val))
1597 # define MMIO_ONB16(base, offset, val) \
1598 xf86WriteMmioNB16Be(base, offset, (CARD16)(val))
1599 # define MMIO_ONB32(base, offset, val) \
1600 xf86WriteMmioNB32Be(base, offset, (CARD32)(val))
1602 # define MMIO_IN16(base, offset) xf86ReadMmio16Le(base, offset)
1603 # define MMIO_IN32(base, offset) xf86ReadMmio32Le(base, offset)
1604 # define MMIO_OUT16(base, offset, val) \
1605 xf86WriteMmio16Le(base, offset, (CARD16)(val))
1606 # define MMIO_OUT32(base, offset, val) \
1607 xf86WriteMmio32Le(base, offset, (CARD32)(val))
1608 # define MMIO_ONB16(base, offset, val) \
1609 xf86WriteMmioNB16Le(base, offset, (CARD16)(val))
1610 # define MMIO_ONB32(base, offset, val) \
1611 xf86WriteMmioNB32Le(base, offset, (CARD32)(val))
1614 # define MMIO_MOVE32(base, offset, val) \
1615 xf86WriteMmio32Be(base, offset, (CARD32)(val))
1625 # define MMIO_IN8(base, offset) xf86ReadMmio8(base, offset)
1626 # define MMIO_OUT8(base, offset, val) \
1627 xf86WriteMmio8(base, offset, (CARD8)(val))
1628 # define MMIO_ONB8(base, offset, val) \
1629 xf86WriteMmio8NB(base, offset, (CARD8)(val))
1632 # define MMIO_IN16(base, offset) xf86ReadMmio16Be(base, offset)
1633 # define MMIO_IN32(base, offset) xf86ReadMmio32Be(base, offset)
1634 # define MMIO_OUT16(base, offset, val) \
1635 xf86WriteMmio16Be(base, offset, (CARD16)(val))
1636 # define MMIO_OUT32(base, offset, val) \
1637 xf86WriteMmio32Be(base, offset, (CARD32)(val))
1638 # define MMIO_ONB16(base, offset, val) \
1639 xf86WriteMmio16BeNB(base, offset, (CARD16)(val))
1640 # define MMIO_ONB32(base, offset, val) \
1641 xf86WriteMmio32BeNB(base, offset, (CARD32)(val))
1643 # define MMIO_IN16(base, offset) xf86ReadMmio16Le(base, offset)
1644 # define MMIO_IN32(base, offset) xf86ReadMmio32Le(base, offset)
1645 # define MMIO_OUT16(base, offset, val) \
1646 xf86WriteMmio16Le(base, offset, (CARD16)(val))
1647 # define MMIO_OUT32(base, offset, val) \
1648 xf86WriteMmio32Le(base, offset, (CARD32)(val))
1649 # define MMIO_ONB16(base, offset, val) \
1650 xf86WriteMmio16LeNB(base, offset, (CARD16)(val))
1651 # define MMIO_ONB32(base, offset, val) \
1652 xf86WriteMmio32LeNB(base, offset, (CARD32)(val))
1655 # define MMIO_MOVE32(base, offset, val) \
1656 xf86WriteMmio32Be(base, offset, (CARD32)(val))
1665 # define MMIO_IN8(base, offset) xf86ReadMmio8(base, offset)
1666 # define MMIO_OUT8(base, offset, val) \
1667 xf86WriteMmio8(base, offset, (CARD8)(val))
1668 # define MMIO_ONB8(base, offset, val) \
1669 xf86WriteMmioNB8(base, offset, (CARD8)(val))
1672 # define MMIO_IN16(base, offset) xf86ReadMmio16Swap(base, offset)
1673 # define MMIO_IN32(base, offset) xf86ReadMmio32Swap(base, offset)
1674 # define MMIO_OUT16(base, offset, val) \
1675 xf86WriteMmio16Swap(base, offset, (CARD16)(val))
1676 # define MMIO_OUT32(base, offset, val) \
1677 xf86WriteMmio32Swap(base, offset, (CARD32)(val))
1678 # define MMIO_ONB16(base, offset, val) \
1679 xf86WriteMmioNB16Swap(base, offset, (CARD16)(val))
1680 # define MMIO_ONB32(base, offset, val) \
1681 xf86WriteMmioNB32Swap(base, offset, (CARD32)(val))
1683 # define MMIO_IN16(base, offset) xf86ReadMmio16(base, offset)
1684 # define MMIO_IN32(base, offset) xf86ReadMmio32(base, offset)
1685 # define MMIO_OUT16(base, offset, val) \
1686 xf86WriteMmio16(base, offset, (CARD16)(val))
1687 # define MMIO_OUT32(base, offset, val) \
1688 xf86WriteMmio32(base, offset, (CARD32)(val))
1689 # define MMIO_ONB16(base, offset, val) \
1690 xf86WriteMmioNB16(base, offset, (CARD16)(val))
1691 # define MMIO_ONB32(base, offset, val) \
1692 xf86WriteMmioNB32(base, offset, (CARD32)(val))
1695 # define MMIO_MOVE32(base, offset, val) \
1696 xf86WriteMmio32(base, offset, (CARD32)(val))
1721 # define MMIO_IN8(base, offset) \
1722 *(volatile CARD8 *)(((CARD8*)(base)) + (offset))
1723 # define MMIO_IN16(base, offset) \
1724 *(volatile CARD16 *)(void *)(((CARD8*)(base)) + (offset))
1725 # define MMIO_IN32(base, offset) \
1726 *(volatile CARD32 *)(void *)(((CARD8*)(base)) + (offset))
1727 # define MMIO_OUT8(base, offset, val) \
1728 *(volatile CARD8 *)(((CARD8*)(base)) + (offset)) = (val)
1729 # define MMIO_OUT16(base, offset, val) \
1730 *(volatile CARD16 *)(void *)(((CARD8*)(base)) + (offset)) = (val)
1731 # define MMIO_OUT32(base, offset, val) \
1732 *(volatile CARD32 *)(void *)(((CARD8*)(base)) + (offset)) = (val)
1733 # define MMIO_ONB8(base, offset, val) MMIO_OUT8(base, offset, val)
1734 # define MMIO_ONB16(base, offset, val) MMIO_OUT16(base, offset, val)
1735 # define MMIO_ONB32(base, offset, val) MMIO_OUT32(base, offset, val)
1737 # define MMIO_MOVE32(base, offset, val) MMIO_OUT32(base, offset, val)