/openbmc/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> 23 - $ref: ieee80211.yaml# 28 - mediatek,mt76 29 - mediatek,mt7628-wmac [all …]
|
/openbmc/linux/drivers/net/wireless/mediatek/mt76/ |
H A D | eeprom.c | 1 // SPDX-License-Identifier: ISC 9 #include <linux/nvmem-consumer.h> 15 struct device_node *np = dev->dev->of_node; in mt76_get_of_eeprom_data() 19 data = of_get_property(np, "mediatek,eeprom-data", &size); in mt76_get_of_eeprom_data() 21 return -ENOENT; in mt76_get_of_eeprom_data() 24 return -EINVAL; in mt76_get_of_eeprom_data() 34 struct device_node *np = dev->dev->of_node; in mt76_get_of_epprom_from_mtd() 43 list = of_get_property(np, "mediatek,mtd-eeprom", &size); in mt76_get_of_epprom_from_mtd() 45 return -ENOENT; in mt76_get_of_epprom_from_mtd() 49 return -ENOENT; in mt76_get_of_epprom_from_mtd() [all …]
|
H A D | mt76_connac_mac.c | 1 // SPDX-License-Identifier: ISC 17 he_ppet[0] = FIELD_PREP(IEEE80211_PPE_THRES_NSS_MASK, nss - 1) | in mt76_connac_gen_ppe_thresh() 25 for (i = 0; i < ppet_size - 1; i++) in mt76_connac_gen_ppe_thresh() 29 (0xff >> (8 - (ppet_bits - 1) % 8)); in mt76_connac_gen_ppe_thresh() 35 struct mt76_dev *dev = phy->dev; in mt76_connac_pm_wake() 40 cancel_delayed_work_sync(&pm->ps_work); in mt76_connac_pm_wake() 41 if (!test_bit(MT76_STATE_PM, &phy->state)) in mt76_connac_pm_wake() 44 if (pm->suspended) in mt76_connac_pm_wake() 47 queue_work(dev->wq, &pm->wake_work); in mt76_connac_pm_wake() 48 if (!wait_event_timeout(pm->wait, in mt76_connac_pm_wake() [all …]
|
H A D | mac80211.c | 1 // SPDX-License-Identifier: ISC 82 /* UNII-5 */ 107 /* UNII-6 */ 114 /* UNII-7 */ 132 /* UNII-8 */ 198 struct mt76_dev *dev = phy->dev; in mt76_led_init() 199 struct ieee80211_hw *hw = phy->hw; in mt76_led_init() 201 if (!phy->leds.cdev.brightness_set && !phy->leds.cdev.blink_set) in mt76_led_init() 204 snprintf(phy->leds.name, sizeof(phy->leds.name), "mt76-%s", in mt76_led_init() 205 wiphy_name(hw->wiphy)); in mt76_led_init() [all …]
|
H A D | mt76.h | 1 /* SPDX-License-Identifier: ISC */ 79 #define mt76_is_usb(dev) ((dev)->bus->type == MT76_BUS_USB) 80 #define mt76_is_mmio(dev) ((dev)->bus->type == MT76_BUS_MMIO) 81 #define mt76_is_sdio(dev) ((dev)->bus->type == MT76_BUS_SDIO) 638 u8 ru:4; member 875 /* per-phy stats. */ 974 s8 ru[7][12]; member 1000 #define __mt76_rr(dev, ...) (dev)->bus->rr((dev), __VA_ARGS__) 1001 #define __mt76_wr(dev, ...) (dev)->bus->wr((dev), __VA_ARGS__) 1002 #define __mt76_rmw(dev, ...) (dev)->bus->rmw((dev), __VA_ARGS__) [all …]
|
/openbmc/linux/sound/soc/cirrus/ |
H A D | edb93xx.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (c) 2010 Alexander Sverdlin <subaparts@yandex.ru> 9 * The data format accepted is I2S or left-justified. 20 #include <asm/mach-types.h> 34 * rates below 50kHz and 128 for higher sample rates in edb93xx_hw_params() 55 DAILINK_COMP_ARRAY(COMP_CPU("ep93xx-i2s")), 56 DAILINK_COMP_ARRAY(COMP_CODEC("spi0.0", "cs4271-hifi")), 57 DAILINK_COMP_ARRAY(COMP_PLATFORM("ep93xx-i2s"))); 84 card->dev = &pdev->dev; in edb93xx_probe() 88 dev_err(&pdev->dev, "snd_soc_register_card() failed: %d\n", in edb93xx_probe() [all …]
|
/openbmc/linux/drivers/net/wireless/virtual/ |
H A D | mac80211_hwsim.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * mac80211_hwsim - software simulator of 802.11 radio(s) for mac80211 13 * enum hwsim_tx_control_flags - flags to describe transmission info/status 51 * enum hwsim_commands - supported hwsim commands 104 #define HWSIM_CMD_MAX (_HWSIM_CMD_MAX - 1) 110 * enum hwsim_attrs - hwsim netlink attributes 145 * rates of %HWSIM_ATTR_TX_INFO 193 #define HWSIM_ATTR_MAX (__HWSIM_ATTR_MAX - 1) 196 * struct hwsim_tx_rate - rate selection/status 201 * A value of -1 for @idx indicates an invalid rate and, if used [all …]
|
H A D | mac80211_hwsim.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * mac80211_hwsim - software simulator of 802.11 radio(s) for mac80211 6 * Copyright (c) 2016 - 2017 Intel Deutschland GmbH 7 * Copyright (C) 2018 - 2023 Intel Corporation 12 * - Add TSF sync and fix IBSS beacon transmission by adding 14 * - RX filtering based on filter configuration (data->rx_filter) 66 MODULE_PARM_DESC(support_p2p_device, "Support P2P-Device interface type"); 73 * enum hwsim_regtest - the type of regulatory tests we offer 97 * this by using a custom beacon-capable regulatory domain for the first 115 * non-strict settings using the second driver regulatory request. All [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/iio/accel/ |
H A D | memsensing,msa311.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: MEMSensing digital 3-Axis accelerometer 10 - Dmitry Rokosov <ddrokosov@sberdevices.ru> 13 MSA311 is a tri-axial, low-g accelerometer with I2C digital output for 15 scales range of +-2g/+-4g/+-8g/+-16g and allows acceleration measurements 16 with output data rates from 1Hz to 1000Hz. 18 https://cdn-shop.adafruit.com/product-files/5309/MSA311-V1.1-ENG.pdf 30 vdd-supply: true [all …]
|
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/fw/api/ |
H A D | mac.h | 1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ 3 * Copyright (C) 2012-2014, 2018-2022 Intel Corporation 11 * AUX indices follows - 1 for non-CDB, 2 for CDB. 31 * enum iwl_mac_protection_flags - MAC context flags 50 * enum iwl_mac_types - Supported MAC types 54 * @FW_MAC_TYPE_PIBSS: Pseudo-IBSS 78 * enum iwl_tsf_id - TSF hw timer ID 94 * struct iwl_mac_data_ap - configuration data for AP MAC context 117 * struct iwl_mac_data_ibss - configuration data for IBSS MAC context 133 * enum iwl_mac_data_policy - policy of the data path for this MAC [all …]
|
H A D | rs.h | 1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ 3 * Copyright (C) 2012-2014, 2018-2022 Intel Corporation 12 * enum iwl_tlc_mng_cfg_flags_enum - options for TLC config flags 36 * enum iwl_tlc_mng_cfg_cw - channel width options 52 * enum iwl_tlc_mng_cfg_chains - possible chains 62 * enum iwl_tlc_mng_cfg_mode - supported modes 82 * enum iwl_tlc_mng_ht_rates - HT/VHT/HE rates 120 * enum IWL_TLC_MCS_PER_BW - mcs index per BW 121 * @IWL_TLC_MCS_PER_BW_80: mcs for bw - 20Hhz, 40Hhz, 80Hhz 122 * @IWL_TLC_MCS_PER_BW_160: mcs for bw - 160Mhz [all …]
|
H A D | mac-cfg.h | 1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ 3 * Copyright (C) 2012-2014, 2018-2019, 2021-2022 Intel Corporation 4 * Copyright (C) 2013-2015 Intel Mobile Communications GmbH 5 * Copyright (C) 2016-2017 Intel Deutschland GmbH 13 * enum iwl_mac_conf_subcmd_ids - mac configuration command IDs 84 * struct iwl_p2p_noa_attr - NOA attr contained in probe resp FW notification 107 * struct iwl_probe_resp_data_notif - notification with NOA and CSA counter 124 * struct iwl_missed_vap_notif - notification of missing vap detection 139 * struct iwl_channel_switch_start_notif - Channel switch start notification 148 * struct iwl_channel_switch_start_notif - Channel switch start notification [all …]
|
/openbmc/linux/drivers/net/wireless/ath/ath12k/ |
H A D | mac.c | 1 // SPDX-License-Identifier: BSD-3-Clause-Clear 3 * Copyright (c) 2018-2021 The Linux Foundation. All rights reserved. 4 * Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved. 233 #define ath12k_a_rates_size (ARRAY_SIZE(ath12k_legacy_rates) - 4) 259 return "11na-ht20"; in ath12k_mac_phymode_str() 261 return "11ng-ht20"; in ath12k_mac_phymode_str() 263 return "11na-ht40"; in ath12k_mac_phymode_str() 265 return "11ng-ht40"; in ath12k_mac_phymode_str() 267 return "11ac-vht20"; in ath12k_mac_phymode_str() 269 return "11ac-vht40"; in ath12k_mac_phymode_str() [all …]
|
/openbmc/linux/sound/soc/codecs/ |
H A D | cs4341.c | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 4 * Author: Alexander Shiyan <shc_work@mail.ru> 48 struct snd_soc_component *component = dai->component; in cs4341_set_fmt() 55 return -EINVAL; in cs4341_set_fmt() 62 return -EINVAL; in cs4341_set_fmt() 69 cs4341->fmt = format & SND_SOC_DAIFMT_FORMAT_MASK; in cs4341_set_fmt() 72 return -EINVAL; in cs4341_set_fmt() 82 struct snd_soc_component *component = dai->component; in cs4341_hw_params() 94 dev_err(component->dev, "Unsupported PCM format 0x%08x.\n", in cs4341_hw_params() 96 return -EINVAL; in cs4341_hw_params() [all …]
|
H A D | cs4271.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (c) 2010 Alexander Sverdlin <subaparts@yandex.ru> 9 * The data format accepted is I2S or left-justified. 132 * Default CS4271 power-up configuration 133 * Array contains non-existing in hw register at address 0 161 /* Current sample rate for de-emphasis control */ 177 SND_SOC_DAPM_OUTPUT("AOUTA-"), 179 SND_SOC_DAPM_OUTPUT("AOUTB-"), 187 { "AOUTA-", NULL, "Playback" }, 189 { "AOUTB-", NULL, "Playback" }, [all …]
|
H A D | ak4641.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * ak4641.c -- AK4641 ALSA Soc Audio driver 6 * Copyright (C) 2011 Dmitry Artamonow <mad_soft@inbox.ru> 77 if (ak4641->deemph && deemph_settings[i] != 0 && in ak4641_set_deemph() 78 abs(deemph_settings[i] - ak4641->playback_fs) < in ak4641_set_deemph() 79 abs(deemph_settings[best] - ak4641->playback_fs)) in ak4641_set_deemph() 82 if (!ak4641->deemph && deemph_settings[i] == 0) in ak4641_set_deemph() 86 dev_dbg(component->dev, "Set deemphasis %d\n", best); in ak4641_set_deemph() 96 int deemph = ucontrol->value.integer.value[0]; in ak4641_put_deemph() 99 return -EINVAL; in ak4641_put_deemph() [all …]
|
/openbmc/linux/include/uapi/linux/ |
H A D | nl80211.h | 6 * Copyright 2006-2010 Johannes Berg <johannes@sipsolutions.net> 13 * Copyright 2015-2017 Intel Deutschland GmbH 14 * Copyright (C) 2018-2023 Intel Corporation 32 * be careful not to break things - i.e. don't move anything around or so 74 * - a setup station entry is added, not yet authorized, without any rate 76 * - when the TDLS setup is done, a single NL80211_CMD_SET_STATION is valid 79 * - %NL80211_TDLS_ENABLE_LINK is then used 80 * - after this, the only valid operation is to remove it by tearing down 95 * Frame registration is done on a per-interface basis and registrations 137 * software, like the AP-VLAN type in mac80211 for example, there's [all …]
|
/openbmc/linux/drivers/media/pci/tw686x/ |
H A D | tw686x-audio.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2015 VanguardiaSur - www.vanguardiasur.com.ar 6 * Copyright 2015 www.starterkit.ru <info@starterkit.ru> 10 * (c) 2011-12 liran <jli11@intersil.com> [Intersil|Techwell China] 27 #include "tw686x-regs.h" 38 struct tw686x_audio_channel *ac = &dev->audio_channels[ch]; in tw686x_audio_irq() 45 spin_lock_irqsave(&ac->lock, flags); in tw686x_audio_irq() 48 if (!ac->ss || !ac->curr_bufs[0] || !ac->curr_bufs[1]) { in tw686x_audio_irq() 49 spin_unlock_irqrestore(&ac->lock, flags); in tw686x_audio_irq() 53 if (!list_empty(&ac->buf_list)) { in tw686x_audio_irq() [all …]
|
/openbmc/linux/net/sched/ |
H A D | sch_tbf.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> 6 * Dmitry Torokhov <dtor@mail.ru> - allow attaching inner qdiscs - 27 ------- 32 ------------ 36 does not exceed B + R*(t_f-t_i). 42 s_i+....+s_k <= B + R*(t_k - t_i) 45 ---------- 55 N(t_* + 0) = N(t_* - 0) - S/R. 69 lat = max ((L-B)/R, (L-M)/P) [all …]
|
/openbmc/linux/drivers/net/wireless/ath/ath11k/ |
H A D | mac.c | 1 // SPDX-License-Identifier: BSD-3-Clause-Clear 3 * Copyright (c) 2018-2019 The Linux Foundation. All rights reserved. 4 * Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved. 163 /* new addition in IEEE Std 802.11ax-2021 */ 243 #define ath11k_a_rates_size (ARRAY_SIZE(ath11k_legacy_rates) - 4) 388 /* As default, it is OFDM rates */ in ath11k_mac_hw_ratecode_to_legacy_rate() 407 return -EINVAL; in ath11k_mac_hw_ratecode_to_legacy_rate() 428 for (i = 0; i < sband->n_bitrates; i++) in ath11k_mac_bitrate_to_idx() 429 if (sband->bitrates[i].bitrate == bitrate) in ath11k_mac_bitrate_to_idx() 440 for (nss = IEEE80211_HT_MCS_MASK_LEN - 1; nss >= 0; nss--) in ath11k_mac_max_ht_nss() [all …]
|
/openbmc/linux/include/net/ |
H A D | mac80211.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * mac80211 <-> driver interface 5 * Copyright 2002-2005, Devicescape Software, Inc. 6 * Copyright 2006-2007 Jiri Benc <jbenc@suse.cz> 7 * Copyright 2007-2010 Johannes Berg <johannes@sipsolutions.net> 8 * Copyright 2013-2014 Intel Mobile Communications GmbH 9 * Copyright (C) 2015 - 2017 Intel Deutschland GmbH 10 * Copyright (C) 2018 - 2023 Intel Corporation 31 * only partial functionality in hard- or firmware. This document 32 * defines the interface between mac80211 and low-level hardware [all …]
|
H A D | cfg80211.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 7 * Copyright 2006-2010 Johannes Berg <johannes@sipsolutions.net> 8 * Copyright 2013-2014 Intel Mobile Communications GmbH 9 * Copyright 2015-2017 Intel Deutschland GmbH 10 * Copyright (C) 2018-2021, 2023 Intel Corporation 72 * enum ieee80211_channel_flags - channel flags 150 * struct ieee80211_channel - channel definition 157 * @hw_value: hardware-specific value for the channel 193 * enum ieee80211_rate_flags - rate flags 195 * Hardware/specification flags for rates. These are structured [all …]
|
/openbmc/linux/net/wireless/ |
H A D | util.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright 2007-2009 Johannes Berg <johannes@sipsolutions.net> 6 * Copyright 2013-2014 Intel Mobile Communications GmbH 8 * Copyright (C) 2018-2023 Intel Corporation 24 #include "rdev-ops.h" 31 struct ieee80211_rate *result = &sband->bitrates[0]; in ieee80211_get_response_rate() 34 for (i = 0; i < sband->n_bitrates; i++) { in ieee80211_get_response_rate() 37 if (sband->bitrates[i].bitrate > bitrate) in ieee80211_get_response_rate() 39 result = &sband->bitrates[i]; in ieee80211_get_response_rate() 57 if (sband->band == NL80211_BAND_2GHZ) { in ieee80211_mandatory_rates() [all …]
|
/openbmc/linux/drivers/iio/accel/ |
H A D | msa311.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * MEMSensing digital 3-Axis accelerometer 5 * MSA311 is a tri-axial, low-g accelerometer with I2C digital output for 6 * sensitivity consumer applications. It has dynamic user-selectable full 7 * scales range of +-2g/+-4g/+-8g/+-16g and allows acceleration measurements 8 * with output data rates from 1Hz to 1000Hz. 11 * and is guaranteed to operate over -40C to +85C. 14 * - IIO interface 15 * - Different power modes: NORMAL, SUSPEND 16 * - ODR (Output Data Rate) selection [all …]
|
/openbmc/linux/net/mac80211/ |
H A D | util.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> 7 * Copyright 2013-2014 Intel Mobile Communications GmbH 8 * Copyright (C) 2015-2017 Intel Deutschland GmbH 9 * Copyright (C) 2018-2023 Intel Corporation 29 #include "driver-ops.h" 44 return &local->hw; in wiphy_to_ieee80211_hw() 51 __le16 fc = hdr->frame_control; in ieee80211_get_bssid() [all …]
|