Lines Matching defs:mh
288 struct mwl_hal *mh;
299 mh = mwl_hal_attach(sc->sc_dev, devid,
301 if (mh == NULL) {
306 sc->sc_mh = mh;
312 if (mwl_hal_fwload(mh, NULL) != 0) {
317 if (mwl_hal_gethwspecs(mh, &sc->sc_hwspecs) != 0) {
514 mwl_hal_detach(mh);
592 struct mwl_hal *mh = sc->sc_mh;
604 hvap = mwl_hal_newvap(mh, MWL_HAL_AP, mac);
614 hvap = mwl_hal_newvap(mh, MWL_HAL_STA, mac);
718 struct mwl_hal *mh = sc->sc_mh;
725 mwl_hal_intrset(mh, 0); /* disable interrupts */
751 mwl_hal_intrset(mh, sc->sc_imask);
794 struct mwl_hal *mh = sc->sc_mh;
808 mwl_hal_getisr(mh, &status); /* NB: clears ISR too */
821 mwl_hal_cmddone(mh);
891 struct mwl_hal *mh = sc->sc_mh;
897 if (mwl_hal_getwatchdogbitmap(mh, &bitmap) != 0) {
908 sp = mwl_hal_bastream_lookup(mh, bitmap);
921 sp = mwl_hal_bastream_lookup(mh, bitmap);
1109 struct mwl_hal *mh = sc->sc_mh;
1111 mwl_hal_setantenna(mh, WL_ANTENNATYPE_RX, sc->sc_rxantenna);
1112 mwl_hal_setantenna(mh, WL_ANTENNATYPE_TX, sc->sc_txantenna);
1113 mwl_hal_setradio(mh, 1, WL_AUTO_PREAMBLE);
1117 mwl_hal_setrateadaptmode(mh, 0);
1118 mwl_hal_setoptimizationlevel(mh,
1121 mwl_hal_setregioncode(mh, mwl_map2regioncode(&ic->ic_regdomain));
1123 mwl_hal_setaggampduratemode(mh, 1, 80); /* XXX */
1124 mwl_hal_setcfend(mh, 0); /* XXX */
1132 struct mwl_hal *mh = sc->sc_mh;
1180 mwl_hal_intrset(mh, sc->sc_imask);
1245 struct mwl_hal *mh = sc->sc_mh;
1249 mwl_hal_intrset(mh, 0); /* disable interrupts */
1251 mwl_hal_intrset(mh, sc->sc_imask);
1748 struct mwl_hal *mh = sc->sc_mh;
1750 mwl_hal_setpromisc(mh, ic->ic_promisc > 0);
1792 struct mwl_hal *mh = sc->sc_mh;
1819 mwl_hal_setgprot(mh, prot);
2882 struct mwl_hal *mh = sc->sc_mh;
2894 if (mwl_hal_setedcaparams(mh, txq->qnum, cwmin, cwmax, aifs, txoplim)) {
3784 struct mwl_hal *mh = sc->sc_mh;
3798 mwl_hal_intrset(mh, 0); /* disable interrupts */
3802 mwl_hal_setchannel(mh, &hchan);
3813 mwl_hal_settxpower(mh, &hchan, maxtxpow / 2);
3833 mwl_hal_intrset(mh, sc->sc_imask);
4075 struct mwl_hal *mh = sc->sc_mh;
4089 mwl_hal_setradardetection(mh, DR_CHK_CHANNEL_AVAILABLE_STOP);
4092 mwl_hal_setradardetection(mh, DR_DFS_DISABLE);
4123 mwl_hal_setradardetection(mh, DR_CHK_CHANNEL_AVAILABLE_START);
4155 mwl_hal_setradardetection(mh,
4184 mwl_hal_setdwds(mh, 1);
4202 mwl_hal_setcsmode(mh, CSMODE_AGGRESSIVE);
4204 mwl_hal_setcsmode(mh, CSMODE_AUTO_ENA);
4215 mwl_hal_setdwds(mh, 0);
4313 struct mwl_hal *mh = sc->sc_mh;
4322 mwl_hal_getchannelinfo(mh, MWL_FREQ_BAND_2DOT4GHZ,
4326 mwl_hal_getchannelinfo(mh, MWL_FREQ_BAND_5GHZ,
4587 struct mwl_hal *mh = sc->sc_mh;
4622 if (mwl_hal_getdiagstate(mh, id, indata, insize, &outdata, &outsize)) {
4642 struct mwl_hal *mh = sc->sc_mh;
4647 if (md->md_id == 0 && mwl_hal_fwload(mh, NULL) != 0) {
4651 if (mwl_hal_gethwspecs(mh, &sc->sc_hwspecs) != 0) {