Home
last modified time | relevance | path

Searched refs:rfkill (Results 1 – 25 of 78) sorted by relevance

1234

/linux/net/rfkill/
A Dcore.c135 struct rfkill *rfkill; in rfkill_led_trigger_activate() local
178 struct rfkill *rfkill; in rfkill_global_led_trigger_worker() local
326 rfkill->ops->query(rfkill, rfkill->data); in rfkill_set_block()
398 struct rfkill *rfkill; in __rfkill_switch_all() local
443 struct rfkill *rfkill; in rfkill_epo() local
956 struct rfkill *rfkill; in rfkill_alloc() local
993 struct rfkill *rfkill; in rfkill_poll() local
1002 rfkill->ops->poll(rfkill, rfkill->data); in rfkill_poll()
1011 struct rfkill *rfkill; in rfkill_uevent_work() local
1022 struct rfkill *rfkill; in rfkill_sync_work() local
[all …]
A Drfkill-gpio.c23 struct rfkill *rfkill_dev;
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()
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()
81 rfkill = devm_kzalloc(&pdev->dev, sizeof(*rfkill), GFP_KERNEL); in rfkill_gpio_probe()
82 if (!rfkill) in rfkill_gpio_probe()
88 if (!rfkill->name) in rfkill_gpio_probe()
114 if (!rfkill->reset_gpio && !rfkill->shutdown_gpio) { in rfkill_gpio_probe()
119 rfkill->rfkill_dev = rfkill_alloc(rfkill->name, &pdev->dev, in rfkill_gpio_probe()
[all …]
A DMakefile6 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
/linux/include/linux/
A Drfkill.h41 struct rfkill;
62 void (*poll)(struct rfkill *rfkill, void *data);
63 void (*query)(struct rfkill *rfkill, void *data);
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);
149 bool rfkill_set_hw_state_reason(struct rfkill *rfkill,
230 bool rfkill_blocked(struct rfkill *rfkill);
[all …]
/linux/Documentation/ABI/stable/
A Dsysfs-class-rfkill1 rfkill - radio frequency (RF) connector kill switch support
6 Documentation/ABI/removed/sysfs-class-rfkill.
8 What: /sys/class/rfkill
12 Description: The rfkill class subsystem folder.
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.
33 What: /sys/class/rfkill/rfkill[0-9]+/persistent
45 What: /sys/class/rfkill/rfkill[0-9]+/state
68 What: /sys/class/rfkill/rfkill[0-9]+/hard
[all …]
/linux/Documentation/driver-api/
A Drfkill.rst2 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.
79 To create an rfkill driver, driver's Kconfig needs to have::
[all …]
/linux/drivers/platform/x86/dell/
A Ddell-rbtn.c23 struct rfkill *rfkill; member
89 static void rbtn_rfkill_query(struct rfkill *rfkill, void *data) in rbtn_rfkill_query() argument
117 if (rbtn_data->rfkill) in rbtn_rfkill_init()
127 if (!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()
147 rfkill_unregister(rbtn_data->rfkill); in rbtn_rfkill_exit()
148 rfkill_destroy(rbtn_data->rfkill); in rbtn_rfkill_exit()
149 rbtn_data->rfkill = NULL; in rbtn_rfkill_exit()
[all …]
A Ddell-laptop.c91 static struct rfkill *wifi_rfkill;
92 static struct rfkill *bluetooth_rfkill;
93 static struct rfkill *wwan_rfkill;
518 static void dell_rfkill_update_sw_state(struct rfkill *rfkill, int radio, in dell_rfkill_update_sw_state() argument
524 int block = rfkill_blocked(rfkill); in dell_rfkill_update_sw_state()
530 rfkill_set_sw_state(rfkill, !!(status & BIT(radio + 16))); in dell_rfkill_update_sw_state()
534 static void dell_rfkill_update_hw_state(struct rfkill *rfkill, int radio, in dell_rfkill_update_hw_state() argument
538 rfkill_set_hw_state(rfkill, !(status & BIT(16))); in dell_rfkill_update_hw_state()
541 static void dell_rfkill_query(struct rfkill *rfkill, void *data) in dell_rfkill_query() argument
564 dell_rfkill_update_hw_state(rfkill, radio, status, hwswitch); in dell_rfkill_query()
A DKconfig64 This driver adds support for rfkill and backlight control to Dell
89 This driver register rfkill device or input hotkey device depending
91 rfkill devices it receive HW switch events and set correct hard
92 rfkill state.
/linux/Documentation/ABI/removed/
A Dsysfs-class-rfkill1 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.
/linux/drivers/platform/x86/
A Dasus-wmi.c166 struct rfkill *rfkill; member
1022 if (asus->wlan.rfkill) in asus_rfkill_hotplug()
1208 static void asus_rfkill_query(struct rfkill *rfkill, void *data) in asus_rfkill_query() argument
1255 struct rfkill **rfkill = &arfkill->rfkill; in asus_new_rfkill() local
1271 if (!*rfkill) in asus_new_rfkill()
1282 *rfkill = NULL; in asus_new_rfkill()
1296 if (asus->wlan.rfkill) { in asus_wmi_rfkill_exit()
1326 if (asus->gps.rfkill) { in asus_wmi_rfkill_exit()
1331 if (asus->uwb.rfkill) { in asus_wmi_rfkill_exit()
3186 if (asus->wlan.rfkill) in asus_hotk_restore()
[all …]
A Dhp-wmi.c207 static struct rfkill *wifi_rfkill;
209 static struct rfkill *wwan_rfkill;
214 struct rfkill *rfkill; member
932 struct rfkill *rfkill; in hp_wmi_rfkill2_setup() local
966 if (!rfkill) { in hp_wmi_rfkill2_setup()
973 rfkill2[rfkill2_count].rfkill = rfkill; in hp_wmi_rfkill2_setup()
975 rfkill_init_sw_state(rfkill, in hp_wmi_rfkill2_setup()
977 rfkill_set_hw_state(rfkill, in hp_wmi_rfkill2_setup()
983 err = rfkill_register(rfkill); in hp_wmi_rfkill2_setup()
985 rfkill_destroy(rfkill); in hp_wmi_rfkill2_setup()
[all …]
A Dsamsung-laptop.c323 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()
946 samsung->wlan.rfkill = NULL; in samsung_rfkill_exit()
948 if (samsung->bluetooth.rfkill) { in samsung_rfkill_exit()
961 struct rfkill **rfkill = &arfkill->rfkill; in samsung_new_rfkill() local
970 if (!*rfkill) in samsung_new_rfkill()
976 ret = rfkill_register(*rfkill); in samsung_new_rfkill()
978 rfkill_destroy(*rfkill); in samsung_new_rfkill()
[all …]
A Dxo1-rfkill.c41 struct rfkill *rfk; in xo1_rfkill_probe()
61 struct rfkill *rfk = platform_get_drvdata(pdev); in xo1_rfkill_remove()
A Deeepc-laptop.c166 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 …]
A Dtoshiba_bluetooth.c31 struct rfkill *rfk;
184 static void bt_rfkill_poll(struct rfkill *rfkill, void *data) in bt_rfkill_poll() argument
A Dasus-laptop.c228 struct rfkill *rfkill; member
1283 rfkill_set_sw_state(asus->gps.rfkill, !value); in gps_store()
1325 if (!rfk->rfkill) in asus_rfkill_terminate()
1328 rfkill_unregister(rfk->rfkill); in asus_rfkill_terminate()
1329 rfkill_destroy(rfk->rfkill); in asus_rfkill_terminate()
1330 rfk->rfkill = NULL; in asus_rfkill_terminate()
1349 rfk->rfkill = rfkill_alloc(name, &asus->platform_device->dev, in asus_rfkill_setup()
1351 if (!rfk->rfkill) in asus_rfkill_setup()
1354 result = rfkill_register(rfk->rfkill); in asus_rfkill_setup()
1356 rfkill_destroy(rfk->rfkill); in asus_rfkill_setup()
[all …]
A Dcompal-laptop.c355 static void compal_rfkill_poll(struct rfkill *rfkill, void *data) in compal_rfkill_poll() argument
359 rfkill_set_hw_state(rfkill, hw_blocked); in compal_rfkill_poll()
763 static struct rfkill *wifi_rfkill;
764 static struct rfkill *bt_rfkill;
A DMakefile48 obj-$(CONFIG_AMILO_RFKILL) += amilo-rfkill.o
79 obj-$(CONFIG_XO1_RFKILL) += xo1-rfkill.o
/linux/drivers/platform/x86/intel/
A Doaktrail.c88 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()
/linux/net/nfc/
A Dcore.c102 if (dev->rfkill && rfkill_blocked(dev->rfkill)) { in nfc_dev_up()
1129 dev->rfkill = rfkill_alloc(dev_name(&dev->dev), &dev->dev, in nfc_register_device()
1131 if (dev->rfkill) { in nfc_register_device()
1132 if (rfkill_register(dev->rfkill) < 0) { in nfc_register_device()
1133 rfkill_destroy(dev->rfkill); in nfc_register_device()
1134 dev->rfkill = NULL; in nfc_register_device()
1165 if (dev->rfkill) { in nfc_unregister_device()
1166 rfkill_unregister(dev->rfkill); in nfc_unregister_device()
1167 rfkill_destroy(dev->rfkill); in nfc_unregister_device()
/linux/net/wireless/
A Dcore.c215 static void cfg80211_rfkill_poll(struct rfkill *rfkill, void *data) in cfg80211_rfkill_poll() argument
536 rdev->wiphy.rfkill = rfkill_alloc(dev_name(&rdev->wiphy.dev), in wiphy_new_nm()
540 if (!rdev->wiphy.rfkill) { in wiphy_new_nm()
989 res = rfkill_register(rdev->wiphy.rfkill); in wiphy_register()
991 rfkill_destroy(rdev->wiphy.rfkill); in wiphy_register()
992 rdev->wiphy.rfkill = NULL; in wiphy_register()
1008 rfkill_resume_polling(wiphy->rfkill); in wiphy_rfkill_start_polling()
1023 if (rdev->wiphy.rfkill) in wiphy_unregister()
1024 rfkill_unregister(rdev->wiphy.rfkill); in wiphy_unregister()
1076 rfkill_destroy(rdev->wiphy.rfkill); in cfg80211_dev_free()
[all …]
/linux/arch/arm/mach-pxa/
A Dtosa-bt.c56 struct rfkill *rfk; in tosa_bt_probe()
104 struct rfkill *rfk = platform_get_drvdata(dev); in tosa_bt_remove()
/linux/arch/arm/mach-s3c/
A Dh1940-bluetooth.c62 struct rfkill *rfk; in h1940bt_probe()
111 struct rfkill *rfk = platform_get_drvdata(pdev); in h1940bt_remove()
/linux/drivers/net/wireless/realtek/rtl818x/rtl8187/
A DMakefile2 rtl8187-objs := dev.o rtl8225.o leds.o rfkill.o

Completed in 59 milliseconds

1234