Lines Matching refs:sav

2186 bwn_lo_save(struct bwn_mac *mac, struct bwn_lo_g_value *sav)  in bwn_lo_save()  argument
2196 sav->phy_lomask = BWN_PHY_READ(mac, BWN_PHY_LO_MASK); in bwn_lo_save()
2197 sav->phy_extg = BWN_PHY_READ(mac, BWN_PHY_EXTG(0x01)); in bwn_lo_save()
2198 sav->phy_dacctl_hwpctl = BWN_PHY_READ(mac, BWN_PHY_DACCTL); in bwn_lo_save()
2199 sav->phy_cck4 = BWN_PHY_READ(mac, BWN_PHY_CCK(0x14)); in bwn_lo_save()
2200 sav->phy_hpwr_tssictl = BWN_PHY_READ(mac, BWN_PHY_HPWR_TSSICTL); in bwn_lo_save()
2213 sav->phy_analogover = BWN_PHY_READ(mac, BWN_PHY_ANALOGOVER); in bwn_lo_save()
2214 sav->phy_analogoverval = in bwn_lo_save()
2216 sav->phy_rfover = BWN_PHY_READ(mac, BWN_PHY_RFOVER); in bwn_lo_save()
2217 sav->phy_rfoverval = BWN_PHY_READ(mac, BWN_PHY_RFOVERVAL); in bwn_lo_save()
2218 sav->phy_classctl = BWN_PHY_READ(mac, BWN_PHY_CLASSCTL); in bwn_lo_save()
2219 sav->phy_cck3 = BWN_PHY_READ(mac, BWN_PHY_CCK(0x3e)); in bwn_lo_save()
2220 sav->phy_crs0 = BWN_PHY_READ(mac, BWN_PHY_CRS0); in bwn_lo_save()
2239 sav->reg0 = BWN_READ_2(mac, 0x3f4); in bwn_lo_save()
2240 sav->reg1 = BWN_READ_2(mac, 0x3e2); in bwn_lo_save()
2241 sav->rf0 = BWN_RF_READ(mac, 0x43); in bwn_lo_save()
2242 sav->rf1 = BWN_RF_READ(mac, 0x7a); in bwn_lo_save()
2243 sav->phy_pgactl = BWN_PHY_READ(mac, BWN_PHY_PGACTL); in bwn_lo_save()
2244 sav->phy_cck2 = BWN_PHY_READ(mac, BWN_PHY_CCK(0x2a)); in bwn_lo_save()
2245 sav->phy_syncctl = BWN_PHY_READ(mac, BWN_PHY_SYNCCTL); in bwn_lo_save()
2246 sav->phy_dacctl = BWN_PHY_READ(mac, BWN_PHY_DACCTL); in bwn_lo_save()
2249 sav->rf2 = BWN_RF_READ(mac, 0x52); in bwn_lo_save()
2250 sav->rf2 &= 0x00f0; in bwn_lo_save()
2253 sav->phy_cck0 = BWN_PHY_READ(mac, BWN_PHY_CCK(0x30)); in bwn_lo_save()
2254 sav->phy_cck1 = BWN_PHY_READ(mac, BWN_PHY_CCK(0x06)); in bwn_lo_save()
2268 tmp = sav->phy_syncctl; in bwn_lo_save()
2270 tmp = sav->rf1; in bwn_lo_save()
2303 bwn_lo_restore(struct bwn_mac *mac, struct bwn_lo_g_value *sav) in bwn_lo_restore() argument
2331 BWN_WRITE_2(mac, 0x3f4, sav->reg0); in bwn_lo_restore()
2332 BWN_PHY_WRITE(mac, BWN_PHY_PGACTL, sav->phy_pgactl); in bwn_lo_restore()
2333 BWN_PHY_WRITE(mac, BWN_PHY_CCK(0x2a), sav->phy_cck2); in bwn_lo_restore()
2334 BWN_PHY_WRITE(mac, BWN_PHY_SYNCCTL, sav->phy_syncctl); in bwn_lo_restore()
2335 BWN_PHY_WRITE(mac, BWN_PHY_DACCTL, sav->phy_dacctl); in bwn_lo_restore()
2336 BWN_RF_WRITE(mac, 0x43, sav->rf0); in bwn_lo_restore()
2337 BWN_RF_WRITE(mac, 0x7a, sav->rf1); in bwn_lo_restore()
2339 tmp = sav->rf2; in bwn_lo_restore()
2342 BWN_WRITE_2(mac, 0x3e2, sav->reg1); in bwn_lo_restore()
2345 BWN_PHY_WRITE(mac, BWN_PHY_CCK(0x30), sav->phy_cck0); in bwn_lo_restore()
2346 BWN_PHY_WRITE(mac, BWN_PHY_CCK(0x06), sav->phy_cck1); in bwn_lo_restore()
2349 BWN_PHY_WRITE(mac, BWN_PHY_ANALOGOVER, sav->phy_analogover); in bwn_lo_restore()
2351 sav->phy_analogoverval); in bwn_lo_restore()
2352 BWN_PHY_WRITE(mac, BWN_PHY_CLASSCTL, sav->phy_classctl); in bwn_lo_restore()
2353 BWN_PHY_WRITE(mac, BWN_PHY_RFOVER, sav->phy_rfover); in bwn_lo_restore()
2354 BWN_PHY_WRITE(mac, BWN_PHY_RFOVERVAL, sav->phy_rfoverval); in bwn_lo_restore()
2355 BWN_PHY_WRITE(mac, BWN_PHY_CCK(0x3e), sav->phy_cck3); in bwn_lo_restore()
2356 BWN_PHY_WRITE(mac, BWN_PHY_CRS0, sav->phy_crs0); in bwn_lo_restore()
2359 tmp = (sav->phy_lomask & 0xbfff); in bwn_lo_restore()
2361 BWN_PHY_WRITE(mac, BWN_PHY_EXTG(0x01), sav->phy_extg); in bwn_lo_restore()
2362 BWN_PHY_WRITE(mac, BWN_PHY_DACCTL, sav->phy_dacctl_hwpctl); in bwn_lo_restore()
2363 BWN_PHY_WRITE(mac, BWN_PHY_CCK(0x14), sav->phy_cck4); in bwn_lo_restore()
2364 BWN_PHY_WRITE(mac, BWN_PHY_HPWR_TSSICTL, sav->phy_hpwr_tssictl); in bwn_lo_restore()
2366 bwn_phy_g_switch_chan(mac, sav->old_channel, 1); in bwn_lo_restore()