Searched refs:rfk (Results 1 – 9 of 9) sorted by relevance
/kernel/linux/linux-5.10/drivers/platform/x86/ |
D | xo1-rfkill.c | 41 struct rfkill *rfk; in xo1_rfkill_probe() local 44 rfk = rfkill_alloc(pdev->name, &pdev->dev, RFKILL_TYPE_WLAN, in xo1_rfkill_probe() 46 if (!rfk) in xo1_rfkill_probe() 49 r = rfkill_register(rfk); in xo1_rfkill_probe() 51 rfkill_destroy(rfk); in xo1_rfkill_probe() 55 platform_set_drvdata(pdev, rfk); in xo1_rfkill_probe() 61 struct rfkill *rfk = platform_get_drvdata(pdev); in xo1_rfkill_remove() local 62 rfkill_unregister(rfk); in xo1_rfkill_remove() 63 rfkill_destroy(rfk); in xo1_rfkill_remove()
|
D | toshiba_bluetooth.c | 31 struct rfkill *rfk; member 198 rfkill_set_hw_state(bt_dev->rfk, !bt_dev->killswitch); in bt_rfkill_poll() 214 rfkill_set_hw_state(bt_dev->rfk, !bt_dev->killswitch); in toshiba_bt_rfkill_notify() 229 rfkill_set_hw_state(bt_dev->rfk, !bt_dev->killswitch); in toshiba_bt_resume() 259 bt_dev->rfk = rfkill_alloc("Toshiba Bluetooth", in toshiba_bt_rfkill_add() 264 if (!bt_dev->rfk) { in toshiba_bt_rfkill_add() 270 rfkill_set_hw_state(bt_dev->rfk, !bt_dev->killswitch); in toshiba_bt_rfkill_add() 272 result = rfkill_register(bt_dev->rfk); in toshiba_bt_rfkill_add() 275 rfkill_destroy(bt_dev->rfk); in toshiba_bt_rfkill_add() 287 if (bt_dev->rfk) { in toshiba_bt_rfkill_remove() [all …]
|
D | asus-laptop.c | 1304 struct asus_rfkill *rfk = data; in asus_rfkill_set() local 1305 struct asus_laptop *asus = rfk->asus; in asus_rfkill_set() 1307 if (rfk->control_id == WL_RSTS) in asus_rfkill_set() 1309 else if (rfk->control_id == BT_RSTS) in asus_rfkill_set() 1311 else if (rfk->control_id == WM_RSTS) in asus_rfkill_set() 1313 else if (rfk->control_id == WW_RSTS) in asus_rfkill_set() 1323 static void asus_rfkill_terminate(struct asus_rfkill *rfk) in asus_rfkill_terminate() argument 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() [all …]
|
D | ideapad-laptop.c | 87 struct rfkill *rfk[IDEAPAD_RFKILL_DEV_NUM]; member 592 if (priv->rfk[i]) in ideapad_sync_rfk_state() 593 rfkill_set_hw_state(priv->rfk[i], hw_blocked); in ideapad_sync_rfk_state() 611 priv->rfk[dev] = rfkill_alloc(ideapad_rfk_data[dev].name, in ideapad_register_rfkill() 616 if (!priv->rfk[dev]) in ideapad_register_rfkill() 621 rfkill_init_sw_state(priv->rfk[dev], 0); in ideapad_register_rfkill() 624 rfkill_init_sw_state(priv->rfk[dev], sw_blocked); in ideapad_register_rfkill() 627 ret = rfkill_register(priv->rfk[dev]); in ideapad_register_rfkill() 629 rfkill_destroy(priv->rfk[dev]); in ideapad_register_rfkill() 637 if (!priv->rfk[dev]) in ideapad_unregister_rfkill() [all …]
|
D | sony-laptop.c | 1610 struct rfkill *rfk; in sony_nc_setup_rfkill() local 1637 rfk = rfkill_alloc(name, &device->dev, type, in sony_nc_setup_rfkill() 1639 if (!rfk) in sony_nc_setup_rfkill() 1644 rfkill_destroy(rfk); in sony_nc_setup_rfkill() 1653 rfkill_destroy(rfk); in sony_nc_setup_rfkill() 1658 rfkill_init_sw_state(rfk, swblock); in sony_nc_setup_rfkill() 1659 rfkill_set_hw_state(rfk, hwblock); in sony_nc_setup_rfkill() 1661 err = rfkill_register(rfk); in sony_nc_setup_rfkill() 1663 rfkill_destroy(rfk); in sony_nc_setup_rfkill() 1666 sony_rfkill_devices[nc_type] = rfk; in sony_nc_setup_rfkill()
|
/kernel/linux/linux-5.10/arch/arm/mach-pxa/ |
D | tosa-bt.c | 56 struct rfkill *rfk; in tosa_bt_probe() local 73 rfk = rfkill_alloc("tosa-bt", &dev->dev, RFKILL_TYPE_BLUETOOTH, in tosa_bt_probe() 75 if (!rfk) { in tosa_bt_probe() 80 rc = rfkill_register(rfk); in tosa_bt_probe() 84 platform_set_drvdata(dev, rfk); in tosa_bt_probe() 89 rfkill_destroy(rfk); in tosa_bt_probe() 104 struct rfkill *rfk = platform_get_drvdata(dev); in tosa_bt_remove() local 108 if (rfk) { in tosa_bt_remove() 109 rfkill_unregister(rfk); in tosa_bt_remove() 110 rfkill_destroy(rfk); in tosa_bt_remove() [all …]
|
/kernel/linux/linux-5.10/arch/arm/mach-s3c/ |
D | h1940-bluetooth.c | 62 struct rfkill *rfk; in h1940bt_probe() local 88 rfk = rfkill_alloc(DRV_NAME, &pdev->dev, RFKILL_TYPE_BLUETOOTH, in h1940bt_probe() 90 if (!rfk) { in h1940bt_probe() 95 ret = rfkill_register(rfk); in h1940bt_probe() 99 platform_set_drvdata(pdev, rfk); in h1940bt_probe() 104 rfkill_destroy(rfk); in h1940bt_probe() 111 struct rfkill *rfk = platform_get_drvdata(pdev); in h1940bt_remove() local 116 if (rfk) { in h1940bt_remove() 117 rfkill_unregister(rfk); in h1940bt_remove() 118 rfkill_destroy(rfk); in h1940bt_remove() [all …]
|
/kernel/linux/linux-5.10/drivers/net/usb/ |
D | hso.c | 3129 struct rfkill *rfk = dev2net(network_table[i])->rfkill; in hso_free_interface() local 3136 if (rfk) { in hso_free_interface() 3137 rfkill_unregister(rfk); in hso_free_interface() 3138 rfkill_destroy(rfk); in hso_free_interface()
|
/kernel/linux/patches/linux-5.10/unionpi_tiger_pacth/ |
D | linux-5.10.patch | 29190 + pr_info("rfk alloc fail\n"); 29233 + struct rfkill *rfk = NULL; 29239 + rfk = prdata->bt_rfk; 29248 + if (rfk) { 29249 + rfkill_unregister(rfk); 29250 + rfkill_destroy(rfk); 29252 + rfk = NULL;
|