Lines Matching refs:atp_rfk
1249 struct tpacpi_rfk *atp_rfk;
1257 atp_rfk = kzalloc(sizeof(struct tpacpi_rfk), GFP_KERNEL);
1258 if (atp_rfk)
1259 atp_rfk->rfkill = rfkill_alloc(name,
1263 atp_rfk);
1264 if (!atp_rfk || !atp_rfk->rfkill) {
1267 kfree(atp_rfk);
1271 atp_rfk->id = id;
1272 atp_rfk->ops = tp_rfkops;
1284 rfkill_init_sw_state(atp_rfk->rfkill, sw_state);
1288 rfkill_set_hw_state(atp_rfk->rfkill, hw_state);
1290 res = rfkill_register(atp_rfk->rfkill);
1295 rfkill_destroy(atp_rfk->rfkill);
1296 kfree(atp_rfk);
1300 tpacpi_rfkill_switches[id] = atp_rfk;