Lines Matching refs:scn

60 #define hif_read32_mb(scn, addr) \  argument
61 hif_read32_mb_reg_window((void *)scn, \
63 #define hif_write32_mb(scn, addr, value) \ argument
64 hif_write32_mb_reg_window((void *)scn, \
68 #define hif_read32_mb(scn, addr) ioread32((void __iomem *)addr) argument
69 #define hif_write32_mb(scn, addr, value) \ argument
73 #define Q_TARGET_ACCESS_BEGIN(scn) \ argument
74 hif_target_sleep_state_adjust(scn, false, true)
75 #define Q_TARGET_ACCESS_END(scn) \ argument
76 hif_target_sleep_state_adjust(scn, true, false)
77 #define TARGET_REGISTER_ACCESS_ALLOWED(scn)\ argument
78 hif_is_target_register_access_allowed(scn)
98 #define A_TARGET_ACCESS_LIKELY(scn) \ argument
99 hif_target_sleep_state_adjust(scn, false, false)
100 #define A_TARGET_ACCESS_UNLIKELY(scn) \ argument
101 hif_target_sleep_state_adjust(scn, true, false)
103 #define A_TARGET_ACCESS_LIKELY(scn) \ argument
105 unsigned long unused = (unsigned long)(scn); \
109 #define A_TARGET_ACCESS_UNLIKELY(scn) \ argument
111 unsigned long unused = (unsigned long)(scn); \
136 bool hif_target_access_allowed(struct hif_softc *scn) in hif_target_access_allowed() argument
138 return !(scn->recovery); in hif_target_access_allowed()
141 #define TARGET_ACCESS_ALLOWED(scn) \ argument
142 hif_target_access_allowed(scn)
144 #define TARGET_ACCESS_ALLOWED(scn) (1) argument
265 static inline void hif_write32_mb_reg_window(void *scn, in hif_write32_mb_reg_window() argument
268 struct hif_pci_softc *sc = HIF_GET_PCI_SOFTC(scn); in hif_write32_mb_reg_window()
284 static inline uint32_t hif_read32_mb_reg_window(void *scn, void __iomem *addr) in hif_read32_mb_reg_window() argument
286 struct hif_pci_softc *sc = HIF_GET_PCI_SOFTC(scn); in hif_read32_mb_reg_window()
306 #define A_TARGET_READ(scn, offset) \ argument
307 hif_reg_window_read(scn, offset)
308 #define A_TARGET_WRITE(scn, offset, value) \ argument
309 hif_reg_window_write(scn, offset, value)
311 uint32_t hif_target_read_checked(struct hif_softc *scn,
313 void hif_target_write_checked(struct hif_softc *scn, uint32_t offset,
316 #define A_TARGET_READ(scn, offset) \ argument
317 hif_target_read_checked(scn, (offset))
318 #define A_TARGET_WRITE(scn, offset, value) \ argument
319 hif_target_write_checked(scn, (offset), (value))
321 #define A_TARGET_READ(scn, offset) \ argument
322 hif_read32_mb(scn, scn->mem + (offset))
323 #define A_TARGET_WRITE(scn, offset, value) \ argument
324 hif_write32_mb(scn, (scn->mem) + (offset), value)
328 #define A_TARGET_DELAYED_REG_WRITE(scn, ctrl_addr, val) \ argument
329 hif_delayed_reg_write(scn, ctrl_addr, val)
332 void hif_irq_enable(struct hif_softc *scn, int irq_id);
333 void hif_irq_disable(struct hif_softc *scn, int irq_id);