Home
last modified time | relevance | path

Searched refs:lna (Results 1 – 16 of 16) sorted by relevance

/drivers/net/wireless/mediatek/mt76/
Dmt76x02_eeprom.c135 u8 lna; in mt76x02_get_lna_gain() local
144 lna = *lna_2g; in mt76x02_get_lna_gain()
146 lna = lna_5g[0]; in mt76x02_get_lna_gain()
148 lna = lna_5g[1]; in mt76x02_get_lna_gain()
150 lna = lna_5g[2]; in mt76x02_get_lna_gain()
152 return lna != 0xff ? lna : 0; in mt76x02_get_lna_gain()
/drivers/gnss/
Dsirf.c43 struct regulator *lna; member
304 ret = regulator_disable(data->lna); in sirf_runtime_suspend()
329 ret = regulator_enable(data->lna); in sirf_runtime_resume()
344 regulator_disable(data->lna); in sirf_runtime_resume()
434 data->lna = devm_regulator_get(dev, "lna"); in sirf_probe()
435 if (IS_ERR(data->lna)) { in sirf_probe()
436 ret = PTR_ERR(data->lna); in sirf_probe()
/drivers/media/dvb-frontends/
Dtc90522.c37 bool lna; member
576 fe->dtv_property_cache.lna == LNA_AUTO) { in tc90522_sleep()
577 fe->dtv_property_cache.lna = 0; in tc90522_sleep()
579 fe->dtv_property_cache.lna = LNA_AUTO; in tc90522_sleep()
609 fe->dtv_property_cache.lna == LNA_AUTO) { in tc90522_init()
610 fe->dtv_property_cache.lna = 1; in tc90522_init()
612 fe->dtv_property_cache.lna = LNA_AUTO; in tc90522_init()
/drivers/staging/pi433/Documentation/
Dpi433.txt201 automatic - lna gain is determined by an agc
202 max - lna gain is set to maximum
203 max_minus_6 - lna gain is set to 6db below max
204 max_minus_12 - lna gain is set to 12db below max
205 max_minus_24 - lna gain is set to 24db below max
206 max_minus_36 - lna gain is set to 36db below max
207 max_minus_48 - lna gain is set to 48db below max
/drivers/net/wireless/ralink/rt2x00/
Drt73usb.c688 unsigned int lna; in rt73usb_config_ant() local
701 lna = rt2x00_has_cap_external_lna_a(rt2x00dev); in rt73usb_config_ant()
704 lna = rt2x00_has_cap_external_lna_bg(rt2x00dev); in rt73usb_config_ant()
708 rt73usb_bbp_write(rt2x00dev, sel[i].word, sel[i].value[lna]); in rt73usb_config_ant()
1635 u8 lna; in rt73usb_agc_to_rssi() local
1637 lna = rt2x00_get_field32(rxd_w1, RXD_W1_RSSI_LNA); in rt73usb_agc_to_rssi()
1638 switch (lna) { in rt73usb_agc_to_rssi()
1654 if (lna == 3 || lna == 2) in rt73usb_agc_to_rssi()
1657 if (lna == 3) in rt73usb_agc_to_rssi()
1659 else if (lna == 2) in rt73usb_agc_to_rssi()
Drt61pci.c707 unsigned int lna; in rt61pci_config_ant() local
720 lna = rt2x00_has_cap_external_lna_a(rt2x00dev); in rt61pci_config_ant()
723 lna = rt2x00_has_cap_external_lna_bg(rt2x00dev); in rt61pci_config_ant()
727 rt61pci_bbp_write(rt2x00dev, sel[i].word, sel[i].value[lna]); in rt61pci_config_ant()
1969 u8 lna; in rt61pci_agc_to_rssi() local
1971 lna = rt2x00_get_field32(rxd_w1, RXD_W1_RSSI_LNA); in rt61pci_agc_to_rssi()
1972 switch (lna) { in rt61pci_agc_to_rssi()
1987 if (lna == 3 || lna == 2) in rt61pci_agc_to_rssi()
/drivers/net/wireless/mediatek/mt76/mt76x2/
Deeprom.c254 u8 lna; in mt76x2_read_rx_gain() local
273 lna = mt76x02_get_lna_gain(dev, &lna_2g, lna_5g, chan); in mt76x2_read_rx_gain()
274 dev->cal.rx.lna_gain = mt76x02_sign_extend(lna, 8); in mt76x2_read_rx_gain()
/drivers/media/usb/em28xx/
Dem28xx-dvb.c738 if (c->lna == 1) in em28xx_pctv_290e_set_lna()
752 KBUILD_MODNAME, c->lna); in em28xx_pctv_290e_set_lna()
762 u8 lna; in em28xx_pctv_292e_set_lna() local
764 if (c->lna == 1) in em28xx_pctv_292e_set_lna()
765 lna = 0x01; in em28xx_pctv_292e_set_lna()
767 lna = 0x00; in em28xx_pctv_292e_set_lna()
769 return em28xx_write_reg_bits(dev, EM2874_R80_GPIO_P0_CTRL, lna, 0x01); in em28xx_pctv_292e_set_lna()
/drivers/net/wireless/broadcom/b43/
Dlo.c66 u16 lna, u16 pga, u16 trsw_rx) in lo_measure_feedthrough() argument
73 lna <<= B43_PHY_RFOVERVAL_LNA_SHIFT; in lo_measure_feedthrough()
76 B43_WARN_ON(lna & ~B43_PHY_RFOVERVAL_LNA); in lo_measure_feedthrough()
86 rfover |= lna; in lo_measure_feedthrough()
Dphy_lp.c916 u16 lna = (gain & 0xFFFC) | ((gain & 0xC) >> 2); in lpphy_rev0_1_set_rx_gain() local
924 b43_phy_write(dev, B43_LPPHY_RX_GAIN_CTL_OVERRIDE_VAL, lna); in lpphy_rev0_1_set_rx_gain()
Dphy_n.c5652 u16 lna[3] = { 3, 3, 1 }; in b43_nphy_rev2_cal_rx_iq() local
5728 cur_lna = lna[j]; in b43_nphy_rev2_cal_rx_iq()
5747 cur_lna = lna[index]; in b43_nphy_rev2_cal_rx_iq()
/drivers/media/common/siano/
Dsmsdvb-main.c292 c->lna = p->is_external_lna_on ? 1 : 0; in smsdvb_update_dvb_stats()
359 c->lna = p->is_external_lna_on ? 1 : 0; in smsdvb_update_isdbt_stats()
443 c->lna = p->is_external_lna_on ? 1 : 0; in smsdvb_update_isdbt_stats_ex()
/drivers/net/wireless/mediatek/mt7601u/
Dphy.c236 static const s8 lna[2][2][3] = { in mt7601u_phy_get_rssi() local
255 val -= lna[aux_lna][bw][lna_id]; in mt7601u_phy_get_rssi()
/drivers/media/dvb-core/
Ddvb_frontend.c1056 c->lna = LNA_AUTO; in dvb_frontend_clear_cache()
1524 tvp->u.data = c->lna; in dtv_property_process_get()
1973 c->lna = data; in dtv_property_process_set()
1977 c->lna = LNA_AUTO; in dtv_property_process_set()
/drivers/media/pci/pt3/
Dpt3.c158 val = fe->dtv_property_cache.lna; in pt3_set_lna()
/drivers/media/dvb-frontends/drx39xyj/
Ddrxj.c12238 if (c->lna) { in drx39xxj_set_lna()
12246 return drxj_set_lna_state(demod, c->lna); in drx39xxj_set_lna()