Lines Matching refs:sc

92 ath_lna_div_attach(struct ath_softc *sc)
98 if (! ath_hal_hasdivantcomb(sc->sc_ah))
104 device_printf(sc->sc_dev, "%s: failed to allocate\n",
112 ath_hal_div_comb_conf_get(sc->sc_ah, &div_ant_conf);
123 sc->sc_lna_div = ss;
124 sc->sc_dolnadiv = 1;
133 ath_lna_div_detach(struct ath_softc *sc)
135 if (sc->sc_lna_div != NULL) {
136 free(sc->sc_lna_div, M_TEMP);
137 sc->sc_lna_div = NULL;
139 sc->sc_dolnadiv = 0;
147 ath_lna_div_enable(struct ath_softc *sc, const struct ieee80211_channel *chan)
161 ath_lna_div_ioctl(struct ath_softc *sc, struct ath_diag *ad)
714 ath_lna_rx_comb_scan(struct ath_softc *sc, struct ath_rx_status *rs,
718 struct if_ath_ant_comb_state *antcomb = sc->sc_lna_div;
731 DPRINTF(sc, ATH_DEBUG_DIVERSITY,
748 if (! sc->sc_dolnadiv)
756 if (sc->sc_txantenna != HAL_ANT_VARIABLE)
786 DPRINTF(sc, ATH_DEBUG_DIVERSITY,
809 ath_hal_div_comb_conf_get(sc->sc_ah, &div_ant_conf);
984 ath_hal_div_comb_conf_set(sc->sc_ah, &div_ant_conf);
986 DPRINTF(sc, ATH_DEBUG_DIVERSITY, "%s: total_pkt_count=%d\n",
989 DPRINTF(sc, ATH_DEBUG_DIVERSITY, "%s: main_total_rssi=%d\n",
991 DPRINTF(sc, ATH_DEBUG_DIVERSITY, "%s: alt_total_rssi=%d\n",
994 DPRINTF(sc, ATH_DEBUG_DIVERSITY, "%s: main_rssi_avg=%d\n",
996 DPRINTF(sc, ATH_DEBUG_DIVERSITY, "%s: alt_alt_rssi_avg=%d\n",
999 DPRINTF(sc, ATH_DEBUG_DIVERSITY, "%s: main_recv_cnt=%d\n",
1001 DPRINTF(sc, ATH_DEBUG_DIVERSITY, "%s: alt_recv_cnt=%d\n",
1005 DPRINTF(sc, ATH_DEBUG_DIVERSITY, "%s: lna_conf: %x -> %x\n",
1008 DPRINTF(sc, ATH_DEBUG_DIVERSITY, "%s: main_lna_conf: %x -> %x\n",
1011 DPRINTF(sc, ATH_DEBUG_DIVERSITY, "%s: fast_div_bias: %x -> %x\n",