Searched refs:rfk (Results 1 – 7 of 7) sorted by relevance
/linux-6.12.1/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 197 rfkill_set_hw_state(bt_dev->rfk, !bt_dev->killswitch); in bt_rfkill_poll() 213 rfkill_set_hw_state(bt_dev->rfk, !bt_dev->killswitch); in toshiba_bt_rfkill_notify() 228 rfkill_set_hw_state(bt_dev->rfk, !bt_dev->killswitch); in toshiba_bt_resume() 258 bt_dev->rfk = rfkill_alloc("Toshiba Bluetooth", in toshiba_bt_rfkill_add() 263 if (!bt_dev->rfk) { in toshiba_bt_rfkill_add() 269 rfkill_set_hw_state(bt_dev->rfk, !bt_dev->killswitch); in toshiba_bt_rfkill_add() 271 result = rfkill_register(bt_dev->rfk); in toshiba_bt_rfkill_add() 274 rfkill_destroy(bt_dev->rfk); in toshiba_bt_rfkill_add() 286 if (bt_dev->rfk) { in toshiba_bt_rfkill_remove() [all …]
|
D | asus-laptop.c | 1303 struct asus_rfkill *rfk = data; in asus_rfkill_set() local 1304 struct asus_laptop *asus = rfk->asus; in asus_rfkill_set() 1306 if (rfk->control_id == WL_RSTS) in asus_rfkill_set() 1308 else if (rfk->control_id == BT_RSTS) in asus_rfkill_set() 1310 else if (rfk->control_id == WM_RSTS) in asus_rfkill_set() 1312 else if (rfk->control_id == WW_RSTS) in asus_rfkill_set() 1322 static void asus_rfkill_terminate(struct asus_rfkill *rfk) in asus_rfkill_terminate() argument 1324 if (!rfk->rfkill) in asus_rfkill_terminate() 1327 rfkill_unregister(rfk->rfkill); in asus_rfkill_terminate() 1328 rfkill_destroy(rfk->rfkill); in asus_rfkill_terminate() [all …]
|
D | ideapad-laptop.c | 158 struct rfkill *rfk[IDEAPAD_RFKILL_DEV_NUM]; member 1188 if (priv->rfk[i]) in ideapad_sync_rfk_state() 1189 rfkill_set_hw_state(priv->rfk[i], hw_blocked); in ideapad_sync_rfk_state() 1206 priv->rfk[dev] = rfkill_alloc(ideapad_rfk_data[dev].name, in ideapad_register_rfkill() 1211 if (!priv->rfk[dev]) in ideapad_register_rfkill() 1218 rfkill_init_sw_state(priv->rfk[dev], !rf_enabled); in ideapad_register_rfkill() 1220 err = rfkill_register(priv->rfk[dev]); in ideapad_register_rfkill() 1222 rfkill_destroy(priv->rfk[dev]); in ideapad_register_rfkill() 1229 if (!priv->rfk[dev]) in ideapad_unregister_rfkill() 1232 rfkill_unregister(priv->rfk[dev]); in ideapad_unregister_rfkill() [all …]
|
D | sony-laptop.c | 1608 struct rfkill *rfk; in sony_nc_setup_rfkill() local 1635 rfk = rfkill_alloc(name, &device->dev, type, in sony_nc_setup_rfkill() 1637 if (!rfk) in sony_nc_setup_rfkill() 1642 rfkill_destroy(rfk); in sony_nc_setup_rfkill() 1651 rfkill_destroy(rfk); in sony_nc_setup_rfkill() 1656 rfkill_init_sw_state(rfk, swblock); in sony_nc_setup_rfkill() 1657 rfkill_set_hw_state(rfk, hwblock); in sony_nc_setup_rfkill() 1659 err = rfkill_register(rfk); in sony_nc_setup_rfkill() 1661 rfkill_destroy(rfk); in sony_nc_setup_rfkill() 1664 sony_rfkill_devices[nc_type] = rfk; in sony_nc_setup_rfkill()
|
/linux-6.12.1/drivers/net/usb/ |
D | hso.c | 3121 struct rfkill *rfk = dev2net(network_table[i])->rfkill; in hso_free_interface() local 3128 if (rfk) { in hso_free_interface() 3129 rfkill_unregister(rfk); in hso_free_interface() 3130 rfkill_destroy(rfk); in hso_free_interface()
|
/linux-6.12.1/drivers/net/wireless/realtek/rtw89/ |
D | coex.c | 4809 struct rtw89_btc_wl_rfk_info rfk = btc->cx.wl.rfk_info; in _action_wl_rfk() local 4811 if (rfk.state != BTC_WRFK_START) in _action_wl_rfk() 4815 __func__, rfk.band); in _action_wl_rfk()
|