Lines Matching refs:mfa
97 #define valid_mfa(mfa) ( (mfa) != NO_MFAS_AVAILABLE ) argument
102 u32 mfa; in get_mfa_outbound() local
105 mfa = readl(base_address + OUTBOUND_QUEUE_PORT); in get_mfa_outbound()
106 if (valid_mfa(mfa)) in get_mfa_outbound()
109 return mfa; in get_mfa_outbound()
112 static inline void set_mfa_outbound(void __iomem *base_address, u32 mfa) in set_mfa_outbound() argument
114 writel(mfa, base_address + OUTBOUND_QUEUE_PORT); in set_mfa_outbound()
119 u32 mfa = readl(base_address + INBOUND_QUEUE_PORT); in get_mfa_inbound() local
121 if (MAILBOX_FULL(mfa)) in get_mfa_inbound()
124 return mfa; in get_mfa_inbound()
127 static inline void set_mfa_inbound(void __iomem *base_address, u32 mfa) in set_mfa_inbound() argument
129 writel(mfa, base_address + INBOUND_QUEUE_PORT); in set_mfa_inbound()
132 static inline struct i2o_message *get_i2o_message(void __iomem *base_address, u32 mfa) in get_i2o_message() argument
134 return (struct i2o_message *)(GET_MFA_ADDR(mfa) + base_address); in get_i2o_message()