Lines Matching refs:offset

535 xf86ReadMmio8(__volatile__ void *base, const unsigned long offset)
537 unsigned long addr = ((unsigned long)base) + offset;
547 xf86ReadMmio16Be(__volatile__ void *base, const unsigned long offset)
549 unsigned long addr = ((unsigned long)base) + offset;
559 xf86ReadMmio16Le(__volatile__ void *base, const unsigned long offset)
561 unsigned long addr = ((unsigned long)base) + offset;
571 xf86ReadMmio32Be(__volatile__ void *base, const unsigned long offset)
573 unsigned long addr = ((unsigned long)base) + offset;
583 xf86ReadMmio32Le(__volatile__ void *base, const unsigned long offset)
585 unsigned long addr = ((unsigned long)base) + offset;
595 xf86WriteMmio8(__volatile__ void *base, const unsigned long offset,
598 unsigned long addr = ((unsigned long)base) + offset;
607 xf86WriteMmio16Be(__volatile__ void *base, const unsigned long offset,
610 unsigned long addr = ((unsigned long)base) + offset;
619 xf86WriteMmio16Le(__volatile__ void *base, const unsigned long offset,
622 unsigned long addr = ((unsigned long)base) + offset;
631 xf86WriteMmio32Be(__volatile__ void *base, const unsigned long offset,
634 unsigned long addr = ((unsigned long)base) + offset;
643 xf86WriteMmio32Le(__volatile__ void *base, const unsigned long offset,
646 unsigned long addr = ((unsigned long)base) + offset;
655 xf86WriteMmio8NB(__volatile__ void *base, const unsigned long offset,
658 unsigned long addr = ((unsigned long)base) + offset;
666 xf86WriteMmio16BeNB(__volatile__ void *base, const unsigned long offset,
669 unsigned long addr = ((unsigned long)base) + offset;
677 xf86WriteMmio16LeNB(__volatile__ void *base, const unsigned long offset,
680 unsigned long addr = ((unsigned long)base) + offset;
688 xf86WriteMmio32BeNB(__volatile__ void *base, const unsigned long offset,
691 unsigned long addr = ((unsigned long)base) + offset;
699 xf86WriteMmio32LeNB(__volatile__ void *base, const unsigned long offset,
702 unsigned long addr = ((unsigned long)base) + offset;
759 xf86ReadMmio32Be(__volatile__ void *base, const unsigned long offset)
761 unsigned long addr = ((unsigned long)base) + offset;
771 xf86WriteMmio32Be(__volatile__ void *base, const unsigned long offset,
774 unsigned long addr = ((unsigned long)base) + offset;
793 xf86ReadMmio8(__volatile__ void *base, const unsigned long offset)
800 : "b" (base), "r" (offset),
801 "m" (*((volatile unsigned char *)base+offset)));
806 xf86ReadMmio16Be(__volatile__ void *base, const unsigned long offset)
813 : "b" (base), "r" (offset),
814 "m" (*((volatile unsigned char *)base+offset)));
819 xf86ReadMmio16Le(__volatile__ void *base, const unsigned long offset)
826 : "b" (base), "r" (offset),
827 "m" (*((volatile unsigned char *)base+offset)));
832 xf86ReadMmio32Be(__volatile__ void *base, const unsigned long offset)
839 : "b" (base), "r" (offset),
840 "m" (*((volatile unsigned char *)base+offset)));
845 xf86ReadMmio32Le(__volatile__ void *base, const unsigned long offset)
852 : "b" (base), "r" (offset),
853 "m" (*((volatile unsigned char *)base+offset)));
858 xf86WriteMmioNB8(__volatile__ void *base, const unsigned long offset,
863 : "=m" (*((volatile unsigned char *)base+offset))
864 : "r" (val), "b" (base), "r" (offset));
868 xf86WriteMmioNB16Le(__volatile__ void *base, const unsigned long offset,
873 : "=m" (*((volatile unsigned char *)base+offset))
874 : "r" (val), "b" (base), "r" (offset));
878 xf86WriteMmioNB16Be(__volatile__ void *base, const unsigned long offset,
883 : "=m" (*((volatile unsigned char *)base+offset))
884 : "r" (val), "b" (base), "r" (offset));
888 xf86WriteMmioNB32Le(__volatile__ void *base, const unsigned long offset,
893 : "=m" (*((volatile unsigned char *)base+offset))
894 : "r" (val), "b" (base), "r" (offset));
898 xf86WriteMmioNB32Be(__volatile__ void *base, const unsigned long offset,
903 : "=m" (*((volatile unsigned char *)base+offset))
904 : "r" (val), "b" (base), "r" (offset));
908 xf86WriteMmio8(__volatile__ void *base, const unsigned long offset,
911 xf86WriteMmioNB8(base, offset, val);
916 xf86WriteMmio16Le(__volatile__ void *base, const unsigned long offset,
919 xf86WriteMmioNB16Le(base, offset, val);
924 xf86WriteMmio16Be(__volatile__ void *base, const unsigned long offset,
927 xf86WriteMmioNB16Be(base, offset, val);
932 xf86WriteMmio32Le(__volatile__ void *base, const unsigned long offset,
935 xf86WriteMmioNB32Le(base, offset, val);
940 xf86WriteMmio32Be(__volatile__ void *base, const unsigned long offset,
943 xf86WriteMmioNB32Be(base, offset, val);
1233 # define MMIO_IN8(base, offset) (*xf86ReadMmio8)(base, offset)
1234 # define MMIO_IN16(base, offset) (*xf86ReadMmio16)(base, offset)
1236 # define MMIO_IN32(base, offset) (*xf86ReadMmio32)(base, offset)
1238 # define MMIO_IN32(base, offset) xf86ReadMmio32(base, offset)
1241 # define MMIO_OUT32(base, offset, val) \
1244 *(volatile CARD32 *)(void *)(((CARD8*)(base)) + (offset)) = (val); \
1246 # define MMIO_ONB32(base, offset, val) \
1247 *(volatile CARD32 *)(void *)(((CARD8*)(base)) + (offset)) = (val)
1249 # define MMIO_OUT8(base, offset, val) \
1250 (*xf86WriteMmio8)((CARD8)(val), base, offset)
1251 # define MMIO_OUT16(base, offset, val) \
1252 (*xf86WriteMmio16)((CARD16)(val), base, offset)
1253 # define MMIO_ONB8(base, offset, val) \
1254 (*xf86WriteMmioNB8)((CARD8)(val), base, offset)
1255 # define MMIO_ONB16(base, offset, val) \
1256 (*xf86WriteMmioNB16)((CARD16)(val), base, offset)
1257 # define MMIO_MOVE32(base, offset, val) \
1258 MMIO_OUT32(base, offset, val)
1266 # define MMIO_IN8(base, offset) xf86ReadMmio8(base, offset)
1267 # define MMIO_OUT8(base, offset, val) \
1268 xf86WriteMmio8(base, offset, (CARD8)(val))
1269 # define MMIO_ONB8(base, offset, val) \
1270 xf86WriteMmioNB8(base, offset, (CARD8)(val))
1273 # define MMIO_IN16(base, offset) xf86ReadMmio16Be(base, offset)
1274 # define MMIO_IN32(base, offset) xf86ReadMmio32Be(base, offset)
1275 # define MMIO_OUT16(base, offset, val) \
1276 xf86WriteMmio16Be(base, offset, (CARD16)(val))
1277 # define MMIO_OUT32(base, offset, val) \
1278 xf86WriteMmio32Be(base, offset, (CARD32)(val))
1279 # define MMIO_ONB16(base, offset, val) \
1280 xf86WriteMmioNB16Be(base, offset, (CARD16)(val))
1281 # define MMIO_ONB32(base, offset, val) \
1282 xf86WriteMmioNB32Be(base, offset, (CARD32)(val))
1284 # define MMIO_IN16(base, offset) xf86ReadMmio16Le(base, offset)
1285 # define MMIO_IN32(base, offset) xf86ReadMmio32Le(base, offset)
1286 # define MMIO_OUT16(base, offset, val) \
1287 xf86WriteMmio16Le(base, offset, (CARD16)(val))
1288 # define MMIO_OUT32(base, offset, val) \
1289 xf86WriteMmio32Le(base, offset, (CARD32)(val))
1290 # define MMIO_ONB16(base, offset, val) \
1291 xf86WriteMmioNB16Le(base, offset, (CARD16)(val))
1292 # define MMIO_ONB32(base, offset, val) \
1293 xf86WriteMmioNB32Le(base, offset, (CARD32)(val))
1296 # define MMIO_MOVE32(base, offset, val) \
1297 xf86WriteMmio32Be(base, offset, (CARD32)(val))
1307 # define MMIO_IN8(base, offset) xf86ReadMmio8(base, offset)
1308 # define MMIO_OUT8(base, offset, val) \
1309 xf86WriteMmio8(base, offset, (CARD8)(val))
1310 # define MMIO_ONB8(base, offset, val) \
1311 xf86WriteMmio8NB(base, offset, (CARD8)(val))
1314 # define MMIO_IN16(base, offset) xf86ReadMmio16Be(base, offset)
1315 # define MMIO_IN32(base, offset) xf86ReadMmio32Be(base, offset)
1316 # define MMIO_OUT16(base, offset, val) \
1317 xf86WriteMmio16Be(base, offset, (CARD16)(val))
1318 # define MMIO_OUT32(base, offset, val) \
1319 xf86WriteMmio32Be(base, offset, (CARD32)(val))
1320 # define MMIO_ONB16(base, offset, val) \
1321 xf86WriteMmio16BeNB(base, offset, (CARD16)(val))
1322 # define MMIO_ONB32(base, offset, val) \
1323 xf86WriteMmio32BeNB(base, offset, (CARD32)(val))
1325 # define MMIO_IN16(base, offset) xf86ReadMmio16Le(base, offset)
1326 # define MMIO_IN32(base, offset) xf86ReadMmio32Le(base, offset)
1327 # define MMIO_OUT16(base, offset, val) \
1328 xf86WriteMmio16Le(base, offset, (CARD16)(val))
1329 # define MMIO_OUT32(base, offset, val) \
1330 xf86WriteMmio32Le(base, offset, (CARD32)(val))
1331 # define MMIO_ONB16(base, offset, val) \
1332 xf86WriteMmio16LeNB(base, offset, (CARD16)(val))
1333 # define MMIO_ONB32(base, offset, val) \
1334 xf86WriteMmio32LeNB(base, offset, (CARD32)(val))
1337 # define MMIO_MOVE32(base, offset, val) \
1338 xf86WriteMmio32Be(base, offset, (CARD32)(val))
1342 # define MMIO_IN8(base, offset) \
1343 *(volatile CARD8 *)(((CARD8*)(base)) + (offset))
1344 # define MMIO_IN16(base, offset) \
1345 *(volatile CARD16 *)(void *)(((CARD8*)(base)) + (offset))
1346 # define MMIO_IN32(base, offset) \
1347 *(volatile CARD32 *)(void *)(((CARD8*)(base)) + (offset))
1348 # define MMIO_OUT8(base, offset, val) \
1349 *(volatile CARD8 *)(((CARD8*)(base)) + (offset)) = (val)
1350 # define MMIO_OUT16(base, offset, val) \
1351 *(volatile CARD16 *)(void *)(((CARD8*)(base)) + (offset)) = (val)
1352 # define MMIO_OUT32(base, offset, val) \
1353 *(volatile CARD32 *)(void *)(((CARD8*)(base)) + (offset)) = (val)
1354 # define MMIO_ONB8(base, offset, val) MMIO_OUT8(base, offset, val)
1355 # define MMIO_ONB16(base, offset, val) MMIO_OUT16(base, offset, val)
1356 # define MMIO_ONB32(base, offset, val) MMIO_OUT32(base, offset, val)
1358 # define MMIO_MOVE32(base, offset, val) MMIO_OUT32(base, offset, val)