Lines Matching +full:0 +full:x64000000

31 #define AR5008_11NA_OFDM_SHIFT		0
55 {0x000098b0, 0x1e5795e5},
56 {0x000098e0, 0x02008020},
61 {0x000098b0, 0x02108421},
62 {0x000098ec, 0x00000008},
67 {0x000098b0, 0x0e73ff17},
68 {0x000098e0, 0x00000420},
73 {0x000098f0, 0x01400018, 0x01c00018},
78 {0x0000989c, 0x00000500},
79 {0x0000989c, 0x00000800},
80 {0x000098cc, 0x0000000e},
97 for (r = 0; r < array->ia_rows; r++) { in ar5008_write_bank6()
98 REG_WRITE(ah, INI_RA(array, r, 0), data[r]); in ar5008_write_bank6()
122 while (bitsLeft > 0) { in ar5008_hw_phy_modify_rx_buffer()
132 bitPosition = 0; in ar5008_hw_phy_modify_rx_buffer()
145 * bias = 0
150 * else if forceBias > 0
162 * Less than 2412 uses value of 0, 2412 and above uses value of 2
168 int reg_writes = 0; in ar5008_hw_force_bias()
169 u32 new_bias = 0; in ar5008_hw_force_bias()
177 new_bias = 0; in ar5008_hw_force_bias()
206 u32 channelSel = 0; in ar5008_hw_set_channel()
207 u32 bModeSynth = 0; in ar5008_hw_set_channel()
208 u32 aModeRefSel = 0; in ar5008_hw_set_channel()
209 u32 reg32 = 0; in ar5008_hw_set_channel()
219 if (((freq - 2192) % 5) == 0) { in ar5008_hw_set_channel()
221 bModeSynth = 0; in ar5008_hw_set_channel()
222 } else if (((freq - 2224) % 5) == 0) { in ar5008_hw_set_channel()
230 channelSel = (channelSel << 2) & 0xff; in ar5008_hw_set_channel()
243 } else if ((freq % 20) == 0 && freq >= 5120) { in ar5008_hw_set_channel()
247 } else if ((freq % 10) == 0) { in ar5008_hw_set_channel()
254 } else if ((freq % 5) == 0) { in ar5008_hw_set_channel()
266 (1 << 5) | 0x1; in ar5008_hw_set_channel()
268 REG_WRITE(ah, AR_PHY(0x37), reg32); in ar5008_hw_set_channel()
272 return 0; in ar5008_hw_set_channel()
281 int8_t mask_m[123] = {0}; in ar5008_hw_cmn_spur_mitigate()
282 int8_t mask_p[123] = {0}; in ar5008_hw_cmn_spur_mitigate()
293 static const int inc[4] = { 0, 100, 0, 0 }; in ar5008_hw_cmn_spur_mitigate()
299 for (i = 0; i < 4; i++) { in ar5008_hw_cmn_spur_mitigate()
300 int pilot_mask = 0; in ar5008_hw_cmn_spur_mitigate()
301 int chan_mask = 0; in ar5008_hw_cmn_spur_mitigate()
302 int bp = 0; in ar5008_hw_cmn_spur_mitigate()
304 for (bp = 0; bp < 30; bp++) { in ar5008_hw_cmn_spur_mitigate()
306 pilot_mask = pilot_mask | 0x1 << bp; in ar5008_hw_cmn_spur_mitigate()
307 chan_mask = chan_mask | 0x1 << bp; in ar5008_hw_cmn_spur_mitigate()
320 for (i = 0; i < ARRAY_SIZE(mask_m); i++) { in ar5008_hw_cmn_spur_mitigate()
328 mask_amt = 0; in ar5008_hw_cmn_spur_mitigate()
329 if (cur_vit_mask < 0) in ar5008_hw_cmn_spur_mitigate()
344 | (mask_m[60] << 2) | (mask_m[61] << 0); in ar5008_hw_cmn_spur_mitigate()
355 | (mask_m[44] << 2) | (mask_m[45] << 0); in ar5008_hw_cmn_spur_mitigate()
366 | (mask_m[29] << 2) | (mask_m[30] << 0); in ar5008_hw_cmn_spur_mitigate()
370 tmp_mask = (mask_m[0] << 30) | (mask_m[1] << 28) in ar5008_hw_cmn_spur_mitigate()
377 | (mask_m[14] << 2) | (mask_m[15] << 0); in ar5008_hw_cmn_spur_mitigate()
388 | (mask_p[2] << 2) | (mask_p[1] << 0); in ar5008_hw_cmn_spur_mitigate()
399 | (mask_p[17] << 2) | (mask_p[16] << 0); in ar5008_hw_cmn_spur_mitigate()
410 | (mask_p[32] << 2) | (mask_p[31] << 0); in ar5008_hw_cmn_spur_mitigate()
421 | (mask_p[47] << 2) | (mask_p[46] << 0); in ar5008_hw_cmn_spur_mitigate()
446 for (i = 0; i < AR_EEPROM_MODAL_SPURS; i++) { in ar5008_hw_spur_mitigate()
462 tmp = REG_READ(ah, AR_PHY_TIMING_CTRL4(0)); in ar5008_hw_spur_mitigate()
468 REG_WRITE(ah, AR_PHY_TIMING_CTRL4(0), new); in ar5008_hw_spur_mitigate()
481 spur_freq_sd = ((bb_spur * 2048) / denominator) & 0x3ff; in ar5008_hw_spur_mitigate()
502 return 0; in ar5008_hw_rf_alloc_ext_banks()
508 return 0; in ar5008_hw_rf_alloc_ext_banks()
529 u32 ob5GHz = 0, db5GHz = 0; in ar5008_hw_set_rf_regs()
530 u32 ob2GHz = 0, db2GHz = 0; in ar5008_hw_set_rf_regs()
531 int regWrites = 0; in ar5008_hw_set_rf_regs()
545 for (i = 0; i < ah->iniBank6.ia_rows; i++) in ar5008_hw_set_rf_regs()
554 ob2GHz, 3, 197, 0); in ar5008_hw_set_rf_regs()
556 db2GHz, 3, 194, 0); in ar5008_hw_set_rf_regs()
561 ob5GHz, 3, 203, 0); in ar5008_hw_set_rf_regs()
563 db5GHz, 3, 200, 0); in ar5008_hw_set_rf_regs()
599 case 0x5: in ar5008_hw_init_chain_masks()
603 case 0x3: in ar5008_hw_init_chain_masks()
605 REG_WRITE(ah, AR_PHY_RX_CHAINMASK, 0x7); in ar5008_hw_init_chain_masks()
606 REG_WRITE(ah, AR_PHY_CAL_CHAINMASK, 0x7); in ar5008_hw_init_chain_masks()
610 case 0x1: in ar5008_hw_init_chain_masks()
611 case 0x2: in ar5008_hw_init_chain_masks()
612 case 0x7: in ar5008_hw_init_chain_masks()
626 if (tx_chainmask == 0x5) { in ar5008_hw_init_chain_masks()
632 REG_READ(ah, AR_PHY_ANALOG_SWAP) | 0x00000001); in ar5008_hw_init_chain_masks()
675 REG_WRITE(ah, 0x9800 + (651 << 2), 0x11); in ar5008_hw_override_ini()
692 u32 enableDacFifo = 0; in ar5008_hw_set_channel_regs()
716 REG_WRITE(ah, AR_CST, 0xF << AR_CST_TIMEOUT_LIMIT_S); in ar5008_hw_set_channel_regs()
726 int i, regWrites = 0; in ar5008_hw_process_ini()
741 REG_WRITE(ah, AR_PHY(0), 0x00000007); in ar5008_hw_process_ini()
753 for (i = 0; i < ah->iniModes.ia_rows; i++) { in ar5008_hw_process_ini()
754 u32 reg = INI_RA(&ah->iniModes, i, 0); in ar5008_hw_process_ini()
762 if (reg >= 0x7800 && reg < 0x78a0 in ar5008_hw_process_ini()
782 REG_RMW_FIELD(ah, AR_PHY_RF_CTL3, AR_PHY_TX_END_TO_ADC_ON, 0xa); in ar5008_hw_process_ini()
788 for (i = 0; i < ah->iniCommon.ia_rows; i++) { in ar5008_hw_process_ini()
789 u32 reg = INI_RA(&ah->iniCommon, i, 0); in ar5008_hw_process_ini()
794 if (reg >= 0x7800 && reg < 0x78a0 in ar5008_hw_process_ini()
823 return 0; in ar5008_hw_process_ini()
828 u32 rfMode = 0; in ar5008_hw_set_rfmode()
857 u32 clockMhzScaled = 0x64000000; in ar5008_hw_set_delta_slope()
900 REG_WRITE(ah, AR_PHY_RFBUS_REQ, 0); in ar5008_hw_rfbus_done()
907 if ((rx_chainmask == 0x5) || (rx_chainmask == 0x3)) { in ar5008_restore_chainmask()
918 pll = SM(0x5, AR_RTC_9160_PLL_REFDIV); in ar9160_hw_compute_pll_control()
921 pll |= SM(0x1, AR_RTC_9160_PLL_CLKSEL); in ar9160_hw_compute_pll_control()
923 pll |= SM(0x2, AR_RTC_9160_PLL_CLKSEL); in ar9160_hw_compute_pll_control()
926 pll |= SM(0x50, AR_RTC_9160_PLL_DIV); in ar9160_hw_compute_pll_control()
928 pll |= SM(0x58, AR_RTC_9160_PLL_DIV); in ar9160_hw_compute_pll_control()
941 pll |= SM(0x1, AR_RTC_PLL_CLKSEL); in ar5008_hw_compute_pll_control()
943 pll |= SM(0x2, AR_RTC_PLL_CLKSEL); in ar5008_hw_compute_pll_control()
946 pll |= SM(0xa, AR_RTC_PLL_DIV); in ar5008_hw_compute_pll_control()
948 pll |= SM(0xb, AR_RTC_PLL_DIV); in ar5008_hw_compute_pll_control()
968 * on == 0 means ofdm weak signal detection is OFF in ar5008_hw_ani_control_new()
969 * on == 0 means more noise imm in ar5008_hw_ani_control_new()
971 u32 on = param ? 1 : 0; in ar5008_hw_ani_control_new()
1143 nfarray[0] = sign_extend32(nf, 8); in ar5008_hw_do_getnf()
1233 u32 radar_0 = 0, radar_1; in ar5008_hw_set_radar_params()
1280 #define CCK_DELTA(_ah, x) ((OLC_FOR_AR9280_20_LATER(_ah)) ? max((x) - 2, 0) : (x)) in ar5008_hw_init_txpower_cck()
1281 ah->tx_power[0] = CCK_DELTA(ah, rate_array[rate1l]); in ar5008_hw_init_txpower_cck()
1294 int i, idx = 0; in ar5008_hw_init_txpower_ofdm()
1387 return 0; in ar5008_hw_attach_phy_ops()