Home
last modified time | relevance | path

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

1234

/openbmc/linux/include/linux/
H A Drfkill.h41 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);
149 bool rfkill_set_hw_state_reason(struct rfkill *rfkill,
[all …]
/openbmc/linux/net/rfkill/
H A Dcore.c37 struct rfkill { struct
69 #define to_rfkill(d) container_of(d, struct rfkill, dev) argument
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()
129 if (rfkill->state & RFKILL_BLOCK_ANY) in rfkill_led_trigger_event()
137 struct rfkill *rfkill; in rfkill_led_trigger_activate() local
139 rfkill = container_of(led->trigger, struct rfkill, led_trigger); in rfkill_led_trigger_activate()
141 rfkill_led_trigger_event(rfkill); in rfkill_led_trigger_activate()
146 const char *rfkill_get_led_trigger_name(struct rfkill *rfkill) in rfkill_get_led_trigger_name() argument
[all …]
H A Drfkill-gpio.c24 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()
66 struct rfkill_gpio_data *rfkill) in rfkill_gpio_acpi_probe() argument
[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
/openbmc/linux/Documentation/ABI/stable/
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 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 …]
/openbmc/linux/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.
47 The rfkill core provides API for kernel drivers to register their radio
[all …]
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-connectivity/rfkill/rfkill/
H A D0001-rfkill-makefile-don-t-use-t-the-OE-install-wrapper-d.patch4 Subject: [PATCH] rfkill makefile: don't use -t, the OE install wrapper dislikes it
18 install: rfkill rfkill.8.gz
19 @$(NQ) ' INST rfkill'
21 - $(Q)$(INSTALL) -m 755 -t $(DESTDIR)$(SBINDIR) rfkill
22 + $(Q)$(INSTALL) -m 755 rfkill $(DESTDIR)$(SBINDIR)
23 @$(NQ) ' INST rfkill.8'
25 - $(Q)$(INSTALL) -m 644 -t $(DESTDIR)$(MANDIR)/man8/ rfkill.8.gz
26 + $(Q)$(INSTALL) -m 644 rfkill.8.gz $(DESTDIR)$(MANDIR)/man8/
29 $(Q)rm -f rfkill *.o *~ *.gz version.c *-stamp
H A Ddont.call.git.rev-parse.on.parent.dir.patch4 and it returns some description from that upper git checkout even when rfkill is
15 | CC rfkill.o
/openbmc/linux/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
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 …]
H A Ddell-laptop.c95 static struct rfkill *wifi_rfkill;
96 static struct rfkill *bluetooth_rfkill;
97 static struct rfkill *wwan_rfkill;
532 static void dell_rfkill_update_sw_state(struct rfkill *rfkill, int radio, in dell_rfkill_update_sw_state() argument
538 int block = rfkill_blocked(rfkill); in dell_rfkill_update_sw_state()
544 rfkill_set_sw_state(rfkill, !!(status & BIT(radio + 16))); in dell_rfkill_update_sw_state()
548 static void dell_rfkill_update_hw_state(struct rfkill *rfkill, int radio, in dell_rfkill_update_hw_state() argument
552 rfkill_set_hw_state(rfkill, !(status & BIT(16))); in dell_rfkill_update_hw_state()
555 static void dell_rfkill_query(struct rfkill *rfkill, void *data) in dell_rfkill_query() argument
578 dell_rfkill_update_hw_state(rfkill, radio, status, hwswitch); in dell_rfkill_query()
/openbmc/linux/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.
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-connectivity/rfkill/
H A Drfkill_1.0.bb2 HOMEPAGE = "http://linuxwireless.org/en/users/Documentation/rfkill"
8 file://0001-rfkill-makefile-don-t-use-t-the-OE-install-wrapper-d.patch \
23 ALTERNATIVE:${PN} = "rfkill"
25 ALTERNATIVE_LINK_NAME[rfkill] = "${sbindir}/rfkill"
/openbmc/linux/drivers/platform/x86/intel/
H 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()
/openbmc/linux/drivers/platform/x86/hp/
H A Dhp-wmi.c251 static struct rfkill *wifi_rfkill;
252 static struct rfkill *bluetooth_rfkill;
253 static struct rfkill *wwan_rfkill;
258 struct rfkill *rfkill; member
647 rfkill_set_states(rfkill2[i].rfkill, in hp_wmi_rfkill2_refresh()
1105 struct rfkill *rfkill; in hp_wmi_rfkill2_setup() local
1138 rfkill = rfkill_alloc(name, &device->dev, type, in hp_wmi_rfkill2_setup()
1140 if (!rfkill) { in hp_wmi_rfkill2_setup()
1147 rfkill2[rfkill2_count].rfkill = rfkill; in hp_wmi_rfkill2_setup()
1149 rfkill_init_sw_state(rfkill, in hp_wmi_rfkill2_setup()
[all …]
/openbmc/linux/drivers/platform/x86/
H A Dsamsung-laptop.c323 struct rfkill *rfkill; member
619 static void swsmi_rfkill_query(struct rfkill *rfkill, void *priv) in swsmi_rfkill_query() argument
637 rfkill_set_sw_state(rfkill, !ret); in swsmi_rfkill_query()
933 if (samsung->wlan.rfkill) { in samsung_rfkill_exit()
934 rfkill_unregister(samsung->wlan.rfkill); in samsung_rfkill_exit()
935 rfkill_destroy(samsung->wlan.rfkill); in samsung_rfkill_exit()
936 samsung->wlan.rfkill = NULL; in samsung_rfkill_exit()
938 if (samsung->bluetooth.rfkill) { in samsung_rfkill_exit()
939 rfkill_unregister(samsung->bluetooth.rfkill); in samsung_rfkill_exit()
940 rfkill_destroy(samsung->bluetooth.rfkill); in samsung_rfkill_exit()
[all …]
H A Dasus-wmi.c196 struct rfkill *rfkill; member
1660 if (asus->wlan.rfkill) in asus_rfkill_hotplug()
1661 rfkill_set_sw_state(asus->wlan.rfkill, blocked); in asus_rfkill_hotplug()
1844 static void asus_rfkill_query(struct rfkill *rfkill, void *data) in asus_rfkill_query() argument
1854 rfkill_set_sw_state(priv->rfkill, !result); in asus_rfkill_query()
1891 struct rfkill **rfkill = &arfkill->rfkill; in asus_new_rfkill() local
1901 *rfkill = rfkill_alloc(name, &asus->platform_device->dev, type, in asus_new_rfkill()
1904 *rfkill = rfkill_alloc(name, &asus->platform_device->dev, type, in asus_new_rfkill()
1907 if (!*rfkill) in asus_new_rfkill()
1912 rfkill_set_led_trigger_name(*rfkill, "asus-wlan"); in asus_new_rfkill()
[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;
184 static void bt_rfkill_poll(struct rfkill *rfkill, void *data) in bt_rfkill_poll() argument
H 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 …]
H A DMakefile48 obj-$(CONFIG_AMILO_RFKILL) += amilo-rfkill.o
80 obj-$(CONFIG_XO1_RFKILL) += xo1-rfkill.o
/openbmc/linux/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()
/openbmc/linux/net/wireless/
H A Dcore.c220 static void cfg80211_rfkill_poll(struct rfkill *rfkill, void *data) in cfg80211_rfkill_poll() argument
561 rdev->wiphy.rfkill = rfkill_alloc(dev_name(&rdev->wiphy.dev), in wiphy_new_nm()
565 if (!rdev->wiphy.rfkill) { in wiphy_new_nm()
1031 res = rfkill_register(rdev->wiphy.rfkill); in wiphy_register()
1033 rfkill_destroy(rdev->wiphy.rfkill); in wiphy_register()
1034 rdev->wiphy.rfkill = NULL; in wiphy_register()
1050 rfkill_resume_polling(wiphy->rfkill); in wiphy_rfkill_start_polling()
1095 if (rdev->wiphy.rfkill) in wiphy_unregister()
1096 rfkill_unregister(rdev->wiphy.rfkill); in wiphy_unregister()
1154 rfkill_destroy(rdev->wiphy.rfkill); in cfg80211_dev_free()
[all …]
/openbmc/linux/drivers/net/wireless/realtek/rtl818x/rtl8187/
H A DMakefile2 rtl8187-objs := dev.o rtl8225.o leds.o rfkill.o
/openbmc/linux/drivers/net/wireless/broadcom/b43legacy/
H A DMakefile10 b43legacy-y += rfkill.o

1234