Lines Matching full:aic

45 	 * Disable AIC for now, until we have all the  in ar9003_hw_is_aic_enabled()
167 struct ath9k_hw_aic *aic = &ah->btcoex_hw.aic; in ar9003_aic_cal_start() local
177 aic->aic_sram[i] = 0; in ar9003_aic_cal_start()
246 /* Need to enable AIC reference signal in BT modem. */ in ar9003_aic_cal_start()
251 aic->aic_cal_start_time = REG_READ(ah, AR_TSF_L32); in ar9003_aic_cal_start()
258 aic->aic_caled_chan = 0; in ar9003_aic_cal_start()
259 aic->aic_cal_state = AIC_CAL_STATE_STARTED; in ar9003_aic_cal_start()
261 return aic->aic_cal_state; in ar9003_aic_cal_start()
266 struct ath9k_hw_aic *aic = &ah->btcoex_hw.aic; in ar9003_aic_cal_post_process() local
280 value = aic->aic_sram[i]; in ar9003_aic_cal_post_process()
387 fixed_com_att_db = com_att_db_table[MS(aic->aic_sram[i], in ar9003_aic_cal_post_process()
420 aic->aic_sram[i] = (SM(sram.vga_dir_sign, in ar9003_aic_cal_post_process()
439 struct ath9k_hw_aic *aic = &ah->btcoex_hw.aic; in ar9003_aic_cal_done() local
441 /* Disable AIC reference signal in BT modem. */ in ar9003_aic_cal_done()
447 aic->aic_cal_state = AIC_CAL_STATE_DONE; in ar9003_aic_cal_done()
449 aic->aic_cal_state = AIC_CAL_STATE_ERROR; in ar9003_aic_cal_done()
456 struct ath9k_hw_aic *aic = &ah->btcoex_hw.aic; in ar9003_aic_cal_continue() local
462 aic->aic_cal_state = AIC_CAL_STATE_ERROR; in ar9003_aic_cal_continue()
463 return aic->aic_cal_state; in ar9003_aic_cal_continue()
482 ath_dbg(common, MCI, "AIC cal is not done after 40ms"); in ar9003_aic_cal_continue()
495 if (aic->aic_sram[i] == 0) in ar9003_aic_cal_continue()
496 aic->aic_caled_chan++; in ar9003_aic_cal_continue()
498 aic->aic_sram[i] = value; in ar9003_aic_cal_continue()
505 if ((aic->aic_caled_chan >= num_chan) || cal_once) { in ar9003_aic_cal_continue()
515 return aic->aic_cal_state; in ar9003_aic_cal_continue()
521 struct ath9k_hw_aic *aic = &ah->btcoex_hw.aic; in ar9003_aic_calibration() local
524 switch (aic->aic_cal_state) { in ar9003_aic_calibration()
543 struct ath9k_hw_aic *aic = &ah->btcoex_hw.aic; in ar9003_aic_start_normal() local
546 if (aic->aic_cal_state != AIC_CAL_STATE_DONE) in ar9003_aic_start_normal()
554 REG_WRITE(ah, AR_PHY_AIC_SRAM_DATA_B1, aic->aic_sram[i]); in ar9003_aic_start_normal()
568 aic->aic_enabled = true; in ar9003_aic_start_normal()
575 struct ath9k_hw_aic *aic = &ah->btcoex_hw.aic; in ar9003_aic_cal_reset() local
577 aic->aic_cal_state = AIC_CAL_STATE_IDLE; in ar9003_aic_cal_reset()
578 return aic->aic_cal_state; in ar9003_aic_cal_reset()