• Home
  • Raw
  • Download

Lines Matching refs:map

31 	reg80 = rtl818x_ioread16(priv, &priv->map->RFPinsOutput) & 0xfff3;  in rtl8225_write()
32 reg82 = rtl818x_ioread16(priv, &priv->map->RFPinsEnable); in rtl8225_write()
34 rtl818x_iowrite16(priv, &priv->map->RFPinsEnable, reg82 | 0x7); in rtl8225_write()
36 reg84 = rtl818x_ioread16(priv, &priv->map->RFPinsSelect); in rtl8225_write()
37 rtl818x_iowrite16(priv, &priv->map->RFPinsSelect, reg84 | 0x7 | 0x400); in rtl8225_write()
38 rtl818x_ioread8(priv, &priv->map->EEPROM_CMD); in rtl8225_write()
41 rtl818x_iowrite16(priv, &priv->map->RFPinsOutput, reg80 | (1 << 2)); in rtl8225_write()
42 rtl818x_ioread8(priv, &priv->map->EEPROM_CMD); in rtl8225_write()
44 rtl818x_iowrite16(priv, &priv->map->RFPinsOutput, reg80); in rtl8225_write()
45 rtl818x_ioread8(priv, &priv->map->EEPROM_CMD); in rtl8225_write()
55 rtl818x_iowrite16(priv, &priv->map->RFPinsOutput, reg); in rtl8225_write()
57 rtl818x_iowrite16(priv, &priv->map->RFPinsOutput, reg | (1 << 1)); in rtl8225_write()
58 rtl818x_iowrite16(priv, &priv->map->RFPinsOutput, reg | (1 << 1)); in rtl8225_write()
61 rtl818x_iowrite16(priv, &priv->map->RFPinsOutput, reg); in rtl8225_write()
64 rtl818x_iowrite16(priv, &priv->map->RFPinsOutput, reg80 | (1 << 2)); in rtl8225_write()
65 rtl818x_ioread8(priv, &priv->map->EEPROM_CMD); in rtl8225_write()
68 rtl818x_iowrite16(priv, &priv->map->RFPinsOutput, reg80 | (1 << 2)); in rtl8225_write()
69 rtl818x_iowrite16(priv, &priv->map->RFPinsSelect, reg84 | 0x400); in rtl8225_write()
70 rtl818x_iowrite16(priv, &priv->map->RFPinsEnable, 0x1FFF); in rtl8225_write()
79 reg80 = rtl818x_ioread16(priv, &priv->map->RFPinsOutput); in rtl8225_read()
80 reg82 = rtl818x_ioread16(priv, &priv->map->RFPinsEnable); in rtl8225_read()
81 reg84 = rtl818x_ioread16(priv, &priv->map->RFPinsSelect) | 0x400; in rtl8225_read()
85 rtl818x_iowrite16(priv, &priv->map->RFPinsEnable, reg82 | 0x000F); in rtl8225_read()
86 rtl818x_iowrite16(priv, &priv->map->RFPinsSelect, reg84 | 0x000F); in rtl8225_read()
88 rtl818x_iowrite16(priv, &priv->map->RFPinsOutput, reg80 | (1 << 2)); in rtl8225_read()
89 rtl818x_ioread8(priv, &priv->map->EEPROM_CMD); in rtl8225_read()
91 rtl818x_iowrite16(priv, &priv->map->RFPinsOutput, reg80); in rtl8225_read()
92 rtl818x_ioread8(priv, &priv->map->EEPROM_CMD); in rtl8225_read()
99 rtl818x_iowrite16(priv, &priv->map->RFPinsOutput, reg); in rtl8225_read()
100 rtl818x_ioread8(priv, &priv->map->EEPROM_CMD); in rtl8225_read()
104 rtl818x_iowrite16(priv, &priv->map->RFPinsOutput, in rtl8225_read()
106 rtl818x_ioread8(priv, &priv->map->EEPROM_CMD); in rtl8225_read()
108 rtl818x_iowrite16(priv, &priv->map->RFPinsOutput, in rtl8225_read()
110 rtl818x_ioread8(priv, &priv->map->EEPROM_CMD); in rtl8225_read()
114 rtl818x_iowrite16(priv, &priv->map->RFPinsOutput, reg); in rtl8225_read()
115 rtl818x_ioread8(priv, &priv->map->EEPROM_CMD); in rtl8225_read()
120 rtl818x_iowrite16(priv, &priv->map->RFPinsEnable, 0x000E); in rtl8225_read()
121 rtl818x_iowrite16(priv, &priv->map->RFPinsSelect, 0x040E); in rtl8225_read()
122 rtl818x_ioread8(priv, &priv->map->EEPROM_CMD); in rtl8225_read()
123 rtl818x_iowrite16(priv, &priv->map->RFPinsOutput, in rtl8225_read()
125 rtl818x_ioread8(priv, &priv->map->EEPROM_CMD); in rtl8225_read()
127 rtl818x_iowrite16(priv, &priv->map->RFPinsOutput, in rtl8225_read()
129 rtl818x_ioread8(priv, &priv->map->EEPROM_CMD); in rtl8225_read()
131 rtl818x_iowrite16(priv, &priv->map->RFPinsOutput, in rtl8225_read()
133 rtl818x_ioread8(priv, &priv->map->EEPROM_CMD); in rtl8225_read()
138 rtl818x_iowrite16(priv, &priv->map->RFPinsOutput, in rtl8225_read()
140 rtl818x_ioread8(priv, &priv->map->EEPROM_CMD); in rtl8225_read()
142 rtl818x_iowrite16(priv, &priv->map->RFPinsOutput, in rtl8225_read()
144 rtl818x_ioread8(priv, &priv->map->EEPROM_CMD); in rtl8225_read()
146 rtl818x_iowrite16(priv, &priv->map->RFPinsOutput, in rtl8225_read()
148 rtl818x_ioread8(priv, &priv->map->EEPROM_CMD); in rtl8225_read()
150 rtl818x_iowrite16(priv, &priv->map->RFPinsOutput, in rtl8225_read()
152 rtl818x_ioread8(priv, &priv->map->EEPROM_CMD); in rtl8225_read()
155 if (rtl818x_ioread16(priv, &priv->map->RFPinsInput) & (1 << 1)) in rtl8225_read()
158 rtl818x_iowrite16(priv, &priv->map->RFPinsOutput, in rtl8225_read()
160 rtl818x_ioread8(priv, &priv->map->EEPROM_CMD); in rtl8225_read()
164 rtl818x_iowrite16(priv, &priv->map->RFPinsOutput, in rtl8225_read()
166 rtl818x_ioread8(priv, &priv->map->EEPROM_CMD); in rtl8225_read()
169 rtl818x_iowrite16(priv, &priv->map->RFPinsEnable, reg82); in rtl8225_read()
170 rtl818x_iowrite16(priv, &priv->map->RFPinsSelect, reg84); in rtl8225_read()
171 rtl818x_iowrite16(priv, &priv->map->RFPinsOutput, 0x03A0); in rtl8225_read()
269 rtl818x_iowrite8(priv, &priv->map->TX_GAIN_CCK, in rtl8225_rf_set_tx_power()
284 rtl818x_iowrite8(priv, &priv->map->EEPROM_CMD, RTL818X_EEPROM_CMD_CONFIG); in rtl8225_rf_set_tx_power()
285 reg = rtl818x_ioread8(priv, &priv->map->CONFIG3); in rtl8225_rf_set_tx_power()
286 rtl818x_iowrite8(priv, &priv->map->CONFIG3, reg | RTL818X_CONFIG3_ANAPARAM_WRITE); in rtl8225_rf_set_tx_power()
287 rtl818x_iowrite32(priv, &priv->map->ANAPARAM2, RTL8225_ANAPARAM2_ON); in rtl8225_rf_set_tx_power()
288 rtl818x_iowrite8(priv, &priv->map->CONFIG3, reg & ~RTL818X_CONFIG3_ANAPARAM_WRITE); in rtl8225_rf_set_tx_power()
289 rtl818x_iowrite8(priv, &priv->map->EEPROM_CMD, RTL818X_EEPROM_CMD_NORMAL); in rtl8225_rf_set_tx_power()
291 rtl818x_iowrite8(priv, &priv->map->TX_GAIN_OFDM, in rtl8225_rf_set_tx_power()
310 rtl818x_iowrite16(priv, &priv->map->RFPinsOutput, 0x0480); in rtl8225_rf_init()
311 rtl818x_iowrite16(priv, &priv->map->RFPinsEnable, 0x1FFF); in rtl8225_rf_init()
312 rtl818x_iowrite16(priv, &priv->map->RFPinsSelect, 0x0488); in rtl8225_rf_init()
313 rtl818x_iowrite8(priv, &priv->map->GP_ENABLE, 0); in rtl8225_rf_init()
314 rtl818x_ioread8(priv, &priv->map->EEPROM_CMD); in rtl8225_rf_init()
316 rtl818x_iowrite8(priv, &priv->map->GP_ENABLE, 0xFF & ~(1 << 6)); in rtl8225_rf_init()
318 rtl818x_iowrite32(priv, &priv->map->RF_TIMING, 0x000a8008); in rtl8225_rf_init()
321 rtl818x_ioread16(priv, &priv->map->BRSR); in rtl8225_rf_init()
322 rtl818x_iowrite16(priv, &priv->map->BRSR, 0xFFFF); in rtl8225_rf_init()
323 rtl818x_iowrite32(priv, &priv->map->RF_PARA, 0x00100044); in rtl8225_rf_init()
324 rtl818x_iowrite8(priv, &priv->map->EEPROM_CMD, RTL818X_EEPROM_CMD_CONFIG); in rtl8225_rf_init()
325 rtl818x_iowrite8(priv, &priv->map->CONFIG3, 0x44); in rtl8225_rf_init()
326 rtl818x_iowrite8(priv, &priv->map->EEPROM_CMD, RTL818X_EEPROM_CMD_NORMAL); in rtl8225_rf_init()
356 rtl818x_iowrite16(priv, &priv->map->RFPinsEnable, 0x1FFF); in rtl8225_rf_init()
433 rtl818x_iowrite8(priv, &priv->map->TESTR, 0x0D); msleep(1); in rtl8225_rf_init()
441 rtl818x_iowrite8(priv, &priv->map->TX_ANTENNA, 0x03); /* B: 0x00 */ in rtl8225_rf_init()
443 rtl818x_iowrite32(priv, (__le32 __iomem *)((void __iomem *)priv->map + 0x94), 0x15c00002); in rtl8225_rf_init()
444 rtl818x_iowrite16(priv, &priv->map->RFPinsEnable, 0x1FFF); in rtl8225_rf_init()
500 rtl818x_iowrite8(priv, &priv->map->TX_GAIN_CCK, cck_power); in rtl8225z2_rf_set_tx_power()
501 rtl818x_ioread8(priv, &priv->map->TX_GAIN_CCK); in rtl8225z2_rf_set_tx_power()
505 rtl818x_iowrite8(priv, &priv->map->TX_GAIN_OFDM, ofdm_power); in rtl8225z2_rf_set_tx_power()
539 rtl818x_iowrite16(priv, &priv->map->RFPinsOutput, 0x0480); in rtl8225z2_rf_init()
540 rtl818x_iowrite16(priv, &priv->map->RFPinsEnable, 0x1FFF); in rtl8225z2_rf_init()
541 rtl818x_iowrite16(priv, &priv->map->RFPinsSelect, 0x0488); in rtl8225z2_rf_init()
542 rtl818x_iowrite8(priv, &priv->map->GP_ENABLE, 0); in rtl8225z2_rf_init()
543 rtl818x_ioread8(priv, &priv->map->EEPROM_CMD); in rtl8225z2_rf_init()
545 rtl818x_iowrite8(priv, &priv->map->GP_ENABLE, 0xFF & ~(1 << 6)); in rtl8225z2_rf_init()
547 rtl818x_iowrite32(priv, &priv->map->RF_TIMING, 0x00088008); in rtl8225z2_rf_init()
550 rtl818x_ioread16(priv, &priv->map->BRSR); in rtl8225z2_rf_init()
551 rtl818x_iowrite16(priv, &priv->map->BRSR, 0xFFFF); in rtl8225z2_rf_init()
552 rtl818x_iowrite32(priv, &priv->map->RF_PARA, 0x00100044); in rtl8225z2_rf_init()
553 rtl818x_iowrite8(priv, &priv->map->EEPROM_CMD, RTL818X_EEPROM_CMD_CONFIG); in rtl8225z2_rf_init()
554 rtl818x_iowrite8(priv, &priv->map->CONFIG3, 0x44); in rtl8225z2_rf_init()
555 rtl818x_iowrite8(priv, &priv->map->EEPROM_CMD, RTL818X_EEPROM_CMD_NORMAL); in rtl8225z2_rf_init()
557 rtl818x_iowrite16(priv, &priv->map->RFPinsEnable, 0x1FFF); in rtl8225z2_rf_init()
604 rtl818x_iowrite16(priv, &priv->map->RFPinsEnable, 0x1FFF); in rtl8225z2_rf_init()
685 rtl818x_iowrite8(priv, (u8 __iomem *)((void __iomem *)priv->map + 0x5B), 0x0D); msleep(1); in rtl8225z2_rf_init()
693 rtl818x_iowrite8(priv, &priv->map->TX_ANTENNA, 0x03); /* B: 0x00 */ in rtl8225z2_rf_init()
695 rtl818x_iowrite32(priv, (__le32 __iomem *)((void __iomem *)priv->map + 0x94), 0x15c00002); in rtl8225z2_rf_init()
696 rtl818x_iowrite16(priv, &priv->map->RFPinsEnable, 0x1FFF); in rtl8225z2_rf_init()
706 rtl818x_iowrite8(priv, &priv->map->EEPROM_CMD, RTL818X_EEPROM_CMD_CONFIG); in rtl8225_rf_stop()
707 reg = rtl818x_ioread8(priv, &priv->map->CONFIG3); in rtl8225_rf_stop()
708 rtl818x_iowrite8(priv, &priv->map->CONFIG3, reg | RTL818X_CONFIG3_ANAPARAM_WRITE); in rtl8225_rf_stop()
709 rtl818x_iowrite32(priv, &priv->map->ANAPARAM2, RTL8225_ANAPARAM2_OFF); in rtl8225_rf_stop()
710 rtl818x_iowrite32(priv, &priv->map->ANAPARAM, RTL8225_ANAPARAM_OFF); in rtl8225_rf_stop()
711 rtl818x_iowrite8(priv, &priv->map->CONFIG3, reg & ~RTL818X_CONFIG3_ANAPARAM_WRITE); in rtl8225_rf_stop()
712 rtl818x_iowrite8(priv, &priv->map->EEPROM_CMD, RTL818X_EEPROM_CMD_NORMAL); in rtl8225_rf_stop()
750 rtl818x_iowrite16(priv, &priv->map->RFPinsOutput, 0x0480); in rtl8180_detect_rf()
751 rtl818x_iowrite16(priv, &priv->map->RFPinsSelect, 0x0488); in rtl8180_detect_rf()
752 rtl818x_iowrite16(priv, &priv->map->RFPinsEnable, 0x1FFF); in rtl8180_detect_rf()
753 rtl818x_ioread8(priv, &priv->map->EEPROM_CMD); in rtl8180_detect_rf()