Home
last modified time | relevance | path

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

1234

/linux-6.15/include/linux/
H 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,
231 bool rfkill_blocked(struct rfkill *rfkill);
[all …]
/linux-6.15/net/rfkill/
H A Dcore.c137 struct rfkill *rfkill; in rfkill_led_trigger_activate() local
180 struct rfkill *rfkill; in rfkill_global_led_trigger_worker() local
328 rfkill->ops->query(rfkill, rfkill->data); in rfkill_set_block()
411 struct rfkill *rfkill; in __rfkill_switch_all() local
456 struct rfkill *rfkill; in rfkill_epo() local
987 struct rfkill *rfkill; in rfkill_alloc() local
1024 struct rfkill *rfkill; in rfkill_poll() local
1033 rfkill->ops->poll(rfkill, rfkill->data); in rfkill_poll()
1042 struct rfkill *rfkill; in rfkill_uevent_work() local
1165 struct rfkill *rfkill; in rfkill_fop_open() local
[all …]
H A Drfkill-gpio.c25 struct rfkill *rfkill_dev;
35 if (!blocked && !IS_ERR(rfkill->clk) && !rfkill->clk_enabled) { in rfkill_gpio_set_power()
45 if (blocked && !IS_ERR(rfkill->clk) && rfkill->clk_enabled) in rfkill_gpio_set_power()
46 clk_disable(rfkill->clk); in rfkill_gpio_set_power()
106 rfkill = devm_kzalloc(&pdev->dev, sizeof(*rfkill), GFP_KERNEL); in rfkill_gpio_probe()
107 if (!rfkill) in rfkill_gpio_probe()
120 if (!rfkill->name) in rfkill_gpio_probe()
146 if (!rfkill->reset_gpio && !rfkill->shutdown_gpio) { in rfkill_gpio_probe()
159 rfkill->rfkill_dev = rfkill_alloc(rfkill->name, &pdev->dev, in rfkill_gpio_probe()
161 rfkill); in rfkill_gpio_probe()
[all …]
H 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-6.15/Documentation/ABI/stable/
H 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-6.15/Documentation/driver-api/
H 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-6.15/Documentation/devicetree/bindings/net/
H A Drfkill-gpio.yaml4 $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
37 description: configure rfkill state as blocked at boot
50 rfkill {
51 compatible = "rfkill-gpio";
52 label = "rfkill-pcie-wlan";
/linux-6.15/drivers/platform/x86/dell/
H 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 …]
H A Ddell-laptop.c97 static struct rfkill *wifi_rfkill;
98 static struct rfkill *bluetooth_rfkill;
99 static struct rfkill *wwan_rfkill;
551 static void dell_rfkill_update_sw_state(struct rfkill *rfkill, int radio, in dell_rfkill_update_sw_state() argument
557 int block = rfkill_blocked(rfkill); in dell_rfkill_update_sw_state()
563 rfkill_set_sw_state(rfkill, !!(status & BIT(radio + 16))); in dell_rfkill_update_sw_state()
567 static void dell_rfkill_update_hw_state(struct rfkill *rfkill, int radio, in dell_rfkill_update_hw_state() argument
571 rfkill_set_hw_state(rfkill, !(status & BIT(16))); in dell_rfkill_update_hw_state()
574 static void dell_rfkill_query(struct rfkill *rfkill, void *data) in dell_rfkill_query() argument
597 dell_rfkill_update_hw_state(rfkill, radio, status, hwswitch); in dell_rfkill_query()
/linux-6.15/Documentation/ABI/removed/
H 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-6.15/drivers/platform/x86/intel/
H A Doaktrail.c87 static struct rfkill *bt_rfkill;
88 static struct rfkill *gps_rfkill;
89 static struct rfkill *wifi_rfkill;
90 static struct rfkill *wwan_rfkill;
116 static struct rfkill *oaktrail_rfkill_new(char *name, enum rfkill_type type, in oaktrail_rfkill_new()
119 struct rfkill *rfkill_dev; in oaktrail_rfkill_new()
140 static inline void __oaktrail_rfkill_cleanup(struct rfkill *rf) in __oaktrail_rfkill_cleanup()
/linux-6.15/arch/arm64/boot/dts/marvell/
H A Dcn9132-clearfog.dts70 rfkill-m2-wlan {
71 compatible = "rfkill-gpio";
76 /* rfkill-gpio inverts internally */
81 rfkill-m2-wlan {
82 compatible = "rfkill-gpio";
92 rfkill-m2-wwan {
93 compatible = "rfkill-gpio";
103 rfkill-m2-gnss {
104 compatible = "rfkill-gpio";
114 rfkill-mpcie-wlan {
[all …]
H A Dcn9130-cf-base.dts37 rfkill-m2-gnss {
38 compatible = "rfkill-gpio";
41 /* rfkill-gpio inverts internally */
46 rfkill-m2-wwan {
47 compatible = "rfkill-gpio";
50 /* rfkill-gpio inverts internally */
/linux-6.15/drivers/platform/x86/
H A Dsamsung-laptop.c322 struct rfkill *rfkill; member
618 static void swsmi_rfkill_query(struct rfkill *rfkill, void *priv) in swsmi_rfkill_query() argument
636 rfkill_set_sw_state(rfkill, !ret); in swsmi_rfkill_query()
932 if (samsung->wlan.rfkill) { in samsung_rfkill_exit()
935 samsung->wlan.rfkill = NULL; in samsung_rfkill_exit()
937 if (samsung->bluetooth.rfkill) { in samsung_rfkill_exit()
950 struct rfkill **rfkill = &arfkill->rfkill; in samsung_new_rfkill() local
959 if (!*rfkill) in samsung_new_rfkill()
965 ret = rfkill_register(*rfkill); in samsung_new_rfkill()
967 rfkill_destroy(*rfkill); in samsung_new_rfkill()
[all …]
H A Dasus-wmi.c224 struct rfkill *rfkill; member
1876 if (asus->wlan.rfkill) in asus_rfkill_hotplug()
2060 static void asus_rfkill_query(struct rfkill *rfkill, void *data) in asus_rfkill_query() argument
2107 struct rfkill **rfkill = &arfkill->rfkill; in asus_new_rfkill() local
2123 if (!*rfkill) in asus_new_rfkill()
2134 *rfkill = NULL; in asus_new_rfkill()
2178 if (asus->gps.rfkill) { in asus_wmi_rfkill_exit()
2183 if (asus->uwb.rfkill) { in asus_wmi_rfkill_exit()
4950 if (asus->wlan.rfkill) in asus_hotk_restore()
4966 if (asus->gps.rfkill) { in asus_hotk_restore()
[all …]
H A Dxo1-rfkill.c41 struct rfkill *rfk; in xo1_rfkill_probe()
61 struct rfkill *rfk = platform_get_drvdata(pdev); in xo1_rfkill_remove()
H 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 …]
H A Dtoshiba_bluetooth.c31 struct rfkill *rfk;
183 static void bt_rfkill_poll(struct rfkill *rfkill, void *data) in bt_rfkill_poll() argument
H A Dasus-laptop.c227 struct rfkill *rfkill; member
1285 rfkill_set_sw_state(asus->gps.rfkill, !value); in gps_store()
1327 if (!rfk->rfkill) in asus_rfkill_terminate()
1330 rfkill_unregister(rfk->rfkill); in asus_rfkill_terminate()
1331 rfkill_destroy(rfk->rfkill); in asus_rfkill_terminate()
1332 rfk->rfkill = NULL; in asus_rfkill_terminate()
1351 rfk->rfkill = rfkill_alloc(name, &asus->platform_device->dev, in asus_rfkill_setup()
1353 if (!rfk->rfkill) in asus_rfkill_setup()
1356 result = rfkill_register(rfk->rfkill); in asus_rfkill_setup()
1358 rfkill_destroy(rfk->rfkill); in asus_rfkill_setup()
[all …]
/linux-6.15/drivers/platform/x86/hp/
H A Dhp-wmi.c316 static struct rfkill *wifi_rfkill;
318 static struct rfkill *wwan_rfkill;
323 struct rfkill *rfkill; member
1221 struct rfkill *rfkill; in hp_wmi_rfkill2_setup() local
1256 if (!rfkill) { in hp_wmi_rfkill2_setup()
1263 rfkill2[rfkill2_count].rfkill = rfkill; in hp_wmi_rfkill2_setup()
1265 rfkill_init_sw_state(rfkill, in hp_wmi_rfkill2_setup()
1267 rfkill_set_hw_state(rfkill, in hp_wmi_rfkill2_setup()
1273 err = rfkill_register(rfkill); in hp_wmi_rfkill2_setup()
1275 rfkill_destroy(rfkill); in hp_wmi_rfkill2_setup()
[all …]
/linux-6.15/arch/arm64/boot/dts/rockchip/
H A Drk3588-armsom-w3.dts63 rfkill {
64 compatible = "rfkill-gpio";
65 label = "rfkill-pcie-wlan";
70 rfkill-bt {
71 compatible = "rfkill-gpio";
72 label = "rfkill-m2-bt";
/linux-6.15/net/nfc/
H 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()
1166 if (dev->rfkill) { in nfc_unregister_device()
1167 rfkill_unregister(dev->rfkill); in nfc_unregister_device()
1168 rfkill_destroy(dev->rfkill); in nfc_unregister_device()
1169 dev->rfkill = NULL; in nfc_unregister_device()
/linux-6.15/net/wireless/
H A Dcore.c217 static void cfg80211_rfkill_poll(struct rfkill *rfkill, void *data) in cfg80211_rfkill_poll() argument
560 rdev->wiphy.rfkill = rfkill_alloc(dev_name(&rdev->wiphy.dev), in wiphy_new_nm()
564 if (!rdev->wiphy.rfkill) { in wiphy_new_nm()
1070 res = rfkill_register(rdev->wiphy.rfkill); in wiphy_register()
1072 rfkill_destroy(rdev->wiphy.rfkill); in wiphy_register()
1073 rdev->wiphy.rfkill = NULL; in wiphy_register()
1089 rfkill_resume_polling(wiphy->rfkill); in wiphy_rfkill_start_polling()
1135 if (rdev->wiphy.rfkill) in wiphy_unregister()
1136 rfkill_unregister(rdev->wiphy.rfkill); in wiphy_unregister()
1202 rfkill_destroy(rdev->wiphy.rfkill); in cfg80211_dev_free()
[all …]
/linux-6.15/drivers/net/wireless/realtek/rtl818x/rtl8187/
H A DMakefile2 rtl8187-objs := dev.o rtl8225.o leds.o rfkill.o
/linux-6.15/drivers/net/wireless/broadcom/b43legacy/
H A DMakefile10 b43legacy-y += rfkill.o

1234