Lines Matching refs:phy

594 	if (dev->phy.type != B43legacy_PHYTYPE_G)  in b43legacy_set_slot_time()
626 struct b43legacy_phy *phy = &dev->phy; in b43legacy_dummy_transmission() local
638 switch (phy->type) { in b43legacy_dummy_transmission()
666 if (phy->radio_ver == 0x2050 && phy->radio_rev <= 0x5) in b43legacy_dummy_transmission()
686 if (phy->radio_ver == 0x2050 && phy->radio_rev <= 0x5) in b43legacy_dummy_transmission()
725 dev->phy.gmode = true; in b43legacy_wireless_core_reset()
727 dev->phy.gmode = false; in b43legacy_wireless_core_reset()
804 dev->phy.channel); in b43legacy_generate_noise_sample()
813 dev->noisecalc.channel_at_start = dev->phy.channel; in b43legacy_calculate_link_quality()
822 struct b43legacy_phy *phy = &dev->phy; in handle_irq_noise() local
832 if (dev->noisecalc.channel_at_start != phy->channel) in handle_irq_noise()
842 noise[0] = clamp_val(noise[0], 0, ARRAY_SIZE(phy->nrssi_lt) - 1); in handle_irq_noise()
843 noise[1] = clamp_val(noise[1], 0, ARRAY_SIZE(phy->nrssi_lt) - 1); in handle_irq_noise()
844 noise[2] = clamp_val(noise[2], 0, ARRAY_SIZE(phy->nrssi_lt) - 1); in handle_irq_noise()
845 noise[3] = clamp_val(noise[3], 0, ARRAY_SIZE(phy->nrssi_lt) - 1); in handle_irq_noise()
846 dev->noisecalc.samples[i][0] = phy->nrssi_lt[noise[0]]; in handle_irq_noise()
847 dev->noisecalc.samples[i][1] = phy->nrssi_lt[noise[1]]; in handle_irq_noise()
848 dev->noisecalc.samples[i][2] = phy->nrssi_lt[noise[2]]; in handle_irq_noise()
849 dev->noisecalc.samples[i][3] = phy->nrssi_lt[noise[3]]; in handle_irq_noise()
1332 if (unlikely(atomic_dec_and_test(&dev->phy.txerr_cnt))) { in b43legacy_interrupt_tasklet()
1622 switch (dev->phy.type) { in b43legacy_request_firmware()
1640 switch (dev->phy.type) { in b43legacy_request_firmware()
1675 "core rev %u\n", dev->phy.type, rev); in b43legacy_request_firmware()
2103 switch (dev->phy.type) { in b43legacy_rate_memory_init()
2181 struct b43legacy_phy *phy = &dev->phy; in b43legacy_chip_init() local
2189 if (dev->phy.gmode) in b43legacy_chip_init()
2213 tmp = phy->interfmode; in b43legacy_chip_init()
2214 phy->interfmode = B43legacy_INTERFMODE_NONE; in b43legacy_chip_init()
2220 if (phy->type == B43legacy_PHYTYPE_B) { in b43legacy_chip_init()
2277 atomic_set(&phy->txerr_cnt, B43legacy_PHY_TX_BADNESS_LIMIT); in b43legacy_chip_init()
2293 struct b43legacy_phy *phy = &dev->phy; in b43legacy_periodic_every120sec() local
2295 if (phy->type != B43legacy_PHYTYPE_G || phy->rev < 2) in b43legacy_periodic_every120sec()
2323 atomic_set(&dev->phy.txerr_cnt, B43legacy_PHY_TX_BADNESS_LIMIT); in b43legacy_periodic_every15sec()
2580 if (d->phy.possible_phymodes & phymode) { in find_wldev_for_phymode()
2629 (!!wl->current_dev->phy.gmode == !!gmode)) in b43legacy_switch_phymode()
2649 up_dev->phy.gmode = gmode; in b43legacy_switch_phymode()
2701 struct b43legacy_phy *phy; in b43legacy_op_dev_config() local
2712 phy = &dev->phy; in b43legacy_op_dev_config()
2725 if (phy->type == B43legacy_PHYTYPE_B) in b43legacy_op_dev_config()
2751 if (conf->chandef.chan->hw_value != phy->channel) in b43legacy_op_dev_config()
2759 if (conf->power_level != phy->power_level) { in b43legacy_op_dev_config()
2760 phy->power_level = conf->power_level; in b43legacy_op_dev_config()
2768 if (wl->radio_enabled != phy->radio_on) { in b43legacy_op_dev_config()
3021 struct b43legacy_phy *phy = &dev->phy; in b43legacy_phy_versioning() local
3102 phy->radio_manuf = radio_manuf; in b43legacy_phy_versioning()
3103 phy->radio_ver = radio_ver; in b43legacy_phy_versioning()
3104 phy->radio_rev = radio_rev; in b43legacy_phy_versioning()
3106 phy->analog = analog_type; in b43legacy_phy_versioning()
3107 phy->type = phy_type; in b43legacy_phy_versioning()
3108 phy->rev = phy_rev; in b43legacy_phy_versioning()
3114 struct b43legacy_phy *phy) in setup_struct_phy_for_init() argument
3119 memset(phy->minlowsig, 0xFF, sizeof(phy->minlowsig)); in setup_struct_phy_for_init()
3120 memset(phy->minlowsigpos, 0, sizeof(phy->minlowsigpos)); in setup_struct_phy_for_init()
3126 phy->savedpctlreg = 0xFFFF; in setup_struct_phy_for_init()
3127 phy->aci_enable = false; in setup_struct_phy_for_init()
3128 phy->aci_wlan_automatic = false; in setup_struct_phy_for_init()
3129 phy->aci_hw_rssi = false; in setup_struct_phy_for_init()
3131 lo = phy->_lo_pairs; in setup_struct_phy_for_init()
3135 phy->max_lb_gain = 0; in setup_struct_phy_for_init()
3136 phy->trsw_rx_gain = 0; in setup_struct_phy_for_init()
3139 phy->bbatt = b43legacy_default_baseband_attenuation(dev); in setup_struct_phy_for_init()
3140 phy->rfatt = b43legacy_default_radio_attenuation(dev); in setup_struct_phy_for_init()
3141 phy->txctl1 = b43legacy_default_txctl1(dev); in setup_struct_phy_for_init()
3142 phy->txpwr_offset = 0; in setup_struct_phy_for_init()
3145 phy->nrssislope = 0; in setup_struct_phy_for_init()
3146 for (i = 0; i < ARRAY_SIZE(phy->nrssi); i++) in setup_struct_phy_for_init()
3147 phy->nrssi[i] = -1000; in setup_struct_phy_for_init()
3148 for (i = 0; i < ARRAY_SIZE(phy->nrssi_lt); i++) in setup_struct_phy_for_init()
3149 phy->nrssi_lt[i] = i; in setup_struct_phy_for_init()
3151 phy->lofcal = 0xFFFF; in setup_struct_phy_for_init()
3152 phy->initval = 0xFFFF; in setup_struct_phy_for_init()
3154 phy->interfmode = B43legacy_INTERFMODE_NONE; in setup_struct_phy_for_init()
3155 phy->channel = 0xFF; in setup_struct_phy_for_init()
3166 setup_struct_phy_for_init(dev, &dev->phy); in setup_struct_wldev_for_init()
3185 if ((dev->phy.radio_ver == 0x2050) && (dev->phy.radio_rev == 8)) in b43legacy_set_synth_pu_delay()
3211 struct b43legacy_phy *phy = &dev->phy; in b43legacy_wireless_core_exit() local
3232 if (phy->dyn_tssi_tbl) in b43legacy_wireless_core_exit()
3233 kfree(phy->tssi2dbm); in b43legacy_wireless_core_exit()
3234 kfree(phy->lo_control); in b43legacy_wireless_core_exit()
3235 phy->lo_control = NULL; in b43legacy_wireless_core_exit()
3247 struct b43legacy_phy *phy = &dev->phy; in prepare_phy_data_for_init() local
3251 phy->bbatt = b43legacy_default_baseband_attenuation(dev); in prepare_phy_data_for_init()
3252 phy->rfatt = b43legacy_default_radio_attenuation(dev); in prepare_phy_data_for_init()
3253 phy->txctl1 = b43legacy_default_txctl1(dev); in prepare_phy_data_for_init()
3254 phy->txctl2 = 0xFFFF; in prepare_phy_data_for_init()
3255 phy->txpwr_offset = 0; in prepare_phy_data_for_init()
3258 phy->nrssislope = 0; in prepare_phy_data_for_init()
3259 for (i = 0; i < ARRAY_SIZE(phy->nrssi); i++) in prepare_phy_data_for_init()
3260 phy->nrssi[i] = -1000; in prepare_phy_data_for_init()
3261 for (i = 0; i < ARRAY_SIZE(phy->nrssi_lt); i++) in prepare_phy_data_for_init()
3262 phy->nrssi_lt[i] = i; in prepare_phy_data_for_init()
3264 phy->lofcal = 0xFFFF; in prepare_phy_data_for_init()
3265 phy->initval = 0xFFFF; in prepare_phy_data_for_init()
3267 phy->aci_enable = false; in prepare_phy_data_for_init()
3268 phy->aci_wlan_automatic = false; in prepare_phy_data_for_init()
3269 phy->aci_hw_rssi = false; in prepare_phy_data_for_init()
3271 phy->antenna_diversity = 0xFFFF; in prepare_phy_data_for_init()
3272 memset(phy->minlowsig, 0xFF, sizeof(phy->minlowsig)); in prepare_phy_data_for_init()
3273 memset(phy->minlowsigpos, 0, sizeof(phy->minlowsigpos)); in prepare_phy_data_for_init()
3276 phy->calibrated = 0; in prepare_phy_data_for_init()
3278 if (phy->_lo_pairs) in prepare_phy_data_for_init()
3279 memset(phy->_lo_pairs, 0, in prepare_phy_data_for_init()
3281 memset(phy->loopback_gain, 0, sizeof(phy->loopback_gain)); in prepare_phy_data_for_init()
3289 struct b43legacy_phy *phy = &dev->phy; in b43legacy_wireless_core_init() local
3301 tmp = phy->gmode ? B43legacy_TMSLOW_GMODE : 0; in b43legacy_wireless_core_init()
3305 if ((phy->type == B43legacy_PHYTYPE_B) || in b43legacy_wireless_core_init()
3306 (phy->type == B43legacy_PHYTYPE_G)) { in b43legacy_wireless_core_init()
3307 phy->_lo_pairs = kzalloc(sizeof(struct b43legacy_lopair) in b43legacy_wireless_core_init()
3310 if (!phy->_lo_pairs) in b43legacy_wireless_core_init()
3331 if (phy->type == B43legacy_PHYTYPE_G) { in b43legacy_wireless_core_init()
3333 if (phy->rev == 1) in b43legacy_wireless_core_init()
3337 } else if (phy->type == B43legacy_PHYTYPE_B) { in b43legacy_wireless_core_init()
3339 if (phy->rev >= 2 && phy->radio_ver == 0x2050) in b43legacy_wireless_core_init()
3363 if (phy->type == B43legacy_PHYTYPE_B) in b43legacy_wireless_core_init()
3402 if (phy->dyn_tssi_tbl) in b43legacy_wireless_core_init()
3403 kfree(phy->tssi2dbm); in b43legacy_wireless_core_init()
3405 kfree(phy->lo_control); in b43legacy_wireless_core_init()
3406 phy->lo_control = NULL; in b43legacy_wireless_core_init()
3633 struct b43legacy_phy *phy = &dev->phy; in b43legacy_setup_modes() local
3635 phy->possible_phymodes = 0; in b43legacy_setup_modes()
3639 phy->possible_phymodes |= B43legacy_PHYMODE_B; in b43legacy_setup_modes()
3645 phy->possible_phymodes |= B43legacy_PHYMODE_G; in b43legacy_setup_modes()
3693 dev->phy.gmode = (have_gphy || have_bphy); in b43legacy_wireless_core_attach()
3694 dev->phy.radio_on = true; in b43legacy_wireless_core_attach()
3695 tmp = dev->phy.gmode ? B43legacy_TMSLOW_GMODE : 0; in b43legacy_wireless_core_attach()
3709 switch (dev->phy.type) { in b43legacy_wireless_core_attach()
3720 dev->phy.gmode = (have_gphy || have_bphy); in b43legacy_wireless_core_attach()
3721 tmp = dev->phy.gmode ? B43legacy_TMSLOW_GMODE : 0; in b43legacy_wireless_core_attach()