Lines Matching refs:base_address

41 static inline int sp_interrupt_pending(void __iomem *base_address)  in sp_interrupt_pending()  argument
43 return SP_INTR_MASK & readl(base_address + INTR_STATUS_REGISTER); in sp_interrupt_pending()
46 static inline int uart_interrupt_pending(void __iomem *base_address) in uart_interrupt_pending() argument
48 return UART_INTR_MASK & readl(base_address + INTR_STATUS_REGISTER); in uart_interrupt_pending()
51 static inline void ibmasm_enable_interrupts(void __iomem *base_address, int mask) in ibmasm_enable_interrupts() argument
53 void __iomem *ctrl_reg = base_address + INTR_CONTROL_REGISTER; in ibmasm_enable_interrupts()
57 static inline void ibmasm_disable_interrupts(void __iomem *base_address, int mask) in ibmasm_disable_interrupts() argument
59 void __iomem *ctrl_reg = base_address + INTR_CONTROL_REGISTER; in ibmasm_disable_interrupts()
63 static inline void enable_sp_interrupts(void __iomem *base_address) in enable_sp_interrupts() argument
65 ibmasm_enable_interrupts(base_address, SP_INTR_MASK); in enable_sp_interrupts()
68 static inline void disable_sp_interrupts(void __iomem *base_address) in disable_sp_interrupts() argument
70 ibmasm_disable_interrupts(base_address, SP_INTR_MASK); in disable_sp_interrupts()
73 static inline void enable_uart_interrupts(void __iomem *base_address) in enable_uart_interrupts() argument
75 ibmasm_enable_interrupts(base_address, UART_INTR_MASK); in enable_uart_interrupts()
78 static inline void disable_uart_interrupts(void __iomem *base_address) in disable_uart_interrupts() argument
80 ibmasm_disable_interrupts(base_address, UART_INTR_MASK); in disable_uart_interrupts()
85 static inline u32 get_mfa_outbound(void __iomem *base_address) in get_mfa_outbound() argument
91 mfa = readl(base_address + OUTBOUND_QUEUE_PORT); in get_mfa_outbound()
98 static inline void set_mfa_outbound(void __iomem *base_address, u32 mfa) in set_mfa_outbound() argument
100 writel(mfa, base_address + OUTBOUND_QUEUE_PORT); in set_mfa_outbound()
103 static inline u32 get_mfa_inbound(void __iomem *base_address) in get_mfa_inbound() argument
105 u32 mfa = readl(base_address + INBOUND_QUEUE_PORT); in get_mfa_inbound()
113 static inline void set_mfa_inbound(void __iomem *base_address, u32 mfa) in set_mfa_inbound() argument
115 writel(mfa, base_address + INBOUND_QUEUE_PORT); in set_mfa_inbound()
118 static inline struct i2o_message *get_i2o_message(void __iomem *base_address, u32 mfa) in get_i2o_message() argument
120 return (struct i2o_message *)(GET_MFA_ADDR(mfa) + base_address); in get_i2o_message()