| /kernel/linux/linux-5.10/net/rfkill/ |
| D | rfkill-gpio.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 10 #include <linux/rfkill.h> 15 #include <linux/gpio/consumer.h> 23 struct rfkill *rfkill_dev; 31 struct rfkill_gpio_data *rfkill = data; in rfkill_gpio_set_power() local 33 if (!blocked && !IS_ERR(rfkill->clk) && !rfkill->clk_enabled) in rfkill_gpio_set_power() 34 clk_enable(rfkill->clk); in rfkill_gpio_set_power() 36 gpiod_set_value_cansleep(rfkill->shutdown_gpio, !blocked); in rfkill_gpio_set_power() 37 gpiod_set_value_cansleep(rfkill->reset_gpio, !blocked); in rfkill_gpio_set_power() 39 if (blocked && !IS_ERR(rfkill->clk) && rfkill->clk_enabled) in rfkill_gpio_set_power() [all …]
|
| D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 5 menuconfig RFKILL config 12 module will be called rfkill. 17 depends on RFKILL 18 depends on LEDS_TRIGGERS = y || RFKILL = LEDS_TRIGGERS 23 depends on RFKILL 24 depends on INPUT = y || RFKILL = INPUT 28 tristate "GPIO RFKILL driver" 29 depends on RFKILL 33 If you say yes here you get support of a generic gpio RFKILL
|
| D | Makefile | 1 # SPDX-License-Identifier: GPL-2.0-only 6 rfkill-y += core.o 7 rfkill-$(CONFIG_RFKILL_INPUT) += input.o 8 obj-$(CONFIG_RFKILL) += rfkill.o 9 obj-$(CONFIG_RFKILL_GPIO) += rfkill-gpio.o
|
| /kernel/linux/linux-6.6/net/rfkill/ |
| D | rfkill-gpio.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 10 #include <linux/rfkill.h> 16 #include <linux/gpio/consumer.h> 24 struct rfkill *rfkill_dev; 32 struct rfkill_gpio_data *rfkill = data; in rfkill_gpio_set_power() local 34 if (!blocked && !IS_ERR(rfkill->clk) && !rfkill->clk_enabled) { in rfkill_gpio_set_power() 35 int ret = clk_enable(rfkill->clk); in rfkill_gpio_set_power() 41 gpiod_set_value_cansleep(rfkill->shutdown_gpio, !blocked); in rfkill_gpio_set_power() 42 gpiod_set_value_cansleep(rfkill->reset_gpio, !blocked); in rfkill_gpio_set_power() 44 if (blocked && !IS_ERR(rfkill->clk) && rfkill->clk_enabled) in rfkill_gpio_set_power() [all …]
|
| D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 5 menuconfig RFKILL config 12 module will be called rfkill. 17 depends on RFKILL 18 depends on LEDS_TRIGGERS = y || RFKILL = LEDS_TRIGGERS 23 depends on RFKILL 24 depends on INPUT = y || RFKILL = INPUT 28 tristate "GPIO RFKILL driver" 29 depends on RFKILL 33 If you say yes here you get support of a generic gpio RFKILL
|
| D | Makefile | 1 # SPDX-License-Identifier: GPL-2.0-only 6 rfkill-y += core.o 7 rfkill-$(CONFIG_RFKILL_INPUT) += input.o 8 obj-$(CONFIG_RFKILL) += rfkill.o 9 obj-$(CONFIG_RFKILL_GPIO) += rfkill-gpio.o
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/net/ |
| D | rfkill-gpio.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/net/rfkill-gpio.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: GPIO controlled rfkill switch 10 - Johannes Berg <johannes@sipsolutions.net> 11 - Philipp Zabel <p.zabel@pengutronix.de> 15 const: rfkill-gpio 18 description: rfkill switch name, defaults to node name 20 radio-type: [all …]
|
| /kernel/linux/linux-5.10/drivers/net/wireless/ath/ath5k/ |
| D | rfkill.c | 2 * RFKILL support for ath5k 18 * 3. Neither the names of the above-listed copyright holders nor the names 41 ATH5K_DBG(ah, ATH5K_DEBUG_ANY, "rfkill disable (gpio:%d polarity:%d)\n", in ath5k_rfkill_disable() 42 ah->rf_kill.gpio, ah->rf_kill.polarity); in ath5k_rfkill_disable() 43 ath5k_hw_set_gpio_output(ah, ah->rf_kill.gpio); in ath5k_rfkill_disable() 44 ath5k_hw_set_gpio(ah, ah->rf_kill.gpio, !ah->rf_kill.polarity); in ath5k_rfkill_disable() 50 ATH5K_DBG(ah, ATH5K_DEBUG_ANY, "rfkill enable (gpio:%d polarity:%d)\n", in ath5k_rfkill_enable() 51 ah->rf_kill.gpio, ah->rf_kill.polarity); in ath5k_rfkill_enable() 52 ath5k_hw_set_gpio_output(ah, ah->rf_kill.gpio); in ath5k_rfkill_enable() 53 ath5k_hw_set_gpio(ah, ah->rf_kill.gpio, ah->rf_kill.polarity); in ath5k_rfkill_enable() [all …]
|
| D | gpio.c | 2 * Copyright (c) 2004-2008 Reyk Floeter <reyk@openbsd.org> 3 * Copyright (c) 2006-2008 Nick Kossifidis <mickflemm@gmail.com> 20 GPIO Functions 29 * DOC: GPIO/LED functions 31 * Here we control the 6 bidirectional GPIO pins provided by the hw. 32 * We can set a GPIO pin to be an input or an output pin on GPIO control 33 * register and then read or set its status from GPIO data input/output 39 * GPIO pins, we handle them through the LED subsystem on led.c 44 * ath5k_hw_set_ledstate() - Set led state 50 * not the GPIO based. [all …]
|
| /kernel/linux/linux-6.6/drivers/net/wireless/ath/ath5k/ |
| D | rfkill.c | 2 * RFKILL support for ath5k 18 * 3. Neither the names of the above-listed copyright holders nor the names 41 ATH5K_DBG(ah, ATH5K_DEBUG_ANY, "rfkill disable (gpio:%d polarity:%d)\n", in ath5k_rfkill_disable() 42 ah->rf_kill.gpio, ah->rf_kill.polarity); in ath5k_rfkill_disable() 43 ath5k_hw_set_gpio_output(ah, ah->rf_kill.gpio); in ath5k_rfkill_disable() 44 ath5k_hw_set_gpio(ah, ah->rf_kill.gpio, !ah->rf_kill.polarity); in ath5k_rfkill_disable() 50 ATH5K_DBG(ah, ATH5K_DEBUG_ANY, "rfkill enable (gpio:%d polarity:%d)\n", in ath5k_rfkill_enable() 51 ah->rf_kill.gpio, ah->rf_kill.polarity); in ath5k_rfkill_enable() 52 ath5k_hw_set_gpio_output(ah, ah->rf_kill.gpio); in ath5k_rfkill_enable() 53 ath5k_hw_set_gpio(ah, ah->rf_kill.gpio, ah->rf_kill.polarity); in ath5k_rfkill_enable() [all …]
|
| D | gpio.c | 2 * Copyright (c) 2004-2008 Reyk Floeter <reyk@openbsd.org> 3 * Copyright (c) 2006-2008 Nick Kossifidis <mickflemm@gmail.com> 20 GPIO Functions 29 * DOC: GPIO/LED functions 31 * Here we control the 6 bidirectional GPIO pins provided by the hw. 32 * We can set a GPIO pin to be an input or an output pin on GPIO control 33 * register and then read or set its status from GPIO data input/output 39 * GPIO pins, we handle them through the LED subsystem on led.c 44 * ath5k_hw_set_ledstate() - Set led state 50 * not the GPIO based. [all …]
|
| /kernel/linux/patches/linux-5.10/yangfan_patch/ |
| D | net.patch | 1 diff --git a/net/bluetooth/l2cap_sock.c b/net/bluetooth/l2cap_sock.c 3 --- a/net/bluetooth/l2cap_sock.c 5 @@ -1527,9 +1527,6 @@ static void l2cap_sock_close_cb(struct l2cap_chan *chan) 7 struct sock *sk = chan->data; 9 - if (!sk) 10 - return; 11 - 15 @@ -1538,9 +1535,6 @@ static void l2cap_sock_teardown_cb(struct l2cap_chan *chan, int err) 16 struct sock *sk = chan->data; 19 - if (!sk) [all …]
|
| /kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtl818x/rtl8187/ |
| D | rfkill.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Linux RFKILL support for RTL8187 7 * Based on the RFKILL handling in the r8187 driver, which is: 18 #include "rfkill.h" 22 u8 gpio; in rtl8187_is_radio_enabled() local 24 gpio = rtl818x_ioread8(priv, &priv->map->GPIO0); in rtl8187_is_radio_enabled() 25 rtl818x_iowrite8(priv, &priv->map->GPIO0, gpio & ~priv->rfkill_mask); in rtl8187_is_radio_enabled() 26 gpio = rtl818x_ioread8(priv, &priv->map->GPIO1); in rtl8187_is_radio_enabled() 28 return gpio & priv->rfkill_mask; in rtl8187_is_radio_enabled() 33 struct rtl8187_priv *priv = hw->priv; in rtl8187_rfkill_init() [all …]
|
| /kernel/linux/linux-6.6/drivers/net/wireless/realtek/rtl818x/rtl8187/ |
| D | rfkill.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Linux RFKILL support for RTL8187 7 * Based on the RFKILL handling in the r8187 driver, which is: 18 #include "rfkill.h" 22 u8 gpio; in rtl8187_is_radio_enabled() local 24 gpio = rtl818x_ioread8(priv, &priv->map->GPIO0); in rtl8187_is_radio_enabled() 25 rtl818x_iowrite8(priv, &priv->map->GPIO0, gpio & ~priv->rfkill_mask); in rtl8187_is_radio_enabled() 26 gpio = rtl818x_ioread8(priv, &priv->map->GPIO1); in rtl8187_is_radio_enabled() 28 return gpio & priv->rfkill_mask; in rtl8187_is_radio_enabled() 33 struct rtl8187_priv *priv = hw->priv; in rtl8187_rfkill_init() [all …]
|
| /kernel/linux/linux-5.10/arch/arm/mach-s3c/ |
| D | h1940-bluetooth.c | 1 // SPDX-License-Identifier: GPL-1.0+ 3 // Copyright (c) Arnaud Patard <arnaud.patard@rtp-net.org> 13 #include <linux/gpio.h> 14 #include <linux/rfkill.h> 16 #include "gpio-cfg.h" 17 #include "regs-gpio.h" 18 #include "gpio-samsung.h" 22 #define DRV_NAME "h1940-bt" 62 struct rfkill *rfk; in h1940bt_probe() 65 ret = gpio_request(S3C2410_GPH(1), dev_name(&pdev->dev)); in h1940bt_probe() [all …]
|
| /kernel/linux/linux-5.10/drivers/platform/x86/ |
| D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 12 x86 platforms, including vendor-specific laptop extension drivers. 23 This driver adds support for the ACPI-WMI (Windows Management 26 ACPI-WMI is a proprietary extension to ACPI to expose parts of the 27 ACPI firmware to userspace - this is done through various vendor 38 any ACPI-WMI devices. 45 Say Y here if you want to be able to read a firmware-embedded 50 be called wmi-bmof. 62 USB MCU such as the X51 and X51-R2. 76 control, fn-lock, mic-mute LED, and other extra features. [all …]
|
| /kernel/linux/linux-5.10/arch/arm/mach-pxa/ |
| D | tosa-bt.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Bluetooth built-in chip control 11 #include <linux/gpio.h> 13 #include <linux/rfkill.h> 19 gpio_set_value(data->gpio_reset, 0); in tosa_bt_on() 20 gpio_set_value(data->gpio_pwr, 1); in tosa_bt_on() 21 gpio_set_value(data->gpio_reset, 1); in tosa_bt_on() 23 gpio_set_value(data->gpio_reset, 0); in tosa_bt_on() 28 gpio_set_value(data->gpio_reset, 1); in tosa_bt_off() 30 gpio_set_value(data->gpio_pwr, 0); in tosa_bt_off() [all …]
|
| /kernel/linux/linux-6.6/drivers/net/wireless/ath/ath9k/ |
| D | Kconfig | 1 # SPDX-License-Identifier: ISC 55 Say Y, if you have a SoC with a compatible built-in 135 bool "Atheros ath9k rfkill support" if EXPERT 137 depends on RFKILL=y || RFKILL=ATH9K 140 Say Y to have ath9k poll the RF-Kill GPIO every couple of 142 a platform that can toggle the RF-Kill GPIO. 150 for multi-channel concurrency. Enable this if P2P PowerSave support 159 tristate "Atheros ath9k pci loader for EEPROM-less chips" 164 AR500X to AR92XX-generation of ath9k PCI(e) WiFi chips, which have
|
| /kernel/linux/linux-5.10/drivers/net/wireless/ath/ath9k/ |
| D | Kconfig | 1 # SPDX-License-Identifier: ISC 55 Say Y, if you have a SoC with a compatible built-in 135 bool "Atheros ath9k rfkill support" if EXPERT 137 depends on RFKILL=y || RFKILL=ATH9K 140 Say Y to have ath9k poll the RF-Kill GPIO every couple of 142 a platform that can toggle the RF-Kill GPIO. 150 for multi-channel concurrency. Enable this if P2P PowerSave support 159 tristate "Atheros ath9k pci loader for EEPROM-less chips" 164 AR500X to AR92XX-generation of ath9k PCI(e) WiFi chips, which have
|
| /kernel/linux/linux-6.6/drivers/platform/x86/ |
| D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 12 x86 platforms, including vendor-specific laptop extension drivers. 23 This driver adds support for the ACPI-WMI (Windows Management 26 ACPI-WMI is a proprietary extension to ACPI to expose parts of the 27 ACPI firmware to userspace - this is done through various vendor 38 any ACPI-WMI devices. 45 Say Y here if you want to be able to read a firmware-embedded 50 be called wmi-bmof. 64 control, fn-lock, mic-mute LED, and other extra features. 67 will be called huawei-wmi. [all …]
|
| /kernel/linux/linux-5.10/arch/arm/boot/dts/ |
| D | bcm4708-asus-rt-ac68u.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 4 * DTS for Asus RT-AC68U 9 /dts-v1/; 12 #include "bcm5301x-nand-cs0-bch8.dtsi" 15 compatible = "asus,rt-ac68u", "brcm,bcm4708"; 16 model = "Asus RT-AC68U (BCM4708)"; 29 compatible = "gpio-leds"; 39 linux,default-trigger = "default-on"; 45 linux,default-trigger = "default-on"; 54 gpio-keys { [all …]
|
| D | bcm4708-netgear-r6300-v2.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 9 /dts-v1/; 12 #include "bcm5301x-nand-cs0-bch8.dtsi" 29 compatible = "gpio-leds"; 34 linux,default-trigger = "default-on"; 45 linux,default-trigger = "default-on"; 59 gpio-keys { 60 compatible = "gpio-keys"; 68 rfkill {
|
| D | bcm4708-netgear-r6250.dts | 5 * Copyright 2013 Hauke Mehrtens <hauke@hauke-m.de> 10 /dts-v1/; 13 #include "bcm5301x-nand-cs0-bch8.dtsi" 30 compatible = "gpio-leds"; 35 linux,default-trigger = "default-on"; 41 linux,default-trigger = "default-on"; 52 trigger-sources = <&ohci_port1>, <&ehci_port1>, 54 linux,default-trigger = "usbport"; 63 gpio-keys { 64 compatible = "gpio-keys"; [all …]
|
| D | bcm4709-netgear-r7000.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 9 /dts-v1/; 12 #include "bcm5301x-nand-cs0-bch8.dtsi" 29 compatible = "gpio-leds"; 31 power-white { 34 linux,default-trigger = "default-on"; 37 power-amber { 73 gpio-keys { 74 compatible = "gpio-keys"; 75 #address-cells = <1>; [all …]
|
| /kernel/linux/linux-6.6/arch/arm/boot/dts/broadcom/ |
| D | bcm4709-netgear-r7000.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 9 /dts-v1/; 12 #include "bcm5301x-nand-cs0-bch8.dtsi" 29 compatible = "gpio-leds"; 31 led-power-white { 34 linux,default-trigger = "default-on"; 37 led-power-amber { 42 led-5ghz { 47 led-2ghz { 52 led-wps { [all …]
|