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()
2101 switch (dev->phy.type) { in b43legacy_rate_memory_init()
2179 struct b43legacy_phy *phy = &dev->phy; in b43legacy_chip_init() local
2187 if (dev->phy.gmode) in b43legacy_chip_init()
2211 tmp = phy->interfmode; in b43legacy_chip_init()
2212 phy->interfmode = B43legacy_INTERFMODE_NONE; in b43legacy_chip_init()
2218 if (phy->type == B43legacy_PHYTYPE_B) { in b43legacy_chip_init()
2275 atomic_set(&phy->txerr_cnt, B43legacy_PHY_TX_BADNESS_LIMIT); in b43legacy_chip_init()
2291 struct b43legacy_phy *phy = &dev->phy; in b43legacy_periodic_every120sec() local
2293 if (phy->type != B43legacy_PHYTYPE_G || phy->rev < 2) in b43legacy_periodic_every120sec()
2321 atomic_set(&dev->phy.txerr_cnt, B43legacy_PHY_TX_BADNESS_LIMIT); in b43legacy_periodic_every15sec()
2578 if (d->phy.possible_phymodes & phymode) { in find_wldev_for_phymode()
2627 (!!wl->current_dev->phy.gmode == !!gmode)) in b43legacy_switch_phymode()
2647 up_dev->phy.gmode = gmode; in b43legacy_switch_phymode()
2699 struct b43legacy_phy *phy; in b43legacy_op_dev_config() local
2710 phy = &dev->phy; in b43legacy_op_dev_config()
2723 if (phy->type == B43legacy_PHYTYPE_B) in b43legacy_op_dev_config()
2749 if (conf->chandef.chan->hw_value != phy->channel) in b43legacy_op_dev_config()
2757 if (conf->power_level != phy->power_level) { in b43legacy_op_dev_config()
2758 phy->power_level = conf->power_level; in b43legacy_op_dev_config()
2766 if (wl->radio_enabled != phy->radio_on) { in b43legacy_op_dev_config()
3017 struct b43legacy_phy *phy = &dev->phy; in b43legacy_phy_versioning() local
3098 phy->radio_manuf = radio_manuf; in b43legacy_phy_versioning()
3099 phy->radio_ver = radio_ver; in b43legacy_phy_versioning()
3100 phy->radio_rev = radio_rev; in b43legacy_phy_versioning()
3102 phy->analog = analog_type; in b43legacy_phy_versioning()
3103 phy->type = phy_type; in b43legacy_phy_versioning()
3104 phy->rev = phy_rev; in b43legacy_phy_versioning()
3110 struct b43legacy_phy *phy) in setup_struct_phy_for_init() argument
3115 memset(phy->minlowsig, 0xFF, sizeof(phy->minlowsig)); in setup_struct_phy_for_init()
3116 memset(phy->minlowsigpos, 0, sizeof(phy->minlowsigpos)); in setup_struct_phy_for_init()
3122 phy->savedpctlreg = 0xFFFF; in setup_struct_phy_for_init()
3123 phy->aci_enable = false; in setup_struct_phy_for_init()
3124 phy->aci_wlan_automatic = false; in setup_struct_phy_for_init()
3125 phy->aci_hw_rssi = false; in setup_struct_phy_for_init()
3127 lo = phy->_lo_pairs; in setup_struct_phy_for_init()
3131 phy->max_lb_gain = 0; in setup_struct_phy_for_init()
3132 phy->trsw_rx_gain = 0; in setup_struct_phy_for_init()
3135 phy->bbatt = b43legacy_default_baseband_attenuation(dev); in setup_struct_phy_for_init()
3136 phy->rfatt = b43legacy_default_radio_attenuation(dev); in setup_struct_phy_for_init()
3137 phy->txctl1 = b43legacy_default_txctl1(dev); in setup_struct_phy_for_init()
3138 phy->txpwr_offset = 0; in setup_struct_phy_for_init()
3141 phy->nrssislope = 0; in setup_struct_phy_for_init()
3142 for (i = 0; i < ARRAY_SIZE(phy->nrssi); i++) in setup_struct_phy_for_init()
3143 phy->nrssi[i] = -1000; in setup_struct_phy_for_init()
3144 for (i = 0; i < ARRAY_SIZE(phy->nrssi_lt); i++) in setup_struct_phy_for_init()
3145 phy->nrssi_lt[i] = i; in setup_struct_phy_for_init()
3147 phy->lofcal = 0xFFFF; in setup_struct_phy_for_init()
3148 phy->initval = 0xFFFF; in setup_struct_phy_for_init()
3150 phy->interfmode = B43legacy_INTERFMODE_NONE; in setup_struct_phy_for_init()
3151 phy->channel = 0xFF; in setup_struct_phy_for_init()
3162 setup_struct_phy_for_init(dev, &dev->phy); in setup_struct_wldev_for_init()
3181 if ((dev->phy.radio_ver == 0x2050) && (dev->phy.radio_rev == 8)) in b43legacy_set_synth_pu_delay()
3207 struct b43legacy_phy *phy = &dev->phy; in b43legacy_wireless_core_exit() local
3228 if (phy->dyn_tssi_tbl) in b43legacy_wireless_core_exit()
3229 kfree(phy->tssi2dbm); in b43legacy_wireless_core_exit()
3230 kfree(phy->lo_control); in b43legacy_wireless_core_exit()
3231 phy->lo_control = NULL; in b43legacy_wireless_core_exit()
3243 struct b43legacy_phy *phy = &dev->phy; in prepare_phy_data_for_init() local
3247 phy->bbatt = b43legacy_default_baseband_attenuation(dev); in prepare_phy_data_for_init()
3248 phy->rfatt = b43legacy_default_radio_attenuation(dev); in prepare_phy_data_for_init()
3249 phy->txctl1 = b43legacy_default_txctl1(dev); in prepare_phy_data_for_init()
3250 phy->txctl2 = 0xFFFF; in prepare_phy_data_for_init()
3251 phy->txpwr_offset = 0; in prepare_phy_data_for_init()
3254 phy->nrssislope = 0; in prepare_phy_data_for_init()
3255 for (i = 0; i < ARRAY_SIZE(phy->nrssi); i++) in prepare_phy_data_for_init()
3256 phy->nrssi[i] = -1000; in prepare_phy_data_for_init()
3257 for (i = 0; i < ARRAY_SIZE(phy->nrssi_lt); i++) in prepare_phy_data_for_init()
3258 phy->nrssi_lt[i] = i; in prepare_phy_data_for_init()
3260 phy->lofcal = 0xFFFF; in prepare_phy_data_for_init()
3261 phy->initval = 0xFFFF; in prepare_phy_data_for_init()
3263 phy->aci_enable = false; in prepare_phy_data_for_init()
3264 phy->aci_wlan_automatic = false; in prepare_phy_data_for_init()
3265 phy->aci_hw_rssi = false; in prepare_phy_data_for_init()
3267 phy->antenna_diversity = 0xFFFF; in prepare_phy_data_for_init()
3268 memset(phy->minlowsig, 0xFF, sizeof(phy->minlowsig)); in prepare_phy_data_for_init()
3269 memset(phy->minlowsigpos, 0, sizeof(phy->minlowsigpos)); in prepare_phy_data_for_init()
3272 phy->calibrated = 0; in prepare_phy_data_for_init()
3274 if (phy->_lo_pairs) in prepare_phy_data_for_init()
3275 memset(phy->_lo_pairs, 0, in prepare_phy_data_for_init()
3277 memset(phy->loopback_gain, 0, sizeof(phy->loopback_gain)); in prepare_phy_data_for_init()
3285 struct b43legacy_phy *phy = &dev->phy; in b43legacy_wireless_core_init() local
3297 tmp = phy->gmode ? B43legacy_TMSLOW_GMODE : 0; in b43legacy_wireless_core_init()
3301 if ((phy->type == B43legacy_PHYTYPE_B) || in b43legacy_wireless_core_init()
3302 (phy->type == B43legacy_PHYTYPE_G)) { in b43legacy_wireless_core_init()
3303 phy->_lo_pairs = kzalloc(sizeof(struct b43legacy_lopair) in b43legacy_wireless_core_init()
3306 if (!phy->_lo_pairs) in b43legacy_wireless_core_init()
3327 if (phy->type == B43legacy_PHYTYPE_G) { in b43legacy_wireless_core_init()
3329 if (phy->rev == 1) in b43legacy_wireless_core_init()
3333 } else if (phy->type == B43legacy_PHYTYPE_B) { in b43legacy_wireless_core_init()
3335 if (phy->rev >= 2 && phy->radio_ver == 0x2050) in b43legacy_wireless_core_init()
3359 if (phy->type == B43legacy_PHYTYPE_B) in b43legacy_wireless_core_init()
3398 if (phy->dyn_tssi_tbl) in b43legacy_wireless_core_init()
3399 kfree(phy->tssi2dbm); in b43legacy_wireless_core_init()
3401 kfree(phy->lo_control); in b43legacy_wireless_core_init()
3402 phy->lo_control = NULL; in b43legacy_wireless_core_init()
3629 struct b43legacy_phy *phy = &dev->phy; in b43legacy_setup_modes() local
3631 phy->possible_phymodes = 0; in b43legacy_setup_modes()
3635 phy->possible_phymodes |= B43legacy_PHYMODE_B; in b43legacy_setup_modes()
3641 phy->possible_phymodes |= B43legacy_PHYMODE_G; in b43legacy_setup_modes()
3689 dev->phy.gmode = (have_gphy || have_bphy); in b43legacy_wireless_core_attach()
3690 dev->phy.radio_on = true; in b43legacy_wireless_core_attach()
3691 tmp = dev->phy.gmode ? B43legacy_TMSLOW_GMODE : 0; in b43legacy_wireless_core_attach()
3705 switch (dev->phy.type) { in b43legacy_wireless_core_attach()
3716 dev->phy.gmode = (have_gphy || have_bphy); in b43legacy_wireless_core_attach()
3717 tmp = dev->phy.gmode ? B43legacy_TMSLOW_GMODE : 0; in b43legacy_wireless_core_attach()