Lines Matching refs:map
34 reg80 = rtl818x_ioread16(priv, &priv->map->RFPinsOutput) & 0xfff3; in rtl8225_write_bitbang()
35 reg82 = rtl818x_ioread16(priv, &priv->map->RFPinsEnable); in rtl8225_write_bitbang()
37 rtl818x_iowrite16(priv, &priv->map->RFPinsEnable, reg82 | 0x7); in rtl8225_write_bitbang()
39 reg84 = rtl818x_ioread16(priv, &priv->map->RFPinsSelect); in rtl8225_write_bitbang()
40 rtl818x_iowrite16(priv, &priv->map->RFPinsSelect, reg84 | 0x7); in rtl8225_write_bitbang()
43 rtl818x_iowrite16(priv, &priv->map->RFPinsOutput, reg80 | (1 << 2)); in rtl8225_write_bitbang()
45 rtl818x_iowrite16(priv, &priv->map->RFPinsOutput, reg80); in rtl8225_write_bitbang()
52 rtl818x_iowrite16(priv, &priv->map->RFPinsOutput, reg); in rtl8225_write_bitbang()
54 rtl818x_iowrite16(priv, &priv->map->RFPinsOutput, reg | (1 << 1)); in rtl8225_write_bitbang()
55 rtl818x_iowrite16(priv, &priv->map->RFPinsOutput, reg | (1 << 1)); in rtl8225_write_bitbang()
58 rtl818x_iowrite16(priv, &priv->map->RFPinsOutput, reg); in rtl8225_write_bitbang()
61 rtl818x_iowrite16(priv, &priv->map->RFPinsOutput, reg80 | (1 << 2)); in rtl8225_write_bitbang()
64 rtl818x_iowrite16(priv, &priv->map->RFPinsOutput, reg80 | (1 << 2)); in rtl8225_write_bitbang()
65 rtl818x_iowrite16(priv, &priv->map->RFPinsSelect, reg84); in rtl8225_write_bitbang()
73 reg80 = rtl818x_ioread16(priv, &priv->map->RFPinsOutput); in rtl8225_write_8051()
74 reg82 = rtl818x_ioread16(priv, &priv->map->RFPinsEnable); in rtl8225_write_8051()
75 reg84 = rtl818x_ioread16(priv, &priv->map->RFPinsSelect); in rtl8225_write_8051()
80 rtl818x_iowrite16(priv, &priv->map->RFPinsEnable, reg82 | 0x0007); in rtl8225_write_8051()
81 rtl818x_iowrite16(priv, &priv->map->RFPinsSelect, reg84 | 0x0007); in rtl8225_write_8051()
84 rtl818x_iowrite16(priv, &priv->map->RFPinsOutput, reg80 | (1 << 2)); in rtl8225_write_8051()
87 rtl818x_iowrite16(priv, &priv->map->RFPinsOutput, reg80); in rtl8225_write_8051()
100 rtl818x_iowrite16(priv, &priv->map->RFPinsOutput, reg80 | (1 << 2)); in rtl8225_write_8051()
103 rtl818x_iowrite16(priv, &priv->map->RFPinsOutput, reg80 | (1 << 2)); in rtl8225_write_8051()
104 rtl818x_iowrite16(priv, &priv->map->RFPinsSelect, reg84); in rtl8225_write_8051()
123 reg80 = rtl818x_ioread16(priv, &priv->map->RFPinsOutput); in rtl8225_read()
124 reg82 = rtl818x_ioread16(priv, &priv->map->RFPinsEnable); in rtl8225_read()
125 reg84 = rtl818x_ioread16(priv, &priv->map->RFPinsSelect); in rtl8225_read()
129 rtl818x_iowrite16(priv, &priv->map->RFPinsEnable, reg82 | 0x000F); in rtl8225_read()
130 rtl818x_iowrite16(priv, &priv->map->RFPinsSelect, reg84 | 0x000F); in rtl8225_read()
132 rtl818x_iowrite16(priv, &priv->map->RFPinsOutput, reg80 | (1 << 2)); in rtl8225_read()
134 rtl818x_iowrite16(priv, &priv->map->RFPinsOutput, reg80); in rtl8225_read()
141 rtl818x_iowrite16(priv, &priv->map->RFPinsOutput, reg); in rtl8225_read()
145 rtl818x_iowrite16(priv, &priv->map->RFPinsOutput, in rtl8225_read()
148 rtl818x_iowrite16(priv, &priv->map->RFPinsOutput, in rtl8225_read()
153 rtl818x_iowrite16(priv, &priv->map->RFPinsOutput, reg); in rtl8225_read()
158 rtl818x_iowrite16(priv, &priv->map->RFPinsOutput, in rtl8225_read()
161 rtl818x_iowrite16(priv, &priv->map->RFPinsOutput, in rtl8225_read()
164 rtl818x_iowrite16(priv, &priv->map->RFPinsOutput, in rtl8225_read()
170 rtl818x_iowrite16(priv, &priv->map->RFPinsOutput, in rtl8225_read()
173 rtl818x_iowrite16(priv, &priv->map->RFPinsOutput, in rtl8225_read()
176 rtl818x_iowrite16(priv, &priv->map->RFPinsOutput, in rtl8225_read()
179 rtl818x_iowrite16(priv, &priv->map->RFPinsOutput, in rtl8225_read()
183 if (rtl818x_ioread16(priv, &priv->map->RFPinsInput) & (1 << 1)) in rtl8225_read()
186 rtl818x_iowrite16(priv, &priv->map->RFPinsOutput, in rtl8225_read()
191 rtl818x_iowrite16(priv, &priv->map->RFPinsOutput, in rtl8225_read()
195 rtl818x_iowrite16(priv, &priv->map->RFPinsEnable, reg82); in rtl8225_read()
196 rtl818x_iowrite16(priv, &priv->map->RFPinsSelect, reg84); in rtl8225_read()
197 rtl818x_iowrite16(priv, &priv->map->RFPinsOutput, 0x03A0); in rtl8225_read()
298 rtl818x_iowrite8(priv, &priv->map->TX_GAIN_CCK, in rtl8225_rf_set_tx_power()
312 rtl818x_iowrite8(priv, &priv->map->EEPROM_CMD, RTL818X_EEPROM_CMD_CONFIG); in rtl8225_rf_set_tx_power()
313 reg = rtl818x_ioread8(priv, &priv->map->CONFIG3); in rtl8225_rf_set_tx_power()
314 rtl818x_iowrite8(priv, &priv->map->CONFIG3, in rtl8225_rf_set_tx_power()
316 rtl818x_iowrite32(priv, &priv->map->ANAPARAM2, in rtl8225_rf_set_tx_power()
318 rtl818x_iowrite8(priv, &priv->map->CONFIG3, in rtl8225_rf_set_tx_power()
320 rtl818x_iowrite8(priv, &priv->map->EEPROM_CMD, RTL818X_EEPROM_CMD_NORMAL); in rtl8225_rf_set_tx_power()
326 rtl818x_iowrite8(priv, &priv->map->TX_GAIN_OFDM, in rtl8225_rf_set_tx_power()
460 rtl818x_iowrite8(priv, &priv->map->TESTR, 0x0D); in rtl8225_rf_init()
468 rtl818x_iowrite8(priv, &priv->map->TX_ANTENNA, 0x03); /* B: 0x00 */ in rtl8225_rf_init()
562 rtl818x_iowrite8(priv, &priv->map->TX_GAIN_CCK, in rtl8225z2_rf_set_tx_power()
567 rtl818x_iowrite8(priv, &priv->map->EEPROM_CMD, RTL818X_EEPROM_CMD_CONFIG); in rtl8225z2_rf_set_tx_power()
568 reg = rtl818x_ioread8(priv, &priv->map->CONFIG3); in rtl8225z2_rf_set_tx_power()
569 rtl818x_iowrite8(priv, &priv->map->CONFIG3, in rtl8225z2_rf_set_tx_power()
571 rtl818x_iowrite32(priv, &priv->map->ANAPARAM2, in rtl8225z2_rf_set_tx_power()
573 rtl818x_iowrite8(priv, &priv->map->CONFIG3, in rtl8225z2_rf_set_tx_power()
575 rtl818x_iowrite8(priv, &priv->map->EEPROM_CMD, RTL818X_EEPROM_CMD_NORMAL); in rtl8225z2_rf_set_tx_power()
583 rtl818x_iowrite8(priv, &priv->map->TX_GAIN_OFDM, in rtl8225z2_rf_set_tx_power()
638 rtl818x_iowrite8(priv, &priv->map->TX_GAIN_CCK, in rtl8225z2_b_rf_set_tx_power()
642 rtl818x_iowrite8(priv, &priv->map->TX_GAIN_OFDM, in rtl8225z2_b_rf_set_tx_power()
834 rtl818x_iowrite8(priv, &priv->map->TX_ANTENNA, 0x03); /* B: 0x00 */ in rtl8225z2_rf_init()
877 rtl818x_iowrite8(priv, &priv->map->TX_GAIN_CCK, 0x03); in rtl8225z2_b_rf_init()
878 rtl818x_iowrite8(priv, &priv->map->TX_GAIN_OFDM, 0x07); in rtl8225z2_b_rf_init()
879 rtl818x_iowrite8(priv, &priv->map->TX_ANTENNA, 0x03); in rtl8225z2_b_rf_init()