Lines Matching full:common

23 #define REG_READ			(common->ops->read)
24 #define REG_WRITE(_ah, _reg, _val) (common->ops->write)(_ah, _val, _reg)
29 * @common: the ath_common struct for the device.
46 * When you do this you are essentially computing the common bits of all your
80 * significant bit". This is because its the only bit common
82 * common bit is we can simply "&" the bssid_mask now with any BSSID we have
92 * common bit amongst the MAC and BSSIDs is 0, this frame has the 2nd LSB
118 void ath_hw_setbssidmask(struct ath_common *common) in ath_hw_setbssidmask() argument
120 void *ah = common->ah; in ath_hw_setbssidmask()
123 REG_WRITE(ah, AR_STA_ID0, get_unaligned_le32(common->macaddr)); in ath_hw_setbssidmask()
125 id1 |= get_unaligned_le16(common->macaddr + 4); in ath_hw_setbssidmask()
128 REG_WRITE(ah, AR_BSSMSKL, get_unaligned_le32(common->bssidmask)); in ath_hw_setbssidmask()
129 REG_WRITE(ah, AR_BSSMSKU, get_unaligned_le16(common->bssidmask + 4)); in ath_hw_setbssidmask()
135 * ath_hw_cycle_counters_update - common function to update cycle counters
137 * @common: the ath_common struct for the device.
140 * It has to be called while holding common->cc_lock!
142 void ath_hw_cycle_counters_update(struct ath_common *common) in ath_hw_cycle_counters_update() argument
145 void *ah = common->ah; in ath_hw_cycle_counters_update()
166 common->cc_ani.cycles += cycles; in ath_hw_cycle_counters_update()
167 common->cc_ani.rx_busy += busy; in ath_hw_cycle_counters_update()
168 common->cc_ani.rx_frame += rx; in ath_hw_cycle_counters_update()
169 common->cc_ani.tx_frame += tx; in ath_hw_cycle_counters_update()
171 common->cc_survey.cycles += cycles; in ath_hw_cycle_counters_update()
172 common->cc_survey.rx_busy += busy; in ath_hw_cycle_counters_update()
173 common->cc_survey.rx_frame += rx; in ath_hw_cycle_counters_update()
174 common->cc_survey.tx_frame += tx; in ath_hw_cycle_counters_update()
178 int32_t ath_hw_get_listen_time(struct ath_common *common) in ath_hw_get_listen_time() argument
180 struct ath_cycle_counters *cc = &common->cc_ani; in ath_hw_get_listen_time()
184 (common->clockrate * 1000); in ath_hw_get_listen_time()