Lines Matching +full:0 +full:x31
28 usb_control_msg(priv->udev, usb_rcvctrlpipe(priv->udev, 0), in rtl818x_ioread8_idx()
30 (unsigned long)addr, idx & 0x03, in rtl818x_ioread8_idx()
45 usb_control_msg(priv->udev, usb_rcvctrlpipe(priv->udev, 0), in rtl818x_ioread16_idx()
47 (unsigned long)addr, idx & 0x03, in rtl818x_ioread16_idx()
62 usb_control_msg(priv->udev, usb_rcvctrlpipe(priv->udev, 0), in rtl818x_ioread32_idx()
64 (unsigned long)addr, idx & 0x03, in rtl818x_ioread32_idx()
79 usb_control_msg(priv->udev, usb_sndctrlpipe(priv->udev, 0), in rtl818x_iowrite8_idx()
81 (unsigned long)addr, idx & 0x03, in rtl818x_iowrite8_idx()
93 usb_control_msg(priv->udev, usb_sndctrlpipe(priv->udev, 0), in rtl818x_iowrite16_idx()
95 (unsigned long)addr, idx & 0x03, in rtl818x_iowrite16_idx()
107 usb_control_msg(priv->udev, usb_sndctrlpipe(priv->udev, 0), in rtl818x_iowrite32_idx()
109 (unsigned long)addr, idx & 0x03, in rtl818x_iowrite32_idx()
122 bangdata = (data << 4) | (addr & 0xf); in rtl8225_write_bitbang()
124 reg80 = rtl818x_ioread16(priv, &priv->map->RFPinsOutput) & 0xfff3; in rtl8225_write_bitbang()
127 rtl818x_iowrite16(priv, &priv->map->RFPinsEnable, reg82 | 0x7); in rtl8225_write_bitbang()
130 rtl818x_iowrite16(priv, &priv->map->RFPinsSelect, reg84 | 0x7); in rtl8225_write_bitbang()
138 for (i = 15; i >= 0; i--) { in rtl8225_write_bitbang()
167 reg80 &= ~(0x3 << 2); in rtl8225_write_8051()
168 reg84 &= ~0xF; in rtl8225_write_8051()
170 rtl818x_iowrite16(priv, &priv->map->RFPinsEnable, reg82 | 0x0007); in rtl8225_write_8051()
171 rtl818x_iowrite16(priv, &priv->map->RFPinsSelect, reg84 | 0x0007); in rtl8225_write_8051()
183 usb_control_msg(priv->udev, usb_sndctrlpipe(priv->udev, 0), in rtl8225_write_8051()
185 addr, 0x8225, &priv->io_dmabuf->bits16, sizeof(data), in rtl8225_write_8051()
217 reg80 &= ~0xF; in rtl8225_read()
219 rtl818x_iowrite16(priv, &priv->map->RFPinsEnable, reg82 | 0x000F); in rtl8225_read()
220 rtl818x_iowrite16(priv, &priv->map->RFPinsSelect, reg84 | 0x000F); in rtl8225_read()
227 for (i = 4; i >= 0; i--) { in rtl8225_read()
258 out = 0; in rtl8225_read()
259 for (i = 11; i >= 0; i--) { in rtl8225_read()
287 rtl818x_iowrite16(priv, &priv->map->RFPinsOutput, 0x03A0); in rtl8225_read()
293 0x0400, 0x0401, 0x0402, 0x0403, 0x0404, 0x0405, 0x0408, 0x0409,
294 0x040a, 0x040b, 0x0502, 0x0503, 0x0504, 0x0505, 0x0540, 0x0541,
295 0x0542, 0x0543, 0x0544, 0x0545, 0x0580, 0x0581, 0x0582, 0x0583,
296 0x0584, 0x0585, 0x0588, 0x0589, 0x058a, 0x058b, 0x0643, 0x0644,
297 0x0645, 0x0680, 0x0681, 0x0682, 0x0683, 0x0684, 0x0685, 0x0688,
298 0x0689, 0x068a, 0x068b, 0x068c, 0x0742, 0x0743, 0x0744, 0x0745,
299 0x0780, 0x0781, 0x0782, 0x0783, 0x0784, 0x0785, 0x0788, 0x0789,
300 0x078a, 0x078b, 0x078c, 0x078d, 0x0790, 0x0791, 0x0792, 0x0793,
301 0x0794, 0x0795, 0x0798, 0x0799, 0x079a, 0x079b, 0x079c, 0x079d,
302 0x07a0, 0x07a1, 0x07a2, 0x07a3, 0x07a4, 0x07a5, 0x07a8, 0x07a9,
303 0x07aa, 0x07ab, 0x07ac, 0x07ad, 0x07b0, 0x07b1, 0x07b2, 0x07b3,
304 0x07b4, 0x07b5, 0x07b8, 0x07b9, 0x07ba, 0x07bb, 0x07bb
308 0x9e, 0x9e, 0x9e, 0x9e, 0x9e, 0x9e, 0x9e, 0x9e,
309 0x9d, 0x9c, 0x9b, 0x9a, 0x99, 0x98, 0x97, 0x96,
310 0x95, 0x94, 0x93, 0x92, 0x91, 0x90, 0x8f, 0x8e,
311 0x8d, 0x8c, 0x8b, 0x8a, 0x89, 0x88, 0x87, 0x86,
312 0x85, 0x84, 0x83, 0x82, 0x81, 0x80, 0x3f, 0x3e,
313 0x3d, 0x3c, 0x3b, 0x3a, 0x39, 0x38, 0x37, 0x36,
314 0x35, 0x34, 0x33, 0x32, 0x31, 0x30, 0x2f, 0x2e,
315 0x2d, 0x2c, 0x2b, 0x2a, 0x29, 0x28, 0x27, 0x26,
316 0x25, 0x24, 0x23, 0x22, 0x21, 0x20, 0x1f, 0x1e,
317 0x1d, 0x1c, 0x1b, 0x1a, 0x19, 0x18, 0x17, 0x16,
318 0x15, 0x14, 0x13, 0x12, 0x11, 0x10, 0x0f, 0x0e,
319 0x0d, 0x0c, 0x0b, 0x0a, 0x09, 0x08, 0x07, 0x06,
320 0x05, 0x04, 0x03, 0x02, 0x01, 0x01, 0x01, 0x01,
321 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
322 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
323 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01
327 0x23, 0x88, 0x7c, 0xa5, /* -82dBm */
328 0x23, 0x88, 0x7c, 0xb5, /* -82dBm */
329 0x23, 0x88, 0x7c, 0xc5, /* -82dBm */
330 0x33, 0x80, 0x79, 0xc5, /* -78dBm */
331 0x43, 0x78, 0x76, 0xc5, /* -74dBm */
332 0x53, 0x60, 0x73, 0xc5, /* -70dBm */
333 0x63, 0x58, 0x70, 0xc5, /* -66dBm */
337 0x8d, 0x8d, 0x8d, 0x8d, 0x9d, 0xad, 0xbd
341 0x02, 0x06, 0x0e, 0x1e, 0x3e, 0x7e
345 0x18, 0x17, 0x15, 0x11, 0x0c, 0x08, 0x04, 0x02,
346 0x1b, 0x1a, 0x17, 0x13, 0x0e, 0x09, 0x04, 0x02,
347 0x1f, 0x1e, 0x1a, 0x15, 0x10, 0x0a, 0x05, 0x02,
348 0x22, 0x21, 0x1d, 0x18, 0x11, 0x0b, 0x06, 0x02,
349 0x26, 0x25, 0x21, 0x1b, 0x14, 0x0d, 0x06, 0x03,
350 0x2b, 0x2a, 0x25, 0x1e, 0x16, 0x0e, 0x07, 0x03
354 0x18, 0x17, 0x15, 0x0c, 0x00, 0x00, 0x00, 0x00,
355 0x1b, 0x1a, 0x17, 0x0e, 0x00, 0x00, 0x00, 0x00,
356 0x1f, 0x1e, 0x1a, 0x0f, 0x00, 0x00, 0x00, 0x00,
357 0x22, 0x21, 0x1d, 0x11, 0x00, 0x00, 0x00, 0x00,
358 0x26, 0x25, 0x21, 0x13, 0x00, 0x00, 0x00, 0x00,
359 0x2b, 0x2a, 0x25, 0x15, 0x00, 0x00, 0x00, 0x00
363 0x80, 0x90, 0xa2, 0xb5, 0xcb, 0xe4
367 0x085c, 0x08dc, 0x095c, 0x09dc, 0x0a5c, 0x0adc, 0x0b5c,
368 0x0bdc, 0x0c5c, 0x0cdc, 0x0d5c, 0x0ddc, 0x0e5c, 0x0f72
379 cck_power = priv->channels[channel - 1].hw_value & 0xF; in rtl8225_rf_set_tx_power()
396 for (i = 0; i < 8; i++) in rtl8225_rf_set_tx_power()
397 rtl8225_write_phy_cck(dev, 0x44 + i, *tmp++); in rtl8225_rf_set_tx_power()
412 rtl8225_write_phy_ofdm(dev, 2, 0x42); in rtl8225_rf_set_tx_power()
413 rtl8225_write_phy_ofdm(dev, 6, 0x00); in rtl8225_rf_set_tx_power()
414 rtl8225_write_phy_ofdm(dev, 8, 0x00); in rtl8225_rf_set_tx_power()
432 rtl8225_write(dev, 0x0, 0x067); in rtl8225_rf_init()
433 rtl8225_write(dev, 0x1, 0xFE0); in rtl8225_rf_init()
434 rtl8225_write(dev, 0x2, 0x44D); in rtl8225_rf_init()
435 rtl8225_write(dev, 0x3, 0x441); in rtl8225_rf_init()
436 rtl8225_write(dev, 0x4, 0x486); in rtl8225_rf_init()
437 rtl8225_write(dev, 0x5, 0xBC0); in rtl8225_rf_init()
438 rtl8225_write(dev, 0x6, 0xAE6); in rtl8225_rf_init()
439 rtl8225_write(dev, 0x7, 0x82A); in rtl8225_rf_init()
440 rtl8225_write(dev, 0x8, 0x01F); in rtl8225_rf_init()
441 rtl8225_write(dev, 0x9, 0x334); in rtl8225_rf_init()
442 rtl8225_write(dev, 0xA, 0xFD4); in rtl8225_rf_init()
443 rtl8225_write(dev, 0xB, 0x391); in rtl8225_rf_init()
444 rtl8225_write(dev, 0xC, 0x050); in rtl8225_rf_init()
445 rtl8225_write(dev, 0xD, 0x6DB); in rtl8225_rf_init()
446 rtl8225_write(dev, 0xE, 0x029); in rtl8225_rf_init()
447 rtl8225_write(dev, 0xF, 0x914); msleep(100); in rtl8225_rf_init()
449 rtl8225_write(dev, 0x2, 0xC4D); msleep(200); in rtl8225_rf_init()
450 rtl8225_write(dev, 0x2, 0x44D); msleep(200); in rtl8225_rf_init()
453 rtl8225_write(dev, 0x02, 0x0c4d); in rtl8225_rf_init()
455 rtl8225_write(dev, 0x02, 0x044d); in rtl8225_rf_init()
462 rtl8225_write(dev, 0x0, 0x127); in rtl8225_rf_init()
464 for (i = 0; i < ARRAY_SIZE(rtl8225bcd_rxgain); i++) { in rtl8225_rf_init()
465 rtl8225_write(dev, 0x1, i + 1); in rtl8225_rf_init()
466 rtl8225_write(dev, 0x2, rtl8225bcd_rxgain[i]); in rtl8225_rf_init()
469 rtl8225_write(dev, 0x0, 0x027); in rtl8225_rf_init()
470 rtl8225_write(dev, 0x0, 0x22F); in rtl8225_rf_init()
472 for (i = 0; i < ARRAY_SIZE(rtl8225_agc); i++) { in rtl8225_rf_init()
473 rtl8225_write_phy_ofdm(dev, 0xB, rtl8225_agc[i]); in rtl8225_rf_init()
474 rtl8225_write_phy_ofdm(dev, 0xA, 0x80 + i); in rtl8225_rf_init()
479 rtl8225_write_phy_ofdm(dev, 0x00, 0x01); in rtl8225_rf_init()
480 rtl8225_write_phy_ofdm(dev, 0x01, 0x02); in rtl8225_rf_init()
481 rtl8225_write_phy_ofdm(dev, 0x02, 0x42); in rtl8225_rf_init()
482 rtl8225_write_phy_ofdm(dev, 0x03, 0x00); in rtl8225_rf_init()
483 rtl8225_write_phy_ofdm(dev, 0x04, 0x00); in rtl8225_rf_init()
484 rtl8225_write_phy_ofdm(dev, 0x05, 0x00); in rtl8225_rf_init()
485 rtl8225_write_phy_ofdm(dev, 0x06, 0x40); in rtl8225_rf_init()
486 rtl8225_write_phy_ofdm(dev, 0x07, 0x00); in rtl8225_rf_init()
487 rtl8225_write_phy_ofdm(dev, 0x08, 0x40); in rtl8225_rf_init()
488 rtl8225_write_phy_ofdm(dev, 0x09, 0xfe); in rtl8225_rf_init()
489 rtl8225_write_phy_ofdm(dev, 0x0a, 0x09); in rtl8225_rf_init()
490 rtl8225_write_phy_ofdm(dev, 0x0b, 0x80); in rtl8225_rf_init()
491 rtl8225_write_phy_ofdm(dev, 0x0c, 0x01); in rtl8225_rf_init()
492 rtl8225_write_phy_ofdm(dev, 0x0e, 0xd3); in rtl8225_rf_init()
493 rtl8225_write_phy_ofdm(dev, 0x0f, 0x38); in rtl8225_rf_init()
494 rtl8225_write_phy_ofdm(dev, 0x10, 0x84); in rtl8225_rf_init()
495 rtl8225_write_phy_ofdm(dev, 0x11, 0x06); in rtl8225_rf_init()
496 rtl8225_write_phy_ofdm(dev, 0x12, 0x20); in rtl8225_rf_init()
497 rtl8225_write_phy_ofdm(dev, 0x13, 0x20); in rtl8225_rf_init()
498 rtl8225_write_phy_ofdm(dev, 0x14, 0x00); in rtl8225_rf_init()
499 rtl8225_write_phy_ofdm(dev, 0x15, 0x40); in rtl8225_rf_init()
500 rtl8225_write_phy_ofdm(dev, 0x16, 0x00); in rtl8225_rf_init()
501 rtl8225_write_phy_ofdm(dev, 0x17, 0x40); in rtl8225_rf_init()
502 rtl8225_write_phy_ofdm(dev, 0x18, 0xef); in rtl8225_rf_init()
503 rtl8225_write_phy_ofdm(dev, 0x19, 0x19); in rtl8225_rf_init()
504 rtl8225_write_phy_ofdm(dev, 0x1a, 0x20); in rtl8225_rf_init()
505 rtl8225_write_phy_ofdm(dev, 0x1b, 0x76); in rtl8225_rf_init()
506 rtl8225_write_phy_ofdm(dev, 0x1c, 0x04); in rtl8225_rf_init()
507 rtl8225_write_phy_ofdm(dev, 0x1e, 0x95); in rtl8225_rf_init()
508 rtl8225_write_phy_ofdm(dev, 0x1f, 0x75); in rtl8225_rf_init()
509 rtl8225_write_phy_ofdm(dev, 0x20, 0x1f); in rtl8225_rf_init()
510 rtl8225_write_phy_ofdm(dev, 0x21, 0x27); in rtl8225_rf_init()
511 rtl8225_write_phy_ofdm(dev, 0x22, 0x16); in rtl8225_rf_init()
512 rtl8225_write_phy_ofdm(dev, 0x24, 0x46); in rtl8225_rf_init()
513 rtl8225_write_phy_ofdm(dev, 0x25, 0x20); in rtl8225_rf_init()
514 rtl8225_write_phy_ofdm(dev, 0x26, 0x90); in rtl8225_rf_init()
515 rtl8225_write_phy_ofdm(dev, 0x27, 0x88); in rtl8225_rf_init()
517 rtl8225_write_phy_ofdm(dev, 0x0d, rtl8225_gain[2 * 4]); in rtl8225_rf_init()
518 rtl8225_write_phy_ofdm(dev, 0x1b, rtl8225_gain[2 * 4 + 2]); in rtl8225_rf_init()
519 rtl8225_write_phy_ofdm(dev, 0x1d, rtl8225_gain[2 * 4 + 3]); in rtl8225_rf_init()
520 rtl8225_write_phy_ofdm(dev, 0x23, rtl8225_gain[2 * 4 + 1]); in rtl8225_rf_init()
522 rtl8225_write_phy_cck(dev, 0x00, 0x98); in rtl8225_rf_init()
523 rtl8225_write_phy_cck(dev, 0x03, 0x20); in rtl8225_rf_init()
524 rtl8225_write_phy_cck(dev, 0x04, 0x7e); in rtl8225_rf_init()
525 rtl8225_write_phy_cck(dev, 0x05, 0x12); in rtl8225_rf_init()
526 rtl8225_write_phy_cck(dev, 0x06, 0xfc); in rtl8225_rf_init()
527 rtl8225_write_phy_cck(dev, 0x07, 0x78); in rtl8225_rf_init()
528 rtl8225_write_phy_cck(dev, 0x08, 0x2e); in rtl8225_rf_init()
529 rtl8225_write_phy_cck(dev, 0x10, 0x9b); in rtl8225_rf_init()
530 rtl8225_write_phy_cck(dev, 0x11, 0x88); in rtl8225_rf_init()
531 rtl8225_write_phy_cck(dev, 0x12, 0x47); in rtl8225_rf_init()
532 rtl8225_write_phy_cck(dev, 0x13, 0xd0); in rtl8225_rf_init()
533 rtl8225_write_phy_cck(dev, 0x19, 0x00); in rtl8225_rf_init()
534 rtl8225_write_phy_cck(dev, 0x1a, 0xa0); in rtl8225_rf_init()
535 rtl8225_write_phy_cck(dev, 0x1b, 0x08); in rtl8225_rf_init()
536 rtl8225_write_phy_cck(dev, 0x40, 0x86); in rtl8225_rf_init()
537 rtl8225_write_phy_cck(dev, 0x41, 0x8d); in rtl8225_rf_init()
538 rtl8225_write_phy_cck(dev, 0x42, 0x15); in rtl8225_rf_init()
539 rtl8225_write_phy_cck(dev, 0x43, 0x18); in rtl8225_rf_init()
540 rtl8225_write_phy_cck(dev, 0x44, 0x1f); in rtl8225_rf_init()
541 rtl8225_write_phy_cck(dev, 0x45, 0x1e); in rtl8225_rf_init()
542 rtl8225_write_phy_cck(dev, 0x46, 0x1a); in rtl8225_rf_init()
543 rtl8225_write_phy_cck(dev, 0x47, 0x15); in rtl8225_rf_init()
544 rtl8225_write_phy_cck(dev, 0x48, 0x10); in rtl8225_rf_init()
545 rtl8225_write_phy_cck(dev, 0x49, 0x0a); in rtl8225_rf_init()
546 rtl8225_write_phy_cck(dev, 0x4a, 0x05); in rtl8225_rf_init()
547 rtl8225_write_phy_cck(dev, 0x4b, 0x02); in rtl8225_rf_init()
548 rtl8225_write_phy_cck(dev, 0x4c, 0x05); in rtl8225_rf_init()
550 rtl818x_iowrite8(priv, &priv->map->TESTR, 0x0D); in rtl8225_rf_init()
555 rtl8225_write_phy_cck(dev, 0x10, 0x9b); /* B: 0xDB */ in rtl8225_rf_init()
556 rtl8225_write_phy_ofdm(dev, 0x26, 0x90); /* B: 0x10 */ in rtl8225_rf_init()
558 rtl818x_iowrite8(priv, &priv->map->TX_ANTENNA, 0x03); /* B: 0x00 */ in rtl8225_rf_init()
560 rtl818x_iowrite32(priv, (__le32 *)0xFF94, 0x3dc00002); in rtl8225_rf_init()
563 rtl8225_write(dev, 0x0c, 0x50); in rtl8225_rf_init()
564 rtl8225_write_phy_ofdm(dev, 0x0d, rtl8225_gain[2 * 4]); in rtl8225_rf_init()
565 rtl8225_write_phy_ofdm(dev, 0x1b, rtl8225_gain[2 * 4 + 2]); in rtl8225_rf_init()
566 rtl8225_write_phy_ofdm(dev, 0x1d, rtl8225_gain[2 * 4 + 3]); in rtl8225_rf_init()
567 rtl8225_write_phy_ofdm(dev, 0x23, rtl8225_gain[2 * 4 + 1]); in rtl8225_rf_init()
568 rtl8225_write_phy_cck(dev, 0x41, rtl8225_threshold[2]); in rtl8225_rf_init()
572 0x5e, 0x5e, 0x5e, 0x5e, 0x5d, 0x5b, 0x59, 0x57, 0x55, 0x53, 0x51, 0x4f,
573 0x4d, 0x4b, 0x49, 0x47, 0x45, 0x43, 0x41, 0x3f, 0x3d, 0x3b, 0x39, 0x37,
574 0x35, 0x33, 0x31, 0x2f, 0x2d, 0x2b, 0x29, 0x27, 0x25, 0x23, 0x21, 0x1f,
575 0x1d, 0x1b, 0x19, 0x17, 0x15, 0x13, 0x11, 0x0f, 0x0d, 0x0b, 0x09, 0x07,
576 0x05, 0x03, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
577 0x01, 0x01, 0x01, 0x01, 0x19, 0x19, 0x19, 0x19, 0x19, 0x19, 0x19, 0x19,
578 0x19, 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x26, 0x27, 0x27, 0x28,
579 0x28, 0x29, 0x2a, 0x2a, 0x2a, 0x2b, 0x2b, 0x2b, 0x2c, 0x2c, 0x2c, 0x2d,
580 0x2d, 0x2d, 0x2d, 0x2e, 0x2e, 0x2e, 0x2e, 0x2f, 0x2f, 0x2f, 0x30, 0x30,
581 0x31, 0x31, 0x31, 0x31, 0x31, 0x31, 0x31, 0x31, 0x31, 0x31, 0x31, 0x31,
582 0x31, 0x31, 0x31, 0x31, 0x31, 0x31, 0x31, 0x31
585 0x10, 0x0d, 0x01, 0x00, 0x14, 0xfb, 0xfb, 0x60,
586 0x00, 0x60, 0x00, 0x00, 0x00, 0x5c, 0x00, 0x00,
587 0x40, 0x00, 0x40, 0x00, 0x00, 0x00, 0xa8, 0x26,
588 0x32, 0x33, 0x07, 0xa5, 0x6f, 0x55, 0xc8, 0xb3,
589 0x0a, 0xe1, 0x2C, 0x8a, 0x86, 0x83, 0x34, 0x0f,
590 0x4f, 0x24, 0x6f, 0xc2, 0x6b, 0x40, 0x80, 0x00,
591 0xc0, 0xc1, 0x58, 0xf1, 0x00, 0xe4, 0x90, 0x3e,
592 0x6d, 0x3c, 0xfb, 0x07
596 0x36, 0x35, 0x2e, 0x1b, 0x00, 0x00, 0x00, 0x00,
597 0x30, 0x2f, 0x29, 0x15, 0x00, 0x00, 0x00, 0x00,
598 0x30, 0x2f, 0x29, 0x15, 0x00, 0x00, 0x00, 0x00,
599 0x30, 0x2f, 0x29, 0x15, 0x00, 0x00, 0x00, 0x00
603 0x36, 0x35, 0x2e, 0x25, 0x1c, 0x12, 0x09, 0x04,
604 0x30, 0x2f, 0x29, 0x21, 0x19, 0x10, 0x08, 0x03,
605 0x2b, 0x2a, 0x25, 0x1e, 0x16, 0x0e, 0x07, 0x03,
606 0x26, 0x25, 0x21, 0x1b, 0x14, 0x0d, 0x06, 0x03
610 0x00, 0x01, 0x02, 0x03, 0x04, 0x05,
611 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b,
612 0x0c, 0x0d, 0x0e, 0x0f, 0x10, 0x11,
613 0x12, 0x13, 0x14, 0x15, 0x16, 0x17,
614 0x18, 0x19, 0x1a, 0x1b, 0x1c, 0x1d,
615 0x1e, 0x1f, 0x20, 0x21, 0x22, 0x23
626 cck_power = priv->channels[channel - 1].hw_value & 0xF; in rtl8225z2_rf_set_tx_power()
630 cck_power += priv->txpwr_base & 0xF; in rtl8225z2_rf_set_tx_power()
645 for (i = 0; i < 8; i++) in rtl8225z2_rf_set_tx_power()
646 rtl8225_write_phy_cck(dev, 0x44 + i, *tmp++); in rtl8225z2_rf_set_tx_power()
663 rtl8225_write_phy_ofdm(dev, 2, 0x42); in rtl8225z2_rf_set_tx_power()
664 rtl8225_write_phy_ofdm(dev, 5, 0x00); in rtl8225z2_rf_set_tx_power()
665 rtl8225_write_phy_ofdm(dev, 6, 0x40); in rtl8225z2_rf_set_tx_power()
666 rtl8225_write_phy_ofdm(dev, 7, 0x00); in rtl8225z2_rf_set_tx_power()
667 rtl8225_write_phy_ofdm(dev, 8, 0x40); in rtl8225z2_rf_set_tx_power()
681 cck_power = priv->channels[channel - 1].hw_value & 0xF; in rtl8225z2_b_rf_set_tx_power()
684 cck_power += (priv->hw_rev == RTL8187BvB) ? 0 : 7; in rtl8225z2_b_rf_set_tx_power()
685 cck_power += priv->txpwr_base & 0xF; in rtl8225z2_b_rf_set_tx_power()
692 ofdm_power += (priv->txpwr_base >> 4) & 0xF; in rtl8225z2_b_rf_set_tx_power()
718 for (i = 0; i < 8; i++) in rtl8225z2_b_rf_set_tx_power()
719 rtl8225_write_phy_cck(dev, 0x44 + i, *tmp++); in rtl8225z2_b_rf_set_tx_power()
729 rtl8225_write_phy_ofdm(dev, 0x87, 0x60); in rtl8225z2_b_rf_set_tx_power()
730 rtl8225_write_phy_ofdm(dev, 0x89, 0x60); in rtl8225z2_b_rf_set_tx_power()
732 rtl8225_write_phy_ofdm(dev, 0x87, 0x5c); in rtl8225z2_b_rf_set_tx_power()
733 rtl8225_write_phy_ofdm(dev, 0x89, 0x5c); in rtl8225z2_b_rf_set_tx_power()
737 rtl8225_write_phy_ofdm(dev, 0x87, 0x5c); in rtl8225z2_b_rf_set_tx_power()
738 rtl8225_write_phy_ofdm(dev, 0x89, 0x5c); in rtl8225z2_b_rf_set_tx_power()
740 rtl8225_write_phy_ofdm(dev, 0x87, 0x54); in rtl8225z2_b_rf_set_tx_power()
741 rtl8225_write_phy_ofdm(dev, 0x89, 0x54); in rtl8225z2_b_rf_set_tx_power()
743 rtl8225_write_phy_ofdm(dev, 0x87, 0x50); in rtl8225z2_b_rf_set_tx_power()
744 rtl8225_write_phy_ofdm(dev, 0x89, 0x50); in rtl8225z2_b_rf_set_tx_power()
751 0x0400, 0x0401, 0x0402, 0x0403, 0x0404, 0x0405, 0x0408, 0x0409,
752 0x040a, 0x040b, 0x0502, 0x0503, 0x0504, 0x0505, 0x0540, 0x0541,
753 0x0542, 0x0543, 0x0544, 0x0545, 0x0580, 0x0581, 0x0582, 0x0583,
754 0x0584, 0x0585, 0x0588, 0x0589, 0x058a, 0x058b, 0x0643, 0x0644,
755 0x0645, 0x0680, 0x0681, 0x0682, 0x0683, 0x0684, 0x0685, 0x0688,
756 0x0689, 0x068a, 0x068b, 0x068c, 0x0742, 0x0743, 0x0744, 0x0745,
757 0x0780, 0x0781, 0x0782, 0x0783, 0x0784, 0x0785, 0x0788, 0x0789,
758 0x078a, 0x078b, 0x078c, 0x078d, 0x0790, 0x0791, 0x0792, 0x0793,
759 0x0794, 0x0795, 0x0798, 0x0799, 0x079a, 0x079b, 0x079c, 0x079d,
760 0x07a0, 0x07a1, 0x07a2, 0x07a3, 0x07a4, 0x07a5, 0x07a8, 0x07a9,
761 0x03aa, 0x03ab, 0x03ac, 0x03ad, 0x03b0, 0x03b1, 0x03b2, 0x03b3,
762 0x03b4, 0x03b5, 0x03b8, 0x03b9, 0x03ba, 0x03bb, 0x03bb
766 0x23, 0x15, 0xa5, /* -82-1dBm */
767 0x23, 0x15, 0xb5, /* -82-2dBm */
768 0x23, 0x15, 0xc5, /* -82-3dBm */
769 0x33, 0x15, 0xc5, /* -78dBm */
770 0x43, 0x15, 0xc5, /* -74dBm */
771 0x53, 0x15, 0xc5, /* -70dBm */
772 0x63, 0x15, 0xc5 /* -66dBm */
780 rtl8225_write(dev, 0x0, 0x2BF); in rtl8225z2_rf_init()
781 rtl8225_write(dev, 0x1, 0xEE0); in rtl8225z2_rf_init()
782 rtl8225_write(dev, 0x2, 0x44D); in rtl8225z2_rf_init()
783 rtl8225_write(dev, 0x3, 0x441); in rtl8225z2_rf_init()
784 rtl8225_write(dev, 0x4, 0x8C3); in rtl8225z2_rf_init()
785 rtl8225_write(dev, 0x5, 0xC72); in rtl8225z2_rf_init()
786 rtl8225_write(dev, 0x6, 0x0E6); in rtl8225z2_rf_init()
787 rtl8225_write(dev, 0x7, 0x82A); in rtl8225z2_rf_init()
788 rtl8225_write(dev, 0x8, 0x03F); in rtl8225z2_rf_init()
789 rtl8225_write(dev, 0x9, 0x335); in rtl8225z2_rf_init()
790 rtl8225_write(dev, 0xa, 0x9D4); in rtl8225z2_rf_init()
791 rtl8225_write(dev, 0xb, 0x7BB); in rtl8225z2_rf_init()
792 rtl8225_write(dev, 0xc, 0x850); in rtl8225z2_rf_init()
793 rtl8225_write(dev, 0xd, 0xCDF); in rtl8225z2_rf_init()
794 rtl8225_write(dev, 0xe, 0x02B); in rtl8225z2_rf_init()
795 rtl8225_write(dev, 0xf, 0x114); in rtl8225z2_rf_init()
798 rtl8225_write(dev, 0x0, 0x1B7); in rtl8225z2_rf_init()
800 for (i = 0; i < ARRAY_SIZE(rtl8225z2_rxgain); i++) { in rtl8225z2_rf_init()
801 rtl8225_write(dev, 0x1, i + 1); in rtl8225z2_rf_init()
802 rtl8225_write(dev, 0x2, rtl8225z2_rxgain[i]); in rtl8225z2_rf_init()
805 rtl8225_write(dev, 0x3, 0x080); in rtl8225z2_rf_init()
806 rtl8225_write(dev, 0x5, 0x004); in rtl8225z2_rf_init()
807 rtl8225_write(dev, 0x0, 0x0B7); in rtl8225z2_rf_init()
808 rtl8225_write(dev, 0x2, 0xc4D); in rtl8225z2_rf_init()
811 rtl8225_write(dev, 0x2, 0x44D); in rtl8225z2_rf_init()
815 rtl8225_write(dev, 0x02, 0x0C4D); in rtl8225z2_rf_init()
817 rtl8225_write(dev, 0x02, 0x044D); in rtl8225z2_rf_init()
826 rtl8225_write(dev, 0x0, 0x2BF); in rtl8225z2_rf_init()
828 for (i = 0; i < ARRAY_SIZE(rtl8225_agc); i++) { in rtl8225z2_rf_init()
829 rtl8225_write_phy_ofdm(dev, 0xB, rtl8225_agc[i]); in rtl8225z2_rf_init()
830 rtl8225_write_phy_ofdm(dev, 0xA, 0x80 + i); in rtl8225z2_rf_init()
835 rtl8225_write_phy_ofdm(dev, 0x00, 0x01); in rtl8225z2_rf_init()
836 rtl8225_write_phy_ofdm(dev, 0x01, 0x02); in rtl8225z2_rf_init()
837 rtl8225_write_phy_ofdm(dev, 0x02, 0x42); in rtl8225z2_rf_init()
838 rtl8225_write_phy_ofdm(dev, 0x03, 0x00); in rtl8225z2_rf_init()
839 rtl8225_write_phy_ofdm(dev, 0x04, 0x00); in rtl8225z2_rf_init()
840 rtl8225_write_phy_ofdm(dev, 0x05, 0x00); in rtl8225z2_rf_init()
841 rtl8225_write_phy_ofdm(dev, 0x06, 0x40); in rtl8225z2_rf_init()
842 rtl8225_write_phy_ofdm(dev, 0x07, 0x00); in rtl8225z2_rf_init()
843 rtl8225_write_phy_ofdm(dev, 0x08, 0x40); in rtl8225z2_rf_init()
844 rtl8225_write_phy_ofdm(dev, 0x09, 0xfe); in rtl8225z2_rf_init()
845 rtl8225_write_phy_ofdm(dev, 0x0a, 0x08); in rtl8225z2_rf_init()
846 rtl8225_write_phy_ofdm(dev, 0x0b, 0x80); in rtl8225z2_rf_init()
847 rtl8225_write_phy_ofdm(dev, 0x0c, 0x01); in rtl8225z2_rf_init()
848 rtl8225_write_phy_ofdm(dev, 0x0d, 0x43); in rtl8225z2_rf_init()
849 rtl8225_write_phy_ofdm(dev, 0x0e, 0xd3); in rtl8225z2_rf_init()
850 rtl8225_write_phy_ofdm(dev, 0x0f, 0x38); in rtl8225z2_rf_init()
851 rtl8225_write_phy_ofdm(dev, 0x10, 0x84); in rtl8225z2_rf_init()
852 rtl8225_write_phy_ofdm(dev, 0x11, 0x07); in rtl8225z2_rf_init()
853 rtl8225_write_phy_ofdm(dev, 0x12, 0x20); in rtl8225z2_rf_init()
854 rtl8225_write_phy_ofdm(dev, 0x13, 0x20); in rtl8225z2_rf_init()
855 rtl8225_write_phy_ofdm(dev, 0x14, 0x00); in rtl8225z2_rf_init()
856 rtl8225_write_phy_ofdm(dev, 0x15, 0x40); in rtl8225z2_rf_init()
857 rtl8225_write_phy_ofdm(dev, 0x16, 0x00); in rtl8225z2_rf_init()
858 rtl8225_write_phy_ofdm(dev, 0x17, 0x40); in rtl8225z2_rf_init()
859 rtl8225_write_phy_ofdm(dev, 0x18, 0xef); in rtl8225z2_rf_init()
860 rtl8225_write_phy_ofdm(dev, 0x19, 0x19); in rtl8225z2_rf_init()
861 rtl8225_write_phy_ofdm(dev, 0x1a, 0x20); in rtl8225z2_rf_init()
862 rtl8225_write_phy_ofdm(dev, 0x1b, 0x15); in rtl8225z2_rf_init()
863 rtl8225_write_phy_ofdm(dev, 0x1c, 0x04); in rtl8225z2_rf_init()
864 rtl8225_write_phy_ofdm(dev, 0x1d, 0xc5); in rtl8225z2_rf_init()
865 rtl8225_write_phy_ofdm(dev, 0x1e, 0x95); in rtl8225z2_rf_init()
866 rtl8225_write_phy_ofdm(dev, 0x1f, 0x75); in rtl8225z2_rf_init()
867 rtl8225_write_phy_ofdm(dev, 0x20, 0x1f); in rtl8225z2_rf_init()
868 rtl8225_write_phy_ofdm(dev, 0x21, 0x17); in rtl8225z2_rf_init()
869 rtl8225_write_phy_ofdm(dev, 0x22, 0x16); in rtl8225z2_rf_init()
870 rtl8225_write_phy_ofdm(dev, 0x23, 0x80); in rtl8225z2_rf_init()
871 rtl8225_write_phy_ofdm(dev, 0x24, 0x46); in rtl8225z2_rf_init()
872 rtl8225_write_phy_ofdm(dev, 0x25, 0x00); in rtl8225z2_rf_init()
873 rtl8225_write_phy_ofdm(dev, 0x26, 0x90); in rtl8225z2_rf_init()
874 rtl8225_write_phy_ofdm(dev, 0x27, 0x88); in rtl8225z2_rf_init()
876 rtl8225_write_phy_ofdm(dev, 0x0b, rtl8225z2_gain_bg[4 * 3]); in rtl8225z2_rf_init()
877 rtl8225_write_phy_ofdm(dev, 0x1b, rtl8225z2_gain_bg[4 * 3 + 1]); in rtl8225z2_rf_init()
878 rtl8225_write_phy_ofdm(dev, 0x1d, rtl8225z2_gain_bg[4 * 3 + 2]); in rtl8225z2_rf_init()
879 rtl8225_write_phy_ofdm(dev, 0x21, 0x37); in rtl8225z2_rf_init()
881 rtl8225_write_phy_cck(dev, 0x00, 0x98); in rtl8225z2_rf_init()
882 rtl8225_write_phy_cck(dev, 0x03, 0x20); in rtl8225z2_rf_init()
883 rtl8225_write_phy_cck(dev, 0x04, 0x7e); in rtl8225z2_rf_init()
884 rtl8225_write_phy_cck(dev, 0x05, 0x12); in rtl8225z2_rf_init()
885 rtl8225_write_phy_cck(dev, 0x06, 0xfc); in rtl8225z2_rf_init()
886 rtl8225_write_phy_cck(dev, 0x07, 0x78); in rtl8225z2_rf_init()
887 rtl8225_write_phy_cck(dev, 0x08, 0x2e); in rtl8225z2_rf_init()
888 rtl8225_write_phy_cck(dev, 0x10, 0x9b); in rtl8225z2_rf_init()
889 rtl8225_write_phy_cck(dev, 0x11, 0x88); in rtl8225z2_rf_init()
890 rtl8225_write_phy_cck(dev, 0x12, 0x47); in rtl8225z2_rf_init()
891 rtl8225_write_phy_cck(dev, 0x13, 0xd0); in rtl8225z2_rf_init()
892 rtl8225_write_phy_cck(dev, 0x19, 0x00); in rtl8225z2_rf_init()
893 rtl8225_write_phy_cck(dev, 0x1a, 0xa0); in rtl8225z2_rf_init()
894 rtl8225_write_phy_cck(dev, 0x1b, 0x08); in rtl8225z2_rf_init()
895 rtl8225_write_phy_cck(dev, 0x40, 0x86); in rtl8225z2_rf_init()
896 rtl8225_write_phy_cck(dev, 0x41, 0x8d); in rtl8225z2_rf_init()
897 rtl8225_write_phy_cck(dev, 0x42, 0x15); in rtl8225z2_rf_init()
898 rtl8225_write_phy_cck(dev, 0x43, 0x18); in rtl8225z2_rf_init()
899 rtl8225_write_phy_cck(dev, 0x44, 0x36); in rtl8225z2_rf_init()
900 rtl8225_write_phy_cck(dev, 0x45, 0x35); in rtl8225z2_rf_init()
901 rtl8225_write_phy_cck(dev, 0x46, 0x2e); in rtl8225z2_rf_init()
902 rtl8225_write_phy_cck(dev, 0x47, 0x25); in rtl8225z2_rf_init()
903 rtl8225_write_phy_cck(dev, 0x48, 0x1c); in rtl8225z2_rf_init()
904 rtl8225_write_phy_cck(dev, 0x49, 0x12); in rtl8225z2_rf_init()
905 rtl8225_write_phy_cck(dev, 0x4a, 0x09); in rtl8225z2_rf_init()
906 rtl8225_write_phy_cck(dev, 0x4b, 0x04); in rtl8225z2_rf_init()
907 rtl8225_write_phy_cck(dev, 0x4c, 0x05); in rtl8225z2_rf_init()
909 rtl818x_iowrite8(priv, (u8 *)0xFF5B, 0x0D); msleep(1); in rtl8225z2_rf_init()
914 rtl8225_write_phy_cck(dev, 0x10, 0x9b); /* B: 0xDB */ in rtl8225z2_rf_init()
915 rtl8225_write_phy_ofdm(dev, 0x26, 0x90); /* B: 0x10 */ in rtl8225z2_rf_init()
917 rtl818x_iowrite8(priv, &priv->map->TX_ANTENNA, 0x03); /* B: 0x00 */ in rtl8225z2_rf_init()
919 rtl818x_iowrite32(priv, (__le32 *)0xFF94, 0x3dc00002); in rtl8225z2_rf_init()
927 rtl8225_write(dev, 0x0, 0x0B7); in rtl8225z2_b_rf_init()
928 rtl8225_write(dev, 0x1, 0xEE0); in rtl8225z2_b_rf_init()
929 rtl8225_write(dev, 0x2, 0x44D); in rtl8225z2_b_rf_init()
930 rtl8225_write(dev, 0x3, 0x441); in rtl8225z2_b_rf_init()
931 rtl8225_write(dev, 0x4, 0x8C3); in rtl8225z2_b_rf_init()
932 rtl8225_write(dev, 0x5, 0xC72); in rtl8225z2_b_rf_init()
933 rtl8225_write(dev, 0x6, 0x0E6); in rtl8225z2_b_rf_init()
934 rtl8225_write(dev, 0x7, 0x82A); in rtl8225z2_b_rf_init()
935 rtl8225_write(dev, 0x8, 0x03F); in rtl8225z2_b_rf_init()
936 rtl8225_write(dev, 0x9, 0x335); in rtl8225z2_b_rf_init()
937 rtl8225_write(dev, 0xa, 0x9D4); in rtl8225z2_b_rf_init()
938 rtl8225_write(dev, 0xb, 0x7BB); in rtl8225z2_b_rf_init()
939 rtl8225_write(dev, 0xc, 0x850); in rtl8225z2_b_rf_init()
940 rtl8225_write(dev, 0xd, 0xCDF); in rtl8225z2_b_rf_init()
941 rtl8225_write(dev, 0xe, 0x02B); in rtl8225z2_b_rf_init()
942 rtl8225_write(dev, 0xf, 0x114); in rtl8225z2_b_rf_init()
944 rtl8225_write(dev, 0x0, 0x1B7); in rtl8225z2_b_rf_init()
946 for (i = 0; i < ARRAY_SIZE(rtl8225z2_rxgain); i++) { in rtl8225z2_b_rf_init()
947 rtl8225_write(dev, 0x1, i + 1); in rtl8225z2_b_rf_init()
948 rtl8225_write(dev, 0x2, rtl8225z2_rxgain[i]); in rtl8225z2_b_rf_init()
951 rtl8225_write(dev, 0x3, 0x080); in rtl8225z2_b_rf_init()
952 rtl8225_write(dev, 0x5, 0x004); in rtl8225z2_b_rf_init()
953 rtl8225_write(dev, 0x0, 0x0B7); in rtl8225z2_b_rf_init()
955 rtl8225_write(dev, 0x2, 0xC4D); in rtl8225z2_b_rf_init()
957 rtl8225_write(dev, 0x2, 0x44D); in rtl8225z2_b_rf_init()
958 rtl8225_write(dev, 0x0, 0x2BF); in rtl8225z2_b_rf_init()
960 rtl818x_iowrite8(priv, &priv->map->TX_GAIN_CCK, 0x03); in rtl8225z2_b_rf_init()
961 rtl818x_iowrite8(priv, &priv->map->TX_GAIN_OFDM, 0x07); in rtl8225z2_b_rf_init()
962 rtl818x_iowrite8(priv, &priv->map->TX_ANTENNA, 0x03); in rtl8225z2_b_rf_init()
964 rtl8225_write_phy_ofdm(dev, 0x80, 0x12); in rtl8225z2_b_rf_init()
965 for (i = 0; i < ARRAY_SIZE(rtl8225z2_agc); i++) { in rtl8225z2_b_rf_init()
966 rtl8225_write_phy_ofdm(dev, 0xF, rtl8225z2_agc[i]); in rtl8225z2_b_rf_init()
967 rtl8225_write_phy_ofdm(dev, 0xE, 0x80 + i); in rtl8225z2_b_rf_init()
968 rtl8225_write_phy_ofdm(dev, 0xE, 0); in rtl8225z2_b_rf_init()
970 rtl8225_write_phy_ofdm(dev, 0x80, 0x10); in rtl8225z2_b_rf_init()
972 for (i = 0; i < ARRAY_SIZE(rtl8225z2_ofdm); i++) in rtl8225z2_b_rf_init()
975 rtl8225_write_phy_ofdm(dev, 0x97, 0x46); in rtl8225z2_b_rf_init()
976 rtl8225_write_phy_ofdm(dev, 0xa4, 0xb6); in rtl8225z2_b_rf_init()
977 rtl8225_write_phy_ofdm(dev, 0x85, 0xfc); in rtl8225z2_b_rf_init()
978 rtl8225_write_phy_cck(dev, 0xc1, 0x88); in rtl8225z2_b_rf_init()
983 rtl8225_write(dev, 0x4, 0x1f); in rtl8225_rf_stop()
1000 rtl8225_write(dev, 0x7, rtl8225_chan[chan - 1]); in rtl8225_rf_set_channel()
1031 rtl8225_write(dev, 0, 0x1B7); in rtl8187_detect_rf()
1036 rtl8225_write(dev, 0, 0x0B7); in rtl8187_detect_rf()
1038 if (reg8 != 0x588 || reg9 != 0x700) in rtl8187_detect_rf()