/kernel/linux/linux-5.10/include/linux/ |
D | rfkill.h | 41 struct rfkill; 62 void (*poll)(struct rfkill *rfkill, void *data); 63 void (*query)(struct rfkill *rfkill, void *data); 79 struct rfkill * __must_check rfkill_alloc(const char *name, 100 int __must_check rfkill_register(struct rfkill *rfkill); 110 void rfkill_pause_polling(struct rfkill *rfkill); 119 void rfkill_resume_polling(struct rfkill *rfkill); 130 void rfkill_unregister(struct rfkill *rfkill); 138 void rfkill_destroy(struct rfkill *rfkill); 159 bool rfkill_set_hw_state(struct rfkill *rfkill, bool blocked); [all …]
|
/kernel/linux/linux-5.10/net/rfkill/ |
D | core.c | 37 struct rfkill { struct 67 #define to_rfkill(d) container_of(d, struct rfkill, dev) argument 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() 126 if (rfkill->state & RFKILL_BLOCK_ANY) in rfkill_led_trigger_event() 134 struct rfkill *rfkill; in rfkill_led_trigger_activate() local 136 rfkill = container_of(led->trigger, struct rfkill, led_trigger); in rfkill_led_trigger_activate() 138 rfkill_led_trigger_event(rfkill); in rfkill_led_trigger_activate() 143 const char *rfkill_get_led_trigger_name(struct rfkill *rfkill) in rfkill_get_led_trigger_name() argument [all …]
|
D | rfkill-gpio.c | 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() 61 struct rfkill_gpio_data *rfkill) in rfkill_gpio_acpi_probe() argument [all …]
|
D | Makefile | 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-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-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/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 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 125 @@ -7,3 +7,5 @@ rfkill-y += core.o 126 rfkill-$(CONFIG_RFKILL_INPUT) += input.o 127 obj-$(CONFIG_RFKILL) += rfkill.o [all …]
|
/kernel/linux/linux-5.10/net/wimax/ |
D | op-rfkill.c | 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() 308 rfkill_set_sw_state(wimax_dev->rfkill, state == WIMAX_RF_OFF); in wimax_rfkill() 335 struct rfkill *rfkill; in wimax_rfkill_add() local 341 rfkill = rfkill_alloc(wimax_dev->name, dev, RFKILL_TYPE_WIMAX, in wimax_rfkill_add() 343 if (rfkill == NULL) in wimax_rfkill_add() 346 d_printf(1, dev, "rfkill %p\n", rfkill); in wimax_rfkill_add() 348 wimax_dev->rfkill = rfkill; in wimax_rfkill_add() 350 rfkill_init_sw_state(rfkill, 1); in wimax_rfkill_add() 351 result = rfkill_register(wimax_dev->rfkill); in wimax_rfkill_add() [all …]
|
/kernel/linux/linux-5.10/drivers/platform/x86/ |
D | dell-rbtn.c | 23 struct rfkill *rfkill; member 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() 117 if (rbtn_data->rfkill) 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() 130 ret = rfkill_register(rbtn_data->rfkill); in rbtn_rfkill_init() 132 rfkill_destroy(rbtn_data->rfkill); in rbtn_rfkill_init() 133 rbtn_data->rfkill = NULL; in rbtn_rfkill_init() 144 if (!rbtn_data->rfkill) in rbtn_rfkill_exit() [all …]
|
D | asus-wmi.c | 161 struct rfkill *rfkill; member 804 if (asus->wlan.rfkill) in asus_rfkill_hotplug() 805 rfkill_set_sw_state(asus->wlan.rfkill, blocked); in asus_rfkill_hotplug() 990 static void asus_rfkill_query(struct rfkill *rfkill, void *data) in asus_rfkill_query() argument 1000 rfkill_set_sw_state(priv->rfkill, !result); in asus_rfkill_query() 1037 struct rfkill **rfkill = &arfkill->rfkill; in asus_new_rfkill() local 1047 *rfkill = rfkill_alloc(name, &asus->platform_device->dev, type, in asus_new_rfkill() 1050 *rfkill = rfkill_alloc(name, &asus->platform_device->dev, type, in asus_new_rfkill() 1053 if (!*rfkill) in asus_new_rfkill() 1058 rfkill_set_led_trigger_name(*rfkill, "asus-wlan"); in asus_new_rfkill() [all …]
|
D | hp-wmi.c | 165 static struct rfkill *wifi_rfkill; 166 static struct rfkill *bluetooth_rfkill; 167 static struct rfkill *wwan_rfkill; 172 struct rfkill *rfkill; member 406 rfkill_set_states(rfkill2[i].rfkill, in hp_wmi_rfkill2_refresh() 809 struct rfkill *rfkill; in hp_wmi_rfkill2_setup() local 841 rfkill = rfkill_alloc(name, &device->dev, type, in hp_wmi_rfkill2_setup() 843 if (!rfkill) { in hp_wmi_rfkill2_setup() 850 rfkill2[rfkill2_count].rfkill = rfkill; in hp_wmi_rfkill2_setup() 852 rfkill_init_sw_state(rfkill, in hp_wmi_rfkill2_setup() [all …]
|
D | intel_oaktrail.c | 88 static struct rfkill *bt_rfkill; 89 static struct rfkill *gps_rfkill; 90 static struct rfkill *wifi_rfkill; 91 static struct rfkill *wwan_rfkill; 117 static struct rfkill *oaktrail_rfkill_new(char *name, enum rfkill_type type, in oaktrail_rfkill_new() 120 struct rfkill *rfkill_dev; in oaktrail_rfkill_new() 141 static inline void __oaktrail_rfkill_cleanup(struct rfkill *rf) in __oaktrail_rfkill_cleanup()
|
D | samsung-laptop.c | 323 struct rfkill *rfkill; member 629 static void swsmi_rfkill_query(struct rfkill *rfkill, void *priv) in swsmi_rfkill_query() argument 647 rfkill_set_sw_state(rfkill, !ret); in swsmi_rfkill_query() 943 if (samsung->wlan.rfkill) { in samsung_rfkill_exit() 944 rfkill_unregister(samsung->wlan.rfkill); in samsung_rfkill_exit() 945 rfkill_destroy(samsung->wlan.rfkill); in samsung_rfkill_exit() 946 samsung->wlan.rfkill = NULL; in samsung_rfkill_exit() 948 if (samsung->bluetooth.rfkill) { in samsung_rfkill_exit() 949 rfkill_unregister(samsung->bluetooth.rfkill); in samsung_rfkill_exit() 950 rfkill_destroy(samsung->bluetooth.rfkill); in samsung_rfkill_exit() [all …]
|
D | xo1-rfkill.c | 41 struct rfkill *rfk; in xo1_rfkill_probe() 61 struct rfkill *rfk = platform_get_drvdata(pdev); in xo1_rfkill_remove()
|
D | eeepc-laptop.c | 166 struct rfkill *wlan_rfkill; 167 struct rfkill *bluetooth_rfkill; 168 struct rfkill *wwan3g_rfkill; 169 struct rfkill *wimax_rfkill; 766 struct rfkill **rfkill, in eeepc_new_rfkill() argument 777 *rfkill = rfkill_alloc(name, &eeepc->platform_device->dev, type, in eeepc_new_rfkill() 780 if (!*rfkill) in eeepc_new_rfkill() 783 rfkill_init_sw_state(*rfkill, get_acpi(eeepc, cm) != 1); in eeepc_new_rfkill() 784 result = rfkill_register(*rfkill); in eeepc_new_rfkill() 786 rfkill_destroy(*rfkill); in eeepc_new_rfkill() [all …]
|
D | toshiba_bluetooth.c | 31 struct rfkill *rfk; 184 static void bt_rfkill_poll(struct rfkill *rfkill, void *data) in bt_rfkill_poll() argument
|
D | dell-laptop.c | 89 static struct rfkill *wifi_rfkill; 90 static struct rfkill *bluetooth_rfkill; 91 static struct rfkill *wwan_rfkill; 515 static void dell_rfkill_update_sw_state(struct rfkill *rfkill, int radio, in dell_rfkill_update_sw_state() argument 521 int block = rfkill_blocked(rfkill); in dell_rfkill_update_sw_state() 527 rfkill_set_sw_state(rfkill, !!(status & BIT(radio + 16))); in dell_rfkill_update_sw_state() 531 static void dell_rfkill_update_hw_state(struct rfkill *rfkill, int radio, in dell_rfkill_update_hw_state() argument 535 rfkill_set_hw_state(rfkill, !(status & BIT(16))); in dell_rfkill_update_hw_state() 538 static void dell_rfkill_query(struct rfkill *rfkill, void *data) in dell_rfkill_query() argument 561 dell_rfkill_update_hw_state(rfkill, radio, status, hwswitch); in dell_rfkill_query()
|
/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-5.10/include/net/ |
D | wimax.h | 410 struct rfkill *rfkill; member
|
/kernel/linux/linux-5.10/net/nfc/ |
D | core.c | 102 if (dev->rfkill && rfkill_blocked(dev->rfkill)) { in nfc_dev_up() 1121 dev->rfkill = rfkill_alloc(dev_name(&dev->dev), &dev->dev, in nfc_register_device() 1123 if (dev->rfkill) { in nfc_register_device() 1124 if (rfkill_register(dev->rfkill) < 0) { in nfc_register_device() 1125 rfkill_destroy(dev->rfkill); in nfc_register_device() 1126 dev->rfkill = NULL; in nfc_register_device() 1158 if (dev->rfkill) { in nfc_unregister_device() 1159 rfkill_unregister(dev->rfkill); in nfc_unregister_device() 1160 rfkill_destroy(dev->rfkill); in nfc_unregister_device() 1161 dev->rfkill = NULL; in nfc_unregister_device()
|
/kernel/linux/linux-5.10/net/wireless/ |
D | core.c | 215 static void cfg80211_rfkill_poll(struct rfkill *rfkill, void *data) in cfg80211_rfkill_poll() argument 513 rdev->rfkill = rfkill_alloc(dev_name(&rdev->wiphy.dev), in wiphy_new_nm() 517 if (!rdev->rfkill) { in wiphy_new_nm() 978 res = rfkill_register(rdev->rfkill); in wiphy_register() 980 rfkill_destroy(rdev->rfkill); in wiphy_register() 981 rdev->rfkill = NULL; in wiphy_register() 997 rfkill_resume_polling(rdev->rfkill); in wiphy_rfkill_start_polling() 1005 rfkill_pause_polling(rdev->rfkill); in wiphy_rfkill_stop_polling() 1020 if (rdev->rfkill) in wiphy_unregister() 1021 rfkill_unregister(rdev->rfkill); in wiphy_unregister() [all …]
|
/kernel/linux/linux-5.10/arch/arm/mach-s3c/ |
D | h1940-bluetooth.c | 62 struct rfkill *rfk; in h1940bt_probe() 111 struct rfkill *rfk = platform_get_drvdata(pdev); in h1940bt_remove()
|
/kernel/linux/linux-5.10/arch/arm/mach-pxa/ |
D | tosa-bt.c | 56 struct rfkill *rfk; in tosa_bt_probe() 104 struct rfkill *rfk = platform_get_drvdata(dev); in tosa_bt_remove()
|
/kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtl818x/rtl8187/ |
D | Makefile | 2 rtl8187-objs := dev.o rtl8225.o leds.o rfkill.o
|
/kernel/linux/linux-5.10/drivers/net/wimax/i2400m/ |
D | debug-levels.h | 25 D_SUBMODULE_DECLARE(rfkill),
|