| /kernel/linux/linux-5.10/drivers/staging/wfx/ |
| D | data_tx.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (c) 2017-2020, Silicon Laboratories, Inc. 6 * Copyright (c) 2010, ST-Ericsson 25 if (rate->idx < 0) in wfx_get_hw_rate() 26 return -1; in wfx_get_hw_rate() 27 if (rate->flags & IEEE80211_TX_RC_MCS) { in wfx_get_hw_rate() 28 if (rate->idx > 7) { in wfx_get_hw_rate() 29 WARN(1, "wrong rate->idx value: %d", rate->idx); in wfx_get_hw_rate() 30 return -1; in wfx_get_hw_rate() 32 return rate->idx + 14; in wfx_get_hw_rate() [all …]
|
| /kernel/linux/linux-6.6/drivers/net/wireless/silabs/wfx/ |
| D | data_tx.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Data transmitting implementation. 5 * Copyright (c) 2017-2020, Silicon Laboratories, Inc. 6 * Copyright (c) 2010, ST-Ericsson 24 if (rate->idx < 0) in wfx_get_hw_rate() 25 return -1; in wfx_get_hw_rate() 26 if (rate->flags & IEEE80211_TX_RC_MCS) { in wfx_get_hw_rate() 27 if (rate->idx > 7) { in wfx_get_hw_rate() 28 WARN(1, "wrong rate->idx value: %d", rate->idx); in wfx_get_hw_rate() 29 return -1; in wfx_get_hw_rate() [all …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/net/wireless/ |
| 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> 23 - $ref: ieee80211.yaml# 28 - mediatek,mt76 29 - mediatek,mt7628-wmac [all …]
|
| /kernel/linux/linux-5.10/net/mac80211/ |
| D | rate.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright 2002-2005, Instant802 Networks, Inc. 4 * Copyright 2005-2006, Devicescape Software, Inc. 32 struct ieee80211_local *local = sta->sdata->local; in rate_control_rate_init() 33 struct rate_control_ref *ref = sta->rate_ctrl; in rate_control_rate_init() 34 struct ieee80211_sta *ista = &sta->sta; in rate_control_rate_init() 35 void *priv_sta = sta->rate_ctrl_priv; in rate_control_rate_init() 46 chanctx_conf = rcu_dereference(sta->sdata->vif.chanctx_conf); in rate_control_rate_init() 52 sband = local->hw.wiphy->bands[chanctx_conf->def.chan->band]; in rate_control_rate_init() 55 if (sband->band == NL80211_BAND_S1GHZ) { in rate_control_rate_init() [all …]
|
| D | status.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright 2002-2005, Instant802 Networks, Inc. 4 * Copyright 2005-2006, Devicescape Software, Inc. 5 * Copyright 2006-2007 Jiri Benc <jbenc@suse.cz> 6 * Copyright 2008-2010 Johannes Berg <johannes@sipsolutions.net> 7 * Copyright 2013-2014 Intel Mobile Communications GmbH 28 skb->pkt_type = IEEE80211_TX_STATUS_MSG; in ieee80211_tx_status_irqsafe() 29 skb_queue_tail(info->flags & IEEE80211_TX_CTL_REQ_TX_STATUS ? in ieee80211_tx_status_irqsafe() 30 &local->skb_queue : &local->skb_queue_unreliable, skb); in ieee80211_tx_status_irqsafe() 31 tmp = skb_queue_len(&local->skb_queue) + in ieee80211_tx_status_irqsafe() [all …]
|
| /kernel/linux/linux-6.6/sound/usb/ |
| D | format.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 9 #include <linux/usb/audio-v2.h> 10 #include <linux/usb/audio-v3.h> 38 switch (fp->protocol) { in parse_audio_format_i_type() 45 fp->iface, fp->altsetting, format); in parse_audio_format_i_type() 48 sample_width = fmt->bBitResolution; in parse_audio_format_i_type() 49 sample_bytes = fmt->bSubframeSize; in parse_audio_format_i_type() 56 sample_width = fmt->bBitResolution; in parse_audio_format_i_type() 57 sample_bytes = fmt->bSubslotSize; in parse_audio_format_i_type() 62 fp->dsd_raw = true; in parse_audio_format_i_type() [all …]
|
| /kernel/linux/linux-5.10/sound/usb/ |
| D | format.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 9 #include <linux/usb/audio-v2.h> 10 #include <linux/usb/audio-v3.h> 39 switch (fp->protocol) { in parse_audio_format_i_type() 46 fp->iface, fp->altsetting, format); in parse_audio_format_i_type() 49 sample_width = fmt->bBitResolution; in parse_audio_format_i_type() 50 sample_bytes = fmt->bSubframeSize; in parse_audio_format_i_type() 57 sample_width = fmt->bBitResolution; in parse_audio_format_i_type() 58 sample_bytes = fmt->bSubslotSize; in parse_audio_format_i_type() 63 fp->dsd_raw = true; in parse_audio_format_i_type() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/wireless/intersil/orinoco/ |
| D | scan.c | 24 - ZERO_DBM_OFFSET) 27 static int symbol_build_supp_rates(u8 *buf, const __le16 *rates) in symbol_build_supp_rates() argument 34 rate = le16_to_cpu(rates[i]); in symbol_build_supp_rates() 45 static int prism_build_supp_rates(u8 *buf, const u8 *rates) in prism_build_supp_rates() argument 52 if (rates[i] == 0x0) in prism_build_supp_rates() 54 buf[i + 2] = rates[i]; in prism_build_supp_rates() 58 /* We might still have another 2 rates, which need to go in in prism_build_supp_rates() 59 * extended supported rates */ in prism_build_supp_rates() 60 if (i == 8 && rates[i] > 0) { in prism_build_supp_rates() 64 if (rates[i] == 0x0) in prism_build_supp_rates() [all …]
|
| /kernel/linux/linux-6.6/drivers/net/wireless/intersil/orinoco/ |
| D | scan.c | 24 - ZERO_DBM_OFFSET) 27 static int symbol_build_supp_rates(u8 *buf, const __le16 *rates) in symbol_build_supp_rates() argument 34 rate = le16_to_cpu(rates[i]); in symbol_build_supp_rates() 45 static int prism_build_supp_rates(u8 *buf, const u8 *rates) in prism_build_supp_rates() argument 52 if (rates[i] == 0x0) in prism_build_supp_rates() 54 buf[i + 2] = rates[i]; in prism_build_supp_rates() 58 /* We might still have another 2 rates, which need to go in in prism_build_supp_rates() 59 * extended supported rates */ in prism_build_supp_rates() 60 if (i == 8 && rates[i] > 0) { in prism_build_supp_rates() 64 if (rates[i] == 0x0) in prism_build_supp_rates() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/wireless/st/cw1200/ |
| D | txrx.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Datapath implementation for ST-Ericsson CW1200 mac80211 drivers 5 * Copyright (c) 2010, ST-Ericsson 34 cw1200_queue_lock(&priv->tx_queue[i]); in cw1200_tx_queues_lock() 41 cw1200_queue_unlock(&priv->tx_queue[i]); in cw1200_tx_queues_unlock() 50 policy->raw[0] & 0x0F, policy->raw[0] >> 4, in tx_policy_dump() 51 policy->raw[1] & 0x0F, policy->raw[1] >> 4, in tx_policy_dump() 52 policy->raw[2] & 0x0F, policy->raw[2] >> 4, in tx_policy_dump() 53 policy->raw[3] & 0x0F, policy->raw[3] >> 4, in tx_policy_dump() 54 policy->raw[4] & 0x0F, policy->raw[4] >> 4, in tx_policy_dump() [all …]
|
| /kernel/linux/linux-6.6/drivers/net/wireless/st/cw1200/ |
| D | txrx.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Datapath implementation for ST-Ericsson CW1200 mac80211 drivers 5 * Copyright (c) 2010, ST-Ericsson 34 cw1200_queue_lock(&priv->tx_queue[i]); in cw1200_tx_queues_lock() 41 cw1200_queue_unlock(&priv->tx_queue[i]); in cw1200_tx_queues_unlock() 50 policy->raw[0] & 0x0F, policy->raw[0] >> 4, in tx_policy_dump() 51 policy->raw[1] & 0x0F, policy->raw[1] >> 4, in tx_policy_dump() 52 policy->raw[2] & 0x0F, policy->raw[2] >> 4, in tx_policy_dump() 53 policy->raw[3] & 0x0F, policy->raw[3] >> 4, in tx_policy_dump() 54 policy->raw[4] & 0x0F, policy->raw[4] >> 4, in tx_policy_dump() [all …]
|
| /kernel/linux/linux-6.6/drivers/net/wireless/marvell/mwifiex/ |
| D | cfp.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright 2011-2020 NXP 83 /* AC rates */ 181 * This function maps an index in supported rates table into 182 * the corresponding data rate. 202 rate = ac_mcs_rate_nss2[2 * (3 - bw) + gi][mcs_index]; in mwifiex_index_to_acs_data_rate() 204 rate = ac_mcs_rate_nss1[2 * (3 - bw) + gi][mcs_index]; in mwifiex_index_to_acs_data_rate() 219 rate = mcs_rate[2 * (1 - bw) + gi][index]; in mwifiex_index_to_acs_data_rate() 226 /* 11n non-HT rates */ in mwifiex_index_to_acs_data_rate() 235 /* This function maps an index in supported rates table into [all …]
|
| /kernel/linux/linux-5.10/drivers/net/wireless/marvell/mwifiex/ |
| D | cfp.c | 4 * Copyright 2011-2020 NXP 11 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA or on the 12 * worldwide web at http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt. 14 * THE FILE IS DISTRIBUTED AS-IS, WITHOUT WARRANTY OF ANY KIND, AND THE 95 /* AC rates */ 193 * This function maps an index in supported rates table into 194 * the corresponding data rate. 214 rate = ac_mcs_rate_nss2[2 * (3 - bw) + gi][mcs_index]; in mwifiex_index_to_acs_data_rate() 216 rate = ac_mcs_rate_nss1[2 * (3 - bw) + gi][mcs_index]; in mwifiex_index_to_acs_data_rate() 231 rate = mcs_rate[2 * (1 - bw) + gi][index]; in mwifiex_index_to_acs_data_rate() [all …]
|
| /kernel/linux/linux-6.6/sound/soc/fsl/ |
| D | fsl_rpmsg.c | 1 // SPDX-License-Identifier: GPL-2.0+ 2 // Copyright 2018-2021 NXP 5 #include <linux/clk-provider.h> 19 #include "imx-pcm.h" 45 struct clk *p = rpmsg->mclk, *pll = NULL, *npll = NULL; in fsl_rpmsg_hw_params() 50 while (p && rpmsg->pll8k && rpmsg->pll11k) { in fsl_rpmsg_hw_params() 53 if (clk_is_match(pp, rpmsg->pll8k) || in fsl_rpmsg_hw_params() 54 clk_is_match(pp, rpmsg->pll11k)) { in fsl_rpmsg_hw_params() 63 npll = (do_div(rate, 8000) ? rpmsg->pll11k : rpmsg->pll8k); in fsl_rpmsg_hw_params() 67 dev_warn(dai->dev, "failed to set parent %s: %d\n", in fsl_rpmsg_hw_params() [all …]
|
| /kernel/linux/linux-6.6/net/mac80211/ |
| D | rate.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright 2002-2005, Instant802 Networks, Inc. 4 * Copyright 2005-2006, Devicescape Software, Inc. 33 struct ieee80211_local *local = sta->sdata->local; in rate_control_rate_init() 34 struct rate_control_ref *ref = sta->rate_ctrl; in rate_control_rate_init() 35 struct ieee80211_sta *ista = &sta->sta; in rate_control_rate_init() 36 void *priv_sta = sta->rate_ctrl_priv; in rate_control_rate_init() 40 ieee80211_sta_init_nss(&sta->deflink); in rate_control_rate_init() 47 chanctx_conf = rcu_dereference(sta->sdata->vif.bss_conf.chanctx_conf); in rate_control_rate_init() 53 sband = local->hw.wiphy->bands[chanctx_conf->def.chan->band]; in rate_control_rate_init() [all …]
|
| D | status.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright 2002-2005, Instant802 Networks, Inc. 4 * Copyright 2005-2006, Devicescape Software, Inc. 5 * Copyright 2006-2007 Jiri Benc <jbenc@suse.cz> 6 * Copyright 2008-2010 Johannes Berg <johannes@sipsolutions.net> 7 * Copyright 2013-2014 Intel Mobile Communications GmbH 8 * Copyright 2021-2023 Intel Corporation 29 skb->pkt_type = IEEE80211_TX_STATUS_MSG; in ieee80211_tx_status_irqsafe() 30 skb_queue_tail(info->flags & IEEE80211_TX_CTL_REQ_TX_STATUS ? in ieee80211_tx_status_irqsafe() 31 &local->skb_queue : &local->skb_queue_unreliable, skb); in ieee80211_tx_status_irqsafe() [all …]
|
| /kernel/linux/linux-6.6/drivers/net/wireless/ath/ath9k/ |
| D | xmit.c | 2 * Copyright (c) 2008-2011 Atheros Communications Inc. 12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 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 */ [all …]
|
| /kernel/linux/linux-6.6/drivers/net/wireless/mediatek/mt76/mt7615/ |
| D | mac.c | 1 // SPDX-License-Identifier: ISC 20 #define to_rssi(field, rxv) ((FIELD_GET(field, rxv) - 220) / 2) 23 .pulse_th = { 110, -10, -80, 40, 5200, 128, 5200 }, 37 .pulse_th = { 110, -10, -80, 40, 5200, 128, 5200 }, 48 .pulse_th = { 110, -10, -80, 40, 5200, 128, 5200 }, 96 wcid = rcu_dereference(dev->mt76.wcid[idx]); in mt7615_rx_get_wcid() 100 if (!wcid->sta) in mt7615_rx_get_wcid() 104 if (!sta->vif) in mt7615_rx_get_wcid() 107 return &sta->vif->sta.wcid; in mt7615_rx_get_wcid() 112 struct mt7615_dev *dev = phy->dev; in mt7615_mac_reset_counters() [all …]
|
| /kernel/linux/linux-6.6/drivers/net/wireless/mediatek/mt76/mt7603/ |
| D | mac.c | 1 // SPDX-License-Identifier: ISC 42 memset(dev->mphy.aggr_stats, 0, sizeof(dev->mphy.aggr_stats)); in mt7603_mac_reset_counters() 51 int offset = 3 * dev->coverage_class; in mt7603_mac_set_timing() 54 bool is_5ghz = dev->mphy.chandef.chan->band == NL80211_BAND_5GHZ; in mt7603_mac_set_timing() 73 FIELD_PREP(MT_IFS_SLOT, dev->slottime)); in mt7603_mac_set_timing() 75 if (dev->slottime < 20 || is_5ghz) in mt7603_mac_set_timing() 229 u32 addr = mt7603_wtbl1_addr(sta->wcid.idx); in mt7603_wtbl_set_smps() 231 if (sta->smps == enabled) in mt7603_wtbl_set_smps() 235 sta->smps = enabled; in mt7603_wtbl_set_smps() 241 int idx = sta->wcid.idx; in mt7603_wtbl_set_ps() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/mt7603/ |
| D | mac.c | 1 // SPDX-License-Identifier: ISC 42 memset(dev->mt76.aggr_stats, 0, sizeof(dev->mt76.aggr_stats)); in mt7603_mac_reset_counters() 51 int offset = 3 * dev->coverage_class; in mt7603_mac_set_timing() 54 bool is_5ghz = dev->mphy.chandef.chan->band == NL80211_BAND_5GHZ; in mt7603_mac_set_timing() 73 FIELD_PREP(MT_IFS_SLOT, dev->slottime)); in mt7603_mac_set_timing() 75 if (dev->slottime < 20 || is_5ghz) in mt7603_mac_set_timing() 217 u32 addr = mt7603_wtbl1_addr(sta->wcid.idx); in mt7603_wtbl_set_smps() 219 if (sta->smps == enabled) in mt7603_wtbl_set_smps() 223 sta->smps = enabled; in mt7603_wtbl_set_smps() 229 int idx = sta->wcid.idx; in mt7603_wtbl_set_ps() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/wireless/ath/ath9k/ |
| D | xmit.c | 2 * Copyright (c) 2008-2011 Atheros Communications Inc. 12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 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) 43 { 104, 216 }, /* 3: 16-QAM 1/2 */ 44 { 156, 324 }, /* 4: 16-QAM 3/4 */ 45 { 208, 432 }, /* 5: 64-QAM 2/3 */ 46 { 234, 486 }, /* 6: 64-QAM 3/4 */ 47 { 260, 540 }, /* 7: 64-QAM 5/6 */ [all …]
|
| /kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/mt7615/ |
| D | mac.c | 1 // SPDX-License-Identifier: ISC 18 #define to_rssi(field, rxv) ((FIELD_GET(field, rxv) - 220) / 2) 21 .pulse_th = { 40, -10, -80, 800, 3360, 128, 5200 }, 35 .pulse_th = { 40, -10, -80, 800, 3360, 128, 5200 }, 46 .pulse_th = { 40, -10, -80, 800, 3360, 128, 5200 }, 67 wcid = rcu_dereference(dev->mt76.wcid[idx]); in mt7615_rx_get_wcid() 71 if (!wcid->sta) in mt7615_rx_get_wcid() 75 if (!sta->vif) in mt7615_rx_get_wcid() 78 return &sta->vif->sta.wcid; in mt7615_rx_get_wcid() 90 memset(dev->mt76.aggr_stats, 0, sizeof(dev->mt76.aggr_stats)); in mt7615_mac_reset_counters() [all …]
|
| /kernel/linux/linux-6.6/drivers/net/wireless/broadcom/b43/ |
| D | xmit.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 8 Copyright (C) 2005 Martin Langer <martin-langer@gmx.de> 45 if (e->bitrate == bitrate) in b43_tx_legacy_rate_phy_ctl_ent() 56 switch (plcp->raw[0]) { in b43_plcp_get_bitrate_idx_cck() 66 return -1; in b43_plcp_get_bitrate_idx_cck() 75 switch (plcp->raw[0] & 0xF) { in b43_plcp_get_bitrate_idx_ofdm() 93 return -1; in b43_plcp_get_bitrate_idx_ofdm() 139 __u8 *raw = plcp->raw; in b43_generate_plcp_hdr() 147 plcp->data = cpu_to_le32(d); in b43_generate_plcp_hdr() 161 plcp->data |= cpu_to_le32(plen << 16); in b43_generate_plcp_hdr() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/wireless/broadcom/b43/ |
| D | xmit.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 8 Copyright (C) 2005 Martin Langer <martin-langer@gmx.de> 45 if (e->bitrate == bitrate) in b43_tx_legacy_rate_phy_ctl_ent() 56 switch (plcp->raw[0]) { in b43_plcp_get_bitrate_idx_cck() 66 return -1; in b43_plcp_get_bitrate_idx_cck() 75 switch (plcp->raw[0] & 0xF) { in b43_plcp_get_bitrate_idx_ofdm() 93 return -1; in b43_plcp_get_bitrate_idx_ofdm() 139 __u8 *raw = plcp->raw; in b43_generate_plcp_hdr() 147 plcp->data = cpu_to_le32(d); in b43_generate_plcp_hdr() 161 plcp->data |= cpu_to_le32(plen << 16); in b43_generate_plcp_hdr() [all …]
|
| /kernel/linux/linux-6.6/sound/core/ |
| D | pcm_misc.c | 2 * PCM Interface - misc routines 18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 29 #define SND_PCM_FORMAT_UNKNOWN (-1) 37 signed char le; /* 0 = big-endian, 1 = little-endian, -1 = others */ 38 signed char signd; /* 0 = unsigned, 1 = signed, -1 = others */ 39 unsigned char silence[8]; /* silence data to fill */ 52 .width = 8, .phys = 8, .le = -1, .signd = 1, 56 .width = 8, .phys = 8, .le = -1, .signd = 0, 108 .width = 32, .phys = 32, .le = 1, .signd = -1, 112 .width = 32, .phys = 32, .le = 0, .signd = -1, [all …]
|