Lines Matching refs:dev

43 static void write_sa2400(struct ieee80211_hw *dev, u8 addr, u32 data)  in write_sa2400()  argument
45 struct rtl8180_priv *priv = dev->priv; in write_sa2400()
60 static void sa2400_write_phy_antenna(struct ieee80211_hw *dev, short chan) in sa2400_write_phy_antenna() argument
62 struct rtl8180_priv *priv = dev->priv; in sa2400_write_phy_antenna()
71 rtl8180_write_phy(dev, 0x10, ant); in sa2400_write_phy_antenna()
100 static void sa2400_rf_set_channel(struct ieee80211_hw *dev, in sa2400_rf_set_channel() argument
103 struct rtl8180_priv *priv = dev->priv; in sa2400_rf_set_channel()
109 write_sa2400(dev, 7, txpw); in sa2400_rf_set_channel()
111 sa2400_write_phy_antenna(dev, channel); in sa2400_rf_set_channel()
113 write_sa2400(dev, 0, chan); in sa2400_rf_set_channel()
114 write_sa2400(dev, 1, 0xbb50); in sa2400_rf_set_channel()
115 write_sa2400(dev, 2, 0x80); in sa2400_rf_set_channel()
116 write_sa2400(dev, 3, 0); in sa2400_rf_set_channel()
119 static void sa2400_rf_stop(struct ieee80211_hw *dev) in sa2400_rf_stop() argument
121 write_sa2400(dev, 4, 0); in sa2400_rf_stop()
124 static void sa2400_rf_init(struct ieee80211_hw *dev) in sa2400_rf_init() argument
126 struct rtl8180_priv *priv = dev->priv; in sa2400_rf_init()
147 write_sa2400(dev, 0, sa2400_chan[0]); in sa2400_rf_init()
148 write_sa2400(dev, 1, 0xbb50); in sa2400_rf_init()
149 write_sa2400(dev, 2, 0x80); in sa2400_rf_init()
150 write_sa2400(dev, 3, 0); in sa2400_rf_init()
151 write_sa2400(dev, 4, 0x19340 | firdac); in sa2400_rf_init()
152 write_sa2400(dev, 5, 0x1dfb | (SA2400_MAX_SENS - 54) << 15); in sa2400_rf_init()
153 write_sa2400(dev, 4, 0x19348 | firdac); /* calibrate VCO */ in sa2400_rf_init()
156 write_sa2400(dev, 4, 0x1938c); /*???*/ in sa2400_rf_init()
158 write_sa2400(dev, 4, 0x19340 | firdac); in sa2400_rf_init()
160 write_sa2400(dev, 0, sa2400_chan[0]); in sa2400_rf_init()
161 write_sa2400(dev, 1, 0xbb50); in sa2400_rf_init()
162 write_sa2400(dev, 2, 0x80); in sa2400_rf_init()
163 write_sa2400(dev, 3, 0); in sa2400_rf_init()
164 write_sa2400(dev, 4, 0x19344 | firdac); /* calibrate filter */ in sa2400_rf_init()
167 write_sa2400(dev, 6, 0x13ff | (1 << 23)); /* MANRX */ in sa2400_rf_init()
168 write_sa2400(dev, 8, 0); /* VCO */ in sa2400_rf_init()
178 write_sa2400(dev, 4, 0x19341); /* calibrates DC */ in sa2400_rf_init()
182 write_sa2400(dev, 4, 0x19345); in sa2400_rf_init()
193 write_sa2400(dev, 4, 0x19341 | firdac); /* RTX MODE */ in sa2400_rf_init()
196 rtl8180_write_phy(dev, 0, 0x98); in sa2400_rf_init()
197 rtl8180_write_phy(dev, 3, 0x38); in sa2400_rf_init()
198 rtl8180_write_phy(dev, 4, 0xe0); in sa2400_rf_init()
199 rtl8180_write_phy(dev, 5, 0x90); in sa2400_rf_init()
200 rtl8180_write_phy(dev, 6, 0x1a); in sa2400_rf_init()
201 rtl8180_write_phy(dev, 7, 0x64); in sa2400_rf_init()
203 sa2400_write_phy_antenna(dev, 1); in sa2400_rf_init()
205 rtl8180_write_phy(dev, 0x11, 0x80); in sa2400_rf_init()
209 rtl8180_write_phy(dev, 0x12, 0xc7); /* enable ant diversity */ in sa2400_rf_init()
211 rtl8180_write_phy(dev, 0x12, 0x47); /* disable ant diversity */ in sa2400_rf_init()
213 rtl8180_write_phy(dev, 0x13, 0x90 | priv->csthreshold); in sa2400_rf_init()
215 rtl8180_write_phy(dev, 0x19, 0x0); in sa2400_rf_init()
216 rtl8180_write_phy(dev, 0x1a, 0xa0); in sa2400_rf_init()