| /kernel/linux/linux-6.6/include/linux/ |
| D | rfkill.h | 21 #include <uapi/linux/rfkill.h> 41 struct rfkill; 44 * struct rfkill_ops - rfkill driver methods 46 * @poll: poll the rfkill block state(s) -- only assign this method 52 * @query: query the rfkill block state(s) and call exactly one of the 55 * the rfkill core query your driver before setting a requested 62 void (*poll)(struct rfkill *rfkill, void *data); 63 void (*query)(struct rfkill *rfkill, void *data); 69 * rfkill_alloc - Allocate rfkill structure 73 * @ops: rfkill methods [all …]
|
| /kernel/linux/linux-6.6/net/rfkill/ |
| D | core.c | 15 #include <linux/rfkill.h> 25 #include "rfkill.h" 37 struct rfkill { struct 69 #define to_rfkill(d) container_of(d, struct rfkill, dev) argument 95 * the rfkill struct under their own lock, and take this lock during 96 * rfkill method calls -- which will cause an AB-BA deadlock situation. 105 static LIST_HEAD(rfkill_fds); /* list of open fds of /dev/rfkill */ 120 static void rfkill_led_trigger_event(struct rfkill *rfkill) in rfkill_led_trigger_event() argument 124 if (!rfkill->registered) in rfkill_led_trigger_event() 127 trigger = &rfkill->led_trigger; in rfkill_led_trigger_event() [all …]
|
| D | rfkill-gpio.c | 10 #include <linux/rfkill.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() 45 clk_disable(rfkill->clk); in rfkill_gpio_set_power() 47 rfkill->clk_enabled = !blocked; in rfkill_gpio_set_power() [all …]
|
| D | Kconfig | 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
|
| /kernel/linux/linux-5.10/net/rfkill/ |
| D | core.c | 15 #include <linux/rfkill.h> 25 #include "rfkill.h" 37 struct rfkill { struct 67 #define to_rfkill(d) container_of(d, struct rfkill, dev) argument 92 * the rfkill struct under their own lock, and take this lock during 93 * rfkill method calls -- which will cause an AB-BA deadlock situation. 102 static LIST_HEAD(rfkill_fds); /* list of open fds of /dev/rfkill */ 117 static void rfkill_led_trigger_event(struct rfkill *rfkill) in rfkill_led_trigger_event() argument 121 if (!rfkill->registered) in rfkill_led_trigger_event() 124 trigger = &rfkill->led_trigger; in rfkill_led_trigger_event() [all …]
|
| D | rfkill-gpio.c | 10 #include <linux/rfkill.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() 40 clk_disable(rfkill->clk); in rfkill_gpio_set_power() 42 rfkill->clk_enabled = !blocked; in rfkill_gpio_set_power() [all …]
|
| D | Kconfig | 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
|
| /kernel/linux/linux-5.10/include/linux/ |
| D | rfkill.h | 21 #include <uapi/linux/rfkill.h> 41 struct rfkill; 44 * struct rfkill_ops - rfkill driver methods 46 * @poll: poll the rfkill block state(s) -- only assign this method 52 * @query: query the rfkill block state(s) and call exactly one of the 55 * the rfkill core query your driver before setting a requested 62 void (*poll)(struct rfkill *rfkill, void *data); 63 void (*query)(struct rfkill *rfkill, void *data); 69 * rfkill_alloc - Allocate rfkill structure 73 * @ops: rfkill methods [all …]
|
| /kernel/linux/linux-6.6/Documentation/driver-api/ |
| D | rfkill.rst | 2 rfkill - RF kill switch support 12 The rfkill subsystem provides a generic interface for disabling any radio 21 The rfkill subsystem has a concept of "hard" and "soft" block, which 32 The rfkill subsystem has two parameters, rfkill.default_state and 33 rfkill.master_switch_mode, which are documented in 40 The rfkill subsystem is composed of three main components: 42 * the rfkill core, 43 * the deprecated rfkill-input module (an input layer handler, being 45 * the rfkill drivers. 47 The rfkill core provides API for kernel drivers to register their radio [all …]
|
| /kernel/linux/linux-5.10/Documentation/driver-api/ |
| D | rfkill.rst | 2 rfkill - RF kill switch support 12 The rfkill subsystem provides a generic interface for disabling any radio 21 The rfkill subsystem has a concept of "hard" and "soft" block, which 32 The rfkill subsystem has two parameters, rfkill.default_state and 33 rfkill.master_switch_mode, which are documented in 40 The rfkill subsystem is composed of three main components: 42 * the rfkill core, 43 * the deprecated rfkill-input module (an input layer handler, being 45 * the rfkill drivers. 47 The rfkill core provides API for kernel drivers to register their radio [all …]
|
| /kernel/linux/linux-5.10/Documentation/ABI/stable/ |
| D | sysfs-class-rfkill | 1 rfkill - radio frequency (RF) connector kill switch support 3 For details to this subsystem look at Documentation/driver-api/rfkill.rst. 5 For the deprecated ``/sys/class/rfkill/*/claim`` knobs of this interface look in 6 Documentation/ABI/removed/sysfs-class-rfkill. 8 What: /sys/class/rfkill 12 Description: The rfkill class subsystem folder. 13 Each registered rfkill driver is represented by an rfkillX 17 What: /sys/class/rfkill/rfkill[0-9]+/name 25 What: /sys/class/rfkill/rfkill[0-9]+/type 30 Values: See include/linux/rfkill.h. [all …]
|
| /kernel/linux/linux-6.6/Documentation/ABI/stable/ |
| D | sysfs-class-rfkill | 1 rfkill - radio frequency (RF) connector kill switch support 3 For details to this subsystem look at Documentation/driver-api/rfkill.rst. 5 For the deprecated ``/sys/class/rfkill/*/claim`` knobs of this interface look in 6 Documentation/ABI/removed/sysfs-class-rfkill. 8 What: /sys/class/rfkill 12 Description: The rfkill class subsystem folder. 13 Each registered rfkill driver is represented by an rfkillX 17 What: /sys/class/rfkill/rfkill[0-9]+/name 25 What: /sys/class/rfkill/rfkill[0-9]+/type 30 Values: See include/linux/rfkill.h. [all …]
|
| /kernel/linux/patches/linux-5.10/yangfan_patch/ |
| D | net.patch | 104 diff --git a/net/rfkill/Kconfig b/net/rfkill/Kconfig 106 --- a/net/rfkill/Kconfig 107 +++ b/net/rfkill/Kconfig 110 If you say yes here you get support of a generic gpio RFKILL 114 + tristate "Rockchip RFKILL driver" 115 + depends on RFKILL 120 + Rockchip rfkill driver for rk29/rk3X 121 diff --git a/net/rfkill/Makefile b/net/rfkill/Makefile 123 --- a/net/rfkill/Makefile 124 +++ b/net/rfkill/Makefile [all …]
|
| /kernel/linux/linux-5.10/net/wimax/ |
| D | op-rfkill.c | 9 * This integrates into the Linux Kernel rfkill susbystem so that the 14 * A non-polled generic rfkill device is embedded into the WiMAX 18 * and hand it to rfkill ops then? 44 * wimax_rfkill_add() Initialize/shutdown rfkill support 52 #include <linux/rfkill.h> 102 result = rfkill_set_hw_state(wimax_dev->rfkill, in wimax_report_rfkill_hw() 157 rfkill_set_sw_state(wimax_dev->rfkill, state == WIMAX_RF_OFF); in wimax_report_rfkill_sw() 172 * - The rfkill subsystem when the RF-Kill key is pressed in the 174 * wimax_report_rfkill_hw(). The rfkill subsystem ends up calling back 178 * - When the user sets the state through sysfs' rfkill/state file [all …]
|
| /kernel/linux/linux-5.10/drivers/platform/x86/ |
| D | dell-rbtn.c | 10 #include <linux/rfkill.h> 23 struct rfkill *rfkill; member 86 * rfkill device 89 static void rbtn_rfkill_query(struct rfkill *rfkill, void *data) in rbtn_rfkill_query() argument 98 rfkill_set_states(rfkill, state, state); in rbtn_rfkill_query() 103 /* NOTE: setting soft rfkill state is not supported */ in rbtn_rfkill_set_block() 117 if (rbtn_data->rfkill) in rbtn_rfkill_init() 122 * but rfkill interface does not support "ANY" type in rbtn_rfkill_init() 125 rbtn_data->rfkill = rfkill_alloc("dell-rbtn", &device->dev, in rbtn_rfkill_init() 127 if (!rbtn_data->rfkill) in rbtn_rfkill_init() [all …]
|
| D | xo1-rfkill.c | 3 * Support for rfkill through the OLPC XO-1 laptop embedded controller 10 #include <linux/rfkill.h> 41 struct rfkill *rfk; in xo1_rfkill_probe() 61 struct rfkill *rfk = platform_get_drvdata(pdev); in xo1_rfkill_remove() 69 .name = "xo1-rfkill", 79 MODULE_ALIAS("platform:xo1-rfkill");
|
| D | Kconfig | 170 depends on RFKILL || RFKILL = n 203 depends on RFKILL || RFKILL = n 243 depends on RFKILL || RFKILL = n 274 depends on RFKILL || RFKILL = n 368 depends on RFKILL || RFKILL = n 377 This driver adds support for rfkill and backlight control to Dell 384 depends on RFKILL 388 This driver register rfkill device or input hotkey device depending 390 rfkill devices it receive HW switch events and set correct hard 391 rfkill state. [all …]
|
| /kernel/linux/linux-6.6/drivers/platform/x86/dell/ |
| D | dell-rbtn.c | 10 #include <linux/rfkill.h> 23 struct rfkill *rfkill; member 86 * rfkill device 89 static void rbtn_rfkill_query(struct rfkill *rfkill, void *data) in rbtn_rfkill_query() argument 98 rfkill_set_states(rfkill, state, state); in rbtn_rfkill_query() 103 /* NOTE: setting soft rfkill state is not supported */ in rbtn_rfkill_set_block() 117 if (rbtn_data->rfkill) in rbtn_rfkill_init() 122 * but rfkill interface does not support "ANY" type in rbtn_rfkill_init() 125 rbtn_data->rfkill = rfkill_alloc("dell-rbtn", &device->dev, in rbtn_rfkill_init() 127 if (!rbtn_data->rfkill) in rbtn_rfkill_init() [all …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/net/ |
| D | rfkill-gpio.yaml | 4 $id: http://devicetree.org/schemas/net/rfkill-gpio.yaml# 7 title: GPIO controlled rfkill switch 15 const: rfkill-gpio 18 description: rfkill switch name, defaults to node name 21 description: rfkill radio type 46 rfkill { 47 compatible = "rfkill-gpio"; 48 label = "rfkill-pcie-wlan";
|
| /kernel/linux/linux-6.6/include/uapi/linux/ |
| D | rfkill.h | 30 * enum rfkill_type - type of rfkill switch. 41 * @NUM_RFKILL_TYPES: number of defined rfkill types 74 * @RFKILL_HARD_BLOCK_SIGNAL: the hardware rfkill signal is active 83 * struct rfkill_event - events for userspace on /dev/rfkill 84 * @idx: index of dev rfkill 85 * @type: type of the rfkill struct 90 * Structure used for userspace communication on /dev/rfkill, 102 * struct rfkill_event_ext - events for userspace on /dev/rfkill 103 * @idx: index of dev rfkill 104 * @type: type of the rfkill struct [all …]
|
| /kernel/linux/linux-6.6/Documentation/ABI/removed/ |
| D | sysfs-class-rfkill | 1 rfkill - radio frequency (RF) connector kill switch support 3 For details to this subsystem look at Documentation/driver-api/rfkill.rst. 5 What: /sys/class/rfkill/rfkill[0-9]+/claim 10 claim just control over a single rfkill instance.
|
| /kernel/linux/linux-5.10/Documentation/ABI/removed/ |
| D | sysfs-class-rfkill | 1 rfkill - radio frequency (RF) connector kill switch support 3 For details to this subsystem look at Documentation/driver-api/rfkill.rst. 5 What: /sys/class/rfkill/rfkill[0-9]+/claim 10 claim just control over a single rfkill instance.
|
| /kernel/linux/linux-6.6/drivers/platform/x86/ |
| D | xo1-rfkill.c | 3 * Support for rfkill through the OLPC XO-1 laptop embedded controller 10 #include <linux/rfkill.h> 41 struct rfkill *rfk; in xo1_rfkill_probe() 61 struct rfkill *rfk = platform_get_drvdata(pdev); in xo1_rfkill_remove() 68 .name = "xo1-rfkill", 78 MODULE_ALIAS("platform:xo1-rfkill");
|
| D | Kconfig | 178 depends on RFKILL || RFKILL = n 223 depends on RFKILL || RFKILL = n 263 depends on RFKILL || RFKILL = n 329 depends on RFKILL || RFKILL = n 363 tristate "Fujitsu-Siemens Amilo rfkill support" 364 depends on RFKILL 452 depends on RFKILL && INPUT 463 rfkill switch, hotkey, fan control and backlight control. 498 depends on RFKILL || RFKILL = n 521 Extra functionality will be available if the rfkill (CONFIG_RFKILL) [all …]
|
| /kernel/linux/linux-5.10/drivers/net/wireless/ath/ath5k/ |
| D | rfkill.c | 2 * RFKILL support for ath5k 41 ATH5K_DBG(ah, ATH5K_DEBUG_ANY, "rfkill disable (gpio:%d polarity:%d)\n", in ath5k_rfkill_disable() 50 ATH5K_DBG(ah, ATH5K_DEBUG_ANY, "rfkill enable (gpio:%d polarity:%d)\n", in ath5k_rfkill_enable() 69 /* configuring GPIO for input for some reason disables rfkill */ in ath5k_is_rfkill_set() 89 /* read rfkill GPIO configuration from EEPROM header */ in ath5k_rfkill_hw_start() 97 /* enable interrupt for rfkill switch */ in ath5k_rfkill_hw_start() 106 /* disable interrupt for rfkill switch */ in ath5k_rfkill_hw_stop() 112 /* enable RFKILL when stopping HW so Wifi LED is turned off */ in ath5k_rfkill_hw_stop()
|