Home
last modified time | relevance | path

Searched +full:txpower +full:- (Results 1 – 25 of 67) sorted by relevance

123

/linux/drivers/net/wireless/intel/iwlegacy/
H A D4965.h1 /* SPDX-License-Identifier: GPL-2.0-only */
4 * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved.
8 * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
79 * Acquire il->lock before calling this function !
83 * il4965_tx_queue_set_status - (optionally) start Tx/Cmd queue
84 * @tx_fifo_id: Tx DMA/FIFO channel (range 0-7) that the queue will feed
87 * NOTE: Acquire il->lock before calling this function !
181 * The first queue used for block-ack aggregation is #7 (4965 only).
182 * All block-ack aggregation queues should map to Tx DMA/FIFO channel 7.
194 #define IL49_RTC_INST_SIZE (IL49_RTC_INST_UPPER_BOUND - \
[all …]
H A D4965.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Copyright(c) 2003 - 2011 Intel Corporation. All rights reserved.
8 * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
15 #include <linux/dma-mapping.h>
29 * il_verify_inst_sparse - verify runtime uCode image in card vs. host,
44 /* read data comes through single port, auto-incr addr */ in il4965_verify_inst_sparse()
50 ret = -EIO; in il4965_verify_inst_sparse()
61 * il4965_verify_inst_full - verify runtime uCode image in card vs. host,
77 for (; len > 0; len -= sizeof(u32), image++) { in il4965_verify_inst_full()
78 /* read data comes through single port, auto-incr addr */ in il4965_verify_inst_full()
[all …]
H A D3945.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Copyright(c) 2003 - 2011 Intel Corporation. All rights reserved.
8 * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
16 #include <linux/dma-mapping.h>
94 * il3945_disable_events - Disable selected events in uCode event log
99 * Use for only special debugging. This function is just a placeholder as-is,
107 u32 disable_ptr; /* SRAM address of event-disable bitmap array */ in il3945_disable_events()
110 0x00000000, /* 31 - 0 Event id numbers */ in il3945_disable_events()
111 0x00000000, /* 63 - 32 */ in il3945_disable_events()
112 0x00000000, /* 95 - 64 */ in il3945_disable_events()
[all …]
/linux/drivers/net/wireless/broadcom/b43legacy/
H A Dradio.c1 // SPDX-License-Identifier: GPL-2.0-or-later
6 Copyright (c) 2005 Martin Langer <martin-langer@gmx.de>,
14 driver Copyright(c) 2003 - 2004 Intel Corporation.
74 return frequencies_bg[channel - 1]; in channel2freq_bg()
101 struct b43legacy_phy *phy = &dev->phy; in b43legacy_radio_read16()
103 switch (phy->type) { in b43legacy_radio_read16()
105 if (phy->radio_ver == 0x2053) { in b43legacy_radio_read16()
110 } else if (phy->radio_ver == 0x2050) in b43legacy_radio_read16()
135 struct b43legacy_phy *phy = &dev->phy; in b43legacy_set_all_gains()
142 if (phy->rev <= 1) { in b43legacy_set_all_gains()
[all …]
H A Dradio.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
6 Copyright (c) 2005 Martin Langer <martin-langer@gmx.de>,
13 driver Copyright(c) 2003 - 2004 Intel Corporation.
56 void b43legacy_radio_set_txpower_a(struct b43legacy_wldev *dev, u16 txpower);
59 u16 txpower);
H A Db43legacy.h1 /* SPDX-License-Identifier: GPL-2.0 */
59 /* 32-bit DMA */
66 /* 64-bit DMA */
119 #define B43legacy_SHM_AUTOINC_R 0x0200 /* Read Auto-increment */
120 #define B43legacy_SHM_AUTOINC_W 0x0100 /* Write Auto-increment */
153 #define B43legacy_SHM_SH_SPUWKUP 0x0094 /* pre-wakeup for synth PU in us */
154 #define B43legacy_SHM_SH_PRETBTT 0x0096 /* pre-TBTT in us */
163 #define B43legacy_HF_SYMW 0x00000002 /* G-PHY SYM workaround */
164 #define B43legacy_HF_GDCW 0x00000020 /* G-PHY DV cancel filter */
227 #define B43legacy_TMSHIGH_GPHY 0x00010000 /* G-PHY avail (rev >= 5) */
[all …]
/linux/drivers/net/wireless/mediatek/mt76/mt7915/
H A Dmcu.h1 /* SPDX-License-Identifier: ISC */
519 mt7915_get_power_bound(struct mt7915_phy *phy, s8 txpower) in mt7915_get_power_bound() argument
521 struct mt76_phy *mphy = phy->mt76; in mt7915_get_power_bound()
522 int n_chains = hweight16(mphy->chainmask); in mt7915_get_power_bound()
524 txpower = mt76_get_sar_power(mphy, mphy->chandef.chan, txpower * 2); in mt7915_get_power_bound()
525 txpower -= mt76_tx_power_nss_delta(n_chains); in mt7915_get_power_bound()
527 return txpower; in mt7915_get_power_bound()
/linux/drivers/net/wireless/mediatek/mt76/mt7996/
H A Dmcu.h1 /* SPDX-License-Identifier: ISC */
813 mt7996_get_power_bound(struct mt7996_phy *phy, s8 txpower) in mt7996_get_power_bound() argument
815 struct mt76_phy *mphy = phy->mt76; in mt7996_get_power_bound()
816 int n_chains = hweight16(mphy->chainmask); in mt7996_get_power_bound()
818 txpower = mt76_get_sar_power(mphy, mphy->chandef.chan, txpower * 2); in mt7996_get_power_bound()
819 txpower -= mt76_tx_power_nss_delta(n_chains); in mt7996_get_power_bound()
821 return txpower; in mt7996_get_power_bound()
/linux/drivers/net/wireless/ath/ath9k/
H A Dar9002_mac.c2 * Copyright (c) 2008-2011 Atheros Communications Inc.
29 ((struct ath_desc*) ds)->ds_link = ds_link; in ar9002_hw_set_desc_link()
37 struct ath9k_hw_capabilities *pCap = &ah->caps; in ar9002_hw_get_isr()
81 if (!(pCap->hw_caps & ATH9K_HW_CAP_RAC_SUPPORTED)) { in ar9002_hw_get_isr()
87 if (pCap->hw_caps & ATH9K_HW_CAP_RAC_SUPPORTED) in ar9002_hw_get_isr()
108 if (pCap->hw_caps & ATH9K_HW_CAP_RAC_SUPPORTED) { in ar9002_hw_get_isr()
123 ah->intr_txqs = MS(s0_s, AR_ISR_S0_QCU_TXOK); in ar9002_hw_get_isr()
124 ah->intr_txqs |= MS(s0_s, AR_ISR_S0_QCU_TXDESC); in ar9002_hw_get_isr()
125 ah->intr_txqs |= MS(s1_s, AR_ISR_S1_QCU_TXERR); in ar9002_hw_get_isr()
126 ah->intr_txqs |= MS(s1_s, AR_ISR_S1_QCU_TXEOL); in ar9002_hw_get_isr()
[all …]
H A Deeprom_9287.c2 * Copyright (c) 2008-2011 Atheros Communications Inc.
25 u16 version = le16_to_cpu(ah->eeprom.map9287.baseEepHeader.version); in ath9k_hw_ar9287_get_eeprom_ver()
33 u16 version = le16_to_cpu(ah->eeprom.map9287.baseEepHeader.version); in ath9k_hw_ar9287_get_eeprom_rev()
40 struct ar9287_eeprom *eep = &ah->eeprom.map9287; in __ath9k_hw_ar9287_fill_eeprom()
56 u16 *eep_data = (u16 *)&ah->eeprom.map9287; in __ath9k_hw_usb_ar9287_fill_eeprom()
72 if (common->bus_ops->ath_bus_type == ATH_USB) in ath9k_hw_ar9287_fill_eeprom()
82 PR_EEP("Chain0 Ant. Control", le32_to_cpu(modal_hdr->antCtrlChain[0])); in ar9287_dump_modal_eeprom()
83 PR_EEP("Chain1 Ant. Control", le32_to_cpu(modal_hdr->antCtrlChain[1])); in ar9287_dump_modal_eeprom()
84 PR_EEP("Ant. Common Control", le32_to_cpu(modal_hdr->antCtrlCommon)); in ar9287_dump_modal_eeprom()
85 PR_EEP("Chain0 Ant. Gain", modal_hdr->antennaGainCh[0]); in ar9287_dump_modal_eeprom()
[all …]
H A Dar9003_mac.c2 * Copyright (c) 2010-2011 Atheros Communications Inc.
39 (i->qcu << AR_TxQcuNum_S) | desc_len; in ar9003_set_txdesc()
42 WRITE_ONCE(ads->info, val); in ar9003_set_txdesc()
44 checksum += i->link; in ar9003_set_txdesc()
45 WRITE_ONCE(ads->link, i->link); in ar9003_set_txdesc()
47 checksum += i->buf_addr[0]; in ar9003_set_txdesc()
48 WRITE_ONCE(ads->data0, i->buf_addr[0]); in ar9003_set_txdesc()
49 checksum += i->buf_addr[1]; in ar9003_set_txdesc()
50 WRITE_ONCE(ads->data1, i->buf_addr[1]); in ar9003_set_txdesc()
51 checksum += i->buf_addr[2]; in ar9003_set_txdesc()
[all …]
H A Dcommon.h2 * Copyright (c) 2009-2011 Atheros Communications Inc.
22 #include "hw-ops.h"
24 #include "common-init.h"
25 #include "common-beacon.h"
26 #include "common-debug.h"
27 #include "common-spectral.h"
37 #define RSSI_LPF_THRESHOLD -20
42 ((x != ATH_RSSI_DUMMY_MARKER) ? (((x) * ((len) - 1) + (y)) / (len)) : (y))
89 u16 new_txpow, u16 *txpower);
H A Dcommon.c2 * Copyright (c) 2009-2011 Atheros Communications Inc.
38 struct ath_hw *ah = common->ah; in ath9k_cmn_rx_accept()
42 fc = hdr->frame_control; in ath9k_cmn_rx_accept()
44 is_mc = !!is_multicast_ether_addr(hdr->addr1); in ath9k_cmn_rx_accept()
45 is_valid_tkip = rx_stats->rs_keyix != ATH9K_RXKEYIX_INVALID && in ath9k_cmn_rx_accept()
46 test_bit(rx_stats->rs_keyix, common->tkip_keymap); in ath9k_cmn_rx_accept()
49 !(rx_stats->rs_status & in ath9k_cmn_rx_accept()
58 if (rx_stats->rs_keyix == ATH9K_RXKEYIX_INVALID || in ath9k_cmn_rx_accept()
59 !test_bit(rx_stats->rs_keyix, common->ccmp_keymap)) in ath9k_cmn_rx_accept()
60 rx_stats->rs_status &= ~ATH9K_RXERR_KEYMISS; in ath9k_cmn_rx_accept()
[all …]
H A Deeprom_def.c2 * Copyright (c) 2008-2011 Atheros Communications Inc.
49 while (pcdac > ah->originalGain[i] && in ath9k_get_txgain_index()
50 i < (AR9280_TX_GAIN_TABLE_SIZE - 1)) in ath9k_get_txgain_index()
58 int txPower, in ath9k_olc_get_pdadcs() argument
72 offset = txPower; in ath9k_olc_get_pdadcs()
82 u16 version = le16_to_cpu(ah->eeprom.def.baseEepHeader.version); in ath9k_hw_def_get_eeprom_ver()
90 u16 version = le16_to_cpu(ah->eeprom.def.baseEepHeader.version); in ath9k_hw_def_get_eeprom_rev()
99 u16 *eep_data = (u16 *)&ah->eeprom.def; in __ath9k_hw_def_fill_eeprom()
113 u16 *eep_data = (u16 *)&ah->eeprom.def; in __ath9k_hw_usb_def_fill_eeprom()
128 if (common->bus_ops->ath_bus_type == ATH_USB) in ath9k_hw_def_fill_eeprom()
[all …]
/linux/drivers/staging/rtl8723bs/hal/
H A Dhal_com_phycfg.c1 // SPDX-License-Identifier: GPL-2.0
4 * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
23 value = pHalData->TxPwrByRateBase2_4G[RfPath][0]; in PHY_GetTxPowerByRateBase()
26 value = pHalData->TxPwrByRateBase2_4G[RfPath][1]; in PHY_GetTxPowerByRateBase()
29 value = pHalData->TxPwrByRateBase2_4G[RfPath][2]; in PHY_GetTxPowerByRateBase()
49 pHalData->TxPwrByRateBase2_4G[RfPath][0] = Value; in phy_SetTxPowerByRateBase()
52 pHalData->TxPwrByRateBase2_4G[RfPath][1] = Value; in phy_SetTxPowerByRateBase()
55 pHalData->TxPwrByRateBase2_4G[RfPath][2] = Value; in phy_SetTxPowerByRateBase()
86 struct dm_odm_t *pDM_Odm = &pHalData->odmpriv; in PHY_GetRateSectionIndexOfTxPowerByRate()
89 if (pDM_Odm->PhyRegPgVersion == 0) { in PHY_GetRateSectionIndexOfTxPowerByRate()
[all …]
/linux/drivers/net/wireless/ath/carl9170/
H A Dtx.c25 * Copyright (c) 2007-2008 Atheros Communications, Inc.
72 return (DIV_ROUND_UP(IEEE80211_MAX_FRAME_LEN, ar->fw.mem_block_size) > in is_mem_full()
73 atomic_read(&ar->mem_free_blocks)); in is_mem_full()
81 atomic_inc(&ar->tx_total_queued); in carl9170_tx_accounting()
84 spin_lock_bh(&ar->tx_stats_lock); in carl9170_tx_accounting()
92 ar->tx_stats[queue].len++; in carl9170_tx_accounting()
93 ar->tx_stats[queue].count++; in carl9170_tx_accounting()
96 for (i = 0; i < ar->hw->queues; i++) { in carl9170_tx_accounting()
97 if (mem_full || ar->tx_stats[i].len >= ar->tx_stats[i].limit) { in carl9170_tx_accounting()
98 ieee80211_stop_queue(ar->hw, i); in carl9170_tx_accounting()
[all …]
/linux/drivers/net/wireless/mediatek/mt76/mt7603/
H A Dmcu.c1 // SPDX-License-Identifier: ISC
24 dev_err(mdev->dev, "MCU message %02x (seq %d) timed out\n", in mt7603_mcu_parse_response()
26 dev->mcu_hang = MT7603_WATCHDOG_TIMEOUT; in mt7603_mcu_parse_response()
27 return -ETIMEDOUT; in mt7603_mcu_parse_response()
30 rxd = (struct mt7603_mcu_rxd *)skb->data; in mt7603_mcu_parse_response()
31 if (seq != rxd->seq) in mt7603_mcu_parse_response()
32 return -EAGAIN; in mt7603_mcu_parse_response()
42 int hdrlen = dev->mcu_running ? sizeof(struct mt7603_mcu_txd) : 12; in mt7603_mcu_skb_send_msg()
46 mdev->mcu.timeout = 3 * HZ; in mt7603_mcu_skb_send_msg()
48 seq = ++mdev->mcu.msg_seq & 0xf; in mt7603_mcu_skb_send_msg()
[all …]
/linux/drivers/net/wireless/ralink/rt2x00/
H A Drt2400pci.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 Copyright (C) 2004 - 2009 Ivo van Doorn <IvDoorn@gmail.com>
25 * Default offset is required for RSSI <-> dBm conversion.
153 * CSR11: Back-off control register.
154 * CWMIN: CWmin. Default cwmin is 31 (2^5 - 1).
155 * CWMAX: CWmax. Default cwmax is 1023 (2^10 - 1).
190 * TSF_SYNC: Tsf sync, 0: disable, 1: infra, 2: ad-hoc/master mode.
210 * CFP: ASIC is in contention-free period.
459 * ENABLE_CLK: Enable clk_run, pci clock can't going down to non-operational.
544 * KICK_RX: Kick one-shot rx in one-shot rx mode.
[all …]
H A Drt73usb.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 Copyright (C) 2004 - 2009 Ivo van Doorn <IvDoorn@gmail.com>
14 #include <linux/crc-itu-t.h>
57 mutex_lock(&rt2x00dev->csr_mutex); in rt73usb_bbp_write()
73 mutex_unlock(&rt2x00dev->csr_mutex); in rt73usb_bbp_write()
82 mutex_lock(&rt2x00dev->csr_mutex); in rt73usb_bbp_read()
105 mutex_unlock(&rt2x00dev->csr_mutex); in rt73usb_bbp_read()
115 mutex_lock(&rt2x00dev->csr_mutex); in rt73usb_rf_write()
138 mutex_unlock(&rt2x00dev->csr_mutex); in rt73usb_rf_write()
192 (enabled && led->rt2x00dev->curr_band == NL80211_BAND_5GHZ); in rt73usb_brightness_set()
[all …]
/linux/drivers/net/wireless/silabs/wfx/
H A Dscan.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (c) 2017-2020, Silicon Laboratories, Inc.
6 * Copyright (c) 2010, ST-Ericsson
29 skb = ieee80211_probereq_get(wvif->wdev->hw, vif->addr, NULL, 0, in update_probe_tmpl()
30 req->ie_len); in update_probe_tmpl()
32 return -ENOMEM; in update_probe_tmpl()
34 skb_put_data(skb, req->ie, req->ie_len); in update_probe_tmpl()
46 for (i = start_idx; i < req->n_channels; i++) { in send_scan_req()
47 ch_start = req->channels[start_idx]; in send_scan_req()
48 ch_cur = req->channels[i]; in send_scan_req()
[all …]
/linux/drivers/net/wireless/marvell/libertas/
H A Dradiotap.h1 /* SPDX-License-Identifier: GPL-2.0 */
7 u8 txpower; member
/linux/Documentation/devicetree/bindings/net/wireless/
H A Dmediatek,mt76.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 # Copyright (c) 2018-2019 The Linux Foundation. All rights reserved.
4 ---
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
11 - Felix Fietkau <nbd@nbd.name>
12 - Lorenzo Bianconi <lorenzo@kernel.org>
13 - Ryder Lee <ryder.lee@mediatek.com>
25 - mediatek,mt76
26 - mediatek,mt7628-wmac
27 - mediatek,mt7622-wmac
[all …]
/linux/drivers/net/wireless/intel/iwlwifi/
H A Diwl-agn-hw.h1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
3 * Copyright (C) 2005-2014 Intel Corporation
6 * Please use this file (iwl-agn-hw.h) only for hardware-related definitions.
18 #define IWLAGN_RTC_INST_SIZE (IWLAGN_RTC_INST_UPPER_BOUND - \
20 #define IWLAGN_RTC_DATA_SIZE (IWLAGN_RTC_DATA_UPPER_BOUND - \
28 (IWL60_RTC_INST_UPPER_BOUND - IWL60_RTC_INST_LOWER_BOUND)
30 (IWL60_RTC_DATA_UPPER_BOUND - IWL60_RTC_DATA_LOWER_BOUND)
41 /* Limit range of txpower output target to be between these values */
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8723be/
H A Dphy.c1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright(c) 2009-2014 Realtek Corporation.*/
41 spin_lock(&rtlpriv->locks.rf_lock); in rtl8723be_phy_query_rf_reg()
47 spin_unlock(&rtlpriv->locks.rf_lock); in rtl8723be_phy_query_rf_reg()
66 spin_lock(&rtlpriv->locks.rf_lock); in rtl8723be_phy_set_rf_reg()
78 spin_unlock(&rtlpriv->locks.rf_lock); in rtl8723be_phy_set_rf_reg()
102 u8 crystalcap = rtlpriv->efuse.crystalcap; in rtl8723be_phy_bb_config()
138 u32 cut_ver = ((rtlhal->version & CHIP_VER_RTL_MASK) in _rtl8723be_check_positive()
140 u32 intf = (rtlhal->interface == INTF_USB ? BIT(1) : BIT(0)); in _rtl8723be_check_positive()
142 u8 board_type = ((rtlhal->board_type & BIT(4)) >> 4) << 0 | /* _GLNA */ in _rtl8723be_check_positive()
[all …]
/linux/drivers/net/wireless/ath/ath5k/
H A Dphy.c2 * Copyright (c) 2004-2007 Reyk Floeter <reyk@openbsd.org>
3 * Copyright (c) 2006-2009 Nick Kossifidis <mickflemm@gmail.com>
4 * Copyright (c) 2007-2008 Jiri Slaby <jirislaby@gmail.com>
5 * Copyright (c) 2008-2009 Felix Fietkau <nbd@openwrt.org>
42 * Here we handle the low-level functions related to baseband
48 * - Channel setting/switching
50 * - Automatic Gain Control (AGC) calibration
52 * - Noise Floor calibration
54 * - I/Q imbalance calibration (QAM correction)
56 * - Calibration due to thermal changes (gain_F)
[all …]

123