Home
last modified time | relevance | path

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

/net/rfkill/
Dcore.c49 struct rfkill { struct
77 #define to_rfkill(d) container_of(d, struct rfkill, dev) argument
127 static void rfkill_led_trigger_event(struct rfkill *rfkill) in rfkill_led_trigger_event() argument
131 if (!rfkill->registered) in rfkill_led_trigger_event()
134 trigger = &rfkill->led_trigger; in rfkill_led_trigger_event()
136 if (rfkill->state & RFKILL_BLOCK_ANY) in rfkill_led_trigger_event()
144 struct rfkill *rfkill; in rfkill_led_trigger_activate() local
146 rfkill = container_of(led->trigger, struct rfkill, led_trigger); in rfkill_led_trigger_activate()
148 rfkill_led_trigger_event(rfkill); in rfkill_led_trigger_activate()
151 const char *rfkill_get_led_trigger_name(struct rfkill *rfkill) in rfkill_get_led_trigger_name() argument
[all …]
Drfkill-gpio.c38 struct rfkill *rfkill_dev;
46 struct rfkill_gpio_data *rfkill = data; in rfkill_gpio_set_power() local
48 if (!blocked && !IS_ERR(rfkill->clk) && !rfkill->clk_enabled) in rfkill_gpio_set_power()
49 clk_enable(rfkill->clk); in rfkill_gpio_set_power()
51 gpiod_set_value_cansleep(rfkill->shutdown_gpio, !blocked); in rfkill_gpio_set_power()
52 gpiod_set_value_cansleep(rfkill->reset_gpio, !blocked); in rfkill_gpio_set_power()
54 if (blocked && !IS_ERR(rfkill->clk) && rfkill->clk_enabled) in rfkill_gpio_set_power()
55 clk_disable(rfkill->clk); in rfkill_gpio_set_power()
57 rfkill->clk_enabled = !blocked; in rfkill_gpio_set_power()
76 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_REGULATOR) += rfkill-regulator.o
9 obj-$(CONFIG_RFKILL_GPIO) += rfkill-gpio.o
Drfkill-regulator.c24 struct rfkill *rf_kill;
65 struct rfkill *rf_kill; in rfkill_regulator_probe()
130 struct rfkill *rf_kill = rfkill_data->rf_kill; in rfkill_regulator_remove()
DKconfig11 module will be called rfkill.
32 tristate "Generic rfkill regulator driver"
40 be called rfkill-regulator.
/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 …]
DMakefile8 op-rfkill.o \
/net/wireless/
Dcore.c199 static void cfg80211_rfkill_poll(struct rfkill *rfkill, void *data) in cfg80211_rfkill_poll() argument
272 cfg80211_rfkill_set_block(rdev, rfkill_blocked(rdev->rfkill)); in cfg80211_rfkill_sync_work()
445 rdev->rfkill = rfkill_alloc(dev_name(&rdev->wiphy.dev), in wiphy_new_nm()
449 if (!rdev->rfkill) { in wiphy_new_nm()
745 res = rfkill_register(rdev->rfkill); in wiphy_register()
747 rfkill_destroy(rdev->rfkill); in wiphy_register()
748 rdev->rfkill = NULL; in wiphy_register()
764 rfkill_resume_polling(rdev->rfkill); in wiphy_rfkill_start_polling()
772 rfkill_pause_polling(rdev->rfkill); in wiphy_rfkill_stop_polling()
787 if (rdev->rfkill) in wiphy_unregister()
[all …]
Dcore.h28 struct rfkill *rfkill; member
Dwext-compat.c866 rfkill_set_sw_state(rdev->rfkill, false); in cfg80211_wext_siwtxpower()
891 rfkill_set_sw_state(rdev->rfkill, true); in cfg80211_wext_siwtxpower()
921 data->txpower.disabled = rfkill_blocked(rdev->rfkill); in cfg80211_wext_giwtxpower()
Dnl80211.c10002 if (rfkill_blocked(rdev->rfkill)) in nl80211_start_p2p_device()
/net/nfc/
Dcore.c114 if (dev->rfkill && rfkill_blocked(dev->rfkill)) { in nfc_dev_up()
1124 dev->rfkill = rfkill_alloc(dev_name(&dev->dev), &dev->dev, in nfc_register_device()
1126 if (dev->rfkill) { in nfc_register_device()
1127 if (rfkill_register(dev->rfkill) < 0) { in nfc_register_device()
1128 rfkill_destroy(dev->rfkill); in nfc_register_device()
1129 dev->rfkill = NULL; in nfc_register_device()
1160 if (dev->rfkill) { in nfc_unregister_device()
1161 rfkill_unregister(dev->rfkill); in nfc_unregister_device()
1162 rfkill_destroy(dev->rfkill); in nfc_unregister_device()
/net/
DMakefile52 obj-$(CONFIG_RFKILL) += rfkill/
DKconfig378 source "net/rfkill/Kconfig"
/net/bluetooth/
Dhci_core.c3421 hdev->rfkill = rfkill_alloc(hdev->name, &hdev->dev, in hci_register_dev()
3424 if (hdev->rfkill) { in hci_register_dev()
3425 if (rfkill_register(hdev->rfkill) < 0) { in hci_register_dev()
3426 rfkill_destroy(hdev->rfkill); in hci_register_dev()
3427 hdev->rfkill = NULL; in hci_register_dev()
3431 if (hdev->rfkill && rfkill_blocked(hdev->rfkill)) in hci_register_dev()
3501 if (hdev->rfkill) { in hci_unregister_dev()
3502 rfkill_unregister(hdev->rfkill); in hci_unregister_dev()
3503 rfkill_destroy(hdev->rfkill); in hci_unregister_dev()