Lines Matching defs:sc

88 ath_btcoex_cfg_wb195(struct ath_softc *sc)
92 struct ath_hal *ah = sc->sc_ah;
100 device_printf(sc->sc_dev, "Enabling WB195 BTCOEX\n");
144 ath_btcoex_cfg_wb225(struct ath_softc *sc)
148 struct ath_hal *ah = sc->sc_ah;
156 device_printf(sc->sc_dev, "Enabling WB225 BTCOEX\n");
195 ath_btcoex_cfg_mci(struct ath_softc *sc, uint32_t mci_cfg, int do_btdiv)
199 struct ath_hal *ah = sc->sc_ah;
207 sc->sc_ah->ah_config.ath_hal_mci_config = mci_cfg;
209 if (ath_btcoex_mci_attach(sc) != 0) {
210 device_printf(sc->sc_dev, "Failed to setup btcoex\n");
250 ath_hal_btcoex_enable(sc->sc_ah);
270 ath_btcoex_cfg_wb222(struct ath_softc *sc)
273 device_printf(sc->sc_dev, "Enabling WB222 BTCOEX\n");
275 return (ath_btcoex_cfg_mci(sc, 0x2201, 1));
284 ath_btcoex_cfg_wb335b(struct ath_softc *sc)
297 if (sc->sc_pci_devinfo & ATH_PCI_AR9565_1ANT) {
301 } else if (sc->sc_pci_devinfo & ATH_PCI_AR9565_2ANT) {
307 if (sc->sc_pci_devinfo & ATH_PCI_BT_ANT_DIV) {
311 device_printf(sc->sc_dev, "Enabling WB335 BTCOEX\n");
313 return (ath_btcoex_cfg_mci(sc, flags, do_btdiv));
327 ath_btcoex_aspm_wb195(struct ath_softc *sc)
343 ath_btcoex_attach(struct ath_softc *sc)
346 struct ath_hal *ah = sc->sc_ah;
359 ret = resource_string_value(device_get_name(sc->sc_dev),
360 device_get_unit(sc->sc_dev),
369 ret = ath_btcoex_cfg_wb195(sc);
371 ret = ath_btcoex_cfg_wb222(sc);
373 ret = ath_btcoex_cfg_wb225(sc);
375 ret = ath_btcoex_cfg_wb335b(sc);
393 ath_btcoex_detach(struct ath_softc *sc)
395 if (sc->sc_btcoex_mci) {
396 ath_btcoex_mci_detach(sc);
412 ath_btcoex_enable(struct ath_softc *sc, const struct ieee80211_channel *chan)
414 if (sc->sc_btcoex_mci) {
415 ath_btcoex_mci_enable(sc, chan);
429 ath_btcoex_ioctl(struct ath_softc *sc, struct ath_diag *ad)