Home
last modified time | relevance | path

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

/net/rfkill/
Dcore.c37 struct rfkill { struct
68 #define to_rfkill(d) container_of(d, struct rfkill, dev) argument
119 static void rfkill_led_trigger_event(struct rfkill *rfkill) in rfkill_led_trigger_event() argument
123 if (!rfkill->registered) in rfkill_led_trigger_event()
126 trigger = &rfkill->led_trigger; in rfkill_led_trigger_event()
128 if (rfkill->state & RFKILL_BLOCK_ANY) in rfkill_led_trigger_event()
136 struct rfkill *rfkill; in rfkill_led_trigger_activate() local
138 rfkill = container_of(led->trigger, struct rfkill, led_trigger); in rfkill_led_trigger_activate()
140 rfkill_led_trigger_event(rfkill); in rfkill_led_trigger_activate()
145 const char *rfkill_get_led_trigger_name(struct rfkill *rfkill) in rfkill_get_led_trigger_name() argument
[all …]
Drfkill-gpio.c23 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 …]
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
DKconfig12 module will be called rfkill.
/net/nfc/
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()
/net/wireless/
Dcore.c215 static void cfg80211_rfkill_poll(struct rfkill *rfkill, void *data) in cfg80211_rfkill_poll() argument
529 rdev->wiphy.rfkill = rfkill_alloc(dev_name(&rdev->wiphy.dev), in wiphy_new_nm()
533 if (!rdev->wiphy.rfkill) { in wiphy_new_nm()
1009 res = rfkill_register(rdev->wiphy.rfkill); in wiphy_register()
1011 rfkill_destroy(rdev->wiphy.rfkill); in wiphy_register()
1012 rdev->wiphy.rfkill = NULL; in wiphy_register()
1028 rfkill_resume_polling(wiphy->rfkill); in wiphy_rfkill_start_polling()
1043 if (rdev->wiphy.rfkill) in wiphy_unregister()
1044 rfkill_unregister(rdev->wiphy.rfkill); in wiphy_unregister()
1098 rfkill_destroy(rdev->wiphy.rfkill); in cfg80211_dev_free()
[all …]
Dwext-compat.c931 rfkill_set_sw_state(rdev->wiphy.rfkill, false); in cfg80211_wext_siwtxpower()
956 if (rfkill_set_sw_state(rdev->wiphy.rfkill, true)) in cfg80211_wext_siwtxpower()
992 data->txpower.disabled = rfkill_blocked(rdev->wiphy.rfkill); in cfg80211_wext_giwtxpower()
Dnl80211.c14007 if (rfkill_blocked(rdev->wiphy.rfkill)) in nl80211_start_p2p_device()
14049 if (rfkill_blocked(rdev->wiphy.rfkill)) in nl80211_start_nan()
/net/
DMakefile54 obj-$(CONFIG_RFKILL) += rfkill/
DKconfig381 source "net/rfkill/Kconfig"
/net/bluetooth/
Dhci_core.c3954 hdev->rfkill = rfkill_alloc(hdev->name, &hdev->dev, in hci_register_dev()
3957 if (hdev->rfkill) { in hci_register_dev()
3958 if (rfkill_register(hdev->rfkill) < 0) { in hci_register_dev()
3959 rfkill_destroy(hdev->rfkill); in hci_register_dev()
3960 hdev->rfkill = NULL; in hci_register_dev()
3964 if (hdev->rfkill && rfkill_blocked(hdev->rfkill)) in hci_register_dev()
4050 if (hdev->rfkill) { in hci_unregister_dev()
4051 rfkill_unregister(hdev->rfkill); in hci_unregister_dev()
4052 rfkill_destroy(hdev->rfkill); in hci_unregister_dev()