Lines Matching refs:__hba
128 #define REG_RD(__hba, offset) \ argument
129 readl(__hba->regview + offset)
130 #define REG_WR(__hba, offset, val) \ argument
131 writel(val, __hba->regview + offset)
134 #define GET_STATS_64(__hba, dst, field) \ argument
136 spin_lock_bh(&__hba->stat_lock); \
137 dst->field##_lo = __hba->stats.field##_lo; \
138 dst->field##_hi = __hba->stats.field##_hi; \
139 spin_unlock_bh(&__hba->stat_lock); \
142 #define ADD_STATS_64(__hba, field, len) \ argument
144 if (spin_trylock(&__hba->stat_lock)) { \
145 if (__hba->stats.field##_lo + len < \
146 __hba->stats.field##_lo) \
147 __hba->stats.field##_hi++; \
148 __hba->stats.field##_lo += len; \
149 spin_unlock(&__hba->stat_lock); \
154 #define GET_STATS_64(__hba, dst, field) \ argument
158 val = __hba->bnx2i_stats.field; \
159 out = (u64 *)&__hba->stats.field##_lo; \
165 #define ADD_STATS_64(__hba, field, len) \ argument
167 __hba->bnx2i_stats.field += len; \