Lines Matching refs:noisecalc
775 B43legacy_WARN_ON(dev->noisecalc.channel_at_start != in b43legacy_generate_noise_sample()
783 if (dev->noisecalc.calculation_running) in b43legacy_calculate_link_quality()
785 dev->noisecalc.channel_at_start = dev->phy.channel; in b43legacy_calculate_link_quality()
786 dev->noisecalc.calculation_running = true; in b43legacy_calculate_link_quality()
787 dev->noisecalc.nr_samples = 0; in b43legacy_calculate_link_quality()
803 B43legacy_WARN_ON(!dev->noisecalc.calculation_running); in handle_irq_noise()
804 if (dev->noisecalc.channel_at_start != phy->channel) in handle_irq_noise()
812 B43legacy_WARN_ON(dev->noisecalc.nr_samples >= 8); in handle_irq_noise()
813 i = dev->noisecalc.nr_samples; in handle_irq_noise()
818 dev->noisecalc.samples[i][0] = phy->nrssi_lt[noise[0]]; in handle_irq_noise()
819 dev->noisecalc.samples[i][1] = phy->nrssi_lt[noise[1]]; in handle_irq_noise()
820 dev->noisecalc.samples[i][2] = phy->nrssi_lt[noise[2]]; in handle_irq_noise()
821 dev->noisecalc.samples[i][3] = phy->nrssi_lt[noise[3]]; in handle_irq_noise()
822 dev->noisecalc.nr_samples++; in handle_irq_noise()
823 if (dev->noisecalc.nr_samples == 8) { in handle_irq_noise()
828 average += dev->noisecalc.samples[i][j]; in handle_irq_noise()
848 dev->noisecalc.calculation_running = false; in handle_irq_noise()
3141 memset(&dev->noisecalc, 0, sizeof(dev->noisecalc)); in setup_struct_wldev_for_init()