/linux/drivers/net/wireless/intel/iwlegacy/ |
H A D | 4965.h | 1 /* 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 D | 4965.c | 1 // 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 D | 3945.c | 1 // 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 D | radio.c | 1 // 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 D | radio.h | 1 /* 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 D | b43legacy.h | 1 /* 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/ralink/rt2x00/ |
H A D | rt2800lib.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 24 #include <linux/crc-ccitt.h> 87 mutex_lock(&rt2x00dev->csr_mutex); in rt2800_bbp_write() 104 mutex_unlock(&rt2x00dev->csr_mutex); in rt2800_bbp_write() 112 mutex_lock(&rt2x00dev->csr_mutex); in rt2800_bbp_read() 136 mutex_unlock(&rt2x00dev->csr_mutex); in rt2800_bbp_read() 146 mutex_lock(&rt2x00dev->csr_mutex); in rt2800_rfcsr_write() 152 switch (rt2x00dev->chip.rt) { in rt2800_rfcsr_write() 179 mutex_unlock(&rt2x00dev->csr_mutex); in rt2800_rfcsr_write() 228 mutex_lock(&rt2x00dev->csr_mutex); in rt2800_rfcsr_read() [all …]
|
H A D | rt2400pci.h | 1 /* 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 …]
|
/linux/drivers/net/wireless/mediatek/mt76/mt7915/ |
H A D | mcu.h | 1 /* 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()
|
H A D | mt7915.h | 1 /* SPDX-License-Identifier: ISC */ 15 #define MT7915_WTBL_RESERVED (mt7915_wtbl_size(dev) - 1) 16 #define MT7915_WTBL_STA (MT7915_WTBL_RESERVED - \ 179 /* crash-dump */ 359 struct mt76_phy *phy = hw->priv; in mt7915_hw_phy() 361 return phy->priv; in mt7915_hw_phy() 367 struct mt76_phy *phy = hw->priv; in mt7915_hw_dev() 369 return container_of(phy->dev, struct mt7915_dev, mt76); in mt7915_hw_dev() 375 struct mt76_phy *phy = dev->mt76.phys[MT_BAND1]; in mt7915_ext_phy() 380 return phy->priv; in mt7915_ext_phy() [all …]
|
/linux/drivers/staging/rtl8712/ |
H A D | rtl871x_mp.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * Copyright(c) 2007 - 2010 Realtek Corporation. All rights reserved. 23 pmp_priv->mode = _LOOPBOOK_MODE_; in _init_mp_priv_() 24 pmp_priv->curr_ch = 1; in _init_mp_priv_() 25 pmp_priv->curr_modem = MIXED_PHY; in _init_mp_priv_() 26 pmp_priv->curr_rateidx = 0; in _init_mp_priv_() 27 pmp_priv->curr_txpoweridx = 0x14; in _init_mp_priv_() 28 pmp_priv->antenna_tx = ANTENNA_A; in _init_mp_priv_() 29 pmp_priv->antenna_rx = ANTENNA_AB; in _init_mp_priv_() 30 pmp_priv->check_mp_pkt = 0; in _init_mp_priv_() [all …]
|
/linux/net/wireless/ |
H A D | wext-compat.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * cfg80211 - wext compat code 9 * Copyright 2008-2009 Johannes Berg <johannes@sipsolutions.net> 10 * Copyright (C) 2019-2023 Intel Corporation 21 #include <net/cfg80211-wext.h> 22 #include "wext-compat.h" 24 #include "rdev-ops.h" 30 strcpy(wrqu->name, "IEEE 802.11"); in cfg80211_wext_giwname() 38 __u32 *mode = &wrqu->mode; in cfg80211_wext_siwmode() 39 struct wireless_dev *wdev = dev->ieee80211_ptr; in cfg80211_wext_siwmode() [all …]
|
/linux/drivers/net/wireless/mediatek/mt76/mt7996/ |
H A D | mcu.h | 1 /* 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/staging/rtl8723bs/hal/ |
H A D | rtl8723b_phycfg.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved. 12 * phy_CalculateBitShift - Get shifted position of the BitMask. 30 * PHY_QueryBBReg_8723B - Read "specific bits" from BB register. 54 * PHY_SetBBReg_8723B - Write "Specific bits" to BB register (page 8~). 97 struct bb_register_def *pPhyReg = &pHalData->PHYRegDef[eRFPath]; in phy_RFSerialRead_8723B() 138 retValue = PHY_QueryBBReg(Adapter, pPhyReg->rfLSSIReadBackPi|MaskforPhySet, bLSSIReadBackData); in phy_RFSerialRead_8723B() 141 retValue = PHY_QueryBBReg(Adapter, pPhyReg->rfLSSIReadBack|MaskforPhySet, bLSSIReadBackData); in phy_RFSerialRead_8723B() 148 * phy_RFSerialWrite_8723B - Write data to RF register (page 8~). 157 * 2. Hardware LSSI-Low Speed Serial Interface [all …]
|
H A D | hal_com_phycfg.c | 1 // 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/ath9k/ |
H A D | ar9002_mac.c | 2 * 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 D | eeprom_9287.c | 2 * 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 D | xmit.c | 2 * Copyright (c) 2008-2011 Atheros Communications Inc. 17 #include <linux/dma-mapping.h> 33 #define TIME_SYMBOLS_HALFGI(t) (((t) * 5 - 4) / 18) 35 #define NUM_SYMBOLS_PER_USEC_HALFGI(_usec) (((_usec*5)-4)/18) 49 { 104, 216 }, /* 3: 16-QAM 1/2 */ 50 { 156, 324 }, /* 4: 16-QAM 3/4 */ 51 { 208, 432 }, /* 5: 64-QAM 2/3 */ 52 { 234, 486 }, /* 6: 64-QAM 3/4 */ 53 { 260, 540 }, /* 7: 64-QAM 5/6 */ 93 struct ieee80211_sta *sta = info->status.status_driver_data[0]; in ath_tx_status() [all …]
|
H A D | ar9003_mac.c | 2 * 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 …]
|
/linux/drivers/net/wireless/ath/carl9170/ |
H A D | tx.c | 25 * 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 D | mcu.c | 1 // 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/silabs/wfx/ |
H A D | scan.c | 1 // 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/realtek/rtlwifi/rtl8821ae/ |
H A D | phy.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 2009-2010 Realtek Corporation.*/ 51 if (IS_VENDOR_8812A_C_CUT(rtlhal->version)) { in rtl8812ae_fixspur() 78 } else if (rtlhal->hw_type == HARDWARE_TYPE_RTL8812AE) { in rtl8812ae_fixspur() 146 spin_lock(&rtlpriv->locks.rf_lock); in rtl8821ae_phy_query_rf_reg() 152 spin_unlock(&rtlpriv->locks.rf_lock); in rtl8821ae_phy_query_rf_reg() 172 spin_lock(&rtlpriv->locks.rf_lock); in rtl8821ae_phy_set_rf_reg() 183 spin_unlock(&rtlpriv->locks.rf_lock); in rtl8821ae_phy_set_rf_reg() 207 !((rtlhal->hw_type == HARDWARE_TYPE_RTL8821AE) || in _rtl8821ae_phy_rf_serial_read() 208 (IS_VENDOR_8812A_C_CUT(rtlhal->version)))) in _rtl8821ae_phy_rf_serial_read() [all …]
|
/linux/drivers/net/wireless/marvell/libertas/ |
H A D | radiotap.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 7 u8 txpower; member
|
/linux/Documentation/devicetree/bindings/net/wireless/ |
H A D | mediatek,mt76.yaml | 1 # 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 …]
|