| /f-stack/freebsd/contrib/dev/ath/ath_hal/ar9300/ |
| H A D | ar9300_attach.c | 647 if (ahp == AH_NULL) { in ar9300_attach() 650 ah = &ahp->ah_priv.h; in ar9300_attach() 706 ahp->ah_wa_reg_val |= in ar9300_attach() 870 ahp->ah_rx_cal_chan = 0; in ar9300_attach() 2327 ahp->ah_enterprise_mode = ahp->ah_enterprise_mode << 12; in ar9300_attach() 2467 if (ahp) { in ar9300_attach() 2510 struct ath_hal_9300 *ahp; in ar9300_new_state() local 2515 if (ahp == AH_NULL) { in ar9300_new_state() 2523 ah = &ahp->ah_priv.h; in ar9300_new_state() 2539 OS_MEMCPY(&ahp->ah_priv.priv, &ar9300hal, sizeof(ahp->ah_priv.priv)); in ar9300_new_state() [all …]
|
| H A D | ar9300_mci.c | 863 (ahp->ah_mci_coex_is_2g && !ahp->ah_mci_coex_2g5g_update && in ar9300_mci_prep_interface() 912 ahp->ah_mci_gpm_len = len; in ar9300_mci_setup() 1004 if (!ahp->ah_mci_gpm_addr && !ahp->ah_mci_sched_addr) { in ar9300_mci_reset() 1069 ahp->ah_mci_concur_tx_en = (ahp->ah_bt_coex_flag & in ar9300_mci_reset() 1178 if (ahp->ah_aic_enabled) { in ar9300_mci_reset() 1356 ahp->ah_mci_int_raw = 0; in ar9300_mci_get_interrupt() 1502 if (ahp->ah_mci_gpm_idx >= ahp->ah_mci_gpm_len) { in ar9300_mci_state() 1837 if (ahp->ah_mci_concur_tx_en && ahp->ah_mci_stomp_all_tx_pri) { in ar9300_mci_bt_coex_set_weights() 1854 if (ahp->ah_mci_concur_tx_en && ahp->ah_mci_stomp_low_tx_pri) { in ar9300_mci_bt_coex_set_weights() 1874 if (ahp->ah_mci_concur_tx_en && ahp->ah_mci_stomp_low_tx_pri) { in ar9300_mci_bt_coex_set_weights() [all …]
|
| H A D | ar9300_phy.c | 442 (ahp->twice_antenna_gain >= ahp->twice_antenna_reduction)? in ar9300_adjust_reg_txpower_cdd() 473 (ahp->twice_antenna_gain >= ahp->twice_antenna_reduction)? in ar9300_adjust_reg_txpower_cdd() 885 ahp->txpower_stbc[i][0] = ahp->txpower[i][0]; in ar9300_init_rate_txpower_stbc() 889 ahp->txpower_stbc[i][1] = ahp->txpower[i][1]; in ar9300_init_rate_txpower_stbc() 892 ahp->txpower_stbc[i][2] = ahp->txpower[i][2]; in ar9300_init_rate_txpower_stbc() 909 ahp->txpower_stbc[i][0] = ahp->txpower[i][0]; in ar9300_init_rate_txpower_stbc() 913 ahp->txpower_stbc[i][1] = ahp->txpower[i][1]; in ar9300_init_rate_txpower_stbc() 916 ahp->txpower_stbc[i][2] = ahp->txpower[i][2]; in ar9300_init_rate_txpower_stbc() 933 ahp->txpower_stbc[i][0] = ahp->txpower[i][0]; in ar9300_init_rate_txpower_stbc() 937 ahp->txpower_stbc[i][1] = ahp->txpower[i][1]; in ar9300_init_rate_txpower_stbc() [all …]
|
| H A D | ar9300_misc.c | 188 if (ar9300_gpio_get(ah, ahp->ah_gpio_select) == ahp->ah_polarity) { in ar9300_enable_rf_kill() 231 if (ahp->ah_gpio_bit == ar9300_gpio_get(ah, ahp->ah_gpio_select)) { in ar9300_enable_rf_kill() 233 ar9300_gpio_set_intr(ah, ahp->ah_gpio_select, !ahp->ah_gpio_bit); in ar9300_enable_rf_kill() 235 ar9300_gpio_set_intr(ah, ahp->ah_gpio_select, ahp->ah_gpio_bit); in ar9300_enable_rf_kill() 1222 (void) ahp; in ar9300_get_diag_state() 1266 bzero(&ahp->ext_ani_state, sizeof(ahp->ext_ani_state)); in ar9300_get_diag_state() 1609 if (ahp->ah_cycles == 0 || ahp->ah_cycles > cc) { in ar9300_get_mib_cycle_counts_pct() 1670 (ahp->ah_ctl_busy > ctl_busy) || (ahp->ah_ext_busy > ext_busy)) in ar9300_get_11n_ext_busy() 2134 OS_MEMZERO(ahp->ah_rifs_reg, sizeof(ahp->ah_rifs_reg)); in ar9300_set_rifs_delay() 2269 ahp->ah_hang[MAC_HANG_SIG1], ahp->ah_hang[MAC_HANG_SIG2]); in ar9300_detect_mac_hang() [all …]
|
| H A D | ar9300_ani.c | 66 #define BEACON_RSSI(ahp) \ argument 230 OS_MEMZERO(ahp->ah_ani, sizeof(ahp->ah_ani)); in ar9300_ani_attach() 305 ahp->ah_curani = ani_state; in ar9300_ani_init_defaults() 470 ahp->ah_ani_function); in ar9300_ani_control() 844 ani_state = ahp->ah_curani; in ar9300_ani_restart() 870 ani_state = ahp->ah_curani; in ar9300_ani_ofdm_err_trigger() 888 ani_state = ahp->ah_curani; in ar9300_ani_cck_err_trigger() 923 ahp->ah_curani = ani_state; in ar9300_ani_reset() 1118 ani_state = ahp->ah_curani; in ar9300_ani_get_listen_time() 1177 ani_state = ahp->ah_curani; in ar9300_ani_ar_poll() [all …]
|
| H A D | ar9300_xmit.c | 42 struct ath_hal_9300 *ahp = AH9300(ah); in ar9300_update_tx_trig_level() local 188 qi = &ahp->ah_txq[q]; in ar9300_setup_tx_queue() 259 qi = &ahp->ah_txq[q]; in ar9300_release_tx_queue() 298 qi = &ahp->ah_txq[q]; in ar9300_reset_tx_queue() 844 if (ahp->ah_abort_txdma_norx) { in ar9300_abort_tx_dma() 964 *txqs &= ahp->ah_intr_txqs; in ar9300_get_tx_intr_queue() 965 ahp->ah_intr_txqs &= ~(*txqs); in ar9300_get_tx_intr_queue() 974 ahp->ts_tail = 0; in ar9300_reset_tx_status_ring() 977 OS_MEMZERO((void *)ahp->ts_ring, ahp->ts_size * sizeof(struct ar9300_txs)); in ar9300_reset_tx_status_ring() 980 ahp->ts_paddr_start, ahp->ts_paddr_end, ahp->ts_ring, ahp->ts_size); in ar9300_reset_tx_status_ring() [all …]
|
| H A D | ar9300_interrupts.c | 88 struct ath_hal_9300 *ahp = AH9300(ah); in ar9300_get_pending_interrupts() local 224 if (ahp->ah_intr_mitigation_rx) { in ar9300_get_pending_interrupts() 230 if (ahp->ah_intr_mitigation_tx) { in ar9300_get_pending_interrupts() 375 ahp->ah_mci_int_rx_msg); in ar9300_get_pending_interrupts() 378 if (ahp->ah_mci_int_raw || ahp->ah_mci_int_rx_msg) { in ar9300_get_pending_interrupts() 472 if (!ahp->ah_msi_reg) { in ar9300_get_pending_interrupts() 501 struct ath_hal_9300 *ahp = AH9300(ah); local 502 u_int32_t omask = ahp->ah_mask_reg; 646 ahp->ah_mask2Reg |= mask2; 648 ahp->ah_mask_reg = ints; [all …]
|
| H A D | ar9300_timer.c | 63 struct ath_hal_9300 *ahp = AH9300(ah); in ar9300_alloc_generic_timer() local 77 mask = ahp->ah_avail_gen_timers >> i; in ar9300_alloc_generic_timer() 80 ahp->ah_avail_gen_timers &= ~(AR_GENTMR_BIT(i)); in ar9300_alloc_generic_timer() 83 ahp->ah_enable_tsf2 = AH_TRUE; in ar9300_alloc_generic_timer() 94 struct ath_hal_9300 *ahp = AH9300(ah); in ar9300_start_tsf2() local 96 if (ahp->ah_enable_tsf2) { in ar9300_start_tsf2() 106 struct ath_hal_9300 *ahp = AH9300(ah); in ar9300_free_generic_timer() local 109 ahp->ah_avail_gen_timers |= AR_GENTMR_BIT(index); in ar9300_free_generic_timer() 178 struct ath_hal_9300 *ahp = AH9300(ah); in ar9300_get_gen_timer_interrupts() local 179 *trigger = ahp->ah_intr_gen_timer_trigger; in ar9300_get_gen_timer_interrupts() [all …]
|
| H A D | ar9300_reset.c | 375 u_int8_t rx_chainmask = ahp->ah_rx_chainmask | (ahp->ah_rx_chainmask << 3); in ar9300_chain_noise_floor() 728 if (nf_no_lim > ahp->nfp->nominal + ahp->nf_cw_int_delta) { in ar9300_store_new_nf() 1050 ahp = AH9300(ah); in ar9300_spur_mitigate_ofdm() 3449 ahp->ah_cal_list = ahp->ah_cal_list_last = ahp->ah_cal_list_curr in ar9300_run_init_cals() 3467 ahp->ah_cal_list = ahp->ah_cal_list_last = ahp->ah_cal_list_curr = AH_NULL; in ar9300_run_init_cals() 3922 ahp->ah_cal_list = ahp->ah_cal_list_last = ahp->ah_cal_list_curr = AH_NULL; in ar9300_init_cal_internal() 3932 INSERT_CAL(ahp, &ahp->ah_adc_dc_cal_init_data); in ar9300_init_cal_internal() 3936 ahp->ah_cal_list_curr = ahp->ah_cal_list; in ar9300_init_cal_internal() 3956 INSERT_CAL(ahp, &ahp->ah_iq_cal_data); in ar9300_init_cal_internal() 3962 INSERT_CAL(ahp, &ahp->ah_temp_comp_cal_data); in ar9300_init_cal_internal() [all …]
|
| H A D | ar9300_eeprom.c | 150 mptr = &ahp->ah_eeprom; in ar9300_eeprom_template_install() 309 if (!ahp->ah_cal_mem) { in ar9300_flash_map() 340 ahp->try_dram = 1; in ar9300_eeprom_attach() 341 ahp->try_eeprom = 1; in ar9300_eeprom_attach() 342 ahp->try_otp = 1; in ar9300_eeprom_attach() 344 ahp->try_nand = 1; in ar9300_eeprom_attach() 346 ahp->try_flash = 1; in ar9300_eeprom_attach() 387 ahp->ah_emu_eeprom = 1; in ar9300_eeprom_attach() 450 ahp->try_otp = 0; in ar9300_eeprom_attach() 2572 ahp->ah_tx_chainmaskopt :ahp->ah_tx_chainmask; in ar9300_eeprom_set_power_per_rate_table() [all …]
|
| H A D | ar9300_radar.c | 232 struct ath_hal_private *ahp = AH_PRIVATE(ah); local 355 struct ath_hal_private *ahp = AH_PRIVATE(ah); 357 if (!ahp->ah_curchan) { 365 chan->channel = ahp->ah_curchan->channel; 462 struct ath_hal_9300 *ahp = AH9300(ah); local 469 qi = &ahp->ah_txq[q]; 535 struct ath_hal_private *ahp = AH_PRIVATE(ah); 542 ichan = ahp->ah_curchan; 547 for (i = 0; i < ahp->ah_nchan; i++) { 560 struct ath_hal_private *ahp = AH_PRIVATE(ah); local [all …]
|
| H A D | ar9300_power.c | 28 struct ath_hal_9300 *ahp = AH9300(ah); in ar9300_wowoffload_prep() local 30 ahp->ah_mcast_filter_l32_set = 0; in ar9300_wowoffload_prep() 31 ahp->ah_mcast_filter_u32_set = 0; in ar9300_wowoffload_prep() 36 struct ath_hal_9300 *ahp = AH9300(ah); in ar9300_wowoffload_post() local 39 if (ahp->ah_mcast_filter_l32_set != 0) { in ar9300_wowoffload_post() 41 val &= ~ahp->ah_mcast_filter_l32_set; in ar9300_wowoffload_post() 44 if (ahp->ah_mcast_filter_u32_set != 0) { in ar9300_wowoffload_post() 50 ahp->ah_mcast_filter_l32_set = 0; in ar9300_wowoffload_post() 51 ahp->ah_mcast_filter_u32_set = 0; in ar9300_wowoffload_post() 56 struct ath_hal_9300 *ahp = AH9300(ah); in ar9300_wowoffload_add_mcast_filter() local [all …]
|
| H A D | ar9300_spectral.c | 314 struct ath_hal_9300 *ahp = AH9300(ah); in ar9300_configure_spectral_scan() local 315 HAL_BOOL asleep = ahp->ah_chip_full_sleep; in ar9300_configure_spectral_scan() 415 struct ath_hal_9300 *ahp = AH9300(ah); in ar9300_get_spectral_params() local 416 HAL_BOOL asleep = ahp->ah_chip_full_sleep; in ar9300_get_spectral_params() 494 struct ath_hal_9300 *ahp = AH9300(ah); in ar9300_start_spectral_scan() local 495 HAL_BOOL asleep = ahp->ah_chip_full_sleep; in ar9300_start_spectral_scan() 530 struct ath_hal_9300 *ahp = AH9300(ah); in ar9300_stop_spectral_scan() local 531 HAL_BOOL asleep = ahp->ah_chip_full_sleep; in ar9300_stop_spectral_scan() 548 ahp->ah_radar1); in ar9300_stop_spectral_scan() 550 ahp->ah_dc_offset); in ar9300_stop_spectral_scan() [all …]
|
| H A D | eeprom.diff | 43 ahp->try_dram = 1; 44 ahp->try_eeprom = 1; 45 ahp->try_otp = 1; 62 ahp->ah_eeprom.mac_addr[4] = 0xD0; 63 ahp->ah_eeprom.mac_addr[5] = 0x00; 75 ahp->try_eeprom = 0; 140 struct ath_hal_9300 *ahp = AH9300(ah); 173 ahp->ah_cal_mem = OS_REMAP(ah, (uintptr_t)(AH_PRIVATE(ah)->ah_st), 188 + if (! ahp->ah_cal_mem) { 193 cal_ptr = &((char *)(ahp->ah_cal_mem))[AR9300_FLASH_CAL_START_OFFSET]; [all …]
|
| H A D | ar9300_keycache.c | 80 struct ath_hal_9300 *ahp = AH9300(ah); in ar9300_reset_key_cache_entry() local 88 ahp->ah_keytype[entry] = keyType[HAL_CIPHER_CLR]; in ar9300_reset_key_cache_entry() 123 if (--ahp->ah_rifs_sec_cnt == 0) { in ar9300_reset_key_cache_entry() 126 __func__, ahp->ah_rifs_sec_cnt); in ar9300_reset_key_cache_entry() 198 struct ath_hal_9300 *ahp = AH9300(ah); in ar9300_set_key_cache_entry() local 311 if (ahp->ah_misc_mode & AR_PCU_MIC_NEW_LOC_ENA) { in ar9300_set_key_cache_entry() 380 ahp->ah_keytype[entry] = keyType[k->kv_type]; in ar9300_set_key_cache_entry() 396 ahp->ah_rifs_sec_cnt++; in ar9300_set_key_cache_entry() 399 __func__, ahp->ah_rifs_sec_cnt); in ar9300_set_key_cache_entry() 454 struct ath_hal_9300 *ahp = AH9300(ah); in ar9300_check_key_cache_entry() local [all …]
|
| H A D | ar9300_paprd.c | 55 struct ath_hal_9300 *ahp = AH9300(ah); in ar9300_paprd_setup_single_table() local 107 ahp->paprd_training_power = in ar9300_paprd_setup_single_table() 110 ahp->paprd_training_power = in ar9300_paprd_setup_single_table() 114 ahp->paprd_training_power = 25; in ar9300_paprd_setup_single_table() 116 ahp->paprd_training_power = in ar9300_paprd_setup_single_table() 135 ahp->paprd_training_power = in ar9300_paprd_setup_single_table() 142 ahp->paprd_training_power = in ar9300_paprd_setup_single_table() 163 ahp->paprd_training_power = in ar9300_paprd_setup_single_table() 199 ahp->paprd_training_power = ahp->paprd_training_power + power_delta; in ar9300_paprd_setup_single_table() 449 struct ath_hal_9300 *ahp = AH9300(ah); in ar9300_enable_paprd() local [all …]
|
| H A D | ar9300_xmit_ds.c | 234 struct ath_hal_9300 *ahp = AH9300(ah); in ar9300_get_raw_tx_desc() local 237 ads = &ahp->ts_ring[ahp->ts_tail]; in ar9300_get_raw_tx_desc() 248 struct ath_hal_9300 *ahp = AH9300(ah); in ar9300_proc_tx_desc() local 253 ads = &ahp->ts_ring[ahp->ts_tail]; in ar9300_proc_tx_desc() 265 "CHH: tail=%d\n", ahp->ts_tail); in ar9300_proc_tx_desc() 281 ahp->ts_tail = (ahp->ts_tail + 1) & (ahp->ts_size-1); in ar9300_proc_tx_desc() 579 struct ath_hal_9300 *ahp = AH9300(ah); in ar9300_is_tx_done() local 582 ads = &ahp->ts_ring[ahp->ts_tail]; in ar9300_is_tx_done() 602 struct ath_hal_9300 *ahp = AH9300(ah); in ar9300_set_11n_tx_desc() local 607 tx_power += ahp->ah_tx_power_index_offset; in ar9300_set_11n_tx_desc()
|
| H A D | ar9300_aic.c | 284 struct ath_hal_9300 *ahp = AH9300(ah); in ar9300_aic_cal_post_process() local 453 ahp->ah_aic_sram[i] = (SM(aic_sram[i].sram.vga_dir_sign, in ar9300_aic_cal_post_process() 470 ahp->ah_aic_sram[i], in ar9300_aic_cal_post_process() 491 struct ath_hal_9300 *ahp = AH9300(ah); in ar9300_aic_calibration() local 664 ahp->ah_aic_enabled = ar9300_aic_cal_post_process(ah) ? AH_TRUE : AH_FALSE; in ar9300_aic_calibration() 667 ahp->ah_aic_enabled); in ar9300_aic_calibration() 675 struct ath_hal_9300 *ahp = AH9300(ah); in ar9300_aic_start_normal() local 688 OS_REG_WRITE(ah, AR_PHY_AIC_SRAM_DATA_B1, ahp->ah_aic_sram[i]); in ar9300_aic_start_normal() 718 ahp->ah_aic_enabled = AH_TRUE; in ar9300_aic_start_normal()
|
| H A D | ar9300_radio.c | 272 struct ath_hal_9300 *ahp = AH9300(ah); in ar9300_rf_attach() local 274 ahp->ah_rf_hal.set_channel = ar9300_set_channel; in ar9300_rf_attach() 275 ahp->ah_rf_hal.get_chip_power_lim = ar9300_get_chip_power_limits; in ar9300_rf_attach()
|
| H A D | ar9300_recv.c | 264 struct ath_hal_9300 *ahp = AH9300(ah); in ar9300_set_rx_sel_evm() local 265 HAL_BOOL old_value = ahp->ah_get_plcp_hdr == 0; in ar9300_set_rx_sel_evm() 276 ahp->ah_get_plcp_hdr = !sel_evm; in ar9300_set_rx_sel_evm()
|
| H A D | ar9300_freebsd.c | 707 struct ath_hal_9300 *ahp = AH9300(ah); in ar9300_ani_rxmonitor_freebsd() local 709 ahp->ah_stats.ast_nodestats.ns_avgbrssi = stats->ns_avgbrssi; in ar9300_ani_rxmonitor_freebsd() 732 struct ath_hal_9300 *ahp = AH9300(ah); in ar9300_freebsd_setup_tx_desc() local 737 keyType = ahp->ah_keytype[keyIx]; in ar9300_freebsd_setup_tx_desc() 854 struct ath_hal_9300 *ahp = AH9300(ah); in ar9300_freebsd_setup_11n_desc() 859 keyType = ahp->ah_keytype[keyIx]; in ar9300_freebsd_setup_11n_desc()
|
| H A D | ar9300_gpio.c | 412 struct ath_hal_9300 *ahp = AH9300(ah); in ar9300_gpio_get_intr() local 414 mask = ahp->ah_gpio_cause; in ar9300_gpio_get_intr()
|
| H A D | ar9300.h | 1579 extern u_int32_t ar9300_eeprom_get(struct ath_hal_9300 *ahp, EEPROM_PARAM param); 1600 extern u_int8_t ar9300_eeprom_get_num_ant_config(struct ath_hal_9300 *ahp, HAL_FREQ_BAND freq_band… 1601 extern HAL_STATUS ar9300_eeprom_get_ant_cfg(struct ath_hal_9300 *ahp, const struct ieee80211_chann… 1603 extern u_int8_t* ar9300_eeprom_get_cust_data(struct ath_hal_9300 *ahp);
|