Home
last modified time | relevance | path

Searched refs:ah (Results 1 – 200 of 232) sorted by relevance

12

/linux-4.1.27/drivers/net/wireless/ath/ath9k/
Dar9003_hw.c41 static void ar9003_hw_init_mode_regs(struct ath_hw *ah) in ar9003_hw_init_mode_regs() argument
43 if (AR_SREV_9330_11(ah)) { in ar9003_hw_init_mode_regs()
45 INIT_INI_ARRAY(&ah->iniMac[ATH_INI_CORE], in ar9003_hw_init_mode_regs()
47 INIT_INI_ARRAY(&ah->iniMac[ATH_INI_POST], in ar9003_hw_init_mode_regs()
51 INIT_INI_ARRAY(&ah->iniBB[ATH_INI_CORE], in ar9003_hw_init_mode_regs()
53 INIT_INI_ARRAY(&ah->iniBB[ATH_INI_POST], in ar9003_hw_init_mode_regs()
57 INIT_INI_ARRAY(&ah->iniRadio[ATH_INI_CORE], in ar9003_hw_init_mode_regs()
61 INIT_INI_ARRAY(&ah->iniSOC[ATH_INI_PRE], in ar9003_hw_init_mode_regs()
63 INIT_INI_ARRAY(&ah->iniSOC[ATH_INI_POST], in ar9003_hw_init_mode_regs()
67 INIT_INI_ARRAY(&ah->iniModesRxGain, in ar9003_hw_init_mode_regs()
[all …]
Dhw-ops.h24 static inline void ath9k_hw_configpcipowersave(struct ath_hw *ah, in ath9k_hw_configpcipowersave() argument
27 if (!ah->aspm_enabled) in ath9k_hw_configpcipowersave()
30 ath9k_hw_ops(ah)->config_pci_powersave(ah, power_off); in ath9k_hw_configpcipowersave()
33 static inline void ath9k_hw_rxena(struct ath_hw *ah) in ath9k_hw_rxena() argument
35 ath9k_hw_ops(ah)->rx_enable(ah); in ath9k_hw_rxena()
38 static inline void ath9k_hw_set_desc_link(struct ath_hw *ah, void *ds, in ath9k_hw_set_desc_link() argument
41 ath9k_hw_ops(ah)->set_desc_link(ds, link); in ath9k_hw_set_desc_link()
44 static inline int ath9k_hw_calibrate(struct ath_hw *ah, in ath9k_hw_calibrate() argument
48 return ath9k_hw_ops(ah)->calibrate(ah, chan, rxchainmask, longcal); in ath9k_hw_calibrate()
51 static inline bool ath9k_hw_getisr(struct ath_hw *ah, enum ath9k_int *masked, in ath9k_hw_getisr() argument
[all …]
Dhw.c33 static bool ath9k_hw_set_reset_reg(struct ath_hw *ah, u32 type);
40 static void ath9k_hw_set_clockrate(struct ath_hw *ah) in ath9k_hw_set_clockrate() argument
42 struct ath_common *common = ath9k_hw_common(ah); in ath9k_hw_set_clockrate()
43 struct ath9k_channel *chan = ah->curchan; in ath9k_hw_set_clockrate()
47 if (AR_SREV_9287(ah) && AR_SREV_9287_13_OR_LATER(ah)) in ath9k_hw_set_clockrate()
53 else if (ah->caps.hw_caps & ATH9K_HW_CAP_FASTCLOCK) in ath9k_hw_set_clockrate()
70 static u32 ath9k_hw_mac_to_clks(struct ath_hw *ah, u32 usecs) in ath9k_hw_mac_to_clks() argument
72 struct ath_common *common = ath9k_hw_common(ah); in ath9k_hw_mac_to_clks()
77 bool ath9k_hw_wait(struct ath_hw *ah, u32 reg, u32 mask, u32 val, u32 timeout) in ath9k_hw_wait() argument
84 if ((REG_READ(ah, reg) & mask) == val) in ath9k_hw_wait()
[all …]
Dar9002_hw.c26 static int ar9002_hw_init_mode_regs(struct ath_hw *ah) in ar9002_hw_init_mode_regs() argument
28 if (AR_SREV_9271(ah)) { in ar9002_hw_init_mode_regs()
29 INIT_INI_ARRAY(&ah->iniModes, ar9271Modes_9271); in ar9002_hw_init_mode_regs()
30 INIT_INI_ARRAY(&ah->iniCommon, ar9271Common_9271); in ar9002_hw_init_mode_regs()
31 INIT_INI_ARRAY(&ah->iniModes_9271_ANI_reg, ar9271Modes_9271_ANI_reg); in ar9002_hw_init_mode_regs()
35 INIT_INI_ARRAY(&ah->iniPcieSerdes, in ar9002_hw_init_mode_regs()
38 if (AR_SREV_9287_11_OR_LATER(ah)) { in ar9002_hw_init_mode_regs()
39 INIT_INI_ARRAY(&ah->iniModes, ar9287Modes_9287_1_1); in ar9002_hw_init_mode_regs()
40 INIT_INI_ARRAY(&ah->iniCommon, ar9287Common_9287_1_1); in ar9002_hw_init_mode_regs()
41 } else if (AR_SREV_9285_12_OR_LATER(ah)) { in ar9002_hw_init_mode_regs()
[all …]
Dar9002_calib.c29 static bool ar9002_hw_is_cal_supported(struct ath_hw *ah, in ar9002_hw_is_cal_supported() argument
34 switch (ah->supp_cals & cal_type) { in ar9002_hw_is_cal_supported()
41 if (!((IS_CHAN_2GHZ(chan) || IS_CHAN_A_FAST_CLOCK(ah, chan)) && in ar9002_hw_is_cal_supported()
49 static void ar9002_hw_setup_calibration(struct ath_hw *ah, in ar9002_hw_setup_calibration() argument
52 struct ath_common *common = ath9k_hw_common(ah); in ar9002_hw_setup_calibration()
54 REG_RMW_FIELD(ah, AR_PHY_TIMING_CTRL4(0), in ar9002_hw_setup_calibration()
60 REG_WRITE(ah, AR_PHY_CALMODE, AR_PHY_CALMODE_IQ); in ar9002_hw_setup_calibration()
65 REG_WRITE(ah, AR_PHY_CALMODE, AR_PHY_CALMODE_ADC_GAIN); in ar9002_hw_setup_calibration()
69 REG_WRITE(ah, AR_PHY_CALMODE, AR_PHY_CALMODE_ADC_DC_PER); in ar9002_hw_setup_calibration()
74 REG_SET_BIT(ah, AR_PHY_TIMING_CTRL4(0), in ar9002_hw_setup_calibration()
[all …]
Dar9003_phy.c148 static int ar9003_hw_set_channel(struct ath_hw *ah, struct ath9k_channel *chan) in ar9003_hw_set_channel() argument
155 ath9k_hw_get_channel_centers(ah, chan, &centers); in ar9003_hw_set_channel()
159 if (AR_SREV_9330(ah)) { in ar9003_hw_set_channel()
160 if (ah->is_clk_25mhz) in ar9003_hw_set_channel()
168 } else if (AR_SREV_9485(ah) || AR_SREV_9565(ah)) { in ar9003_hw_set_channel()
178 } else if (AR_SREV_9340(ah)) { in ar9003_hw_set_channel()
179 if (ah->is_clk_25mhz) { in ar9003_hw_set_channel()
186 } else if (AR_SREV_9550(ah) || AR_SREV_9531(ah) || in ar9003_hw_set_channel()
187 AR_SREV_9561(ah)) { in ar9003_hw_set_channel()
188 if (ah->is_clk_25mhz) in ar9003_hw_set_channel()
[all …]
Dar9003_mci.c24 static void ar9003_mci_reset_req_wakeup(struct ath_hw *ah) in ar9003_mci_reset_req_wakeup() argument
26 REG_RMW_FIELD(ah, AR_MCI_COMMAND2, in ar9003_mci_reset_req_wakeup()
29 REG_RMW_FIELD(ah, AR_MCI_COMMAND2, in ar9003_mci_reset_req_wakeup()
33 static int ar9003_mci_wait_for_interrupt(struct ath_hw *ah, u32 address, in ar9003_mci_wait_for_interrupt() argument
36 struct ath_common *common = ath9k_hw_common(ah); in ar9003_mci_wait_for_interrupt()
39 if (!(REG_READ(ah, address) & bit_position)) { in ar9003_mci_wait_for_interrupt()
48 REG_WRITE(ah, address, bit_position); in ar9003_mci_wait_for_interrupt()
54 ar9003_mci_reset_req_wakeup(ah); in ar9003_mci_wait_for_interrupt()
58 REG_WRITE(ah, AR_MCI_INTERRUPT_RAW, in ar9003_mci_wait_for_interrupt()
61 REG_WRITE(ah, AR_MCI_INTERRUPT_RAW, AR_MCI_INTERRUPT_RX_MSG); in ar9003_mci_wait_for_interrupt()
[all …]
Dani.c107 static void ath9k_hw_update_mibstats(struct ath_hw *ah, in ath9k_hw_update_mibstats() argument
114 REG_READ_MULTI(ah, &addr[0], &data[0], 5); in ath9k_hw_update_mibstats()
127 static void ath9k_ani_restart(struct ath_hw *ah) in ath9k_ani_restart() argument
131 if (!ah->curchan) in ath9k_ani_restart()
134 aniState = &ah->ani; in ath9k_ani_restart()
137 ENABLE_REGWRITE_BUFFER(ah); in ath9k_ani_restart()
139 REG_WRITE(ah, AR_PHY_ERR_1, 0); in ath9k_ani_restart()
140 REG_WRITE(ah, AR_PHY_ERR_2, 0); in ath9k_ani_restart()
141 REG_WRITE(ah, AR_PHY_ERR_MASK_1, AR_PHY_ERR_OFDM_TIMING); in ath9k_ani_restart()
142 REG_WRITE(ah, AR_PHY_ERR_MASK_2, AR_PHY_ERR_CCK_TIMING); in ath9k_ani_restart()
[all …]
Dbtcoex.c55 void ath9k_hw_init_btcoex_hw(struct ath_hw *ah, int qnum) in ath9k_hw_init_btcoex_hw() argument
57 struct ath_btcoex_hw *btcoex_hw = &ah->btcoex_hw; in ath9k_hw_init_btcoex_hw()
71 if (AR_SREV_9300_20_OR_LATER(ah)) in ath9k_hw_init_btcoex_hw()
93 void ath9k_hw_btcoex_init_scheme(struct ath_hw *ah) in ath9k_hw_btcoex_init_scheme() argument
95 struct ath_common *common = ath9k_hw_common(ah); in ath9k_hw_btcoex_init_scheme()
96 struct ath_btcoex_hw *btcoex_hw = &ah->btcoex_hw; in ath9k_hw_btcoex_init_scheme()
106 if (ah->caps.hw_caps & ATH9K_HW_CAP_MCI) { in ath9k_hw_btcoex_init_scheme()
108 } else if (AR_SREV_9300_20_OR_LATER(ah)) { in ath9k_hw_btcoex_init_scheme()
113 } else if (AR_SREV_9280_20_OR_LATER(ah)) { in ath9k_hw_btcoex_init_scheme()
117 if (AR_SREV_9285(ah)) { in ath9k_hw_btcoex_init_scheme()
[all …]
Dar9003_rtt.c38 void ar9003_hw_rtt_enable(struct ath_hw *ah) in ar9003_hw_rtt_enable() argument
40 REG_WRITE(ah, AR_PHY_RTT_CTRL, 1); in ar9003_hw_rtt_enable()
43 void ar9003_hw_rtt_disable(struct ath_hw *ah) in ar9003_hw_rtt_disable() argument
45 REG_WRITE(ah, AR_PHY_RTT_CTRL, 0); in ar9003_hw_rtt_disable()
48 void ar9003_hw_rtt_set_mask(struct ath_hw *ah, u32 rtt_mask) in ar9003_hw_rtt_set_mask() argument
50 REG_RMW_FIELD(ah, AR_PHY_RTT_CTRL, in ar9003_hw_rtt_set_mask()
54 bool ar9003_hw_rtt_force_restore(struct ath_hw *ah) in ar9003_hw_rtt_force_restore() argument
56 if (!ath9k_hw_wait(ah, AR_PHY_RTT_CTRL, in ar9003_hw_rtt_force_restore()
61 REG_RMW_FIELD(ah, AR_PHY_RTT_CTRL, in ar9003_hw_rtt_force_restore()
64 if (!ath9k_hw_wait(ah, AR_PHY_RTT_CTRL, in ar9003_hw_rtt_force_restore()
[all …]
Dar5008_phy.c64 static void ar5008_write_bank6(struct ath_hw *ah, unsigned int *writecnt) in ar5008_write_bank6() argument
66 struct ar5416IniArray *array = &ah->iniBank6; in ar5008_write_bank6()
67 u32 *data = ah->analogBank6Data; in ar5008_write_bank6()
70 ENABLE_REGWRITE_BUFFER(ah); in ar5008_write_bank6()
73 REG_WRITE(ah, INI_RA(array, r, 0), data[r]); in ar5008_write_bank6()
77 REGWRITE_BUFFER_FLUSH(ah); in ar5008_write_bank6()
144 static void ar5008_hw_force_bias(struct ath_hw *ah, u16 synth_freq) in ar5008_hw_force_bias() argument
146 struct ath_common *common = ath9k_hw_common(ah); in ar5008_hw_force_bias()
151 if (!AR_SREV_5416(ah) || synth_freq >= 3000) in ar5008_hw_force_bias()
154 BUG_ON(AR_SREV_9280_20_OR_LATER(ah)); in ar5008_hw_force_bias()
[all …]
Dar9003_wow.c23 static void ath9k_hw_set_sta_powersave(struct ath_hw *ah) in ath9k_hw_set_sta_powersave() argument
25 if (!ath9k_hw_mci_is_enabled(ah)) in ath9k_hw_set_sta_powersave()
31 if (ar9003_mci_state(ah, MCI_STATE_GET_WLAN_PS_STATE) != MCI_PS_DISABLE) in ath9k_hw_set_sta_powersave()
34 REG_SET_BIT(ah, AR_STA_ID1, AR_STA_ID1_PWR_SAV); in ath9k_hw_set_sta_powersave()
37 static void ath9k_hw_set_powermode_wow_sleep(struct ath_hw *ah) in ath9k_hw_set_powermode_wow_sleep() argument
39 struct ath_common *common = ath9k_hw_common(ah); in ath9k_hw_set_powermode_wow_sleep()
41 ath9k_hw_set_sta_powersave(ah); in ath9k_hw_set_powermode_wow_sleep()
44 REG_WRITE(ah, AR_CR, AR_CR_RXD); in ath9k_hw_set_powermode_wow_sleep()
46 if (!ath9k_hw_wait(ah, AR_CR, AR_CR_RXE, 0, AH_WAIT_TIMEOUT)) { in ath9k_hw_set_powermode_wow_sleep()
48 REG_READ(ah, AR_CR), REG_READ(ah, AR_DIAG_SW)); in ath9k_hw_set_powermode_wow_sleep()
[all …]
Dar9003_calib.c38 static void ar9003_hw_setup_calibration(struct ath_hw *ah, in ar9003_hw_setup_calibration() argument
41 struct ath_common *common = ath9k_hw_common(ah); in ar9003_hw_setup_calibration()
50 REG_RMW_FIELD(ah, AR_PHY_TIMING4, in ar9003_hw_setup_calibration()
53 REG_WRITE(ah, AR_PHY_CALMODE, AR_PHY_CALMODE_IQ); in ar9003_hw_setup_calibration()
59 REG_SET_BIT(ah, AR_PHY_TIMING4, AR_PHY_TIMING4_DO_CAL); in ar9003_hw_setup_calibration()
72 static bool ar9003_hw_per_calibration(struct ath_hw *ah, in ar9003_hw_per_calibration() argument
77 struct ath9k_hw_cal_data *caldata = ah->caldata; in ar9003_hw_per_calibration()
84 if (!(REG_READ(ah, AR_PHY_TIMING4) & AR_PHY_TIMING4_DO_CAL)) { in ar9003_hw_per_calibration()
88 currCal->calData->calCollect(ah); in ar9003_hw_per_calibration()
89 ah->cal_samples++; in ar9003_hw_per_calibration()
[all …]
Dmac.c21 static void ath9k_hw_set_txq_interrupts(struct ath_hw *ah, in ath9k_hw_set_txq_interrupts() argument
24 ath_dbg(ath9k_hw_common(ah), INTERRUPT, in ath9k_hw_set_txq_interrupts()
26 ah->txok_interrupt_mask, ah->txerr_interrupt_mask, in ath9k_hw_set_txq_interrupts()
27 ah->txdesc_interrupt_mask, ah->txeol_interrupt_mask, in ath9k_hw_set_txq_interrupts()
28 ah->txurn_interrupt_mask); in ath9k_hw_set_txq_interrupts()
30 ENABLE_REGWRITE_BUFFER(ah); in ath9k_hw_set_txq_interrupts()
32 REG_WRITE(ah, AR_IMR_S0, in ath9k_hw_set_txq_interrupts()
33 SM(ah->txok_interrupt_mask, AR_IMR_S0_QCU_TXOK) in ath9k_hw_set_txq_interrupts()
34 | SM(ah->txdesc_interrupt_mask, AR_IMR_S0_QCU_TXDESC)); in ath9k_hw_set_txq_interrupts()
35 REG_WRITE(ah, AR_IMR_S1, in ath9k_hw_set_txq_interrupts()
[all …]
Dar9002_phy.c66 static int ar9002_hw_set_channel(struct ath_hw *ah, struct ath9k_channel *chan) in ar9002_hw_set_channel() argument
73 ath9k_hw_get_channel_centers(ah, chan, &centers); in ar9002_hw_set_channel()
76 reg32 = REG_READ(ah, AR_PHY_SYNTH_CONTROL); in ar9002_hw_set_channel()
88 if (AR_SREV_9287_11_OR_LATER(ah)) { in ar9002_hw_set_channel()
91 REG_WRITE_ARRAY(&ah->iniCckfirJapan2484, in ar9002_hw_set_channel()
94 REG_WRITE_ARRAY(&ah->iniCckfirNormal, in ar9002_hw_set_channel()
98 txctl = REG_READ(ah, AR_PHY_CCK_TX_CTRL); in ar9002_hw_set_channel()
101 REG_WRITE(ah, AR_PHY_CCK_TX_CTRL, in ar9002_hw_set_channel()
104 REG_WRITE(ah, AR_PHY_CCK_TX_CTRL, in ar9002_hw_set_channel()
112 switch (ah->eep_ops->get_eeprom(ah, EEP_FRAC_N_5G)) { in ar9002_hw_set_channel()
[all …]
Dcalib.c47 static struct ath_nf_limits *ath9k_hw_get_nf_limits(struct ath_hw *ah, in ath9k_hw_get_nf_limits() argument
53 limit = &ah->nf_2g; in ath9k_hw_get_nf_limits()
55 limit = &ah->nf_5g; in ath9k_hw_get_nf_limits()
60 static s16 ath9k_hw_get_default_nf(struct ath_hw *ah, in ath9k_hw_get_default_nf() argument
63 return ath9k_hw_get_nf_limits(ah, chan)->nominal; in ath9k_hw_get_default_nf()
66 s16 ath9k_hw_getchan_noise(struct ath_hw *ah, struct ath9k_channel *chan, in ath9k_hw_getchan_noise() argument
73 ath9k_hw_get_default_nf(ah, chan); in ath9k_hw_getchan_noise()
81 static void ath9k_hw_update_nfcal_hist_buffer(struct ath_hw *ah, in ath9k_hw_update_nfcal_hist_buffer() argument
85 struct ath_common *common = ath9k_hw_common(ah); in ath9k_hw_update_nfcal_hist_buffer()
89 u8 chainmask = (ah->rxchainmask << 3) | ah->rxchainmask; in ath9k_hw_update_nfcal_hist_buffer()
[all …]
Dar9003_paprd.c21 void ar9003_paprd_enable(struct ath_hw *ah, bool val) in ar9003_paprd_enable() argument
23 struct ath9k_channel *chan = ah->curchan; in ar9003_paprd_enable()
24 struct ar9300_eeprom *eep = &ah->eeprom.ar9300_eep; in ar9003_paprd_enable()
56 ah->paprd_table_write_done = true; in ar9003_paprd_enable()
57 ath9k_hw_apply_txpower(ah, chan, false); in ar9003_paprd_enable()
60 REG_RMW_FIELD(ah, AR_PHY_PAPRD_CTRL0_B0, in ar9003_paprd_enable()
62 if (ah->caps.tx_chainmask & BIT(1)) in ar9003_paprd_enable()
63 REG_RMW_FIELD(ah, AR_PHY_PAPRD_CTRL0_B1, in ar9003_paprd_enable()
65 if (ah->caps.tx_chainmask & BIT(2)) in ar9003_paprd_enable()
66 REG_RMW_FIELD(ah, AR_PHY_PAPRD_CTRL0_B2, in ar9003_paprd_enable()
[all …]
Dhw.h134 (ath9k_hw_common(ah)->bus_ops->ath_bus_type \
140 ath9k_hw_write_array(ah, iniarray, column, &(regWr))
141 #define REG_READ_ARRAY(ah, array, size) \ argument
142 ath9k_hw_read_array(ah, array, size)
166 #define RTC_PLL_SETTLE_DELAY (AR_SREV_9340(ah) ? 1000 : 100)
627 void (*init_hang_checks)(struct ath_hw *ah);
628 bool (*detect_mac_hang)(struct ath_hw *ah);
629 bool (*detect_bb_hang)(struct ath_hw *ah);
632 void (*init_cal_settings)(struct ath_hw *ah);
633 bool (*init_cal)(struct ath_hw *ah, struct ath9k_channel *chan);
[all …]
Dhtc_drv_gpio.c33 struct ath_hw *ah = priv->ah; in ath_detect_bt_priority() local
35 if (ath9k_hw_gpio_get(ah, ah->btcoex_hw.btpriority_gpio)) in ath_detect_bt_priority()
44 ath_dbg(ath9k_hw_common(ah), BTCOEX, in ath_detect_bt_priority()
49 ath_dbg(ath9k_hw_common(ah), BTCOEX, in ath_detect_bt_priority()
69 struct ath_common *common = ath9k_hw_common(priv->ah); in ath_btcoex_period_work()
82 ath9k_hw_btcoex_bt_stomp(priv->ah, test_bit(OP_BT_SCAN, &priv->op_flags) ? in ath_btcoex_period_work()
85 ath9k_hw_btcoex_enable(priv->ah); in ath_btcoex_period_work()
102 struct ath_hw *ah = priv->ah; in ath_btcoex_duty_cycle_work() local
104 struct ath_common *common = ath9k_hw_common(ah); in ath_btcoex_duty_cycle_work()
110 ath9k_hw_btcoex_bt_stomp(ah, ATH_BTCOEX_STOMP_NONE); in ath_btcoex_duty_cycle_work()
[all …]
Deeprom_4k.c21 static int ath9k_hw_4k_get_eeprom_ver(struct ath_hw *ah) in ath9k_hw_4k_get_eeprom_ver() argument
23 return ((ah->eeprom.map4k.baseEepHeader.version >> 12) & 0xF); in ath9k_hw_4k_get_eeprom_ver()
26 static int ath9k_hw_4k_get_eeprom_rev(struct ath_hw *ah) in ath9k_hw_4k_get_eeprom_rev() argument
28 return ((ah->eeprom.map4k.baseEepHeader.version) & 0xFFF); in ath9k_hw_4k_get_eeprom_rev()
33 static bool __ath9k_hw_4k_fill_eeprom(struct ath_hw *ah) in __ath9k_hw_4k_fill_eeprom() argument
35 u16 *eep_data = (u16 *)&ah->eeprom.map4k; in __ath9k_hw_4k_fill_eeprom()
39 if (!ath9k_hw_nvram_read(ah, addr + eep_start_loc, eep_data)) in __ath9k_hw_4k_fill_eeprom()
47 static bool __ath9k_hw_usb_4k_fill_eeprom(struct ath_hw *ah) in __ath9k_hw_usb_4k_fill_eeprom() argument
49 u16 *eep_data = (u16 *)&ah->eeprom.map4k; in __ath9k_hw_usb_4k_fill_eeprom()
51 ath9k_hw_usb_gen_fill_eeprom(ah, eep_data, 64, SIZE_EEPROM_4K); in __ath9k_hw_usb_4k_fill_eeprom()
[all …]
Dar9003_eeprom.c2959 static int ath9k_hw_ar9300_check_eeprom(struct ath_hw *ah) in ath9k_hw_ar9300_check_eeprom() argument
2974 static u32 ath9k_hw_ar9300_get_eeprom(struct ath_hw *ah, in ath9k_hw_ar9300_get_eeprom() argument
2977 struct ar9300_eeprom *eep = &ah->eeprom.ar9300_eep; in ath9k_hw_ar9300_get_eeprom()
3004 if (AR_SREV_9565(ah)) in ath9k_hw_ar9300_get_eeprom()
3017 static bool ar9300_eeprom_read_byte(struct ath_hw *ah, int address, in ar9300_eeprom_read_byte() argument
3022 if (unlikely(!ath9k_hw_nvram_read(ah, address / 2, &val))) in ar9300_eeprom_read_byte()
3029 static bool ar9300_eeprom_read_word(struct ath_hw *ah, int address, in ar9300_eeprom_read_word() argument
3034 if (unlikely(!ath9k_hw_nvram_read(ah, address / 2, &val))) in ar9300_eeprom_read_word()
3043 static bool ar9300_read_eeprom(struct ath_hw *ah, int address, u8 *buffer, in ar9300_read_eeprom() argument
3046 struct ath_common *common = ath9k_hw_common(ah); in ar9300_read_eeprom()
[all …]
Deeprom_def.c21 static void ath9k_get_txgain_index(struct ath_hw *ah, in ath9k_get_txgain_index() argument
31 ath9k_hw_get_channel_centers(ah, chan, &centers); in ath9k_get_txgain_index()
49 while (pcdac > ah->originalGain[i] && in ath9k_get_txgain_index()
56 static void ath9k_olc_get_pdadcs(struct ath_hw *ah, in ath9k_olc_get_pdadcs() argument
64 REG_RMW_FIELD(ah, AR_PHY_TX_PWRCTRL6_0, in ath9k_olc_get_pdadcs()
66 REG_RMW_FIELD(ah, AR_PHY_TX_PWRCTRL6_1, in ath9k_olc_get_pdadcs()
69 REG_RMW_FIELD(ah, AR_PHY_TX_PWRCTRL7, in ath9k_olc_get_pdadcs()
80 static int ath9k_hw_def_get_eeprom_ver(struct ath_hw *ah) in ath9k_hw_def_get_eeprom_ver() argument
82 return ((ah->eeprom.def.baseEepHeader.version >> 12) & 0xF); in ath9k_hw_def_get_eeprom_ver()
85 static int ath9k_hw_def_get_eeprom_rev(struct ath_hw *ah) in ath9k_hw_def_get_eeprom_rev() argument
[all …]
Dar9003_aic.c40 static bool ar9003_hw_is_aic_enabled(struct ath_hw *ah) in ar9003_hw_is_aic_enabled() argument
42 struct ath9k_hw_mci *mci_hw = &ah->btcoex_hw.mci; in ar9003_hw_is_aic_enabled()
106 static void ar9003_aic_gain_table(struct ath_hw *ah) in ar9003_aic_gain_table() argument
111 REG_WRITE(ah, AR_PHY_BT_COEX_4, 0x2c200a00); in ar9003_aic_gain_table()
112 REG_WRITE(ah, AR_PHY_BT_COEX_5, 0x5c4e4438); in ar9003_aic_gain_table()
155 REG_WRITE(ah, (AR_PHY_AIC_SRAM_ADDR_B0 + 0x3000), in ar9003_aic_gain_table()
160 REG_WRITE(ah, (AR_PHY_AIC_SRAM_DATA_B0 + 0x3000), in ar9003_aic_gain_table()
165 static u8 ar9003_aic_cal_start(struct ath_hw *ah, u8 min_valid_count) in ar9003_aic_cal_start() argument
167 struct ath9k_hw_aic *aic = &ah->btcoex_hw.aic; in ar9003_aic_cal_start()
171 REG_WRITE(ah, (AR_PHY_AIC_SRAM_ADDR_B0 + 0x3000), in ar9003_aic_cal_start()
[all …]
Dar9003_rtt.h21 void ar9003_hw_rtt_enable(struct ath_hw *ah);
22 void ar9003_hw_rtt_disable(struct ath_hw *ah);
23 void ar9003_hw_rtt_set_mask(struct ath_hw *ah, u32 rtt_mask);
24 bool ar9003_hw_rtt_force_restore(struct ath_hw *ah);
25 void ar9003_hw_rtt_load_hist(struct ath_hw *ah);
26 void ar9003_hw_rtt_fill_hist(struct ath_hw *ah);
27 void ar9003_hw_rtt_clear_hist(struct ath_hw *ah);
28 bool ar9003_hw_rtt_restore(struct ath_hw *ah, struct ath9k_channel *chan);
30 static inline void ar9003_hw_rtt_enable(struct ath_hw *ah) in ar9003_hw_rtt_enable() argument
34 static inline void ar9003_hw_rtt_disable(struct ath_hw *ah) in ar9003_hw_rtt_disable() argument
[all …]
Dgpio.c70 struct ath_hw *ah = sc->sc_ah; in ath_fill_led_pin() local
72 if (AR_SREV_9100(ah)) in ath_fill_led_pin()
75 if (ah->led_pin >= 0) { in ath_fill_led_pin()
76 if (!((1 << ah->led_pin) & AR_GPIO_OE_OUT_MASK)) in ath_fill_led_pin()
77 ath9k_hw_request_gpio(ah, ah->led_pin, "ath9k-led"); in ath_fill_led_pin()
81 if (AR_SREV_9287(ah)) in ath_fill_led_pin()
82 ah->led_pin = ATH_LED_PIN_9287; in ath_fill_led_pin()
84 ah->led_pin = ATH_LED_PIN_9485; in ath_fill_led_pin()
86 ah->led_pin = ATH_LED_PIN_9300; in ath_fill_led_pin()
88 ah->led_pin = ATH_LED_PIN_9462; in ath_fill_led_pin()
[all …]
Dar9003_mci.h306 bool ar9003_mci_send_message(struct ath_hw *ah, u8 header, u32 flag,
309 u32 ar9003_mci_state(struct ath_hw *ah, u32 state_type);
310 int ar9003_mci_setup(struct ath_hw *ah, u32 gpm_addr, void *gpm_buf,
312 void ar9003_mci_cleanup(struct ath_hw *ah);
313 void ar9003_mci_get_interrupt(struct ath_hw *ah, u32 *raw_intr,
315 u32 ar9003_mci_get_next_gpm_offset(struct ath_hw *ah, u32 *more);
316 void ar9003_mci_set_bt_version(struct ath_hw *ah, u8 major, u8 minor);
317 void ar9003_mci_send_wlan_channels(struct ath_hw *ah);
324 void ar9003_mci_stop_bt(struct ath_hw *ah, bool save_fullsleep);
325 void ar9003_mci_init_cal_req(struct ath_hw *ah, bool *is_reusable);
[all …]
Deeprom_9287.c23 static int ath9k_hw_ar9287_get_eeprom_ver(struct ath_hw *ah) in ath9k_hw_ar9287_get_eeprom_ver() argument
25 return (ah->eeprom.map9287.baseEepHeader.version >> 12) & 0xF; in ath9k_hw_ar9287_get_eeprom_ver()
28 static int ath9k_hw_ar9287_get_eeprom_rev(struct ath_hw *ah) in ath9k_hw_ar9287_get_eeprom_rev() argument
30 return (ah->eeprom.map9287.baseEepHeader.version) & 0xFFF; in ath9k_hw_ar9287_get_eeprom_rev()
33 static bool __ath9k_hw_ar9287_fill_eeprom(struct ath_hw *ah) in __ath9k_hw_ar9287_fill_eeprom() argument
35 struct ar9287_eeprom *eep = &ah->eeprom.map9287; in __ath9k_hw_ar9287_fill_eeprom()
41 if (!ath9k_hw_nvram_read(ah, addr + eep_start_loc, eep_data)) in __ath9k_hw_ar9287_fill_eeprom()
49 static bool __ath9k_hw_usb_ar9287_fill_eeprom(struct ath_hw *ah) in __ath9k_hw_usb_ar9287_fill_eeprom() argument
51 u16 *eep_data = (u16 *)&ah->eeprom.map9287; in __ath9k_hw_usb_ar9287_fill_eeprom()
53 ath9k_hw_usb_gen_fill_eeprom(ah, eep_data, in __ath9k_hw_usb_ar9287_fill_eeprom()
[all …]
Ddynack.c43 static inline u32 ath_dynack_get_sifs(struct ath_hw *ah, int phy) in ath_dynack_get_sifs() argument
48 if (IS_CHAN_QUARTER_RATE(ah->curchan)) in ath_dynack_get_sifs()
50 else if (IS_CHAN_HALF_RATE(ah->curchan)) in ath_dynack_get_sifs()
63 static inline bool ath_dynack_bssidmask(struct ath_hw *ah, const u8 *mac) in ath_dynack_bssidmask() argument
66 struct ath_common *common = ath9k_hw_common(ah); in ath_dynack_bssidmask()
83 static void ath_dynack_compute_ackto(struct ath_hw *ah) in ath_dynack_compute_ackto() argument
87 struct ath_dynack *da = &ah->dynack; in ath_dynack_compute_ackto()
88 struct ath_common *common = ath9k_hw_common(ah); in ath_dynack_compute_ackto()
101 ath9k_hw_setslottime(ah, slottime); in ath_dynack_compute_ackto()
102 ath9k_hw_set_ack_timeout(ah, da->ackto); in ath_dynack_compute_ackto()
[all …]
Dar9003_mac.c27 ar9003_set_txdesc(struct ath_hw *ah, void *ds, struct ath_tx_info *i) in ar9003_set_txdesc() argument
34 desc_len = ((AR_SREV_9462(ah) || AR_SREV_9565(ah)) ? 0x18 : 0x17); in ar9003_set_txdesc()
182 static bool ar9003_hw_get_isr(struct ath_hw *ah, enum ath9k_int *masked, in ar9003_hw_get_isr() argument
187 struct ath9k_hw_capabilities *pCap = &ah->caps; in ar9003_hw_get_isr()
188 struct ath_common *common = ath9k_hw_common(ah); in ar9003_hw_get_isr()
192 if (ath9k_hw_mci_is_enabled(ah)) in ar9003_hw_get_isr()
195 async_cause = REG_READ(ah, AR_INTR_ASYNC_CAUSE); in ar9003_hw_get_isr()
198 if ((REG_READ(ah, AR_RTC_STATUS) & AR_RTC_STATUS_M) in ar9003_hw_get_isr()
200 isr = REG_READ(ah, AR_ISR); in ar9003_hw_get_isr()
204 sync_cause = REG_READ(ah, AR_INTR_SYNC_CAUSE) & AR_INTR_SYNC_DEFAULT; in ar9003_hw_get_isr()
[all …]
Dlink.c146 struct ath_hw *ah = sc->sc_ah; in ath_paprd_activate() local
147 struct ath_common *common = ath9k_hw_common(ah); in ath_paprd_activate()
148 struct ath9k_hw_cal_data *caldata = ah->caldata; in ath_paprd_activate()
156 ar9003_paprd_enable(ah, false); in ath_paprd_activate()
158 if (!(ah->txchainmask & BIT(chain))) in ath_paprd_activate()
161 ar9003_paprd_populate_single_table(ah, caldata, chain); in ath_paprd_activate()
165 ar9003_paprd_enable(ah, true); in ath_paprd_activate()
172 struct ath_hw *ah = sc->sc_ah; in ath_paprd_send_frame() local
173 struct ath_common *common = ath9k_hw_common(ah); in ath_paprd_send_frame()
212 struct ath_hw *ah = sc->sc_ah; in ath_paprd_calibrate() local
[all …]
Dar9002_mac.c22 static void ar9002_hw_rx_enable(struct ath_hw *ah) in ar9002_hw_rx_enable() argument
24 REG_WRITE(ah, AR_CR, AR_CR_RXE); in ar9002_hw_rx_enable()
32 static bool ar9002_hw_get_isr(struct ath_hw *ah, enum ath9k_int *masked, in ar9002_hw_get_isr() argument
37 struct ath9k_hw_capabilities *pCap = &ah->caps; in ar9002_hw_get_isr()
40 struct ath_common *common = ath9k_hw_common(ah); in ar9002_hw_get_isr()
42 if (!AR_SREV_9100(ah)) { in ar9002_hw_get_isr()
43 if (REG_READ(ah, AR_INTR_ASYNC_CAUSE) & AR_INTR_MAC_IRQ) { in ar9002_hw_get_isr()
44 if ((REG_READ(ah, AR_RTC_STATUS) & AR_RTC_STATUS_M) in ar9002_hw_get_isr()
46 isr = REG_READ(ah, AR_ISR); in ar9002_hw_get_isr()
50 sync_cause = REG_READ(ah, AR_INTR_SYNC_CAUSE) & in ar9002_hw_get_isr()
[all …]
Dcommon-init.c127 struct ath_hw *ah = (struct ath_hw *)common->ah; in ath9k_cmn_init_channels_rates() local
134 if (ah->caps.hw_caps & ATH9K_HW_CAP_2GHZ) { in ath9k_cmn_init_channels_rates()
135 channels = devm_kzalloc(ah->dev, in ath9k_cmn_init_channels_rates()
151 if (ah->caps.hw_caps & ATH9K_HW_CAP_5GHZ) { in ath9k_cmn_init_channels_rates()
152 channels = devm_kzalloc(ah->dev, in ath9k_cmn_init_channels_rates()
172 void ath9k_cmn_setup_ht_cap(struct ath_hw *ah, in ath9k_cmn_setup_ht_cap() argument
175 struct ath_common *common = ath9k_hw_common(ah); in ath9k_cmn_setup_ht_cap()
185 if (ah->caps.hw_caps & ATH9K_HW_CAP_LDPC) in ath9k_cmn_setup_ht_cap()
188 if (ah->caps.hw_caps & ATH9K_HW_CAP_SGI_20) in ath9k_cmn_setup_ht_cap()
194 if (AR_SREV_9271(ah) || AR_SREV_9330(ah) || AR_SREV_9485(ah) || AR_SREV_9565(ah)) in ath9k_cmn_setup_ht_cap()
[all …]
Dhtc_drv_init.c98 ath9k_hw_deinit(priv->ah); in ath9k_deinit_priv()
99 kfree(priv->ah); in ath9k_deinit_priv()
100 priv->ah = NULL; in ath9k_deinit_priv()
227 ath9k_hw_regulatory(priv->ah)); in ath9k_reg_notifier()
232 struct ath_hw *ah = (struct ath_hw *) hw_priv; in ath9k_regread() local
233 struct ath_common *common = ath9k_hw_common(ah); in ath9k_regread()
254 struct ath_hw *ah = (struct ath_hw *) hw_priv; in ath9k_multi_regread() local
255 struct ath_common *common = ath9k_hw_common(ah); in ath9k_multi_regread()
300 struct ath_hw *ah = (struct ath_hw *) hw_priv; in ath9k_regwrite_single() local
301 struct ath_common *common = ath9k_hw_common(ah); in ath9k_regwrite_single()
[all …]
Dinit.c30 struct ath_hw *ah; member
118 struct ath_hw *ah = (struct ath_hw *) hw_priv; in ath9k_iowrite32() local
119 struct ath_common *common = ath9k_hw_common(ah); in ath9k_iowrite32()
122 if (NR_CPUS > 1 && ah->config.serialize_regmode == SER_REG_MODE_ON) { in ath9k_iowrite32()
133 struct ath_hw *ah = (struct ath_hw *) hw_priv; in ath9k_ioread32() local
134 struct ath_common *common = ath9k_hw_common(ah); in ath9k_ioread32()
138 if (NR_CPUS > 1 && ah->config.serialize_regmode == SER_REG_MODE_ON) { in ath9k_ioread32()
173 struct ath_hw *ah = (struct ath_hw *) hw_priv; in ath9k_reg_rmw() local
174 struct ath_common *common = ath9k_hw_common(ah); in ath9k_reg_rmw()
179 if (NR_CPUS > 1 && ah->config.serialize_regmode == SER_REG_MODE_ON) { in ath9k_reg_rmw()
[all …]
Dcommon-beacon.c36 static u32 ath9k_get_next_tbtt(struct ath_hw *ah, u64 tsf, in ath9k_get_next_tbtt() argument
41 tsf += TU_TO_USEC(FUDGE + ah->config.sw_beacon_response_time); in ath9k_get_next_tbtt()
55 int ath9k_cmn_beacon_config_sta(struct ath_hw *ah, in ath9k_cmn_beacon_config_sta() argument
59 struct ath_common *common = ath9k_hw_common(ah); in ath9k_cmn_beacon_config_sta()
83 tsf = ath9k_hw_gettsf64(ah); in ath9k_cmn_beacon_config_sta()
84 conf->nexttbtt = ath9k_get_next_tbtt(ah, tsf, conf->intval); in ath9k_cmn_beacon_config_sta()
91 bs->bs_nextdtim = ath9k_get_next_tbtt(ah, tsf, dtim_intval); in ath9k_cmn_beacon_config_sta()
128 void ath9k_cmn_beacon_config_adhoc(struct ath_hw *ah, in ath9k_cmn_beacon_config_adhoc() argument
131 struct ath_common *common = ath9k_hw_common(ah); in ath9k_cmn_beacon_config_adhoc()
138 conf->nexttbtt = ath9k_get_next_tbtt(ah, ath9k_hw_gettsf64(ah), in ath9k_cmn_beacon_config_adhoc()
[all …]
Dmain.c212 struct ath_hw *ah = sc->sc_ah; in ath_prepare_reset() local
217 ath9k_hw_disable_interrupts(ah); in ath_prepare_reset()
219 if (AR_SREV_9300_20_OR_LATER(ah)) { in ath_prepare_reset()
232 struct ath_hw *ah = sc->sc_ah; in ath_complete_reset() local
233 struct ath_common *common = ath9k_hw_common(ah); in ath_complete_reset()
238 ath9k_cmn_update_txpow(ah, sc->cur_chan->cur_txpower, in ath_complete_reset()
250 ath9k_hw_settsf64(ah, sc->cur_chan->tsf_val + offset); in ath_complete_reset()
257 if (ah->opmode == NL80211_IFTYPE_STATION && in ath_complete_reset()
272 ath9k_hw_set_interrupts(ah); in ath_complete_reset()
273 ath9k_hw_enable_interrupts(ah); in ath_complete_reset()
[all …]
Dwow.c52 struct ath_hw *ah = sc->sc_ah; in ath9k_wow_add_disassoc_deauth_pattern() local
53 struct ath_common *common = ath9k_hw_common(ah); in ath9k_wow_add_disassoc_deauth_pattern()
120 ret = ath9k_hw_wow_apply_pattern(ah, dis_deauth_pattern, dis_deauth_mask, in ath9k_wow_add_disassoc_deauth_pattern()
132 ret = ath9k_hw_wow_apply_pattern(ah, dis_deauth_pattern, dis_deauth_mask, in ath9k_wow_add_disassoc_deauth_pattern()
141 struct ath_hw *ah = sc->sc_ah; in ath9k_wow_add_pattern() local
155 ret = ath9k_hw_wow_apply_pattern(ah, in ath9k_wow_add_pattern()
171 struct ath_hw *ah = sc->sc_ah; in ath9k_suspend() local
172 struct ath_common *common = ath9k_hw_common(ah); in ath9k_suspend()
253 sc->wow_intr_before_sleep = ah->imask; in ath9k_suspend()
254 ah->imask &= ~ATH9K_INT_GLOBAL; in ath9k_suspend()
[all …]
Dhtc_drv_beacon.c23 struct ath_hw *ah = priv->ah; in ath9k_htc_beaconq_config() local
29 ath9k_hw_get_txq_props(ah, priv->beacon.beaconq, &qi); in ath9k_htc_beaconq_config()
31 if (priv->ah->opmode == NL80211_IFTYPE_AP || in ath9k_htc_beaconq_config()
32 priv->ah->opmode == NL80211_IFTYPE_MESH_POINT) { in ath9k_htc_beaconq_config()
36 } else if (priv->ah->opmode == NL80211_IFTYPE_ADHOC) { in ath9k_htc_beaconq_config()
39 ath9k_hw_get_txq_props(ah, qnum, &qi_be); in ath9k_htc_beaconq_config()
48 if (ah->slottime == ATH9K_SLOT_TIME_20) in ath9k_htc_beaconq_config()
57 if (!ath9k_hw_set_txq_props(ah, priv->beacon.beaconq, &qi)) { in ath9k_htc_beaconq_config()
58 ath_err(ath9k_hw_common(ah), in ath9k_htc_beaconq_config()
61 ath9k_hw_resettxqueue(ah, priv->beacon.beaconq); in ath9k_htc_beaconq_config()
[all …]
Deeprom.c19 void ath9k_hw_analog_shift_regwrite(struct ath_hw *ah, u32 reg, u32 val) in ath9k_hw_analog_shift_regwrite() argument
21 REG_WRITE(ah, reg, val); in ath9k_hw_analog_shift_regwrite()
23 if (ah->config.analog_shiftreg) in ath9k_hw_analog_shift_regwrite()
27 void ath9k_hw_analog_shift_rmw(struct ath_hw *ah, u32 reg, u32 mask, in ath9k_hw_analog_shift_rmw() argument
30 REG_RMW(ah, reg, ((val << shift) & mask), mask); in ath9k_hw_analog_shift_rmw()
32 if (ah->config.analog_shiftreg) in ath9k_hw_analog_shift_rmw()
79 void ath9k_hw_usb_gen_fill_eeprom(struct ath_hw *ah, u16 *eep_data, in ath9k_hw_usb_gen_fill_eeprom() argument
91 REG_READ_MULTI(ah, addrdata, data, i); in ath9k_hw_usb_gen_fill_eeprom()
102 REG_READ_MULTI(ah, addrdata, data, i); in ath9k_hw_usb_gen_fill_eeprom()
111 static bool ath9k_hw_nvram_read_blob(struct ath_hw *ah, u32 off, in ath9k_hw_nvram_read_blob() argument
[all …]
Dcommon.c38 struct ath_hw *ah = common->ah; in ath9k_cmn_rx_accept() local
96 if (ah->is_monitoring && (rxfilter & FIF_FCSFAIL)) in ath9k_cmn_rx_accept()
124 struct ath_hw *ah = common->ah; in ath9k_cmn_rx_skb_postprocess() local
162 if (ah->sw_mgmt_crypto_rx && in ath9k_cmn_rx_skb_postprocess()
178 struct ath_hw *ah = common->ah; in ath9k_cmn_process_rate() local
180 band = ah->curchan->chan->band; in ath9k_cmn_process_rate()
183 if (IS_CHAN_QUARTER_RATE(ah->curchan)) in ath9k_cmn_process_rate()
185 else if (IS_CHAN_HALF_RATE(ah->curchan)) in ath9k_cmn_process_rate()
217 struct ath_hw *ah = common->ah; in ath9k_cmn_process_rssi() local
242 if (!(ah->rxchainmask & BIT(i))) in ath9k_cmn_process_rssi()
[all …]
Ddynack.h83 void ath_dynack_reset(struct ath_hw *ah);
84 void ath_dynack_node_init(struct ath_hw *ah, struct ath_node *an);
85 void ath_dynack_node_deinit(struct ath_hw *ah, struct ath_node *an);
86 void ath_dynack_init(struct ath_hw *ah);
87 void ath_dynack_sample_ack_ts(struct ath_hw *ah, struct sk_buff *skb, u32 ts);
88 void ath_dynack_sample_tx_ts(struct ath_hw *ah, struct sk_buff *skb,
91 static inline void ath_dynack_init(struct ath_hw *ah) {} in ath_dynack_init() argument
92 static inline void ath_dynack_node_init(struct ath_hw *ah, in ath_dynack_node_init() argument
94 static inline void ath_dynack_node_deinit(struct ath_hw *ah, in ath_dynack_node_deinit() argument
96 static inline void ath_dynack_sample_ack_ts(struct ath_hw *ah, in ath_dynack_sample_ack_ts() argument
[all …]
Dhtc_drv_main.c39 ret = ath9k_hw_setpower(priv->ah, mode); in ath9k_htc_setpower()
50 ath9k_hw_setpower(priv->ah, ATH9K_PM_AWAKE); in ath9k_htc_ps_wakeup()
65 ath9k_hw_setrxabort(priv->ah, true); in ath9k_htc_ps_restore()
66 ath9k_hw_stopdmarecv(priv->ah, &reset); in ath9k_htc_ps_restore()
67 ath9k_hw_setpower(priv->ah, ATH9K_PM_FULL_SLEEP); in ath9k_htc_ps_restore()
69 ath9k_hw_setpower(priv->ah, ATH9K_PM_NETWORK_SLEEP); in ath9k_htc_ps_restore()
143 struct ath_common *common = ath9k_hw_common(priv->ah); in ath9k_htc_set_mac_bssid_mask()
173 priv->ah->opmode = NL80211_IFTYPE_ADHOC; in ath9k_htc_set_opmode()
175 priv->ah->opmode = NL80211_IFTYPE_AP; in ath9k_htc_set_opmode()
177 priv->ah->opmode = NL80211_IFTYPE_MESH_POINT; in ath9k_htc_set_opmode()
[all …]
Dbeacon.c35 struct ath_hw *ah = sc->sc_ah; in ath9k_beaconq_config() local
36 struct ath_common *common = ath9k_hw_common(ah); in ath9k_beaconq_config()
40 ath9k_hw_get_txq_props(ah, sc->beacon.beaconq, &qi); in ath9k_beaconq_config()
51 ath9k_hw_get_txq_props(ah, txq->axq_qnum, &qi_be); in ath9k_beaconq_config()
53 if (ah->slottime == ATH9K_SLOT_TIME_20) in ath9k_beaconq_config()
60 if (!ath9k_hw_set_txq_props(ah, sc->beacon.beaconq, &qi)) { in ath9k_beaconq_config()
63 ath9k_hw_resettxqueue(ah, sc->beacon.beaconq); in ath9k_beaconq_config()
76 struct ath_hw *ah = sc->sc_ah; in ath9k_beacon_setup() local
77 struct ath_common *common = ath9k_hw_common(ah); in ath9k_beacon_setup()
80 u8 chainmask = ah->txchainmask; in ath9k_beacon_setup()
[all …]
Dmci.c212 struct ath_hw *ah = sc->sc_ah; in ath_mci_cal_msg() local
213 struct ath_common *common = ath9k_hw_common(ah); in ath_mci_cal_msg()
214 struct ath9k_hw_mci *mci_hw = &ah->btcoex_hw.mci; in ath_mci_cal_msg()
369 struct ath_hw *ah = sc->sc_ah; in ath_mci_msg() local
376 if (ar9003_mci_state(ah, MCI_STATE_NEED_FLUSH_BT_INFO) && in ath_mci_msg()
377 ar9003_mci_state(ah, MCI_STATE_ENABLE)) { in ath_mci_msg()
380 ar9003_mci_state(ah, MCI_STATE_SEND_STATUS_QUERY); in ath_mci_msg()
385 ar9003_mci_state(ah, MCI_STATE_SEND_WLAN_COEX_VERSION); in ath_mci_msg()
390 ar9003_mci_set_bt_version(ah, major, minor); in ath_mci_msg()
393 ar9003_mci_send_wlan_channels(ah); in ath_mci_msg()
[all …]
Drecv.c40 struct ath_hw *ah = sc->sc_ah; in ath_rx_buf_link() local
41 struct ath_common *common = ath9k_hw_common(ah); in ath_rx_buf_link()
59 ath9k_hw_setuprxdesc(ah, ds, in ath_rx_buf_link()
66 ath9k_hw_putrxbuf(ah, bf->bf_daddr); in ath_rx_buf_link()
90 struct ath_hw *ah = sc->sc_ah; in ath_opmode_init() local
91 struct ath_common *common = ath9k_hw_common(ah); in ath_opmode_init()
97 ath9k_hw_setrxfilter(ah, rfilt); in ath_opmode_init()
103 ath9k_hw_setopmode(ah); in ath_opmode_init()
107 ath9k_hw_setmcastfilter(ah, mfilt[0], mfilt[1]); in ath_opmode_init()
113 struct ath_hw *ah = sc->sc_ah; in ath_rx_edma_buf_link() local
[all …]
Dreg.h23 #define AR_CR_RXE (AR_SREV_9300_20_OR_LATER(ah) ? 0x0000000c : 0x00000004)
345 #define AR_ISR_S2_S (AR_SREV_9300_20_OR_LATER(ah) ? 0x00d0 : 0x00cc)
346 #define AR_ISR_S3_S (AR_SREV_9300_20_OR_LATER(ah) ? 0x00d4 : 0x00d0)
347 #define AR_ISR_S4_S (AR_SREV_9300_20_OR_LATER(ah) ? 0x00d8 : 0x00d4)
348 #define AR_ISR_S5_S (AR_SREV_9300_20_OR_LATER(ah) ? 0x00dc : 0x00d8)
692 #define AR_WA (AR_SREV_9340(ah) ? 0x40c4 : 0x4004)
714 #define AR_HOST_TIMEOUT (AR_SREV_9340(ah) ? 0x4008 : 0x4018)
744 ((AR_SREV_9100(ah)) ? 0x0600 : (AR_SREV_9340(ah) \
748 ((AR_SREV_9100(ah)) ? 0x00000FFF : 0x000000FF)
827 #define AR_SREV_9100(ah) \ argument
[all …]
Dar9003_phy.h457 #define AR_PHY_SPUR_MASK_A (AR_SM_BASE + (AR_SREV_9561(ah) ? 0x18 : 0x20))
509 #define AR_PHY_TEST_CTL_STATUS (AR_SM_BASE + (AR_SREV_9561(ah) ? 0x160 : 0x164))
528 #define AR_PHY_CHAN_INFO_MEMORY (AR_SM_BASE + (AR_SREV_9561(ah) ? 0x16c : 0x170))
539 #define AR_PHY_HEAVYCLIP_CTL (AR_SM_BASE + (AR_SREV_9561(ah) ? 0x198 : 0x1a4))
606 #define AR_PHY_TX_IQCAL_CONTROL_0 (AR_SM_BASE + (AR_SREV_9485(ah) ? \
608 #define AR_PHY_TX_IQCAL_CONTROL_1 (AR_SM_BASE + (AR_SREV_9485(ah) ? \
610 #define AR_PHY_TX_IQCAL_START (AR_SM_BASE + (AR_SREV_9485(ah) ? \
612 #define AR_PHY_TX_IQCAL_STATUS_B0 (AR_SM_BASE + (AR_SREV_9485(ah) ? \
615 (AR_SREV_9485(ah) ? \
648 #define AR_PHY_SYNTH4_LONG_SHIFT_SELECT ((AR_SREV_9462(ah) || AR_SREV_9565(ah)) ? 0x00000001 : 0x…
[all …]
Dbtcoex.h123 void ath9k_hw_btcoex_init_scheme(struct ath_hw *ah);
124 void ath9k_hw_btcoex_init_2wire(struct ath_hw *ah);
125 void ath9k_hw_btcoex_init_3wire(struct ath_hw *ah);
126 void ath9k_hw_btcoex_init_mci(struct ath_hw *ah);
127 void ath9k_hw_init_btcoex_hw(struct ath_hw *ah, int qnum);
128 void ath9k_hw_btcoex_set_weight(struct ath_hw *ah,
132 void ath9k_hw_btcoex_disable(struct ath_hw *ah);
133 void ath9k_hw_btcoex_bt_stomp(struct ath_hw *ah,
135 void ath9k_hw_btcoex_set_concur_txprio(struct ath_hw *ah, u8 *stomp_txprio);
Dmac.h714 u32 ath9k_hw_gettxbuf(struct ath_hw *ah, u32 q);
715 void ath9k_hw_puttxbuf(struct ath_hw *ah, u32 q, u32 txdp);
716 void ath9k_hw_txstart(struct ath_hw *ah, u32 q);
717 u32 ath9k_hw_numtxpending(struct ath_hw *ah, u32 q);
718 bool ath9k_hw_updatetxtriglevel(struct ath_hw *ah, bool bIncTrigLevel);
719 bool ath9k_hw_stop_dma_queue(struct ath_hw *ah, u32 q);
720 void ath9k_hw_abort_tx_dma(struct ath_hw *ah);
721 bool ath9k_hw_set_txq_props(struct ath_hw *ah, int q,
723 bool ath9k_hw_get_txq_props(struct ath_hw *ah, int q,
725 int ath9k_hw_setuptxqueue(struct ath_hw *ah, enum ath9k_tx_queue type,
[all …]
Dcalib.h110 bool ath9k_hw_reset_calvalid(struct ath_hw *ah);
111 void ath9k_hw_start_nfcal(struct ath_hw *ah, bool update);
112 int ath9k_hw_loadnf(struct ath_hw *ah, struct ath9k_channel *chan);
113 bool ath9k_hw_getnf(struct ath_hw *ah, struct ath9k_channel *chan);
114 void ath9k_init_nfcal_hist_buffer(struct ath_hw *ah,
116 void ath9k_hw_bstuck_nfcal(struct ath_hw *ah);
117 void ath9k_hw_reset_calibration(struct ath_hw *ah,
119 s16 ath9k_hw_getchan_noise(struct ath_hw *ah, struct ath9k_channel *chan,
Dar9003_eeprom.h74 ((AR_SREV_9340(ah) || AR_SREV_9550(ah)) ? 0x30000 : 0x14000)
76 ((AR_SREV_9340(ah) || AR_SREV_9550(ah)) ? 0x30018 : 0x15f18)
82 ((AR_SREV_9340(ah) || AR_SREV_9550(ah)) ? 0x3001c : 0x15f1c)
347 s32 ar9003_hw_get_tx_gain_idx(struct ath_hw *ah);
348 s32 ar9003_hw_get_rx_gain_idx(struct ath_hw *ah);
349 u32 ar9003_hw_ant_ctrl_common_get(struct ath_hw *ah, bool is2ghz);
350 u32 ar9003_hw_ant_ctrl_common_2_get(struct ath_hw *ah, bool is2ghz);
352 u8 *ar9003_get_spur_chan_ptr(struct ath_hw *ah, bool is_2ghz);
354 unsigned int ar9003_get_paprd_scale_factor(struct ath_hw *ah,
357 void ar9003_hw_internal_regulator_apply(struct ath_hw *ah);
Dtx99.c21 struct ath_hw *ah = sc->sc_ah; in ath9k_tx99_stop() local
22 struct ath_common *common = ath9k_hw_common(ah); in ath9k_tx99_stop()
27 ath9k_hw_set_interrupts(ah); in ath9k_tx99_stop()
28 ath9k_hw_enable_interrupts(ah); in ath9k_tx99_stop()
53 struct ath_hw *ah = sc->sc_ah; in ath9k_build_tx99_skb() local
89 if (ah->curchan && IS_CHAN_HT(ah->curchan)) { in ath9k_build_tx99_skb()
91 if (IS_CHAN_HT40(ah->curchan)) in ath9k_build_tx99_skb()
112 struct ath_hw *ah = sc->sc_ah; in ath9k_tx99_init() local
113 struct ath_common *common = ath9k_hw_common(ah); in ath9k_tx99_init()
134 ath9k_hw_disable_interrupts(ah); in ath9k_tx99_init()
[all …]
Dcommon-spectral.c43 struct ath_hw *ah = spec_priv->ah; in ath_cmn_process_fft() local
44 struct ath_common *common = ath9k_hw_common(spec_priv->ah); in ath_cmn_process_fft()
52 u16 fft_len, length, freq = ah->curchan->chan->center_freq; in ath_cmn_process_fft()
127 struct ath9k_hw_cal_data *caldata = ah->caldata; in ath_cmn_process_fft()
131 ext_nf = ath9k_hw_getchan_noise(ah, ah->curchan, in ath_cmn_process_fft()
146 fft_sample_40.lower_noise = ah->noise; in ath_cmn_process_fft()
153 fft_sample_40.upper_noise = ah->noise; in ath_cmn_process_fft()
187 fft_sample_20.noise = ah->noise; in ath_cmn_process_fft()
241 struct ath_hw *ah = spec_priv->ah; in ath9k_cmn_spectral_scan_trigger() local
247 if (!ath9k_hw_ops(ah)->spectral_scan_trigger) { in ath9k_cmn_spectral_scan_trigger()
[all …]
Dhtc_drv_txrx.c133 struct ath_common *common = ath9k_hw_common(priv->ah); in get_htc_epid_queue()
160 struct ath_common *common = ath9k_hw_common(priv->ah); in strip_drv_header()
191 struct ath_hw *ah = priv->ah; in ath_htc_txq_update() local
195 ath9k_hw_get_txq_props(ah, qnum, &qi); in ath_htc_txq_update()
203 if (!ath9k_hw_set_txq_props(ah, qnum, &qi)) { in ath_htc_txq_update()
204 ath_err(ath9k_hw_common(ah), in ath_htc_txq_update()
208 ath9k_hw_resettxqueue(ah, qnum); in ath_htc_txq_update()
357 if (!priv->ah->is_monitoring) { in ath9k_htc_tx_start()
358 ath_dbg(ath9k_hw_common(priv->ah), XMIT, in ath9k_htc_tx_start()
616 struct ath_common *common = ath9k_hw_common(priv->ah); in ath9k_htc_tx_get_packet()
[all …]
Dcommon-debug.c22 struct ath_hw *ah = file->private_data; in read_file_modal_eeprom() local
31 len = ah->eep_ops->dump_eeprom(ah, false, buf, len, size); in read_file_modal_eeprom()
48 struct ath_hw *ah) in ath9k_cmn_debug_modal_eeprom() argument
50 debugfs_create_file("modal_eeprom", S_IRUSR, debugfs_phy, ah, in ath9k_cmn_debug_modal_eeprom()
58 struct ath_hw *ah = file->private_data; in read_file_base_eeprom() local
67 len = ah->eep_ops->dump_eeprom(ah, true, buf, len, size); in read_file_base_eeprom()
83 struct ath_hw *ah) in ath9k_cmn_debug_base_eeprom() argument
85 debugfs_create_file("base_eeprom", S_IRUSR, debugfs_phy, ah, in ath9k_cmn_debug_base_eeprom()
Dar9003_aic.h56 u8 ar9003_aic_calibration(struct ath_hw *ah);
57 u8 ar9003_aic_start_normal(struct ath_hw *ah);
58 u8 ar9003_aic_cal_reset(struct ath_hw *ah);
59 u8 ar9003_aic_calibration_single(struct ath_hw *ah);
Ddfs.c34 static u32 dur_to_usecs(struct ath_hw *ah, u32 dur) in dur_to_usecs() argument
40 if (IS_CHAN_A_FAST_CLOCK(ah, ah->curchan)) in dur_to_usecs()
153 struct ath_hw *ah = sc->sc_ah; in ath9k_dfs_process_phyerr() local
154 struct ath_common *common = ath9k_hw_common(ah); in ath9k_dfs_process_phyerr()
188 pe.freq = ah->curchan->channel; in ath9k_dfs_process_phyerr()
202 pe.freq += IS_CHAN_HT40PLUS(ah->curchan) ? 20 : -20; in ath9k_dfs_process_phyerr()
Ddebug.c137 struct ath_hw *ah = sc->sc_ah; in read_file_ani() local
147 { "ANI RESET", ah->stats.ast_ani_reset }, in read_file_ani()
148 { "OFDM LEVEL", ah->ani.ofdmNoiseImmunityLevel }, in read_file_ani()
149 { "CCK LEVEL", ah->ani.cckNoiseImmunityLevel }, in read_file_ani()
150 { "SPUR UP", ah->stats.ast_ani_spurup }, in read_file_ani()
151 { "SPUR DOWN", ah->stats.ast_ani_spurup }, in read_file_ani()
152 { "OFDM WS-DET ON", ah->stats.ast_ani_ofdmon }, in read_file_ani()
153 { "OFDM WS-DET OFF", ah->stats.ast_ani_ofdmoff }, in read_file_ani()
154 { "MRC-CCK ON", ah->stats.ast_ani_ccklow }, in read_file_ani()
155 { "MRC-CCK OFF", ah->stats.ast_ani_cckhigh }, in read_file_ani()
[all …]
Deeprom.h61 (AR_SREV_9100(ah)) ? 0x1fff1000 : 0x503f1200
103 #define OLC_FOR_AR9280_20_LATER (AR_SREV_9280_20_OR_LATER(ah) && \
104 ah->eep_ops->get_eeprom(ah, EEP_OL_PWRCTRL))
105 #define OLC_FOR_AR9287_10_LATER (AR_SREV_9287_11_OR_LATER(ah) && \
106 ah->eep_ops->get_eeprom(ah, EEP_OL_PWRCTRL))
112 #define EEP_RFSILENT_GPIO_SEL ((AR_SREV_9462(ah) || AR_SREV_9565(ah)) ? 0x00fc : 0x001c)
655 u16 (*get_spur_channel)(struct ath_hw *ah, u16 i, bool is2GHz);
658 void ath9k_hw_analog_shift_regwrite(struct ath_hw *ah, u32 reg, u32 val);
659 void ath9k_hw_analog_shift_rmw(struct ath_hw *ah, u32 reg, u32 mask,
666 bool ath9k_hw_nvram_read(struct ath_hw *ah, u32 off, u16 *data);
[all …]
Dar9003_mac.h112 void ath9k_hw_set_rx_bufsize(struct ath_hw *ah, u16 buf_size);
113 void ath9k_hw_addrxbuf_edma(struct ath_hw *ah, u32 rxdp,
116 int ath9k_hw_process_rxdesc_edma(struct ath_hw *ah,
119 void ath9k_hw_reset_txstatus_ring(struct ath_hw *ah);
120 void ath9k_hw_setup_statusring(struct ath_hw *ah, void *ts_start,
Dcommon-beacon.h19 int ath9k_cmn_beacon_config_sta(struct ath_hw *ah,
22 void ath9k_cmn_beacon_config_adhoc(struct ath_hw *ah,
24 void ath9k_cmn_beacon_config_ap(struct ath_hw *ah,
Dpci.c801 struct ath_hw *ah = (struct ath_hw *) common->ah; in ath_pci_eeprom_read() local
803 common->ops->read(ah, AR5416_EEPROM_OFFSET + in ath_pci_eeprom_read()
806 if (!ath9k_hw_wait(ah, in ath_pci_eeprom_read()
814 *data = MS(common->ops->read(ah, AR_EEPROM_STATUS_DATA), in ath_pci_eeprom_read()
825 struct ath_hw *ah = sc->sc_ah; in ath_pci_aspm_init() local
830 if (!ah->is_pciexpress) in ath_pci_aspm_init()
837 if ((ath9k_hw_get_btcoex_scheme(ah) != ATH_BTCOEX_CFG_NONE) && in ath_pci_aspm_init()
838 (AR_SREV_9285(ah))) { in ath_pci_aspm_init()
867 if (AR_SREV_9462(ah)) in ath_pci_aspm_init()
868 pci_read_config_dword(pdev, 0x70c, &ah->config.aspm_l1_fix); in ath_pci_aspm_init()
[all …]
Dcommon-init.h18 void ath9k_cmn_setup_ht_cap(struct ath_hw *ah,
20 void ath9k_cmn_reload_chainmask(struct ath_hw *ah);
Dcommon.h84 struct ath_hw *ah,
89 void ath9k_cmn_update_txpow(struct ath_hw *ah, u16 cur_txpow,
91 void ath9k_cmn_init_crypto(struct ath_hw *ah);
Dani.h121 void ath9k_enable_mib_counters(struct ath_hw *ah);
122 void ath9k_hw_disable_mib_counters(struct ath_hw *ah);
123 void ath9k_hw_ani_init(struct ath_hw *ah);
Dxmit.c1106 struct ath_hw *ah = sc->sc_ah; in ath_get_rate_txpower() local
1108 if (sc->tx99_state || !ah->tpc_enabled) in ath_get_rate_txpower()
1115 if (!AR_SREV_9300_20_OR_LATER(ah)) { in ath_get_rate_txpower()
1120 struct ar5416_eeprom_def *eep = &ah->eeprom.def; in ath_get_rate_txpower()
1135 if (AR_SREV_9287(ah) || AR_SREV_9285(ah) || in ath_get_rate_txpower()
1136 AR_SREV_9271(ah)) { in ath_get_rate_txpower()
1138 } else if (AR_SREV_9280_20_OR_LATER(ah)) { in ath_get_rate_txpower()
1141 power_offset = ah->eep_ops->get_eeprom(ah, in ath_get_rate_txpower()
1150 max_power = min_t(u8, ah->tx_power[rateidx], txpower); in ath_get_rate_txpower()
1156 if (!max_power && !AR_SREV_9280_20_OR_LATER(ah)) in ath_get_rate_txpower()
[all …]
Dchannel.c25 struct ath_hw *ah = sc->sc_ah; in ath_set_channel() local
26 struct ath_common *common = ath9k_hw_common(ah); in ath_set_channel()
38 if (ah->curchan) in ath_set_channel()
39 old_pos = ah->curchan - &ah->channels[0]; in ath_set_channel()
49 ath9k_cmn_get_channel(hw, ah, chandef); in ath_set_channel()
86 rxfilter = ath9k_hw_getrxfilter(ah); in ath_set_channel()
89 ath9k_hw_setrxfilter(ah, rxfilter); in ath_set_channel()
358 struct ath_hw *ah = sc->sc_ah; in ath_chanctx_setup_timer() local
360 ath9k_hw_gen_timer_start(ah, sc->p2p_ps_timer, tsf_time, 1000000); in ath_chanctx_setup_timer()
361 tsf_time -= ath9k_hw_gettsf32(ah); in ath_chanctx_setup_timer()
[all …]
Dcommon-debug.h64 struct ath_hw *ah);
66 struct ath_hw *ah);
Dwmi.c191 struct ath_common *common = ath9k_hw_common(priv->ah); in ath9k_fatal_work()
296 struct ath_hw *ah = wmi->drv_priv->ah; in ath9k_wmi_cmd() local
297 struct ath_common *common = ath9k_hw_common(ah); in ath9k_wmi_cmd()
304 if (ah->ah_flags & AH_UNPLUGGED) in ath9k_wmi_cmd()
Dahb.c92 struct ath_hw *ah; in ath_ahb_probe() local
148 ah = sc->sc_ah; in ath_ahb_probe()
149 ath9k_hw_name(ah, hw_name, sizeof(hw_name)); in ath_ahb_probe()
Ddebug_sta.c110 struct ath_hw *ah = sc->sc_ah; in ath_debug_rate_stats() local
156 if (ah->curchan->chan->band == IEEE80211_BAND_2GHZ) in ath_debug_rate_stats()
187 struct ath_hw *ah = sc->sc_ah; in read_file_node_recv() local
200 band = ah->curchan->chan->band; in read_file_node_recv()
Dhtc_drv_debug.c364 struct ath_common *common = ath9k_hw_common(priv->ah); in read_file_debug()
376 struct ath_common *common = ath9k_hw_common(priv->ah); in write_file_debug()
487 int ath9k_htc_init_debug(struct ath_hw *ah) in ath9k_htc_init_debug() argument
489 struct ath_common *common = ath9k_hw_common(ah); in ath9k_htc_init_debug()
520 ath9k_cmn_debug_base_eeprom(priv->debug.debugfs_phy, priv->ah); in ath9k_htc_init_debug()
521 ath9k_cmn_debug_modal_eeprom(priv->debug.debugfs_phy, priv->ah); in ath9k_htc_init_debug()
Ddebug.h249 int ath9k_init_debug(struct ath_hw *ah);
276 static inline int ath9k_init_debug(struct ath_hw *ah) in ath9k_init_debug() argument
Dcommon-spectral.h96 struct ath_hw *ah; member
Dhtc.h454 struct ath_hw *ah; member
636 int ath9k_htc_init_debug(struct ath_hw *ah);
639 static inline int ath9k_htc_init_debug(struct ath_hw *ah) { return 0; }; in ath9k_htc_init_debug() argument
/linux-4.1.27/drivers/net/wireless/ath/ath5k/
Dattach.c35 static int ath5k_hw_post(struct ath5k_hw *ah) in ath5k_hw_post() argument
54 init_val = ath5k_hw_reg_read(ah, cur_reg); in ath5k_hw_post()
58 ath5k_hw_reg_write(ah, var_pattern, cur_reg); in ath5k_hw_post()
59 cur_val = ath5k_hw_reg_read(ah, cur_reg); in ath5k_hw_post()
62 ATH5K_ERR(ah, "POST Failed !!!\n"); in ath5k_hw_post()
68 ath5k_hw_reg_write(ah, var_pattern, cur_reg); in ath5k_hw_post()
73 ath5k_hw_reg_write(ah, var_pattern, cur_reg); in ath5k_hw_post()
74 cur_val = ath5k_hw_reg_read(ah, cur_reg); in ath5k_hw_post()
77 ATH5K_ERR(ah, "POST Failed !!!\n"); in ath5k_hw_post()
83 ath5k_hw_reg_write(ah, var_pattern, cur_reg); in ath5k_hw_post()
[all …]
Dbase.c97 static int ath5k_reset(struct ath5k_hw *ah, struct ieee80211_channel *chan,
201 static inline u64 ath5k_extend_tsf(struct ath5k_hw *ah, u32 rstamp) in ath5k_extend_tsf() argument
203 u64 tsf = ath5k_hw_get_tsf64(ah); in ath5k_extend_tsf()
234 struct ath5k_hw *ah = (struct ath5k_hw *) hw_priv; in ath5k_ioread32() local
235 return ath5k_hw_reg_read(ah, reg_offset); in ath5k_ioread32()
240 struct ath5k_hw *ah = (struct ath5k_hw *) hw_priv; in ath5k_iowrite32() local
241 ath5k_hw_reg_write(ah, val, reg_offset); in ath5k_iowrite32()
257 struct ath5k_hw *ah = hw->priv; in ath5k_reg_notifier() local
258 struct ath_regulatory *regulatory = ath5k_hw_regulatory(ah); in ath5k_reg_notifier()
296 ath5k_setup_channels(struct ath5k_hw *ah, struct ieee80211_channel *channels, in ath5k_setup_channels() argument
[all …]
Dreset.c67 ath5k_hw_register_timeout(struct ath5k_hw *ah, u32 reg, u32 flag, u32 val, in ath5k_hw_register_timeout() argument
74 data = ath5k_hw_reg_read(ah, reg); in ath5k_hw_register_timeout()
101 ath5k_hw_htoclock(struct ath5k_hw *ah, unsigned int usec) in ath5k_hw_htoclock() argument
103 struct ath_common *common = ath5k_hw_common(ah); in ath5k_hw_htoclock()
118 ath5k_hw_clocktoh(struct ath5k_hw *ah, unsigned int clock) in ath5k_hw_clocktoh() argument
120 struct ath_common *common = ath5k_hw_common(ah); in ath5k_hw_clocktoh()
132 ath5k_hw_init_core_clock(struct ath5k_hw *ah) in ath5k_hw_init_core_clock() argument
134 struct ieee80211_channel *channel = ah->ah_current_channel; in ath5k_hw_init_core_clock()
135 struct ath_common *common = ath5k_hw_common(ah); in ath5k_hw_init_core_clock()
156 switch (ah->ah_bwmode) { in ath5k_hw_init_core_clock()
[all …]
Dani.c66 ath5k_ani_set_noise_immunity_level(struct ath5k_hw *ah, int level) in ath5k_ani_set_noise_immunity_level() argument
86 ATH5K_ERR(ah, "noise immunity level %d out of range", in ath5k_ani_set_noise_immunity_level()
91 AR5K_REG_WRITE_BITS(ah, AR5K_PHY_DESIRED_SIZE, in ath5k_ani_set_noise_immunity_level()
93 AR5K_REG_WRITE_BITS(ah, AR5K_PHY_AGCCOARSE, in ath5k_ani_set_noise_immunity_level()
95 AR5K_REG_WRITE_BITS(ah, AR5K_PHY_AGCCOARSE, in ath5k_ani_set_noise_immunity_level()
97 AR5K_REG_WRITE_BITS(ah, AR5K_PHY_SIG, in ath5k_ani_set_noise_immunity_level()
100 ah->ani_state.noise_imm_level = level; in ath5k_ani_set_noise_immunity_level()
101 ATH5K_DBG_UNLIMIT(ah, ATH5K_DEBUG_ANI, "new level %d", level); in ath5k_ani_set_noise_immunity_level()
111 ath5k_ani_set_spur_immunity_level(struct ath5k_hw *ah, int level) in ath5k_ani_set_spur_immunity_level() argument
116 level > ah->ani_state.max_spur_level) { in ath5k_ani_set_spur_immunity_level()
[all …]
Dpcu.c113 ath5k_hw_get_frame_duration(struct ath5k_hw *ah, enum ieee80211_band band, in ath5k_hw_get_frame_duration() argument
121 if (!ah->ah_bwmode) { in ath5k_hw_get_frame_duration()
122 __le16 raw_dur = ieee80211_generic_frame_duration(ah->hw, in ath5k_hw_get_frame_duration()
138 switch (ah->ah_bwmode) { in ath5k_hw_get_frame_duration()
175 ath5k_hw_get_default_slottime(struct ath5k_hw *ah) in ath5k_hw_get_default_slottime() argument
177 struct ieee80211_channel *channel = ah->ah_current_channel; in ath5k_hw_get_default_slottime()
180 switch (ah->ah_bwmode) { in ath5k_hw_get_default_slottime()
193 if ((channel->hw_value == AR5K_MODE_11B) && !ah->ah_short_slot) in ath5k_hw_get_default_slottime()
206 ath5k_hw_get_default_sifs(struct ath5k_hw *ah) in ath5k_hw_get_default_sifs() argument
208 struct ieee80211_channel *channel = ah->ah_current_channel; in ath5k_hw_get_default_sifs()
[all …]
Drfkill.c39 static inline void ath5k_rfkill_disable(struct ath5k_hw *ah) in ath5k_rfkill_disable() argument
41 ATH5K_DBG(ah, ATH5K_DEBUG_ANY, "rfkill disable (gpio:%d polarity:%d)\n", in ath5k_rfkill_disable()
42 ah->rf_kill.gpio, ah->rf_kill.polarity); in ath5k_rfkill_disable()
43 ath5k_hw_set_gpio_output(ah, ah->rf_kill.gpio); in ath5k_rfkill_disable()
44 ath5k_hw_set_gpio(ah, ah->rf_kill.gpio, !ah->rf_kill.polarity); in ath5k_rfkill_disable()
48 static inline void ath5k_rfkill_enable(struct ath5k_hw *ah) in ath5k_rfkill_enable() argument
50 ATH5K_DBG(ah, ATH5K_DEBUG_ANY, "rfkill enable (gpio:%d polarity:%d)\n", in ath5k_rfkill_enable()
51 ah->rf_kill.gpio, ah->rf_kill.polarity); in ath5k_rfkill_enable()
52 ath5k_hw_set_gpio_output(ah, ah->rf_kill.gpio); in ath5k_rfkill_enable()
53 ath5k_hw_set_gpio(ah, ah->rf_kill.gpio, ah->rf_kill.polarity); in ath5k_rfkill_enable()
[all …]
Dqcu.c63 ath5k_hw_num_tx_pending(struct ath5k_hw *ah, unsigned int queue) in ath5k_hw_num_tx_pending() argument
66 AR5K_ASSERT_ENTRY(queue, ah->ah_capabilities.cap_queues.q_tx_num); in ath5k_hw_num_tx_pending()
69 if (ah->ah_txq[queue].tqi_type == AR5K_TX_QUEUE_INACTIVE) in ath5k_hw_num_tx_pending()
73 if (ah->ah_version == AR5K_AR5210) in ath5k_hw_num_tx_pending()
76 pending = ath5k_hw_reg_read(ah, AR5K_QUEUE_STATUS(queue)); in ath5k_hw_num_tx_pending()
82 if (!pending && AR5K_REG_READ_Q(ah, AR5K_QCU_TXE, queue)) in ath5k_hw_num_tx_pending()
94 ath5k_hw_release_tx_queue(struct ath5k_hw *ah, unsigned int queue) in ath5k_hw_release_tx_queue() argument
96 if (WARN_ON(queue >= ah->ah_capabilities.cap_queues.q_tx_num)) in ath5k_hw_release_tx_queue()
100 ah->ah_txq[queue].tqi_type = AR5K_TX_QUEUE_INACTIVE; in ath5k_hw_release_tx_queue()
102 AR5K_Q_DISABLE_BITS(ah->ah_txq_status, queue); in ath5k_hw_release_tx_queue()
[all …]
Ddma.c48 ath5k_hw_start_rx_dma(struct ath5k_hw *ah) in ath5k_hw_start_rx_dma() argument
50 ath5k_hw_reg_write(ah, AR5K_CR_RXE, AR5K_CR); in ath5k_hw_start_rx_dma()
51 ath5k_hw_reg_read(ah, AR5K_CR); in ath5k_hw_start_rx_dma()
59 ath5k_hw_stop_rx_dma(struct ath5k_hw *ah) in ath5k_hw_stop_rx_dma() argument
63 ath5k_hw_reg_write(ah, AR5K_CR_RXD, AR5K_CR); in ath5k_hw_stop_rx_dma()
69 (ath5k_hw_reg_read(ah, AR5K_CR) & AR5K_CR_RXE) != 0; in ath5k_hw_stop_rx_dma()
74 ATH5K_DBG(ah, ATH5K_DEBUG_DMA, in ath5k_hw_stop_rx_dma()
85 ath5k_hw_get_rxdp(struct ath5k_hw *ah) in ath5k_hw_get_rxdp() argument
87 return ath5k_hw_reg_read(ah, AR5K_RXDP); in ath5k_hw_get_rxdp()
98 ath5k_hw_set_rxdp(struct ath5k_hw *ah, u32 phys_addr) in ath5k_hw_set_rxdp() argument
[all …]
Dphy.c84 ath5k_hw_radio_revision(struct ath5k_hw *ah, enum ieee80211_band band) in ath5k_hw_radio_revision() argument
95 ath5k_hw_reg_write(ah, AR5K_PHY_SHIFT_2GHZ, AR5K_PHY(0)); in ath5k_hw_radio_revision()
98 ath5k_hw_reg_write(ah, AR5K_PHY_SHIFT_5GHZ, AR5K_PHY(0)); in ath5k_hw_radio_revision()
107 ath5k_hw_reg_write(ah, 0x00001c16, AR5K_PHY(0x34)); in ath5k_hw_radio_revision()
110 ath5k_hw_reg_write(ah, 0x00010000, AR5K_PHY(0x20)); in ath5k_hw_radio_revision()
112 if (ah->ah_version == AR5K_AR5210) { in ath5k_hw_radio_revision()
113 srev = (ath5k_hw_reg_read(ah, AR5K_PHY(256)) >> 28) & 0xf; in ath5k_hw_radio_revision()
116 srev = (ath5k_hw_reg_read(ah, AR5K_PHY(0x100)) >> 24) & 0xff; in ath5k_hw_radio_revision()
122 ath5k_hw_reg_write(ah, AR5K_PHY_SHIFT_5GHZ, AR5K_PHY(0)); in ath5k_hw_radio_revision()
136 ath5k_channel_ok(struct ath5k_hw *ah, struct ieee80211_channel *channel) in ath5k_channel_ok() argument
[all …]
Dmac80211-ops.c61 struct ath5k_hw *ah = hw->priv; in ath5k_tx() local
64 if (WARN_ON(qnum >= ah->ah_capabilities.cap_queues.q_tx_num)) { in ath5k_tx()
69 ath5k_tx_queue(hw, skb, &ah->txqs[qnum], control); in ath5k_tx()
76 struct ath5k_hw *ah = hw->priv; in ath5k_add_interface() local
80 mutex_lock(&ah->lock); in ath5k_add_interface()
84 && (ah->num_ap_vifs + ah->num_adhoc_vifs) >= ATH_BCBUF) { in ath5k_add_interface()
94 if (ah->num_adhoc_vifs || in ath5k_add_interface()
95 (ah->nvifs && vif->type == NL80211_IFTYPE_ADHOC)) { in ath5k_add_interface()
96 ATH5K_ERR(ah, "Only one single ad-hoc interface is allowed.\n"); in ath5k_add_interface()
113 ah->nvifs++; in ath5k_add_interface()
[all …]
Dled.c90 void ath5k_led_enable(struct ath5k_hw *ah) in ath5k_led_enable() argument
92 if (test_bit(ATH_STAT_LEDSOFT, ah->status)) { in ath5k_led_enable()
93 ath5k_hw_set_gpio_output(ah, ah->led_pin); in ath5k_led_enable()
94 ath5k_led_off(ah); in ath5k_led_enable()
98 static void ath5k_led_on(struct ath5k_hw *ah) in ath5k_led_on() argument
100 if (!test_bit(ATH_STAT_LEDSOFT, ah->status)) in ath5k_led_on()
102 ath5k_hw_set_gpio(ah, ah->led_pin, ah->led_on); in ath5k_led_on()
105 void ath5k_led_off(struct ath5k_hw *ah) in ath5k_led_off() argument
107 if (!test_bit(ATH_STAT_LEDSOFT, ah->status)) in ath5k_led_off()
109 ath5k_hw_set_gpio(ah, ah->led_pin, !ah->led_on); in ath5k_led_off()
[all …]
Dath5k.h84 _ath5k_printk(const struct ath5k_hw *ah, const char *level,
124 #define AR5K_REG_WRITE_BITS(ah, _reg, _flags, _val) \ argument
125 ath5k_hw_reg_write(ah, (ath5k_hw_reg_read(ah, _reg) & ~(_flags)) | \
128 #define AR5K_REG_MASKED_BITS(ah, _reg, _flags, _mask) \ argument
129 ath5k_hw_reg_write(ah, (ath5k_hw_reg_read(ah, _reg) & \
132 #define AR5K_REG_ENABLE_BITS(ah, _reg, _flags) \ argument
133 ath5k_hw_reg_write(ah, ath5k_hw_reg_read(ah, _reg) | (_flags), _reg)
135 #define AR5K_REG_DISABLE_BITS(ah, _reg, _flags) \ argument
136 ath5k_hw_reg_write(ah, ath5k_hw_reg_read(ah, _reg) & ~(_flags), _reg)
139 #define AR5K_REG_READ_Q(ah, _reg, _queue) \ argument
[all …]
Dgpio.c53 ath5k_hw_set_ledstate(struct ath5k_hw *ah, unsigned int state) in ath5k_hw_set_ledstate() argument
60 if (ah->ah_version != AR5K_AR5210) in ath5k_hw_set_ledstate()
61 AR5K_REG_DISABLE_BITS(ah, AR5K_PCICFG, in ath5k_hw_set_ledstate()
64 AR5K_REG_DISABLE_BITS(ah, AR5K_PCICFG, AR5K_PCICFG_LED); in ath5k_hw_set_ledstate()
94 if (ah->ah_version != AR5K_AR5210) in ath5k_hw_set_ledstate()
95 AR5K_REG_ENABLE_BITS(ah, AR5K_PCICFG, led); in ath5k_hw_set_ledstate()
97 AR5K_REG_ENABLE_BITS(ah, AR5K_PCICFG, led_5210); in ath5k_hw_set_ledstate()
106 ath5k_hw_set_gpio_input(struct ath5k_hw *ah, u32 gpio) in ath5k_hw_set_gpio_input() argument
111 ath5k_hw_reg_write(ah, in ath5k_hw_set_gpio_input()
112 (ath5k_hw_reg_read(ah, AR5K_GPIOCR) & ~AR5K_GPIOCR_OUT(gpio)) in ath5k_hw_set_gpio_input()
[all …]
Dpci.c58 struct ath5k_hw *ah = (struct ath5k_hw *) common->priv; in ath5k_pci_read_cachesize() local
61 pci_read_config_byte(ah->pdev, PCI_CACHE_LINE_SIZE, &u8tmp); in ath5k_pci_read_cachesize()
80 struct ath5k_hw *ah = (struct ath5k_hw *) common->ah; in ath5k_pci_eeprom_read() local
86 if (ah->ah_version == AR5K_AR5210) { in ath5k_pci_eeprom_read()
87 AR5K_REG_ENABLE_BITS(ah, AR5K_PCICFG, AR5K_PCICFG_EEAE); in ath5k_pci_eeprom_read()
88 (void)ath5k_hw_reg_read(ah, AR5K_EEPROM_BASE + (4 * offset)); in ath5k_pci_eeprom_read()
90 ath5k_hw_reg_write(ah, offset, AR5K_EEPROM_BASE); in ath5k_pci_eeprom_read()
91 AR5K_REG_ENABLE_BITS(ah, AR5K_EEPROM_CMD, in ath5k_pci_eeprom_read()
96 status = ath5k_hw_reg_read(ah, AR5K_EEPROM_STATUS); in ath5k_pci_eeprom_read()
100 *data = (u16)(ath5k_hw_reg_read(ah, AR5K_EEPROM_DATA) & in ath5k_pci_eeprom_read()
[all …]
Ddebug.c158 struct ath5k_hw *ah = seq->private; in reg_show() local
161 ath5k_hw_reg_read(ah, r->addr)); in reg_show()
198 struct ath5k_hw *ah = file->private_data; in read_file_beacon() local
204 v = ath5k_hw_reg_read(ah, AR5K_BEACON); in read_file_beacon()
211 "AR5K_LAST_TSTP", ath5k_hw_reg_read(ah, AR5K_LAST_TSTP)); in read_file_beacon()
214 "AR5K_BEACON_CNT", ath5k_hw_reg_read(ah, AR5K_BEACON_CNT)); in read_file_beacon()
216 v = ath5k_hw_reg_read(ah, AR5K_TIMER0); in read_file_beacon()
220 v = ath5k_hw_reg_read(ah, AR5K_TIMER1); in read_file_beacon()
224 v = ath5k_hw_reg_read(ah, AR5K_TIMER2); in read_file_beacon()
228 v = ath5k_hw_reg_read(ah, AR5K_TIMER3); in read_file_beacon()
[all …]
Dahb.c38 struct ath5k_hw *ah = common->priv; in ath5k_ahb_eeprom_read() local
39 struct platform_device *pdev = to_platform_device(ah->dev); in ath5k_ahb_eeprom_read()
54 int ath5k_hw_read_srev(struct ath5k_hw *ah) in ath5k_hw_read_srev() argument
56 struct platform_device *pdev = to_platform_device(ah->dev); in ath5k_hw_read_srev()
58 ah->ah_mac_srev = bcfg->devid; in ath5k_hw_read_srev()
62 static int ath5k_ahb_eeprom_read_mac(struct ath5k_hw *ah, u8 *mac) in ath5k_ahb_eeprom_read_mac() argument
64 struct platform_device *pdev = to_platform_device(ah->dev); in ath5k_ahb_eeprom_read_mac()
68 if (to_platform_device(ah->dev)->id == 0) in ath5k_ahb_eeprom_read_mac()
88 struct ath5k_hw *ah; in ath_ahb_probe() local
132 ah = hw->priv; in ath_ahb_probe()
[all …]
Dcaps.c33 int ath5k_hw_set_capabilities(struct ath5k_hw *ah) in ath5k_hw_set_capabilities() argument
35 struct ath5k_capabilities *caps = &ah->ah_capabilities; in ath5k_hw_set_capabilities()
41 if (ah->ah_version == AR5K_AR5210) { in ath5k_hw_set_capabilities()
83 ah->ah_version != AR5K_AR5211)) { in ath5k_hw_set_capabilities()
97 ah->ah_version != AR5K_AR5211) in ath5k_hw_set_capabilities()
104 if ((ah->ah_radio_5ghz_revision & 0xf0) == AR5K_SREV_RAD_2112) in ath5k_hw_set_capabilities()
108 if (ah->ah_version == AR5K_AR5210) in ath5k_hw_set_capabilities()
114 if (ah->ah_mac_srev >= AR5K_SREV_AR5213A) in ath5k_hw_set_capabilities()
120 if (ah->ah_version == AR5K_AR5212) in ath5k_hw_set_capabilities()
133 int ath5k_hw_enable_pspoll(struct ath5k_hw *ah, u8 *bssid, in ath5k_hw_enable_pspoll() argument
[all …]
Dsysfs.c15 struct ath5k_hw *ah = hw->priv; \
24 struct ath5k_hw *ah = hw->priv; \
30 set(ah, val); \
42 struct ath5k_hw *ah = hw->priv; \
49 SIMPLE_SHOW_STORE(ani_mode, ah->ani_state.ani_mode, ath5k_ani_init);
50 SIMPLE_SHOW_STORE(noise_immunity_level, ah->ani_state.noise_imm_level,
52 SIMPLE_SHOW_STORE(spur_level, ah->ani_state.spur_level,
54 SIMPLE_SHOW_STORE(firstep_level, ah->ani_state.firstep_level,
56 SIMPLE_SHOW_STORE(ofdm_weak_signal_detection, ah->ani_state.ofdm_weak_sig,
58 SIMPLE_SHOW_STORE(cck_weak_signal_detection, ah->ani_state.cck_weak_sig,
[all …]
Dani.h104 void ath5k_ani_init(struct ath5k_hw *ah, enum ath5k_ani_mode mode);
105 void ath5k_ani_mib_intr(struct ath5k_hw *ah);
106 void ath5k_ani_calibration(struct ath5k_hw *ah);
107 void ath5k_ani_phy_error_report(struct ath5k_hw *ah,
111 void ath5k_ani_set_noise_immunity_level(struct ath5k_hw *ah, int level);
112 void ath5k_ani_set_spur_immunity_level(struct ath5k_hw *ah, int level);
113 void ath5k_ani_set_firstep_level(struct ath5k_hw *ah, int level);
114 void ath5k_ani_set_ofdm_weak_signal_detection(struct ath5k_hw *ah, bool on);
115 void ath5k_ani_set_cck_weak_signal_detection(struct ath5k_hw *ah, bool on);
117 void ath5k_ani_print_counters(struct ath5k_hw *ah);
Ddebug.h129 ath5k_debug_init_device(struct ath5k_hw *ah);
132 ath5k_debug_printrxbuffs(struct ath5k_hw *ah);
135 ath5k_debug_dump_bands(struct ath5k_hw *ah);
138 ath5k_debug_printtxbuf(struct ath5k_hw *ah, struct ath5k_buf *bf);
145 ATH5K_DBG(struct ath5k_hw *ah, unsigned int m, const char *fmt, ...) {} in ATH5K_DBG() argument
148 ATH5K_DBG_UNLIMIT(struct ath5k_hw *ah, unsigned int m, const char *fmt, ...) in ATH5K_DBG_UNLIMIT() argument
152 ath5k_debug_init_device(struct ath5k_hw *ah) {} in ath5k_debug_init_device() argument
155 ath5k_debug_printrxbuffs(struct ath5k_hw *ah) {} in ath5k_debug_printrxbuffs() argument
158 ath5k_debug_dump_bands(struct ath5k_hw *ah) {} in ath5k_debug_dump_bands() argument
161 ath5k_debug_printtxbuf(struct ath5k_hw *ah, struct ath5k_buf *bf) {} in ath5k_debug_printtxbuf() argument
Ddesc.c75 ath5k_hw_setup_2word_tx_desc(struct ath5k_hw *ah, in ath5k_hw_setup_2word_tx_desc() argument
100 ATH5K_ERR(ah, "zero retries\n"); in ath5k_hw_setup_2word_tx_desc()
105 ATH5K_ERR(ah, "zero rate\n"); in ath5k_hw_setup_2word_tx_desc()
139 if (ah->ah_version == AR5K_AR5210) { in ath5k_hw_setup_2word_tx_desc()
147 if (ah->ah_version == AR5K_AR5210) { in ath5k_hw_setup_2word_tx_desc()
188 if (ah->ah_version == AR5K_AR5211) { in ath5k_hw_setup_2word_tx_desc()
210 if ((ah->ah_version == AR5K_AR5210) && in ath5k_hw_setup_2word_tx_desc()
241 ath5k_hw_setup_4word_tx_desc(struct ath5k_hw *ah, in ath5k_hw_setup_4word_tx_desc() argument
271 ATH5K_ERR(ah, "zero retries\n"); in ath5k_hw_setup_4word_tx_desc()
276 ATH5K_ERR(ah, "zero rate\n"); in ath5k_hw_setup_4word_tx_desc()
[all …]
Dbase.h92 bool ath5k_any_vif_assoc(struct ath5k_hw *ah);
97 void ath5k_beacon_update_timers(struct ath5k_hw *ah, u64 bc_tsf);
99 void ath5k_beacon_config(struct ath5k_hw *ah);
102 void ath5k_update_bssid_mask_and_opmode(struct ath5k_hw *ah,
104 int ath5k_chan_set(struct ath5k_hw *ah, struct cfg80211_chan_def *chandef);
105 void ath5k_txbuf_free_skb(struct ath5k_hw *ah, struct ath5k_buf *bf);
106 void ath5k_rxbuf_free_skb(struct ath5k_hw *ah, struct ath5k_buf *bf);
112 int ath5k_init_ah(struct ath5k_hw *ah, const struct ath_bus_ops *bus_ops);
113 void ath5k_deinit_ah(struct ath5k_hw *ah);
116 #define ath5k_hw_hasbssidmask(_ah) (ah->ah_version == AR5K_AR5212)
[all …]
Dinitvals.c1380 ath5k_hw_ini_registers(struct ath5k_hw *ah, unsigned int size, in ath5k_hw_ini_registers() argument
1397 ath5k_hw_reg_read(ah, ini_regs[i].ini_register); in ath5k_hw_ini_registers()
1402 ath5k_hw_reg_write(ah, ini_regs[i].ini_value, in ath5k_hw_ini_registers()
1416 ath5k_hw_ini_mode_registers(struct ath5k_hw *ah, in ath5k_hw_ini_mode_registers() argument
1424 ath5k_hw_reg_write(ah, ini_mode[i].mode_value[mode], in ath5k_hw_ini_mode_registers()
1440 ath5k_hw_write_initvals(struct ath5k_hw *ah, u8 mode, bool skip_pcu) in ath5k_hw_write_initvals() argument
1447 if (ah->ah_version == AR5K_AR5212) { in ath5k_hw_write_initvals()
1450 ath5k_hw_ini_mode_registers(ah, in ath5k_hw_write_initvals()
1457 ath5k_hw_ini_registers(ah, ARRAY_SIZE(ar5212_ini_common_start), in ath5k_hw_write_initvals()
1461 switch (ah->ah_radio) { in ath5k_hw_write_initvals()
[all …]
Deeprom.c73 ath5k_eeprom_init_header(struct ath5k_hw *ah) in ath5k_eeprom_init_header() argument
75 struct ath5k_eeprom_info *ee = &ah->ah_capabilities.cap_eeprom; in ath5k_eeprom_init_header()
89 if (ah->ah_ee_version < AR5K_EEPROM_VERSION_3_0) in ath5k_eeprom_init_header()
109 ATH5K_ERR(ah, "Invalid max custom EEPROM size: " in ath5k_eeprom_init_header()
123 ATH5K_ERR(ah, "Invalid EEPROM " in ath5k_eeprom_init_header()
131 AR5K_EEPROM_READ_HDR(AR5K_EEPROM_ANT_GAIN(ah->ah_ee_version), in ath5k_eeprom_init_header()
134 if (ah->ah_ee_version >= AR5K_EEPROM_VERSION_4_0) { in ath5k_eeprom_init_header()
151 if (ah->ah_ee_version < AR5K_EEPROM_VERSION_3_3) { in ath5k_eeprom_init_header()
163 if ((ah->ah_mac_version == (AR5K_SREV_AR2425 >> 4)) && val) in ath5k_eeprom_init_header()
189 static int ath5k_eeprom_read_ants(struct ath5k_hw *ah, u32 *offset, in ath5k_eeprom_read_ants() argument
[all …]
Dreg.h1075 #define AR5K_EEPROM_DATA (ah->ah_version == AR5K_AR5210 ? \
1091 #define AR5K_EEPROM_STATUS (ah->ah_version == AR5K_AR5210 ? \
1151 #define AR5K_STA_ID1_PCF (ah->ah_version == AR5K_AR5210 ? \
1207 #define AR5K_RSSI_THR_BMISS (ah->ah_version == AR5K_AR5210 ? \
1241 #define AR5K_USEC (ah->ah_version == AR5K_AR5210 ? \
1261 #define AR5K_BEACON (ah->ah_version == AR5K_AR5210 ? \
1275 #define AR5K_CFP_PERIOD (ah->ah_version == AR5K_AR5210 ? \
1283 #define AR5K_TIMER0 (ah->ah_version == AR5K_AR5210 ? \
1291 #define AR5K_TIMER1 (ah->ah_version == AR5K_AR5210 ? \
1299 #define AR5K_TIMER2 (ah->ah_version == AR5K_AR5210 ? \
[all …]
Ddesc.h173 (ah->ah_version == AR5K_AR5210 ? \
188 (ah->ah_version == AR5K_AR5210 ? \
Deeprom.h245 if (!ath5k_hw_nvram_read(ah, (_o), &(_v))) \
250 AR5K_EEPROM_READ(_o, ah->ah_capabilities.cap_eeprom._v); \
/linux-4.1.27/drivers/infiniband/hw/mlx4/
Dah.c44 struct mlx4_ib_ah *ah) in create_ib_ah() argument
48 ah->av.ib.port_pd = cpu_to_be32(to_mpd(pd)->pdn | (ah_attr->port_num << 24)); in create_ib_ah()
49 ah->av.ib.g_slid = ah_attr->src_path_bits; in create_ib_ah()
51 ah->av.ib.g_slid |= 0x80; in create_ib_ah()
52 ah->av.ib.gid_index = ah_attr->grh.sgid_index; in create_ib_ah()
53 ah->av.ib.hop_limit = ah_attr->grh.hop_limit; in create_ib_ah()
54 ah->av.ib.sl_tclass_flowlabel |= in create_ib_ah()
57 memcpy(ah->av.ib.dgid, ah_attr->grh.dgid.raw, 16); in create_ib_ah()
60 ah->av.ib.dlid = cpu_to_be16(ah_attr->dlid); in create_ib_ah()
62 ah->av.ib.stat_rate = ah_attr->static_rate + MLX4_STAT_RATE_OFFSET; in create_ib_ah()
[all …]
Dmad.c380 if ((send_buf->ah = dev->sm_ah[port_num - 1])) in forward_trap()
471 struct ib_ah *ah; in mlx4_ib_send_to_slave() local
521 ah = ib_create_ah(tun_ctx->pd, &attr); in mlx4_ib_send_to_slave()
522 if (IS_ERR(ah)) in mlx4_ib_send_to_slave()
537 if (tun_qp->tx_ring[tun_tx_ix].ah) in mlx4_ib_send_to_slave()
538 ib_destroy_ah(tun_qp->tx_ring[tun_tx_ix].ah); in mlx4_ib_send_to_slave()
539 tun_qp->tx_ring[tun_tx_ix].ah = ah; in mlx4_ib_send_to_slave()
591 wr.wr.ud.ah = ah; in mlx4_ib_send_to_slave()
605 ib_destroy_ah(ah); in mlx4_ib_send_to_slave()
1176 struct ib_ah *ah; in mlx4_ib_send_to_wire() local
[all …]
Dqp.c1273 static int _mlx4_set_path(struct mlx4_ib_dev *dev, const struct ib_ah_attr *ah, in _mlx4_set_path() argument
1284 path->grh_mylmc = ah->src_path_bits & 0x7f; in _mlx4_set_path()
1285 path->rlid = cpu_to_be16(ah->dlid); in _mlx4_set_path()
1286 if (ah->static_rate) { in _mlx4_set_path()
1287 path->static_rate = ah->static_rate + MLX4_STAT_RATE_OFFSET; in _mlx4_set_path()
1294 if (ah->ah_flags & IB_AH_GRH) { in _mlx4_set_path()
1295 if (ah->grh.sgid_index >= dev->dev->caps.gid_table_len[port]) { in _mlx4_set_path()
1297 ah->grh.sgid_index, dev->dev->caps.gid_table_len[port] - 1); in _mlx4_set_path()
1302 path->mgid_index = ah->grh.sgid_index; in _mlx4_set_path()
1303 path->hop_limit = ah->grh.hop_limit; in _mlx4_set_path()
[all …]
DMakefile3 mlx4_ib-y := ah.o cq.o doorbell.o mad.o main.o mr.o qp.o srq.o mcg.o cm.o alias_GUID.o sysfs.o
Dmlx4_ib.h389 struct ib_ah *ah; member
682 int mlx4_ib_destroy_ah(struct ib_ah *ah);
731 static inline bool mlx4_ib_ah_grh_present(struct mlx4_ib_ah *ah) in mlx4_ib_ah_grh_present() argument
733 u8 port = be32_to_cpu(ah->av.ib.port_pd) >> 24 & 3; in mlx4_ib_ah_grh_present()
735 if (rdma_port_get_link_layer(ah->ibah.device, port) == IB_LINK_LAYER_ETHERNET) in mlx4_ib_ah_grh_present()
738 return !!(ah->av.ib.g_slid & 0x80); in mlx4_ib_ah_grh_present()
/linux-4.1.27/drivers/infiniband/hw/mlx5/
Dah.c36 struct mlx5_ib_ah *ah) in create_ib_ah() argument
39 memcpy(ah->av.rgid, &ah_attr->grh.dgid, 16); in create_ib_ah()
40 ah->av.grh_gid_fl = cpu_to_be32(ah_attr->grh.flow_label | in create_ib_ah()
43 ah->av.hop_limit = ah_attr->grh.hop_limit; in create_ib_ah()
44 ah->av.tclass = ah_attr->grh.traffic_class; in create_ib_ah()
47 ah->av.rlid = cpu_to_be16(ah_attr->dlid); in create_ib_ah()
48 ah->av.fl_mlid = ah_attr->src_path_bits & 0x7f; in create_ib_ah()
49 ah->av.stat_rate_sl = (ah_attr->static_rate << 4) | (ah_attr->sl & 0xf); in create_ib_ah()
51 return &ah->ibah; in create_ib_ah()
56 struct mlx5_ib_ah *ah; in mlx5_ib_create_ah() local
[all …]
DMakefile3 mlx5_ib-y := main.o cq.o doorbell.o qp.o mem.o srq.o mr.o ah.o mad.o
Dqp.c1376 static int mlx5_set_path(struct mlx5_ib_dev *dev, const struct ib_ah_attr *ah, in mlx5_set_path() argument
1390 path->grh_mlid = ah->src_path_bits & 0x7f; in mlx5_set_path()
1391 path->rlid = cpu_to_be16(ah->dlid); in mlx5_set_path()
1393 if (ah->ah_flags & IB_AH_GRH) { in mlx5_set_path()
1394 if (ah->grh.sgid_index >= gen->port[port - 1].gid_table_len) { in mlx5_set_path()
1396 ah->grh.sgid_index, gen->port[port - 1].gid_table_len); in mlx5_set_path()
1400 path->mgid_index = ah->grh.sgid_index; in mlx5_set_path()
1401 path->hop_limit = ah->grh.hop_limit; in mlx5_set_path()
1403 cpu_to_be32((ah->grh.traffic_class << 20) | in mlx5_set_path()
1404 (ah->grh.flow_label)); in mlx5_set_path()
[all …]
Dmlx5_ib.h531 struct mlx5_ib_ah *ah);
534 int mlx5_ib_destroy_ah(struct ib_ah *ah);
/linux-4.1.27/drivers/infiniband/hw/mthca/
Dmthca_av.c156 struct mthca_ah *ah) in mthca_create_ah() argument
161 ah->type = MTHCA_AH_PCI_POOL; in mthca_create_ah()
164 ah->av = kmalloc(sizeof *ah->av, GFP_ATOMIC); in mthca_create_ah()
165 if (!ah->av) in mthca_create_ah()
168 ah->type = MTHCA_AH_KMALLOC; in mthca_create_ah()
169 av = ah->av; in mthca_create_ah()
182 ah->type = MTHCA_AH_ON_HCA; in mthca_create_ah()
183 ah->avdma = dev->av_table.ddr_av_base + in mthca_create_ah()
188 if (ah->type == MTHCA_AH_PCI_POOL) { in mthca_create_ah()
189 ah->av = pci_pool_alloc(dev->av_table.pool, in mthca_create_ah()
[all …]
Dmthca_qp.c515 static int mthca_path_set(struct mthca_dev *dev, const struct ib_ah_attr *ah, in mthca_path_set() argument
518 path->g_mylmc = ah->src_path_bits & 0x7f; in mthca_path_set()
519 path->rlid = cpu_to_be16(ah->dlid); in mthca_path_set()
520 path->static_rate = mthca_get_rate(dev, ah->static_rate, port); in mthca_path_set()
522 if (ah->ah_flags & IB_AH_GRH) { in mthca_path_set()
523 if (ah->grh.sgid_index >= dev->limits.gid_table_len) { in mthca_path_set()
525 ah->grh.sgid_index, dev->limits.gid_table_len-1); in mthca_path_set()
530 path->mgid_index = ah->grh.sgid_index; in mthca_path_set()
531 path->hop_limit = ah->grh.hop_limit; in mthca_path_set()
533 cpu_to_be32((ah->sl << 28) | in mthca_path_set()
[all …]
Dmthca_provider.c411 struct mthca_ah *ah; in mthca_ah_create() local
413 ah = kmalloc(sizeof *ah, GFP_ATOMIC); in mthca_ah_create()
414 if (!ah) in mthca_ah_create()
417 err = mthca_create_ah(to_mdev(pd->device), to_mpd(pd), ah_attr, ah); in mthca_ah_create()
419 kfree(ah); in mthca_ah_create()
423 return &ah->ibah; in mthca_ah_create()
426 static int mthca_ah_destroy(struct ib_ah *ah) in mthca_ah_destroy() argument
428 mthca_destroy_ah(to_mdev(ah->device), to_mah(ah)); in mthca_ah_destroy()
429 kfree(ah); in mthca_ah_destroy()
Dmthca_dev.h564 struct mthca_ah *ah);
565 int mthca_destroy_ah(struct mthca_dev *dev, struct mthca_ah *ah);
566 int mthca_read_ah(struct mthca_dev *dev, struct mthca_ah *ah,
569 int mthca_ah_grh_present(struct mthca_ah *ah);
Dmthca_mad.c184 if ((send_buf->ah = dev->sm_ah[port_num - 1])) in forward_trap()
/linux-4.1.27/drivers/net/wireless/ath/
Dhw.c120 void *ah = common->ah; in ath_hw_setbssidmask() local
123 REG_WRITE(ah, AR_STA_ID0, get_unaligned_le32(common->macaddr)); in ath_hw_setbssidmask()
124 id1 = REG_READ(ah, AR_STA_ID1) & ~AR_STA_ID1_SADH_MASK; in ath_hw_setbssidmask()
126 REG_WRITE(ah, AR_STA_ID1, id1); 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()
145 void *ah = common->ah; in ath_hw_cycle_counters_update() local
148 REG_WRITE(ah, AR_MIBC, AR_MIBC_FMC); in ath_hw_cycle_counters_update()
151 cycles = REG_READ(ah, AR_CCCNT); in ath_hw_cycle_counters_update()
152 busy = REG_READ(ah, AR_RCCNT); in ath_hw_cycle_counters_update()
[all …]
Dkey.c45 void *ah = common->ah; in ath_hw_keyreset() local
53 keyType = REG_READ(ah, AR_KEYTABLE_TYPE(entry)); in ath_hw_keyreset()
55 ENABLE_REGWRITE_BUFFER(ah); in ath_hw_keyreset()
57 REG_WRITE(ah, AR_KEYTABLE_KEY0(entry), 0); in ath_hw_keyreset()
58 REG_WRITE(ah, AR_KEYTABLE_KEY1(entry), 0); in ath_hw_keyreset()
59 REG_WRITE(ah, AR_KEYTABLE_KEY2(entry), 0); in ath_hw_keyreset()
60 REG_WRITE(ah, AR_KEYTABLE_KEY3(entry), 0); in ath_hw_keyreset()
61 REG_WRITE(ah, AR_KEYTABLE_KEY4(entry), 0); in ath_hw_keyreset()
62 REG_WRITE(ah, AR_KEYTABLE_TYPE(entry), AR_KEYTABLE_TYPE_CLR); in ath_hw_keyreset()
63 REG_WRITE(ah, AR_KEYTABLE_MAC0(entry), 0); in ath_hw_keyreset()
[all …]
Dath.h148 void *ah; member
/linux-4.1.27/arch/sh/kernel/
Dprocess_64.c40 unsigned long long ah, al, bh, bl, ch, cl; in show_regs() local
45 ah = (regs->pc) >> 32; in show_regs()
52 ah, al, bh, bl, ch, cl); in show_regs()
54 ah = (regs->sr) >> 32; in show_regs()
65 ah, al, bh, bl, ch, cl); in show_regs()
67 ah = (regs->regs[0]) >> 32; in show_regs()
74 ah, al, bh, bl, ch, cl); in show_regs()
76 ah = (regs->regs[3]) >> 32; in show_regs()
83 ah, al, bh, bl, ch, cl); in show_regs()
85 ah = (regs->regs[6]) >> 32; in show_regs()
[all …]
/linux-4.1.27/drivers/infiniband/hw/ocrdma/
Docrdma_ah.c42 static inline int set_av_attr(struct ocrdma_dev *dev, struct ocrdma_ah *ah, in set_av_attr() argument
81 ah->sgid_index = attr->grh.sgid_index; in set_av_attr()
92 memcpy(&ah->av->eth_hdr, &eth, eth_sz); in set_av_attr()
93 memcpy((u8 *)ah->av + eth_sz, &grh, sizeof(struct ocrdma_grh)); in set_av_attr()
95 ah->av->valid |= OCRDMA_AV_VLAN_VALID; in set_av_attr()
96 ah->av->valid = cpu_to_le32(ah->av->valid); in set_av_attr()
105 struct ocrdma_ah *ah; in ocrdma_create_ah() local
115 ah = kzalloc(sizeof(*ah), GFP_ATOMIC); in ocrdma_create_ah()
116 if (!ah) in ocrdma_create_ah()
119 status = ocrdma_alloc_av(dev, ah); in ocrdma_create_ah()
[all …]
/linux-4.1.27/net/ipv6/netfilter/
Dip6t_ah.c42 const struct ip_auth_hdr *ah; in ah_mt6() local
55 ah = skb_header_pointer(skb, ptr, sizeof(_ah), &_ah); in ah_mt6()
56 if (ah == NULL) { in ah_mt6()
61 hdrlen = (ah->hdrlen + 2) << 2; in ah_mt6()
63 pr_debug("IPv6 AH LEN %u %u ", hdrlen, ah->hdrlen); in ah_mt6()
64 pr_debug("RES %04X ", ah->reserved); in ah_mt6()
65 pr_debug("SPI %u %08X\n", ntohl(ah->spi), ntohl(ah->spi)); in ah_mt6()
69 ntohl(ah->spi), in ah_mt6()
77 ahinfo->hdrres, ah->reserved, in ah_mt6()
78 !(ahinfo->hdrres && ah->reserved)); in ah_mt6()
[all …]
Dnf_log_ipv6.c134 const struct ip_auth_hdr *ah; in dump_ipv6_packet() local
144 ah = skb_header_pointer(skb, ptr, sizeof(_ahdr), in dump_ipv6_packet()
146 if (ah == NULL) { in dump_ipv6_packet()
157 nf_log_buf_add(m, "SPI=0x%x ", ntohl(ah->spi)); in dump_ipv6_packet()
/linux-4.1.27/arch/alpha/include/uapi/asm/
Da.out.h57 struct aouthdr ah; member
64 #define a_info ah.info
65 #define a_text ah.tsize
66 #define a_data ah.dsize
67 #define a_bss ah.bsize
68 #define a_entry ah.entry
69 #define a_textstart ah.text_start
70 #define a_datastart ah.data_start
71 #define a_bssstart ah.bss_start
72 #define a_gprmask ah.gprmask
[all …]
/linux-4.1.27/arch/arm/lib/
Dashldi3.S34 #define ah r0 macro
37 #define ah r1 macro
45 movmi ah, ah, lsl r2
46 movpl ah, al, lsl r3
47 ARM( orrmi ah, ah, al, lsr ip )
49 THUMB( orrmi ah, ah, r3 )
Dashrdi3.S34 #define ah r0 macro
37 #define ah r1 macro
46 movpl al, ah, asr r3
47 ARM( orrmi al, al, ah, lsl ip )
48 THUMB( lslmi r3, ah, ip )
50 mov ah, ah, asr r2
Dlshrdi3.S34 #define ah r0 macro
37 #define ah r1 macro
46 movpl al, ah, lsr r3
47 ARM( orrmi al, al, ah, lsl ip )
48 THUMB( lslmi r3, ah, ip )
50 mov ah, ah, lsr r2
/linux-4.1.27/drivers/ata/
Dpata_rb532_cf.c59 struct ata_host *ah = dev_instance; in rb532_pata_irq_handler() local
60 struct rb532_cf_info *info = ah->private_data; in rb532_pata_irq_handler()
85 static void rb532_pata_setup_ports(struct ata_host *ah) in rb532_pata_setup_ports() argument
87 struct rb532_cf_info *info = ah->private_data; in rb532_pata_setup_ports()
90 ap = ah->ports[0]; in rb532_pata_setup_ports()
110 struct ata_host *ah; in rb532_pata_driver_probe() local
139 ah = ata_host_alloc(&pdev->dev, RB500_CF_MAXPORTS); in rb532_pata_driver_probe()
140 if (!ah) in rb532_pata_driver_probe()
143 platform_set_drvdata(pdev, ah); in rb532_pata_driver_probe()
149 ah->private_data = info; in rb532_pata_driver_probe()
[all …]
/linux-4.1.27/net/bridge/netfilter/
Debt_arp.c22 const struct arphdr *ah; in ebt_arp_mt() local
25 ah = skb_header_pointer(skb, 0, sizeof(_arph), &_arph); in ebt_arp_mt()
26 if (ah == NULL) in ebt_arp_mt()
29 ah->ar_op, EBT_ARP_OPCODE)) in ebt_arp_mt()
32 ah->ar_hrd, EBT_ARP_HTYPE)) in ebt_arp_mt()
35 ah->ar_pro, EBT_ARP_PTYPE)) in ebt_arp_mt()
42 if (ah->ar_pln != sizeof(__be32) || ah->ar_pro != htons(ETH_P_IP)) in ebt_arp_mt()
45 ah->ar_hln, sizeof(saddr), in ebt_arp_mt()
50 2*ah->ar_hln+sizeof(saddr), in ebt_arp_mt()
70 if (ah->ar_hln != ETH_ALEN || ah->ar_hrd != htons(ARPHRD_ETHER)) in ebt_arp_mt()
[all …]
Debt_among.c81 const struct arphdr *ah; in get_ip_dst() local
86 ah = skb_header_pointer(skb, 0, sizeof(_arph), &_arph); in get_ip_dst()
87 if (ah == NULL || in get_ip_dst()
88 ah->ar_pln != sizeof(__be32) || in get_ip_dst()
89 ah->ar_hln != ETH_ALEN) in get_ip_dst()
112 const struct arphdr *ah; in get_ip_src() local
117 ah = skb_header_pointer(skb, 0, sizeof(_arph), &_arph); in get_ip_src()
118 if (ah == NULL || in get_ip_src()
119 ah->ar_pln != sizeof(__be32) || in get_ip_src()
120 ah->ar_hln != ETH_ALEN) in get_ip_src()
Debt_log.c142 const struct arphdr *ah; in ebt_log_packet() local
145 ah = skb_header_pointer(skb, 0, sizeof(_arph), &_arph); in ebt_log_packet()
146 if (ah == NULL) { in ebt_log_packet()
151 ntohs(ah->ar_hrd), ntohs(ah->ar_pro), in ebt_log_packet()
152 ntohs(ah->ar_op)); in ebt_log_packet()
156 if (ah->ar_hrd == htons(1) && in ebt_log_packet()
157 ah->ar_hln == ETH_ALEN && in ebt_log_packet()
158 ah->ar_pln == sizeof(__be32)) { in ebt_log_packet()
/linux-4.1.27/lib/mpi/
Dlonglong.h114 #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ argument
119 : "%r" ((USItype)(ah)), \
123 #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ argument
128 : "r" ((USItype)(ah)), \
176 #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ argument
181 : "%r" ((USItype)(ah)), \
185 #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ argument
190 : "r" ((USItype)(ah)), \
263 #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ argument
268 : "%0" ((USItype)(ah)), \
[all …]
/linux-4.1.27/net/ipv4/
Dah4.c126 struct ip_auth_hdr *ah = ip_auth_hdr(skb); in ah_output_done() local
131 memcpy(ah->auth_data, icv, ahp->icv_trunc_len); in ah_output_done()
156 struct ip_auth_hdr *ah; in ah_output() local
171 ah = ip_auth_hdr(skb); in ah_output()
188 memset(ah->auth_data, 0, ahp->icv_trunc_len); in ah_output()
204 ah->nexthdr = *skb_mac_header(skb); in ah_output()
214 ah->hdrlen = (XFRM_ALIGN4(sizeof(*ah) + ahp->icv_trunc_len) >> 2) - 2; in ah_output()
216 ah->hdrlen = (XFRM_ALIGN8(sizeof(*ah) + ahp->icv_trunc_len) >> 2) - 2; in ah_output()
218 ah->reserved = 0; in ah_output()
219 ah->spi = x->id.spi; in ah_output()
[all …]
Dip_vti.c252 struct ip_auth_hdr *ah ; in vti4_err() local
272 ah = (struct ip_auth_hdr *)(skb->data+(iph->ihl<<2)); in vti4_err()
273 spi = ah->spi; in vti4_err()
/linux-4.1.27/net/ipv4/netfilter/
Dnf_log_arp.c49 const struct arphdr *ah; in dump_arp_packet() local
54 ah = skb_header_pointer(skb, 0, sizeof(_arph), &_arph); in dump_arp_packet()
55 if (ah == NULL) { in dump_arp_packet()
60 ntohs(ah->ar_hrd), ntohs(ah->ar_pro), ntohs(ah->ar_op)); in dump_arp_packet()
65 if (ah->ar_hrd != htons(1) || in dump_arp_packet()
66 ah->ar_hln != ETH_ALEN || in dump_arp_packet()
67 ah->ar_pln != sizeof(__be32)) in dump_arp_packet()
Dipt_ah.c36 const struct ip_auth_hdr *ah; in ah_mt() local
43 ah = skb_header_pointer(skb, par->thoff, sizeof(_ahdr), &_ahdr); in ah_mt()
44 if (ah == NULL) { in ah_mt()
54 ntohl(ah->spi), in ah_mt()
Dnf_log_ipv4.c203 const struct ip_auth_hdr *ah; in dump_ipv4_packet() local
212 ah = skb_header_pointer(skb, iphoff+ih->ihl*4, in dump_ipv4_packet()
214 if (ah == NULL) { in dump_ipv4_packet()
221 nf_log_buf_add(m, "SPI=0x%x ", ntohl(ah->spi)); in dump_ipv4_packet()
/linux-4.1.27/drivers/infiniband/hw/ehca/
Dehca_av.c168 int ehca_modify_ah(struct ib_ah *ah, struct ib_ah_attr *ah_attr) in ehca_modify_ah() argument
172 struct ehca_shca *shca = container_of(ah->pd->device, struct ehca_shca, in ehca_modify_ah()
196 rc = ehca_query_port(ah->device, ah_attr->port_num, in ehca_modify_ah()
199 ehca_err(ah->device, "Invalid port number " in ehca_modify_ah()
202 rc, ah, ah_attr, ah_attr->port_num); in ehca_modify_ah()
206 rc = ehca_query_gid(ah->device, in ehca_modify_ah()
210 ehca_err(ah->device, "Failed to retrieve sgid " in ehca_modify_ah()
214 rc, ah, ah_attr, ah_attr->port_num, in ehca_modify_ah()
226 av = container_of(ah, struct ehca_av, ib_ah); in ehca_modify_ah()
232 int ehca_query_ah(struct ib_ah *ah, struct ib_ah_attr *ah_attr) in ehca_query_ah() argument
[all …]
Dehca_iverbs.h71 int ehca_modify_ah(struct ib_ah *ah, struct ib_ah_attr *ah_attr);
73 int ehca_query_ah(struct ib_ah *ah, struct ib_ah_attr *ah_attr);
75 int ehca_destroy_ah(struct ib_ah *ah);
Dehca_reqs.c231 if (unlikely(!send_wr->wr.ud.ah)) { in ehca_write_swqe()
239 my_av = container_of(send_wr->wr.ud.ah, struct ehca_av, ib_ah); in ehca_write_swqe()
/linux-4.1.27/net/ipv6/
Dah6.c306 struct ip_auth_hdr *ah = ip_auth_hdr(skb); in ah6_output_done() local
317 memcpy(ah->auth_data, icv, ahp->icv_trunc_len); in ah6_output_done()
345 struct ip_auth_hdr *ah; in ah6_output() local
383 ah = ip_auth_hdr(skb); in ah6_output()
384 memset(ah->auth_data, 0, ahp->icv_trunc_len); in ah6_output()
411 ah->nexthdr = nexthdr; in ah6_output()
419 ah->hdrlen = (XFRM_ALIGN8(sizeof(*ah) + ahp->icv_trunc_len) >> 2) - 2; in ah6_output()
421 ah->reserved = 0; in ah6_output()
422 ah->spi = x->id.spi; in ah6_output()
423 ah->seq_no = htonl(XFRM_SKB_CB(skb)->seq.output.low); in ah6_output()
[all …]
Dip6_vti.c561 struct ip_auth_hdr *ah; in vti6_err() local
579 ah = (struct ip_auth_hdr *)(skb->data + offset); in vti6_err()
580 spi = ah->spi; in vti6_err()
/linux-4.1.27/arch/powerpc/include/asm/
Dsfp-machine.h216 #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ argument
222 : "%r" ((USItype)(ah)), \
229 : "%r" ((USItype)(ah)), \
236 : "%r" ((USItype)(ah)), \
251 #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ argument
253 if (__builtin_constant_p (ah) && (ah) == 0) \
260 else if (__builtin_constant_p (ah) && (ah) ==~(USItype) 0) \
271 : "r" ((USItype)(ah)), \
278 : "r" ((USItype)(ah)), \
285 : "r" ((USItype)(ah)), \
/linux-4.1.27/drivers/infiniband/core/
Dagent.c88 struct ib_ah *ah; in agent_send_response() local
102 ah = ib_create_ah_from_wc(agent->qp->pd, wc, grh, port_num); in agent_send_response()
103 if (IS_ERR(ah)) { in agent_send_response()
105 PTR_ERR(ah)); in agent_send_response()
118 send_buf->ah = ah; in agent_send_response()
135 ib_destroy_ah(ah); in agent_send_response()
141 ib_destroy_ah(mad_send_wc->send_buf->ah); in agent_send_handler()
Dmad_rmpp.c56 struct ib_ah *ah; member
82 ib_destroy_ah(rmpp_recv->ah); in destroy_rmpp_recv()
147 msg->ah = rmpp_recv->ah; in ack_recv()
157 struct ib_ah *ah; in alloc_response_msg() local
160 ah = ib_create_ah_from_wc(agent->qp->pd, recv_wc->wc, in alloc_response_msg()
162 if (IS_ERR(ah)) in alloc_response_msg()
163 return (void *) ah; in alloc_response_msg()
170 ib_destroy_ah(ah); in alloc_response_msg()
172 msg->ah = ah; in alloc_response_msg()
173 msg->context[0] = ah; in alloc_response_msg()
[all …]
Dverbs.c180 struct ib_ah *ah; in ib_create_ah() local
182 ah = pd->device->create_ah(pd, ah_attr); in ib_create_ah()
184 if (!IS_ERR(ah)) { in ib_create_ah()
185 ah->device = pd->device; in ib_create_ah()
186 ah->pd = pd; in ib_create_ah()
187 ah->uobject = NULL; in ib_create_ah()
191 return ah; in ib_create_ah()
261 int ib_modify_ah(struct ib_ah *ah, struct ib_ah_attr *ah_attr) in ib_modify_ah() argument
263 return ah->device->modify_ah ? in ib_modify_ah()
264 ah->device->modify_ah(ah, ah_attr) : in ib_modify_ah()
[all …]
Duser_mad.c201 ib_destroy_ah(packet->msg->ah); in send_handler()
450 struct ib_ah *ah; in ib_umad_write() local
501 ah = ib_create_ah(agent->qp->pd, &ah_attr); in ib_umad_write()
502 if (IS_ERR(ah)) { in ib_umad_write()
503 ret = PTR_ERR(ah); in ib_umad_write()
530 packet->msg->ah = ah; in ib_umad_write()
593 ib_destroy_ah(ah); in ib_umad_write()
Dsa_query.c55 struct ib_ah *ah; member
388 ib_destroy_ah(sm_ah->ah); in free_sm_ah()
424 new_ah->ah = ib_create_ah(port->agent->qp->pd, &ah_attr); in update_sm_ah()
425 if (IS_ERR(new_ah->ah)) { in update_sm_ah()
592 query->mad_buf->ah = query->sm_ah->ah; in alloc_mad()
Duverbs_cmd.c234 static void put_ah_read(struct ib_ah *ah) in put_ah_read() argument
236 put_uobj_read(ah->uobject); in put_ah_read()
2253 next->wr.ud.ah = idr_read_ah(user_wr->wr.ud.ah, in ib_uverbs_post_send()
2255 if (!next->wr.ud.ah) { in ib_uverbs_post_send()
2333 if (is_ud && wr->wr.ud.ah) in ib_uverbs_post_send()
2334 put_ah_read(wr->wr.ud.ah); in ib_uverbs_post_send()
2537 struct ib_ah *ah; in ib_uverbs_create_ah() local
2574 ah = ib_create_ah(pd, &attr); in ib_uverbs_create_ah()
2575 if (IS_ERR(ah)) { in ib_uverbs_create_ah()
2576 ret = PTR_ERR(ah); in ib_uverbs_create_ah()
[all …]
Dcm.c260 struct ib_ah *ah; in cm_alloc_msg() local
263 ah = ib_create_ah(mad_agent->qp->pd, &cm_id_priv->av.ah_attr); in cm_alloc_msg()
264 if (IS_ERR(ah)) in cm_alloc_msg()
265 return PTR_ERR(ah); in cm_alloc_msg()
272 ib_destroy_ah(ah); in cm_alloc_msg()
277 m->ah = ah; in cm_alloc_msg()
291 struct ib_ah *ah; in cm_alloc_response_msg() local
293 ah = ib_create_ah_from_wc(port->mad_agent->qp->pd, mad_recv_wc->wc, in cm_alloc_response_msg()
295 if (IS_ERR(ah)) in cm_alloc_response_msg()
296 return PTR_ERR(ah); in cm_alloc_response_msg()
[all …]
/linux-4.1.27/arch/alpha/math-emu/
Dsfp-util.h7 #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ argument
8 ((sl) = (al) + (bl), (sh) = (ah) + (bh) + ((sl) < (al)))
10 #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ argument
11 ((sl) = (al) - (bl), (sh) = (ah) - (bh) - ((al) < (bl)))
/linux-4.1.27/arch/sparc/math-emu/
Dsfp-util_32.h6 #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ argument
11 : "%rJ" ((USItype)(ah)), \
16 #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ argument
21 : "rJ" ((USItype)(ah)), \
Dsfp-util_64.h14 #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ argument
22 : "r" ((UDItype)(ah)), \
28 #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ argument
36 : "r" ((UDItype)(ah)), \
/linux-4.1.27/arch/s390/include/asm/
Dsfp-util.h6 #define add_ssaaaa(sh, sl, ah, al, bh, bl) ({ \ argument
7 unsigned int __sh = (ah); \
20 #define sub_ddmmss(sh, sl, ah, al, bh, bl) ({ \ argument
21 unsigned int __sh = (ah); \
/linux-4.1.27/drivers/infiniband/ulp/ipoib/
Dipoib_ib.c59 struct ipoib_ah *ah; in ipoib_create_ah() local
62 ah = kmalloc(sizeof *ah, GFP_KERNEL); in ipoib_create_ah()
63 if (!ah) in ipoib_create_ah()
66 ah->dev = dev; in ipoib_create_ah()
67 ah->last_send = 0; in ipoib_create_ah()
68 kref_init(&ah->ref); in ipoib_create_ah()
72 kfree(ah); in ipoib_create_ah()
73 ah = (struct ipoib_ah *)vah; in ipoib_create_ah()
75 ah->ah = vah; in ipoib_create_ah()
76 ipoib_dbg(netdev_priv(dev), "Created ah %p\n", ah->ah); in ipoib_create_ah()
[all …]
Dipoib_main.c322 if (path->ah) in path_free()
323 ipoib_put_ah(path->ah); in path_free()
440 struct ipoib_ah *ah = NULL; in path_rec_completion() local
460 ah = ipoib_create_ah(dev, priv->pd, &av); in path_rec_completion()
465 if (!IS_ERR_OR_NULL(ah)) { in path_rec_completion()
468 old_ah = path->ah; in path_rec_completion()
469 path->ah = ah; in path_rec_completion()
472 ah, be16_to_cpu(pathrec->dlid), pathrec->sl); in path_rec_completion()
478 if (neigh->ah) { in path_rec_completion()
479 WARN_ON(neigh->ah != old_ah); in path_rec_completion()
[all …]
Dipoib_multicast.c120 if (mcast->ah) in ipoib_mcast_free()
121 ipoib_put_ah(mcast->ah); in ipoib_mcast_free()
213 struct ipoib_ah *ah; in ipoib_mcast_join_finish() local
287 ah = ipoib_create_ah(dev, priv->pd, &av); in ipoib_mcast_join_finish()
288 if (IS_ERR(ah)) { in ipoib_mcast_join_finish()
290 -PTR_ERR(ah)); in ipoib_mcast_join_finish()
292 return PTR_ERR(ah); in ipoib_mcast_join_finish()
295 mcast->ah = ah; in ipoib_mcast_join_finish()
300 mcast->ah->ah, in ipoib_mcast_join_finish()
699 if (!mcast || !mcast->ah) { in ipoib_mcast_send()
[all …]
Dipoib.h149 struct ipoib_ah *ah; member
398 struct ib_ah *ah; member
407 struct ipoib_ah *ah; member
422 struct ipoib_ah *ah; member
464 static inline void ipoib_put_ah(struct ipoib_ah *ah) in ipoib_put_ah() argument
466 kref_put(&ah->ref, ipoib_free_ah); in ipoib_put_ah()
/linux-4.1.27/arch/x86/xen/
Dxen-asm.S69 setz %ah
70 addb %ah, %ah
88 testb $X86_EFLAGS_IF>>8, %ah
/linux-4.1.27/arch/sh/math-emu/
Dsfp-util.h5 #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ argument
9 (sh) = (ah) + (bh) + (__x < (al)); \
13 #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ argument
17 (sh) = (ah) - (bh) - (__x > (al)); \
/linux-4.1.27/arch/alpha/boot/tools/
Dobjstrip.c205 if (aout->fh.f_opthdr != sizeof(aout->ah)) { in main()
217 fil_size = aout->ah.tsize + aout->ah.dsize; in main()
218 mem_size = fil_size + aout->ah.bsize; in main()
222 prog_name, aout->ah.text_start, in main()
223 aout->ah.text_start + fil_size, offset); in main()
/linux-4.1.27/arch/x86/boot/
Dtty.c47 ireg.ah = 0x0e; in bios_putchar()
79 ireg.ah = 0x02; in gettime()
104 ireg.ah = 0x01; in kbd_pending()
Dedd.c84 ireg.ah = 0x41; in get_edd_info()
96 ei->version = oreg.ah; /* EDD version number */ in get_edd_info()
102 ireg.ah = 0x48; in get_edd_info()
109 ireg.ah = 0x08; in get_edd_info()
Dvideo.c27 ireg.ah = 0x03; in store_cursor_position()
47 ireg.ah = 0x0f; in store_video_mode()
309 ireg.ah = 0x02; /* Set cursor position */ in restore_screen()
Dmca.c24 ireg.ah = 0xc0; in query_mca()
Dapm.c27 ireg.ah = 0x53; in query_apm_bios()
Dmemory.c114 ireg.ah = 0x88; in detect_memory_88()
Dvideo-bios.c40 ireg.ah = 0x0f; /* Get Current Video Mode */ in set_bios_mode()
Dmain.c70 ireg.ah = 0x02; /* Get keyboard status */ in keyboard_init()
Dboot.h267 u8 al, ah, eax2, eax3; member
Dheader.S69 movb $0xe, %ah
/linux-4.1.27/include/linux/
Dmath64.h150 u32 ah, al; in mul_u64_u32_shr() local
154 ah = a >> 32; in mul_u64_u32_shr()
157 if (ah) in mul_u64_u32_shr()
158 ret += ((u64)ah * mul) << (32 - shift); in mul_u64_u32_shr()
/linux-4.1.27/drivers/block/aoe/
Daoecmd.c146 put_lba(struct aoe_atahdr *ah, sector_t lba) in put_lba() argument
148 ah->lba0 = lba; in put_lba()
149 ah->lba1 = lba >>= 8; in put_lba()
150 ah->lba2 = lba >>= 8; in put_lba()
151 ah->lba3 = lba >>= 8; in put_lba()
152 ah->lba4 = lba >>= 8; in put_lba()
153 ah->lba5 = lba >>= 8; in put_lba()
322 struct aoe_atahdr *ah; in ata_rw_frameinit() local
328 ah = (struct aoe_atahdr *) (h + 1); in ata_rw_frameinit()
329 skb_put(skb, sizeof(*h) + sizeof(*ah)); in ata_rw_frameinit()
[all …]
Daoenet.c134 struct aoe_atahdr *ah; in aoenet_rcv() local
147 sn = sizeof(*h) + sizeof(*ah); in aoenet_rcv()
/linux-4.1.27/crypto/
Dvmac.c190 #define poly_step(ah, al, kh, kl, mh, ml) \ argument
195 PMUL64(t2h, t2l, ah, kl); \
196 PMUL64(t1h, t1l, ah, 2*kh); \
197 PMUL64(ah, al, al, kl); \
199 ADD128(ah, al, t1h, t1l); \
204 ADD128(t2h, ah, z, t2l); \
206 t2h = 2 * t2h + (ah >> 63); \
207 ah &= m63; \
209 ADD128(ah, al, mh, ml); \
210 ADD128(ah, al, z, t2h); \
[all …]
/linux-4.1.27/arch/alpha/include/asm/
Da.out.h12 set_personality (((BFPM->taso || EX.ah.entry < 0x100000000L \
/linux-4.1.27/Documentation/ja_JP/
DSubmitChecklist3 This document is maintained by Takenori Nagano <t-nagano@ah.jp.nec.com>
21 翻訳者: Takenori Nagano <t-nagano at ah dot jp dot nec dot com>
/linux-4.1.27/drivers/infiniband/hw/qib/
Dqib_verbs.c377 if (qp->ibqp.pd != wr->wr.ud.ah->pd) in qib_post_one_send()
429 atomic_inc(&to_iah(wr->wr.ud.ah)->refcount); in qib_post_one_send()
1824 struct qib_ah *ah; in qib_create_ah() local
1834 ah = kmalloc(sizeof(*ah), GFP_ATOMIC); in qib_create_ah()
1835 if (!ah) { in qib_create_ah()
1843 kfree(ah); in qib_create_ah()
1852 ah->attr = *ah_attr; in qib_create_ah()
1853 atomic_set(&ah->refcount, 0); in qib_create_ah()
1855 ret = &ah->ibah; in qib_create_ah()
1864 struct ib_ah *ah = ERR_PTR(-EINVAL); in qib_create_qp0_ah() local
[all …]
Dqib_mad.c104 struct ib_ah *ah; in qib_send_trap() local
106 ah = qib_create_qp0_ah(ibp, ibp->sm_lid); in qib_send_trap()
107 if (IS_ERR(ah)) in qib_send_trap()
108 ret = PTR_ERR(ah); in qib_send_trap()
110 send_buf->ah = ah; in qib_send_trap()
111 ibp->sm_ah = to_iah(ah); in qib_send_trap()
117 send_buf->ah = &ibp->sm_ah->ibah; in qib_send_trap()
Dqib_ud.c79 ah_attr = &to_iah(swqe->wr.wr.ud.ah)->attr; in qib_ud_loopback()
280 ah_attr = &to_iah(wqe->wr.wr.ud.ah)->attr; in qib_make_ud_req()
/linux-4.1.27/drivers/bluetooth/
Dhci_ll.c378 struct hci_acl_hdr *ah; in ll_recv() local
412 ah = hci_acl_hdr(ll->rx_skb); in ll_recv()
413 dlen = __le16_to_cpu(ah->dlen); in ll_recv()
Dbtuart_cs.c243 struct hci_acl_hdr *ah; in btuart_receive() local
256 ah = hci_acl_hdr(info->rx_skb); in btuart_receive()
257 dlen = __le16_to_cpu(ah->dlen); in btuart_receive()
Dbt3c_cs.c294 struct hci_acl_hdr *ah; in bt3c_receive() local
306 ah = hci_acl_hdr(info->rx_skb); in bt3c_receive()
307 dlen = __le16_to_cpu(ah->dlen); in bt3c_receive()
Dbluecard_cs.c457 struct hci_acl_hdr *ah; in bluecard_receive() local
469 ah = hci_acl_hdr(info->rx_skb); in bluecard_receive()
470 dlen = __le16_to_cpu(ah->dlen); in bluecard_receive()
/linux-4.1.27/arch/alpha/kernel/
Dbinfmt_loader.c33 bprm->taso = eh->ah.entry < 0x100000000UL; in load_binary()
/linux-4.1.27/drivers/infiniband/hw/ipath/
Dipath_verbs.c377 if (qp->ibqp.pd != wr->wr.ud.ah->pd) in ipath_post_one_send()
1765 struct ipath_ah *ah; in ipath_create_ah() local
1789 ah = kmalloc(sizeof *ah, GFP_ATOMIC); in ipath_create_ah()
1790 if (!ah) { in ipath_create_ah()
1798 kfree(ah); in ipath_create_ah()
1807 ah->attr = *ah_attr; in ipath_create_ah()
1808 ah->attr.static_rate = ipath_ib_rate_to_mult(ah_attr->static_rate); in ipath_create_ah()
1810 ret = &ah->ibah; in ipath_create_ah()
1825 struct ipath_ah *ah = to_iah(ibah); in ipath_destroy_ah() local
1832 kfree(ah); in ipath_destroy_ah()
[all …]
Dipath_ud.c178 ah_attr = &to_iah(swqe->wr.wr.ud.ah)->attr; in ipath_ud_loopback()
283 ah_attr = &to_iah(wqe->wr.wr.ud.ah)->attr; in ipath_make_ud_req()
/linux-4.1.27/drivers/infiniband/hw/usnic/
Dusnic_ib_verbs.h62 int usnic_ib_destroy_ah(struct ib_ah *ah);
/linux-4.1.27/drivers/usb/misc/sisusbvga/
Dsisusb_init.c738 unsigned short shiftflag, unsigned short dl, unsigned short ah, in SiS_WriteDAC() argument
746 d2 = ah; in SiS_WriteDAC()
750 d1 = ah; in SiS_WriteDAC()
757 d3 = ah; in SiS_WriteDAC()
/linux-4.1.27/include/rdma/
Dib_verbs.h1053 struct ib_ah *ah; member
1528 int (*modify_ah)(struct ib_ah *ah,
1530 int (*query_ah)(struct ib_ah *ah,
1532 int (*destroy_ah)(struct ib_ah *ah);
1827 int ib_modify_ah(struct ib_ah *ah, struct ib_ah_attr *ah_attr);
1836 int ib_query_ah(struct ib_ah *ah, struct ib_ah_attr *ah_attr);
1842 int ib_destroy_ah(struct ib_ah *ah);
Dib_mad.h252 struct ib_ah *ah; member
/linux-4.1.27/drivers/mtd/nand/
Dcafe_nand.c559 u8 ah, al, bh, bl, ch, cl; in gf4096_mul() local
561 ah = a >> 6; in gf4096_mul()
566 ch = gf64_mul(ah ^ al, bh ^ bl) ^ gf64_mul(al, bl); in gf4096_mul()
567 cl = gf64_mul(gf64_mul(ah, bh), 0x21) ^ gf64_mul(al, bl); in gf4096_mul()
/linux-4.1.27/drivers/staging/media/lirc/
Dlirc_bt829.c46 static void write_index(unsigned char ah, unsigned int edx);
/linux-4.1.27/drivers/platform/x86/
Dacer-wmi.c1870 static acpi_status __init acer_wmi_get_handle_cb(acpi_handle ah, u32 level, in acer_wmi_get_handle_cb() argument
1873 *(acpi_handle *)retval = ah; in acer_wmi_get_handle_cb()
1878 acpi_handle *ah) in acer_wmi_get_handle() argument
1883 BUG_ON(!name || !ah); in acer_wmi_get_handle()
1890 *ah = handle; in acer_wmi_get_handle()
/linux-4.1.27/drivers/staging/xgifb/
Dvb_setmode.c749 unsigned short temp, ah, al, temp2, i, DisplayUnit; in XGI_SetCRT1Offset() local
813 ah = (DisplayUnit & 0xff00) >> 8; in XGI_SetCRT1Offset()
816 ah += 1; in XGI_SetCRT1Offset()
818 ah += 2; in XGI_SetCRT1Offset()
822 ah -= 1; in XGI_SetCRT1Offset()
824 xgifb_reg_set(pVBInfo->P3c4, 0x10, ah); in XGI_SetCRT1Offset()
1079 unsigned short ah, in XGI_WriteDAC() argument
1086 bh = ah; in XGI_WriteDAC()
1110 unsigned short data, data2, i, k, m, n, o, si, di, bx, dl, al, ah, dh; in XGI_LoadDAC() local
1150 ah = table[di]; in XGI_LoadDAC()
[all …]
/linux-4.1.27/arch/x86/crypto/
Dblowfish-x86_64-asm_64.S54 #define RX0bh %ah
Daes-x86_64-asm_64.S24 #define R1H %ah
/linux-4.1.27/arch/x86/kernel/
Dhead_32.S438 andb $0x0f,%ah # mask processor family
439 movb %ah,X86
/linux-4.1.27/drivers/gpu/drm/radeon/
Dr600_dpm.c220 u32 k, a, ah, al; in r600_calculate_at() local
230 ah = ((a * t) + 5000) / 10000; in r600_calculate_at()
231 al = a - ah; in r600_calculate_at()
233 *th = t - ah; in r600_calculate_at()
/linux-4.1.27/drivers/infiniband/ulp/srpt/
Dib_srpt.c451 ib_destroy_ah(mad_wc->send_buf->ah); in srpt_mad_send_handler()
462 struct ib_ah *ah; in srpt_mad_recv_handler() local
469 ah = ib_create_ah_from_wc(mad_agent->qp->pd, mad_wc->wc, in srpt_mad_recv_handler()
471 if (IS_ERR(ah)) in srpt_mad_recv_handler()
483 rsp->ah = ah; in srpt_mad_recv_handler()
513 ib_destroy_ah(ah); in srpt_mad_recv_handler()

12