• Home
  • Raw
  • Download

Lines Matching refs:qual

916 			       struct link_qual *qual)  in rt61pci_link_stats()  argument
924 qual->rx_failed = rt2x00_get_field32(reg, STA_CSR0_FCS_ERROR); in rt61pci_link_stats()
930 qual->false_cca = rt2x00_get_field32(reg, STA_CSR1_FALSE_CCA_ERROR); in rt61pci_link_stats()
934 struct link_qual *qual, u8 vgc_level) in rt61pci_set_vgc() argument
936 if (qual->vgc_level != vgc_level) { in rt61pci_set_vgc()
938 qual->vgc_level = vgc_level; in rt61pci_set_vgc()
939 qual->vgc_level_reg = vgc_level; in rt61pci_set_vgc()
944 struct link_qual *qual) in rt61pci_reset_tuner() argument
946 rt61pci_set_vgc(rt2x00dev, qual, 0x20); in rt61pci_reset_tuner()
950 struct link_qual *qual, const u32 count) in rt61pci_link_tuner() argument
984 if (qual->rssi >= -35) { in rt61pci_link_tuner()
985 rt61pci_set_vgc(rt2x00dev, qual, 0x60); in rt61pci_link_tuner()
992 if (qual->rssi >= -58) { in rt61pci_link_tuner()
993 rt61pci_set_vgc(rt2x00dev, qual, up_bound); in rt61pci_link_tuner()
1000 if (qual->rssi >= -66) { in rt61pci_link_tuner()
1001 rt61pci_set_vgc(rt2x00dev, qual, low_bound + 0x10); in rt61pci_link_tuner()
1008 if (qual->rssi >= -74) { in rt61pci_link_tuner()
1009 rt61pci_set_vgc(rt2x00dev, qual, low_bound + 0x08); in rt61pci_link_tuner()
1017 up_bound -= 2 * (-74 - qual->rssi); in rt61pci_link_tuner()
1021 if (qual->vgc_level > up_bound) { in rt61pci_link_tuner()
1022 rt61pci_set_vgc(rt2x00dev, qual, up_bound); in rt61pci_link_tuner()
1032 if ((qual->false_cca > 512) && (qual->vgc_level < up_bound)) in rt61pci_link_tuner()
1033 rt61pci_set_vgc(rt2x00dev, qual, ++qual->vgc_level); in rt61pci_link_tuner()
1034 else if ((qual->false_cca < 100) && (qual->vgc_level > low_bound)) in rt61pci_link_tuner()
1035 rt61pci_set_vgc(rt2x00dev, qual, --qual->vgc_level); in rt61pci_link_tuner()