Lines Matching defs:rfprog
184 static const struct rfprog {
2219 const struct rfprog *rfprog;
2229 rfprog = (sc->rfprog == 0) ? rt2661_rf5225_1 : rt2661_rf5225_2;
2232 for (i = 0; rfprog[i].chan != chan; i++);
2254 rt2661_rf_write(sc, RAL_RF1, rfprog[i].r1);
2255 rt2661_rf_write(sc, RAL_RF2, rfprog[i].r2);
2256 rt2661_rf_write(sc, RAL_RF3, rfprog[i].r3 | power << 7);
2257 rt2661_rf_write(sc, RAL_RF4, rfprog[i].r4 | sc->rffreq << 10);
2261 rt2661_rf_write(sc, RAL_RF1, rfprog[i].r1);
2262 rt2661_rf_write(sc, RAL_RF2, rfprog[i].r2);
2263 rt2661_rf_write(sc, RAL_RF3, rfprog[i].r3 | power << 7 | 1);
2264 rt2661_rf_write(sc, RAL_RF4, rfprog[i].r4 | sc->rffreq << 10);
2268 rt2661_rf_write(sc, RAL_RF1, rfprog[i].r1);
2269 rt2661_rf_write(sc, RAL_RF2, rfprog[i].r2);
2270 rt2661_rf_write(sc, RAL_RF3, rfprog[i].r3 | power << 7);
2271 rt2661_rf_write(sc, RAL_RF4, rfprog[i].r4 | sc->rffreq << 10);
2481 sc->rfprog = (val >> 8) & 0x3;
2485 DPRINTF(("RF prog=%d\nRF freq=%d\n", sc->rfprog, sc->rffreq));