Home
last modified time | relevance | path

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

1234

/Linux-v4.19/include/linux/
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);
159 bool rfkill_set_hw_state(struct rfkill *rfkill, bool blocked);
[all …]
/Linux-v4.19/net/rfkill/
Dcore.c49 struct rfkill { struct
79 #define to_rfkill(d) container_of(d, struct rfkill, dev) argument
129 static void rfkill_led_trigger_event(struct rfkill *rfkill) in rfkill_led_trigger_event() argument
133 if (!rfkill->registered) in rfkill_led_trigger_event()
136 trigger = &rfkill->led_trigger; in rfkill_led_trigger_event()
138 if (rfkill->state & RFKILL_BLOCK_ANY) in rfkill_led_trigger_event()
146 struct rfkill *rfkill; in rfkill_led_trigger_activate() local
148 rfkill = container_of(led->trigger, struct rfkill, led_trigger); in rfkill_led_trigger_activate()
150 rfkill_led_trigger_event(rfkill); in rfkill_led_trigger_activate()
155 const char *rfkill_get_led_trigger_name(struct rfkill *rfkill) in rfkill_get_led_trigger_name() argument
[all …]
Drfkill-gpio.c37 struct rfkill *rfkill_dev;
45 struct rfkill_gpio_data *rfkill = data; in rfkill_gpio_set_power() local
47 if (!blocked && !IS_ERR(rfkill->clk) && !rfkill->clk_enabled) in rfkill_gpio_set_power()
48 clk_enable(rfkill->clk); in rfkill_gpio_set_power()
50 gpiod_set_value_cansleep(rfkill->shutdown_gpio, !blocked); in rfkill_gpio_set_power()
51 gpiod_set_value_cansleep(rfkill->reset_gpio, !blocked); in rfkill_gpio_set_power()
53 if (blocked && !IS_ERR(rfkill->clk) && rfkill->clk_enabled) in rfkill_gpio_set_power()
54 clk_disable(rfkill->clk); in rfkill_gpio_set_power()
56 rfkill->clk_enabled = !blocked; in rfkill_gpio_set_power()
75 struct rfkill_gpio_data *rfkill) in rfkill_gpio_acpi_probe() argument
[all …]
DMakefile5 rfkill-y += core.o
6 rfkill-$(CONFIG_RFKILL_INPUT) += input.o
7 obj-$(CONFIG_RFKILL) += rfkill.o
8 obj-$(CONFIG_RFKILL_GPIO) += rfkill-gpio.o
/Linux-v4.19/Documentation/ABI/stable/
Dsysfs-class-rfkill1 rfkill - radio frequency (RF) connector kill switch support
3 For details to this subsystem look at Documentation/rfkill.txt.
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 …]
/Linux-v4.19/Documentation/
Drfkill.txt2 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 …]
/Linux-v4.19/net/wimax/
Dop-rfkill.c117 result = rfkill_set_hw_state(wimax_dev->rfkill, in wimax_report_rfkill_hw()
172 rfkill_set_sw_state(wimax_dev->rfkill, state == WIMAX_RF_OFF); in wimax_report_rfkill_sw()
323 rfkill_set_sw_state(wimax_dev->rfkill, state == WIMAX_RF_OFF); in wimax_rfkill()
350 struct rfkill *rfkill; in wimax_rfkill_add() local
356 rfkill = rfkill_alloc(wimax_dev->name, dev, RFKILL_TYPE_WIMAX, in wimax_rfkill_add()
358 if (rfkill == NULL) in wimax_rfkill_add()
361 d_printf(1, dev, "rfkill %p\n", rfkill); in wimax_rfkill_add()
363 wimax_dev->rfkill = rfkill; in wimax_rfkill_add()
365 rfkill_init_sw_state(rfkill, 1); in wimax_rfkill_add()
366 result = rfkill_register(wimax_dev->rfkill); in wimax_rfkill_add()
[all …]
DMakefile9 op-rfkill.o \
/Linux-v4.19/drivers/platform/x86/
Ddell-rbtn.c29 struct rfkill *rfkill; member
95 static void rbtn_rfkill_query(struct rfkill *rfkill, void *data) in rbtn_rfkill_query() argument
104 rfkill_set_states(rfkill, state, state); in rbtn_rfkill_query()
123 if (rbtn_data->rfkill) in rbtn_rfkill_init()
131 rbtn_data->rfkill = rfkill_alloc("dell-rbtn", &device->dev, in rbtn_rfkill_init()
133 if (!rbtn_data->rfkill) in rbtn_rfkill_init()
136 ret = rfkill_register(rbtn_data->rfkill); in rbtn_rfkill_init()
138 rfkill_destroy(rbtn_data->rfkill); in rbtn_rfkill_init()
139 rbtn_data->rfkill = NULL; in rbtn_rfkill_init()
150 if (!rbtn_data->rfkill) in rbtn_rfkill_exit()
[all …]
Dasus-wmi.c219 struct rfkill *rfkill; member
753 if (asus->wlan.rfkill) in asus_rfkill_hotplug()
754 rfkill_set_sw_state(asus->wlan.rfkill, blocked); in asus_rfkill_hotplug()
959 static void asus_rfkill_query(struct rfkill *rfkill, void *data) in asus_rfkill_query() argument
969 rfkill_set_sw_state(priv->rfkill, !result); in asus_rfkill_query()
1006 struct rfkill **rfkill = &arfkill->rfkill; in asus_new_rfkill() local
1016 *rfkill = rfkill_alloc(name, &asus->platform_device->dev, type, in asus_new_rfkill()
1019 *rfkill = rfkill_alloc(name, &asus->platform_device->dev, type, in asus_new_rfkill()
1022 if (!*rfkill) in asus_new_rfkill()
1027 rfkill_set_led_trigger_name(*rfkill, "asus-wlan"); in asus_new_rfkill()
[all …]
Dhp-wmi.c171 static struct rfkill *wifi_rfkill;
172 static struct rfkill *bluetooth_rfkill;
173 static struct rfkill *wwan_rfkill;
178 struct rfkill *rfkill; member
411 rfkill_set_states(rfkill2[i].rfkill, in hp_wmi_rfkill2_refresh()
803 struct rfkill *rfkill; in hp_wmi_rfkill2_setup() local
835 rfkill = rfkill_alloc(name, &device->dev, type, in hp_wmi_rfkill2_setup()
837 if (!rfkill) { in hp_wmi_rfkill2_setup()
844 rfkill2[rfkill2_count].rfkill = rfkill; in hp_wmi_rfkill2_setup()
846 rfkill_init_sw_state(rfkill, in hp_wmi_rfkill2_setup()
[all …]
Dintel_oaktrail.c102 static struct rfkill *bt_rfkill;
103 static struct rfkill *gps_rfkill;
104 static struct rfkill *wifi_rfkill;
105 static struct rfkill *wwan_rfkill;
131 static struct rfkill *oaktrail_rfkill_new(char *name, enum rfkill_type type, in oaktrail_rfkill_new()
134 struct rfkill *rfkill_dev; in oaktrail_rfkill_new()
155 static inline void __oaktrail_rfkill_cleanup(struct rfkill *rf) in __oaktrail_rfkill_cleanup()
Dsamsung-laptop.c327 struct rfkill *rfkill; member
633 static void swsmi_rfkill_query(struct rfkill *rfkill, void *priv) in swsmi_rfkill_query() argument
651 rfkill_set_sw_state(rfkill, !ret); in swsmi_rfkill_query()
947 if (samsung->wlan.rfkill) { in samsung_rfkill_exit()
948 rfkill_unregister(samsung->wlan.rfkill); in samsung_rfkill_exit()
949 rfkill_destroy(samsung->wlan.rfkill); in samsung_rfkill_exit()
950 samsung->wlan.rfkill = NULL; in samsung_rfkill_exit()
952 if (samsung->bluetooth.rfkill) { in samsung_rfkill_exit()
953 rfkill_unregister(samsung->bluetooth.rfkill); in samsung_rfkill_exit()
954 rfkill_destroy(samsung->bluetooth.rfkill); in samsung_rfkill_exit()
[all …]
Dxo1-rfkill.c45 struct rfkill *rfk; in xo1_rfkill_probe()
65 struct rfkill *rfk = platform_get_drvdata(pdev); in xo1_rfkill_remove()
Deeepc-laptop.c175 struct rfkill *wlan_rfkill;
176 struct rfkill *bluetooth_rfkill;
177 struct rfkill *wwan3g_rfkill;
178 struct rfkill *wimax_rfkill;
791 struct rfkill **rfkill, in eeepc_new_rfkill() argument
802 *rfkill = rfkill_alloc(name, &eeepc->platform_device->dev, type, in eeepc_new_rfkill()
805 if (!*rfkill) in eeepc_new_rfkill()
808 rfkill_init_sw_state(*rfkill, get_acpi(eeepc, cm) != 1); in eeepc_new_rfkill()
809 result = rfkill_register(*rfkill); in eeepc_new_rfkill()
811 rfkill_destroy(*rfkill); in eeepc_new_rfkill()
[all …]
Dtoshiba_bluetooth.c34 struct rfkill *rfk;
187 static void bt_rfkill_poll(struct rfkill *rfkill, void *data) in bt_rfkill_poll() argument
Ddell-laptop.c88 static struct rfkill *wifi_rfkill;
89 static struct rfkill *bluetooth_rfkill;
90 static struct rfkill *wwan_rfkill;
496 static void dell_rfkill_update_sw_state(struct rfkill *rfkill, int radio, in dell_rfkill_update_sw_state() argument
502 int block = rfkill_blocked(rfkill); in dell_rfkill_update_sw_state()
508 rfkill_set_sw_state(rfkill, !!(status & BIT(radio + 16))); in dell_rfkill_update_sw_state()
512 static void dell_rfkill_update_hw_state(struct rfkill *rfkill, int radio, in dell_rfkill_update_hw_state() argument
516 rfkill_set_hw_state(rfkill, !(status & BIT(16))); in dell_rfkill_update_hw_state()
519 static void dell_rfkill_query(struct rfkill *rfkill, void *data) in dell_rfkill_query() argument
542 dell_rfkill_update_hw_state(rfkill, radio, status, hwswitch); in dell_rfkill_query()
/Linux-v4.19/Documentation/ABI/removed/
Dsysfs-class-rfkill1 rfkill - radio frequency (RF) connector kill switch support
3 For details to this subsystem look at Documentation/rfkill.txt.
5 What: /sys/class/rfkill/rfkill[0-9]+/claim
10 claim just control over a single rfkill instance.
/Linux-v4.19/include/net/
Dwimax.h425 struct rfkill *rfkill; member
/Linux-v4.19/net/wireless/
Dcore.c201 static void cfg80211_rfkill_poll(struct rfkill *rfkill, void *data) in cfg80211_rfkill_poll() argument
294 cfg80211_rfkill_set_block(rdev, rfkill_blocked(rdev->rfkill)); in cfg80211_rfkill_sync_work()
496 rdev->rfkill = rfkill_alloc(dev_name(&rdev->wiphy.dev), in wiphy_new_nm()
500 if (!rdev->rfkill) { in wiphy_new_nm()
898 res = rfkill_register(rdev->rfkill); in wiphy_register()
900 rfkill_destroy(rdev->rfkill); in wiphy_register()
901 rdev->rfkill = NULL; in wiphy_register()
917 rfkill_resume_polling(rdev->rfkill); in wiphy_rfkill_start_polling()
925 rfkill_pause_polling(rdev->rfkill); in wiphy_rfkill_stop_polling()
940 if (rdev->rfkill) in wiphy_unregister()
[all …]
/Linux-v4.19/arch/arm/mach-pxa/
Dtosa-bt.c60 struct rfkill *rfk; in tosa_bt_probe()
108 struct rfkill *rfk = platform_get_drvdata(dev); in tosa_bt_remove()
/Linux-v4.19/arch/arm/mach-s3c24xx/
Dh1940-bluetooth.c63 struct rfkill *rfk; in h1940bt_probe()
112 struct rfkill *rfk = platform_get_drvdata(pdev); in h1940bt_remove()
/Linux-v4.19/net/nfc/
Dcore.c109 if (dev->rfkill && rfkill_blocked(dev->rfkill)) { in nfc_dev_up()
1138 dev->rfkill = rfkill_alloc(dev_name(&dev->dev), &dev->dev, in nfc_register_device()
1140 if (dev->rfkill) { in nfc_register_device()
1141 if (rfkill_register(dev->rfkill) < 0) { in nfc_register_device()
1142 rfkill_destroy(dev->rfkill); in nfc_register_device()
1143 dev->rfkill = NULL; in nfc_register_device()
1162 if (dev->rfkill) { in nfc_unregister_device()
1163 rfkill_unregister(dev->rfkill); in nfc_unregister_device()
1164 rfkill_destroy(dev->rfkill); in nfc_unregister_device()
/Linux-v4.19/drivers/net/wireless/realtek/rtl818x/rtl8187/
DMakefile1 rtl8187-objs := dev.o rtl8225.o leds.o rfkill.o
/Linux-v4.19/drivers/net/wimax/i2400m/
Ddebug-levels.h39 D_SUBMODULE_DECLARE(rfkill),

1234