Lines Matching refs:rfk
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()
1329 rfk->rfkill = NULL; in asus_rfkill_terminate()
1340 static int asus_rfkill_setup(struct asus_laptop *asus, struct asus_rfkill *rfk, in asus_rfkill_setup() argument
1346 rfk->control_id = control_id; in asus_rfkill_setup()
1347 rfk->asus = asus; in asus_rfkill_setup()
1348 rfk->rfkill = rfkill_alloc(name, &asus->platform_device->dev, in asus_rfkill_setup()
1349 type, ops, rfk); in asus_rfkill_setup()
1350 if (!rfk->rfkill) in asus_rfkill_setup()
1353 result = rfkill_register(rfk->rfkill); in asus_rfkill_setup()
1355 rfkill_destroy(rfk->rfkill); in asus_rfkill_setup()
1356 rfk->rfkill = NULL; in asus_rfkill_setup()
1419 struct asus_rfkill *rfk = data; in pega_rfkill_set() local
1421 int ret = asus_pega_lucid_set(rfk->asus, rfk->control_id, !blocked); in pega_rfkill_set()
1429 static int pega_rfkill_setup(struct asus_laptop *asus, struct asus_rfkill *rfk, in pega_rfkill_setup() argument
1432 return asus_rfkill_setup(asus, rfk, name, controlid, rfkill_type, in pega_rfkill_setup()