Lines Matching defs:base

536 xf86ReadMmio8(__volatile__ void *base, const unsigned long offset)
538 unsigned long addr = ((unsigned long)base) + offset;
548 xf86ReadMmio16Be(__volatile__ void *base, const unsigned long offset)
550 unsigned long addr = ((unsigned long)base) + offset;
560 xf86ReadMmio16Le(__volatile__ void *base, const unsigned long offset)
562 unsigned long addr = ((unsigned long)base) + offset;
572 xf86ReadMmio32Be(__volatile__ void *base, const unsigned long offset)
574 unsigned long addr = ((unsigned long)base) + offset;
584 xf86ReadMmio32Le(__volatile__ void *base, const unsigned long offset)
586 unsigned long addr = ((unsigned long)base) + offset;
596 xf86WriteMmio8(__volatile__ void *base, const unsigned long offset,
599 unsigned long addr = ((unsigned long)base) + offset;
608 xf86WriteMmio16Be(__volatile__ void *base, const unsigned long offset,
611 unsigned long addr = ((unsigned long)base) + offset;
620 xf86WriteMmio16Le(__volatile__ void *base, const unsigned long offset,
623 unsigned long addr = ((unsigned long)base) + offset;
632 xf86WriteMmio32Be(__volatile__ void *base, const unsigned long offset,
635 unsigned long addr = ((unsigned long)base) + offset;
644 xf86WriteMmio32Le(__volatile__ void *base, const unsigned long offset,
647 unsigned long addr = ((unsigned long)base) + offset;
656 xf86WriteMmio8NB(__volatile__ void *base, const unsigned long offset,
659 unsigned long addr = ((unsigned long)base) + offset;
667 xf86WriteMmio16BeNB(__volatile__ void *base, const unsigned long offset,
670 unsigned long addr = ((unsigned long)base) + offset;
678 xf86WriteMmio16LeNB(__volatile__ void *base, const unsigned long offset,
681 unsigned long addr = ((unsigned long)base) + offset;
689 xf86WriteMmio32BeNB(__volatile__ void *base, const unsigned long offset,
692 unsigned long addr = ((unsigned long)base) + offset;
700 xf86WriteMmio32LeNB(__volatile__ void *base, const unsigned long offset,
703 unsigned long addr = ((unsigned long)base) + offset;
760 xf86ReadMmio32Be(__volatile__ void *base, const unsigned long offset)
762 unsigned long addr = ((unsigned long)base) + offset;
772 xf86WriteMmio32Be(__volatile__ void *base, const unsigned long offset,
775 unsigned long addr = ((unsigned long)base) + offset;
794 xf86ReadMmio8(__volatile__ void *base, const unsigned long offset)
801 : "b" (base), "r" (offset),
802 "m" (*((volatile unsigned char *)base+offset)));
807 xf86ReadMmio16Be(__volatile__ void *base, const unsigned long offset)
814 : "b" (base), "r" (offset),
815 "m" (*((volatile unsigned char *)base+offset)));
820 xf86ReadMmio16Le(__volatile__ void *base, const unsigned long offset)
827 : "b" (base), "r" (offset),
828 "m" (*((volatile unsigned char *)base+offset)));
833 xf86ReadMmio32Be(__volatile__ void *base, const unsigned long offset)
840 : "b" (base), "r" (offset),
841 "m" (*((volatile unsigned char *)base+offset)));
846 xf86ReadMmio32Le(__volatile__ void *base, const unsigned long offset)
853 : "b" (base), "r" (offset),
854 "m" (*((volatile unsigned char *)base+offset)));
859 xf86WriteMmioNB8(__volatile__ void *base, const unsigned long offset,
864 : "=m" (*((volatile unsigned char *)base+offset))
865 : "r" (val), "b" (base), "r" (offset));
869 xf86WriteMmioNB16Le(__volatile__ void *base, const unsigned long offset,
874 : "=m" (*((volatile unsigned char *)base+offset))
875 : "r" (val), "b" (base), "r" (offset));
879 xf86WriteMmioNB16Be(__volatile__ void *base, const unsigned long offset,
884 : "=m" (*((volatile unsigned char *)base+offset))
885 : "r" (val), "b" (base), "r" (offset));
889 xf86WriteMmioNB32Le(__volatile__ void *base, const unsigned long offset,
894 : "=m" (*((volatile unsigned char *)base+offset))
895 : "r" (val), "b" (base), "r" (offset));
899 xf86WriteMmioNB32Be(__volatile__ void *base, const unsigned long offset,
904 : "=m" (*((volatile unsigned char *)base+offset))
905 : "r" (val), "b" (base), "r" (offset));
909 xf86WriteMmio8(__volatile__ void *base, const unsigned long offset,
912 xf86WriteMmioNB8(base, offset, val);
917 xf86WriteMmio16Le(__volatile__ void *base, const unsigned long offset,
920 xf86WriteMmioNB16Le(base, offset, val);
925 xf86WriteMmio16Be(__volatile__ void *base, const unsigned long offset,
928 xf86WriteMmioNB16Be(base, offset, val);
933 xf86WriteMmio32Le(__volatile__ void *base, const unsigned long offset,
936 xf86WriteMmioNB32Le(base, offset, val);
941 xf86WriteMmio32Be(__volatile__ void *base, const unsigned long offset,
944 xf86WriteMmioNB32Be(base, offset, val);
1234 # define MMIO_IN8(base, offset) (*xf86ReadMmio8)(base, offset)
1235 # define MMIO_IN16(base, offset) (*xf86ReadMmio16)(base, offset)
1237 # define MMIO_IN32(base, offset) (*xf86ReadMmio32)(base, offset)
1239 # define MMIO_IN32(base, offset) xf86ReadMmio32(base, offset)
1242 # define MMIO_OUT32(base, offset, val) \
1245 *(volatile CARD32 *)(void *)(((CARD8*)(base)) + (offset)) = (val); \
1247 # define MMIO_ONB32(base, offset, val) \
1248 *(volatile CARD32 *)(void *)(((CARD8*)(base)) + (offset)) = (val)
1250 # define MMIO_OUT8(base, offset, val) \
1251 (*xf86WriteMmio8)((CARD8)(val), base, offset)
1252 # define MMIO_OUT16(base, offset, val) \
1253 (*xf86WriteMmio16)((CARD16)(val), base, offset)
1254 # define MMIO_ONB8(base, offset, val) \
1255 (*xf86WriteMmioNB8)((CARD8)(val), base, offset)
1256 # define MMIO_ONB16(base, offset, val) \
1257 (*xf86WriteMmioNB16)((CARD16)(val), base, offset)
1258 # define MMIO_MOVE32(base, offset, val) \
1259 MMIO_OUT32(base, offset, val)
1267 # define MMIO_IN8(base, offset) xf86ReadMmio8(base, offset)
1268 # define MMIO_OUT8(base, offset, val) \
1269 xf86WriteMmio8(base, offset, (CARD8)(val))
1270 # define MMIO_ONB8(base, offset, val) \
1271 xf86WriteMmioNB8(base, offset, (CARD8)(val))
1274 # define MMIO_IN16(base, offset) xf86ReadMmio16Be(base, offset)
1275 # define MMIO_IN32(base, offset) xf86ReadMmio32Be(base, offset)
1276 # define MMIO_OUT16(base, offset, val) \
1277 xf86WriteMmio16Be(base, offset, (CARD16)(val))
1278 # define MMIO_OUT32(base, offset, val) \
1279 xf86WriteMmio32Be(base, offset, (CARD32)(val))
1280 # define MMIO_ONB16(base, offset, val) \
1281 xf86WriteMmioNB16Be(base, offset, (CARD16)(val))
1282 # define MMIO_ONB32(base, offset, val) \
1283 xf86WriteMmioNB32Be(base, offset, (CARD32)(val))
1285 # define MMIO_IN16(base, offset) xf86ReadMmio16Le(base, offset)
1286 # define MMIO_IN32(base, offset) xf86ReadMmio32Le(base, offset)
1287 # define MMIO_OUT16(base, offset, val) \
1288 xf86WriteMmio16Le(base, offset, (CARD16)(val))
1289 # define MMIO_OUT32(base, offset, val) \
1290 xf86WriteMmio32Le(base, offset, (CARD32)(val))
1291 # define MMIO_ONB16(base, offset, val) \
1292 xf86WriteMmioNB16Le(base, offset, (CARD16)(val))
1293 # define MMIO_ONB32(base, offset, val) \
1294 xf86WriteMmioNB32Le(base, offset, (CARD32)(val))
1297 # define MMIO_MOVE32(base, offset, val) \
1298 xf86WriteMmio32Be(base, offset, (CARD32)(val))
1308 # define MMIO_IN8(base, offset) xf86ReadMmio8(base, offset)
1309 # define MMIO_OUT8(base, offset, val) \
1310 xf86WriteMmio8(base, offset, (CARD8)(val))
1311 # define MMIO_ONB8(base, offset, val) \
1312 xf86WriteMmio8NB(base, offset, (CARD8)(val))
1315 # define MMIO_IN16(base, offset) xf86ReadMmio16Be(base, offset)
1316 # define MMIO_IN32(base, offset) xf86ReadMmio32Be(base, offset)
1317 # define MMIO_OUT16(base, offset, val) \
1318 xf86WriteMmio16Be(base, offset, (CARD16)(val))
1319 # define MMIO_OUT32(base, offset, val) \
1320 xf86WriteMmio32Be(base, offset, (CARD32)(val))
1321 # define MMIO_ONB16(base, offset, val) \
1322 xf86WriteMmio16BeNB(base, offset, (CARD16)(val))
1323 # define MMIO_ONB32(base, offset, val) \
1324 xf86WriteMmio32BeNB(base, offset, (CARD32)(val))
1326 # define MMIO_IN16(base, offset) xf86ReadMmio16Le(base, offset)
1327 # define MMIO_IN32(base, offset) xf86ReadMmio32Le(base, offset)
1328 # define MMIO_OUT16(base, offset, val) \
1329 xf86WriteMmio16Le(base, offset, (CARD16)(val))
1330 # define MMIO_OUT32(base, offset, val) \
1331 xf86WriteMmio32Le(base, offset, (CARD32)(val))
1332 # define MMIO_ONB16(base, offset, val) \
1333 xf86WriteMmio16LeNB(base, offset, (CARD16)(val))
1334 # define MMIO_ONB32(base, offset, val) \
1335 xf86WriteMmio32LeNB(base, offset, (CARD32)(val))
1338 # define MMIO_MOVE32(base, offset, val) \
1339 xf86WriteMmio32Be(base, offset, (CARD32)(val))
1343 # define MMIO_IN8(base, offset) \
1344 *(volatile CARD8 *)(((CARD8*)(base)) + (offset))
1345 # define MMIO_IN16(base, offset) \
1346 *(volatile CARD16 *)(void *)(((CARD8*)(base)) + (offset))
1347 # define MMIO_IN32(base, offset) \
1348 *(volatile CARD32 *)(void *)(((CARD8*)(base)) + (offset))
1349 # define MMIO_OUT8(base, offset, val) \
1350 *(volatile CARD8 *)(((CARD8*)(base)) + (offset)) = (val)
1351 # define MMIO_OUT16(base, offset, val) \
1352 *(volatile CARD16 *)(void *)(((CARD8*)(base)) + (offset)) = (val)
1353 # define MMIO_OUT32(base, offset, val) \
1354 *(volatile CARD32 *)(void *)(((CARD8*)(base)) + (offset)) = (val)
1355 # define MMIO_ONB8(base, offset, val) MMIO_OUT8(base, offset, val)
1356 # define MMIO_ONB16(base, offset, val) MMIO_OUT16(base, offset, val)
1357 # define MMIO_ONB32(base, offset, val) MMIO_OUT32(base, offset, val)
1359 # define MMIO_MOVE32(base, offset, val) MMIO_OUT32(base, offset, val)