Lines Matching refs:rfk
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()
1330 rfk->rfkill = NULL; in asus_rfkill_terminate()
1341 static int asus_rfkill_setup(struct asus_laptop *asus, struct asus_rfkill *rfk, in asus_rfkill_setup() argument
1347 rfk->control_id = control_id; in asus_rfkill_setup()
1348 rfk->asus = asus; in asus_rfkill_setup()
1349 rfk->rfkill = rfkill_alloc(name, &asus->platform_device->dev, in asus_rfkill_setup()
1350 type, ops, rfk); in asus_rfkill_setup()
1351 if (!rfk->rfkill) in asus_rfkill_setup()
1354 result = rfkill_register(rfk->rfkill); in asus_rfkill_setup()
1356 rfkill_destroy(rfk->rfkill); in asus_rfkill_setup()
1357 rfk->rfkill = NULL; in asus_rfkill_setup()
1420 struct asus_rfkill *rfk = data; in pega_rfkill_set() local
1422 int ret = asus_pega_lucid_set(rfk->asus, rfk->control_id, !blocked); in pega_rfkill_set()
1430 static int pega_rfkill_setup(struct asus_laptop *asus, struct asus_rfkill *rfk, in pega_rfkill_setup() argument
1433 return asus_rfkill_setup(asus, rfk, name, controlid, rfkill_type, in pega_rfkill_setup()