Lines Matching refs:bbp

1499 	.bbp	= {
2747 u8 bbp; in rt2800_config_channel_rf3053() local
2751 bbp = rt2800_bbp_read(rt2x00dev, 109); in rt2800_config_channel_rf3053()
2752 rt2x00_set_field8(&bbp, BBP109_TX0_POWER, 0); in rt2800_config_channel_rf3053()
2753 rt2x00_set_field8(&bbp, BBP109_TX1_POWER, 0); in rt2800_config_channel_rf3053()
2754 rt2800_bbp_write(rt2x00dev, 109, bbp); in rt2800_config_channel_rf3053()
2756 bbp = rt2800_bbp_read(rt2x00dev, 110); in rt2800_config_channel_rf3053()
2757 rt2x00_set_field8(&bbp, BBP110_TX2_POWER, 0); in rt2800_config_channel_rf3053()
2758 rt2800_bbp_write(rt2x00dev, 110, bbp); in rt2800_config_channel_rf3053()
3041 u8 bbp; in rt2800_config_channel_rf3853() local
3210 bbp = (info->default_power1 >> 5) | in rt2800_config_channel_rf3853()
3212 rt2800_bbp_write(rt2x00dev, 109, bbp); in rt2800_config_channel_rf3853()
3214 bbp = rt2800_bbp_read(rt2x00dev, 110); in rt2800_config_channel_rf3853()
3215 bbp &= 0x0f; in rt2800_config_channel_rf3853()
3216 bbp |= (info->default_power3 & 0xe0) >> 1; in rt2800_config_channel_rf3853()
3217 rt2800_bbp_write(rt2x00dev, 110, bbp); in rt2800_config_channel_rf3853()
3232 bbp = rt2800_bbp_read(rt2x00dev, 49); in rt2800_config_channel_rf3853()
3234 rt2800_bbp_write(rt2x00dev, 49, bbp & 0xfe); in rt2800_config_channel_rf3853()
3235 rt2800_bbp_write(rt2x00dev, 49, bbp); in rt2800_config_channel_rf3853()
3874 u8 bbp; in rt2800_config_alc() local
3914 bbp = rt2800_bbp_read(rt2x00dev, 30); in rt2800_config_alc()
3915 bbp = 0x40; in rt2800_config_alc()
3916 rt2800_bbp_write(rt2x00dev, 30, bbp); in rt2800_config_alc()
3923 bbp = rt2800_bbp_read(rt2x00dev, 30); in rt2800_config_alc()
3924 bbp = 0x1f; in rt2800_config_alc()
3925 rt2800_bbp_write(rt2x00dev, 30, bbp); in rt2800_config_alc()
4060 u8 bbp; in rt3883_bbp_adjust() local
4062 bbp = (rf->channel > 14) ? 0x48 : 0x38; in rt3883_bbp_adjust()
4063 rt2800_bbp_write_with_rx_chain(rt2x00dev, 66, bbp); in rt3883_bbp_adjust()
4094 u8 bbp, rfcsr; in rt2800_config_channel() local
4473 bbp = rt2800_bbp_read(rt2x00dev, 4); in rt2800_config_channel()
4474 rt2x00_set_field8(&bbp, BBP4_BANDWIDTH, 2 * conf_is_ht40(conf)); in rt2800_config_channel()
4475 rt2800_bbp_write(rt2x00dev, 4, bbp); in rt2800_config_channel()
4477 bbp = rt2800_bbp_read(rt2x00dev, 3); in rt2800_config_channel()
4478 rt2x00_set_field8(&bbp, BBP3_HT40_MINUS, conf_is_ht40_minus(conf)); in rt2800_config_channel()
4479 rt2800_bbp_write(rt2x00dev, 3, bbp); in rt2800_config_channel()
4507 bbp = rt2800_bbp_read(rt2x00dev, 49); in rt2800_config_channel()
4508 rt2x00_set_field8(&bbp, BBP49_UPDATE_FLAG, 0); in rt2800_config_channel()
4509 rt2800_bbp_write(rt2x00dev, 49, bbp); in rt2800_config_channel()
7005 u8 bbp; in rt2800_init_bbp_6352() local
7008 bbp = rt2800_bbp_read(rt2x00dev, 105); in rt2800_init_bbp_6352()
7009 rt2x00_set_field8(&bbp, BBP105_MLD, in rt2800_init_bbp_6352()
7011 rt2800_bbp_write(rt2x00dev, 105, bbp); in rt2800_init_bbp_6352()
7017 bbp = rt2800_bbp_read(rt2x00dev, 1); in rt2800_init_bbp_6352()
7018 bbp |= 0x04; in rt2800_init_bbp_6352()
7019 rt2800_bbp_write(rt2x00dev, 1, bbp); in rt2800_init_bbp_6352()
7284 u8 bbp; in rt2800_init_rx_filter() local
7293 bbp = rt2800_bbp_read(rt2x00dev, 4); in rt2800_init_rx_filter()
7294 rt2x00_set_field8(&bbp, BBP4_BANDWIDTH, 2 * bw40); in rt2800_init_rx_filter()
7295 rt2800_bbp_write(rt2x00dev, 4, bbp); in rt2800_init_rx_filter()
7363 u8 rfcsr, bbp; in rt2800_rx_filter_calibration() local
7399 bbp = rt2800_bbp_read(rt2x00dev, 4); in rt2800_rx_filter_calibration()
7400 rt2x00_set_field8(&bbp, BBP4_BANDWIDTH, 0); in rt2800_rx_filter_calibration()
7401 rt2800_bbp_write(rt2x00dev, 4, bbp); in rt2800_rx_filter_calibration()
7407 u8 min_gain, rfcsr, bbp; in rt2800_normal_mode_setup_3xxx() local
7431 bbp = rt2800_bbp_read(rt2x00dev, 138); in rt2800_normal_mode_setup_3xxx()
7434 rt2x00_set_field8(&bbp, BBP138_RX_ADC1, 0); in rt2800_normal_mode_setup_3xxx()
7436 rt2x00_set_field8(&bbp, BBP138_TX_DAC1, 1); in rt2800_normal_mode_setup_3xxx()
7437 rt2800_bbp_write(rt2x00dev, 138, bbp); in rt2800_normal_mode_setup_3xxx()
7920 u8 bbp; in rt3593_post_bbp_init() local
7923 bbp = rt2800_bbp_read(rt2x00dev, 105); in rt3593_post_bbp_init()
7925 rt2x00_set_field8(&bbp, BBP105_MLD, 0); in rt3593_post_bbp_init()
7927 rt2x00_set_field8(&bbp, BBP105_MLD, 1); in rt3593_post_bbp_init()
7928 rt2800_bbp_write(rt2x00dev, 105, bbp); in rt3593_post_bbp_init()
9233 u8 bbp = 0; in rt2800_do_fft_accumulation() local
9239 bbp = 0x9b; in rt2800_do_fft_accumulation()
9241 while (bbp == 0x9b) { in rt2800_do_fft_accumulation()
9243 bbp = rt2800_bbp_read(rt2x00dev, 159); in rt2800_do_fft_accumulation()
9244 bbp = bbp & 0xff; in rt2800_do_fft_accumulation()
9313 u8 bbp = 0; in rt2800_write_dc() local
9316 bbp = alc | 0x80; in rt2800_write_dc()
9317 rt2800_bbp_write(rt2x00dev, 159, bbp); in rt2800_write_dc()
9320 bbp = (iorq == 0) ? 0xb1 : 0xb2; in rt2800_write_dc()
9322 bbp = (iorq == 0) ? 0xb8 : 0xb9; in rt2800_write_dc()
9324 rt2800_bbp_write(rt2x00dev, 158, bbp); in rt2800_write_dc()
9325 bbp = dc; in rt2800_write_dc()
9326 rt2800_bbp_write(rt2x00dev, 159, bbp); in rt2800_write_dc()
9396 u8 bbp = 0; in rt2800_iq_search() local
9416 bbp = (ch_idx == 0) ? ((gop == 0) ? 0x28 : 0x29) : in rt2800_iq_search()
9419 rt2800_bbp_write(rt2x00dev, 158, bbp); in rt2800_iq_search()
9428 bbp = (ch_idx == 0) ? (gop == 0) ? 0x28 : 0x29 : in rt2800_iq_search()
9431 rt2800_bbp_write(rt2x00dev, 158, bbp); in rt2800_iq_search()
9450 bbp = (ch_idx == 0) ? (gop == 0) ? 0x28 : 0x29 : in rt2800_iq_search()
9453 rt2800_bbp_write(rt2x00dev, 158, bbp); in rt2800_iq_search()
9482 bbp = (ch_idx == 0) ? 0x28 : 0x46; in rt2800_iq_search()
9483 rt2800_bbp_write(rt2x00dev, 158, bbp); in rt2800_iq_search()
9486 bbp = (ch_idx == 0) ? 0x29 : 0x47; in rt2800_iq_search()
9487 rt2800_bbp_write(rt2x00dev, 158, bbp); in rt2800_iq_search()
9564 u8 bbp = 0, ch_idx = 0, rf_alc_idx = 0, idx = 0; in rt2800_loft_iq_calibration() local
9699 bbp = (idx << 2) + rf_alc_idx; in rt2800_loft_iq_calibration()
9700 rt2800_bbp_write(rt2x00dev, 159, bbp); in rt2800_loft_iq_calibration()
9701 rt2x00_dbg(rt2x00dev, " ALC %2x,", bbp); in rt2800_loft_iq_calibration()
9704 bbp = loft_dc_search_result[CHAIN_0][rf_alc_idx][0x00]; in rt2800_loft_iq_calibration()
9705 bbp = bbp & 0x3F; in rt2800_loft_iq_calibration()
9706 rt2800_bbp_write(rt2x00dev, 159, bbp); in rt2800_loft_iq_calibration()
9707 rt2x00_dbg(rt2x00dev, " I0 %2x,", bbp); in rt2800_loft_iq_calibration()
9710 bbp = loft_dc_search_result[CHAIN_0][rf_alc_idx][0x01]; in rt2800_loft_iq_calibration()
9711 bbp = bbp & 0x3F; in rt2800_loft_iq_calibration()
9712 rt2800_bbp_write(rt2x00dev, 159, bbp); in rt2800_loft_iq_calibration()
9713 rt2x00_dbg(rt2x00dev, " Q0 %2x,", bbp); in rt2800_loft_iq_calibration()
9716 bbp = loft_dc_search_result[CHAIN_1][rf_alc_idx][0x00]; in rt2800_loft_iq_calibration()
9717 bbp = bbp & 0x3F; in rt2800_loft_iq_calibration()
9718 rt2800_bbp_write(rt2x00dev, 159, bbp); in rt2800_loft_iq_calibration()
9719 rt2x00_dbg(rt2x00dev, " I1 %2x,", bbp); in rt2800_loft_iq_calibration()
9722 bbp = loft_dc_search_result[CHAIN_1][rf_alc_idx][0x01]; in rt2800_loft_iq_calibration()
9723 bbp = bbp & 0x3F; in rt2800_loft_iq_calibration()
9724 rt2800_bbp_write(rt2x00dev, 159, bbp); in rt2800_loft_iq_calibration()
9725 rt2x00_dbg(rt2x00dev, " Q1 %2x\n", bbp); in rt2800_loft_iq_calibration()
9737 bbp = 0x00; in rt2800_loft_iq_calibration()
9840 bbp = bbpr1 & (~0x18); in rt2800_loft_iq_calibration()
9841 bbp = bbp | 0x00; in rt2800_loft_iq_calibration()
9842 rt2800_bbp_write(rt2x00dev, 1, bbp); in rt2800_loft_iq_calibration()
9850 bbp = bbpr1 & (~0x18); in rt2800_loft_iq_calibration()
9851 bbp = bbp | 0x08; in rt2800_loft_iq_calibration()
9852 rt2800_bbp_write(rt2x00dev, 1, bbp); in rt2800_loft_iq_calibration()
9861 bbp = (ch_idx == 0) ? 0x28 : 0x46; in rt2800_loft_iq_calibration()
9862 rt2800_bbp_write(rt2x00dev, 158, bbp); in rt2800_loft_iq_calibration()
9880 bbp = (ch_idx == 0) ? 0x29 : 0x47; in rt2800_loft_iq_calibration()
9881 rt2800_bbp_write(rt2x00dev, 158, bbp); in rt2800_loft_iq_calibration()
9887 bbp = (ch_idx == 0) ? 0x29 : 0x47; in rt2800_loft_iq_calibration()
9888 rt2800_bbp_write(rt2x00dev, 158, bbp); in rt2800_loft_iq_calibration()
9914 bbp = (ch_idx == 0) ? 0x29 : 0x47; in rt2800_loft_iq_calibration()
9915 rt2800_bbp_write(rt2x00dev, 158, bbp); in rt2800_loft_iq_calibration()
9926 bbp = ger[CHAIN_0] & 0x0F; in rt2800_loft_iq_calibration()
9927 rt2800_bbp_write(rt2x00dev, 159, bbp); in rt2800_loft_iq_calibration()
9930 bbp = per[CHAIN_0] & 0x3F; in rt2800_loft_iq_calibration()
9931 rt2800_bbp_write(rt2x00dev, 159, bbp); in rt2800_loft_iq_calibration()
9934 bbp = ger[CHAIN_1] & 0x0F; in rt2800_loft_iq_calibration()
9935 rt2800_bbp_write(rt2x00dev, 159, bbp); in rt2800_loft_iq_calibration()
9938 bbp = per[CHAIN_1] & 0x3F; in rt2800_loft_iq_calibration()
9939 rt2800_bbp_write(rt2x00dev, 159, bbp); in rt2800_loft_iq_calibration()