Home
last modified time | relevance | path

Searched refs:vgc_level (Results 1 – 8 of 8) sorted by relevance

/linux-5.19.10/drivers/net/wireless/ralink/rt2x00/
Drt2400pci.c590 struct link_qual *qual, u8 vgc_level) in rt2400pci_set_vgc() argument
592 if (qual->vgc_level_reg != vgc_level) { in rt2400pci_set_vgc()
593 rt2400pci_bbp_write(rt2x00dev, 13, vgc_level); in rt2400pci_set_vgc()
594 qual->vgc_level = vgc_level; in rt2400pci_set_vgc()
595 qual->vgc_level_reg = vgc_level; in rt2400pci_set_vgc()
618 if ((qual->false_cca > 512) && (qual->vgc_level < 0x20)) in rt2400pci_link_tuner()
619 rt2400pci_set_vgc(rt2x00dev, qual, ++qual->vgc_level); in rt2400pci_link_tuner()
620 else if ((qual->false_cca < 100) && (qual->vgc_level > 0x08)) in rt2400pci_link_tuner()
621 rt2400pci_set_vgc(rt2x00dev, qual, --qual->vgc_level); in rt2400pci_link_tuner()
Drt73usb.c894 struct link_qual *qual, u8 vgc_level) in rt73usb_set_vgc() argument
896 if (qual->vgc_level != vgc_level) { in rt73usb_set_vgc()
897 rt73usb_bbp_write(rt2x00dev, 17, vgc_level); in rt73usb_set_vgc()
898 qual->vgc_level = vgc_level; in rt73usb_set_vgc()
899 qual->vgc_level_reg = vgc_level; in rt73usb_set_vgc()
991 if (qual->vgc_level > up_bound) { in rt73usb_link_tuner()
1002 if ((qual->false_cca > 512) && (qual->vgc_level < up_bound)) in rt73usb_link_tuner()
1004 min_t(u8, qual->vgc_level + 4, up_bound)); in rt73usb_link_tuner()
1005 else if ((qual->false_cca < 100) && (qual->vgc_level > low_bound)) in rt73usb_link_tuner()
1007 max_t(u8, qual->vgc_level - 4, low_bound)); in rt73usb_link_tuner()
Drt2x00link.c255 u8 vgc_level = qual->vgc_level_reg; in rt2x00link_reset_tuner() local
277 qual->vgc_level_reg = vgc_level; in rt2x00link_reset_tuner()
Drt61pci.c934 struct link_qual *qual, u8 vgc_level) in rt61pci_set_vgc() argument
936 if (qual->vgc_level != vgc_level) { in rt61pci_set_vgc()
937 rt61pci_bbp_write(rt2x00dev, 17, 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()
1021 if (qual->vgc_level > 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()
Drt2500pci.c628 struct link_qual *qual, u8 vgc_level) in rt2500pci_set_vgc() argument
630 if (qual->vgc_level_reg != vgc_level) { in rt2500pci_set_vgc()
631 rt2500pci_bbp_write(rt2x00dev, 17, vgc_level); in rt2500pci_set_vgc()
632 qual->vgc_level = vgc_level; in rt2500pci_set_vgc()
633 qual->vgc_level_reg = vgc_level; in rt2500pci_set_vgc()
672 rt2500pci_set_vgc(rt2x00dev, qual, qual->vgc_level); in rt2500pci_link_tuner()
697 rt2500pci_set_vgc(rt2x00dev, qual, qual->vgc_level); in rt2500pci_link_tuner()
Drt2x00.h244 u8 vgc_level; member
Drt2800lib.c5642 struct link_qual *qual, u8 vgc_level) in rt2800_set_vgc() argument
5644 if (qual->vgc_level != vgc_level) { in rt2800_set_vgc()
5649 vgc_level); in rt2800_set_vgc()
5652 rt2800_bbp_write_with_rx_chain(rt2x00dev, 66, vgc_level); in rt2800_set_vgc()
5654 rt2800_bbp_write(rt2x00dev, 66, vgc_level); in rt2800_set_vgc()
5657 qual->vgc_level = vgc_level; in rt2800_set_vgc()
5658 qual->vgc_level_reg = vgc_level; in rt2800_set_vgc()
Drt2500usb.c711 qual->vgc_level = value; in rt2500usb_reset_tuner()