Home
last modified time | relevance | path

Searched refs:rfk (Results 1 – 5 of 5) sorted by relevance

/drivers/platform/x86/
Dxo1-rfkill.c45 struct rfkill *rfk; in xo1_rfkill_probe() local
48 rfk = rfkill_alloc(pdev->name, &pdev->dev, RFKILL_TYPE_WLAN, in xo1_rfkill_probe()
50 if (!rfk) in xo1_rfkill_probe()
53 r = rfkill_register(rfk); in xo1_rfkill_probe()
55 rfkill_destroy(rfk); in xo1_rfkill_probe()
59 platform_set_drvdata(pdev, rfk); in xo1_rfkill_probe()
65 struct rfkill *rfk = platform_get_drvdata(pdev); in xo1_rfkill_remove() local
66 rfkill_unregister(rfk); in xo1_rfkill_remove()
67 rfkill_destroy(rfk); in xo1_rfkill_remove()
Dideapad-laptop.c76 struct rfkill *rfk[IDEAPAD_RFKILL_DEV_NUM]; member
467 if (priv->rfk[i]) in ideapad_sync_rfk_state()
468 rfkill_set_hw_state(priv->rfk[i], hw_blocked); in ideapad_sync_rfk_state()
485 priv->rfk[dev] = rfkill_alloc(ideapad_rfk_data[dev].name, &adevice->dev, in ideapad_register_rfkill()
488 if (!priv->rfk[dev]) in ideapad_register_rfkill()
493 rfkill_init_sw_state(priv->rfk[dev], 0); in ideapad_register_rfkill()
496 rfkill_init_sw_state(priv->rfk[dev], sw_blocked); in ideapad_register_rfkill()
499 ret = rfkill_register(priv->rfk[dev]); in ideapad_register_rfkill()
501 rfkill_destroy(priv->rfk[dev]); in ideapad_register_rfkill()
511 if (!priv->rfk[dev]) in ideapad_unregister_rfkill()
[all …]
Dasus-laptop.c1320 struct asus_rfkill *rfk = data; in asus_rfkill_set() local
1321 struct asus_laptop *asus = rfk->asus; in asus_rfkill_set()
1323 if (rfk->control_id == WL_RSTS) in asus_rfkill_set()
1325 else if (rfk->control_id == BT_RSTS) in asus_rfkill_set()
1327 else if (rfk->control_id == WM_RSTS) in asus_rfkill_set()
1329 else if (rfk->control_id == WW_RSTS) in asus_rfkill_set()
1339 static void asus_rfkill_terminate(struct asus_rfkill *rfk) in asus_rfkill_terminate() argument
1341 if (!rfk->rfkill) in asus_rfkill_terminate()
1344 rfkill_unregister(rfk->rfkill); in asus_rfkill_terminate()
1345 rfkill_destroy(rfk->rfkill); in asus_rfkill_terminate()
[all …]
Dsony-laptop.c1578 struct rfkill *rfk; in sony_nc_setup_rfkill() local
1605 rfk = rfkill_alloc(name, &device->dev, type, in sony_nc_setup_rfkill()
1607 if (!rfk) in sony_nc_setup_rfkill()
1611 rfkill_destroy(rfk); in sony_nc_setup_rfkill()
1619 rfkill_destroy(rfk); in sony_nc_setup_rfkill()
1624 rfkill_init_sw_state(rfk, swblock); in sony_nc_setup_rfkill()
1625 rfkill_set_hw_state(rfk, hwblock); in sony_nc_setup_rfkill()
1627 err = rfkill_register(rfk); in sony_nc_setup_rfkill()
1629 rfkill_destroy(rfk); in sony_nc_setup_rfkill()
1632 sony_rfkill_devices[nc_type] = rfk; in sony_nc_setup_rfkill()
/drivers/net/usb/
Dhso.c3144 struct rfkill *rfk = dev2net(network_table[i])->rfkill; in hso_free_interface() local
3151 if (rfk) { in hso_free_interface()
3152 rfkill_unregister(rfk); in hso_free_interface()
3153 rfkill_destroy(rfk); in hso_free_interface()