• Home
  • Raw
  • Download

Lines Matching refs:rfk

1320 	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()
1346 rfk->rfkill = NULL; in asus_rfkill_terminate()
1357 static int asus_rfkill_setup(struct asus_laptop *asus, struct asus_rfkill *rfk, in asus_rfkill_setup() argument
1363 rfk->control_id = control_id; in asus_rfkill_setup()
1364 rfk->asus = asus; in asus_rfkill_setup()
1365 rfk->rfkill = rfkill_alloc(name, &asus->platform_device->dev, in asus_rfkill_setup()
1366 type, ops, rfk); in asus_rfkill_setup()
1367 if (!rfk->rfkill) in asus_rfkill_setup()
1370 result = rfkill_register(rfk->rfkill); in asus_rfkill_setup()
1372 rfkill_destroy(rfk->rfkill); in asus_rfkill_setup()
1373 rfk->rfkill = NULL; in asus_rfkill_setup()
1436 struct asus_rfkill *rfk = data; in pega_rfkill_set() local
1438 int ret = asus_pega_lucid_set(rfk->asus, rfk->control_id, !blocked); in pega_rfkill_set()
1446 static int pega_rfkill_setup(struct asus_laptop *asus, struct asus_rfkill *rfk, in pega_rfkill_setup() argument
1449 return asus_rfkill_setup(asus, rfk, name, controlid, rfkill_type, in pega_rfkill_setup()