Lines Matching refs:rfk
1304 struct asus_rfkill *rfk = data;
1305 struct asus_laptop *asus = rfk->asus;
1307 if (rfk->control_id == WL_RSTS)
1309 else if (rfk->control_id == BT_RSTS)
1311 else if (rfk->control_id == WM_RSTS)
1313 else if (rfk->control_id == WW_RSTS)
1323 static void asus_rfkill_terminate(struct asus_rfkill *rfk)
1325 if (!rfk->rfkill)
1328 rfkill_unregister(rfk->rfkill);
1329 rfkill_destroy(rfk->rfkill);
1330 rfk->rfkill = NULL;
1341 static int asus_rfkill_setup(struct asus_laptop *asus, struct asus_rfkill *rfk,
1347 rfk->control_id = control_id;
1348 rfk->asus = asus;
1349 rfk->rfkill = rfkill_alloc(name, &asus->platform_device->dev,
1350 type, ops, rfk);
1351 if (!rfk->rfkill)
1354 result = rfkill_register(rfk->rfkill);
1356 rfkill_destroy(rfk->rfkill);
1357 rfk->rfkill = NULL;
1420 struct asus_rfkill *rfk = data;
1422 int ret = asus_pega_lucid_set(rfk->asus, rfk->control_id, !blocked);
1430 static int pega_rfkill_setup(struct asus_laptop *asus, struct asus_rfkill *rfk,
1433 return asus_rfkill_setup(asus, rfk, name, controlid, rfkill_type,