Lines Matching refs:mfa
83 #define valid_mfa(mfa) ( (mfa) != NO_MFAS_AVAILABLE ) argument
88 u32 mfa; in get_mfa_outbound() local
91 mfa = readl(base_address + OUTBOUND_QUEUE_PORT); in get_mfa_outbound()
92 if (valid_mfa(mfa)) in get_mfa_outbound()
95 return mfa; 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()
105 u32 mfa = readl(base_address + INBOUND_QUEUE_PORT); in get_mfa_inbound() local
107 if (MAILBOX_FULL(mfa)) in get_mfa_inbound()
110 return mfa; 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()