Lines Matching defs:reg
47 #define mtsprg(n, reg) __asm__ volatile("mtsprg " # n ", %0" : : "r" (reg))
48 #define mfsprg(reg, n) __asm__ volatile("mfsprg %0, " # n : "=r" (reg))
52 #define mtspr(spr, reg) __asm__ volatile ("mtspr %0, %1" : : "n" (spr), "r" (reg))
53 #define mfspr(reg, spr) __asm__ volatile("mfspr %0, %1" : "=r" (reg) : "n" (spr));
57 #define mtsr(sr, reg) __asm__ volatile("sync" "@" "mtsr sr%0, %1 " "@" "isync" : : "i" (sr), "r" (reg));
58 #define mfsr(reg, sr) __asm__ volatile("mfsr %0, sr%1" : "=r" (reg) : "i" (sr));
1163 kern_return_t chudxnu_scom_read(uint32_t reg, uint64_t *data)
1165 ml_scom_read(reg, data);
1169 kern_return_t chudxnu_scom_write(uint32_t reg, uint64_t data)
1171 ml_scom_write(reg, data);