atp_rfk          1268 drivers/platform/x86/thinkpad_acpi.c 	struct tpacpi_rfk *atp_rfk;
atp_rfk          1276 drivers/platform/x86/thinkpad_acpi.c 	atp_rfk = kzalloc(sizeof(struct tpacpi_rfk), GFP_KERNEL);
atp_rfk          1277 drivers/platform/x86/thinkpad_acpi.c 	if (atp_rfk)
atp_rfk          1278 drivers/platform/x86/thinkpad_acpi.c 		atp_rfk->rfkill = rfkill_alloc(name,
atp_rfk          1282 drivers/platform/x86/thinkpad_acpi.c 						atp_rfk);
atp_rfk          1283 drivers/platform/x86/thinkpad_acpi.c 	if (!atp_rfk || !atp_rfk->rfkill) {
atp_rfk          1285 drivers/platform/x86/thinkpad_acpi.c 		kfree(atp_rfk);
atp_rfk          1289 drivers/platform/x86/thinkpad_acpi.c 	atp_rfk->id = id;
atp_rfk          1290 drivers/platform/x86/thinkpad_acpi.c 	atp_rfk->ops = tp_rfkops;
atp_rfk          1301 drivers/platform/x86/thinkpad_acpi.c 			rfkill_init_sw_state(atp_rfk->rfkill, sw_state);
atp_rfk          1305 drivers/platform/x86/thinkpad_acpi.c 	rfkill_set_hw_state(atp_rfk->rfkill, hw_state);
atp_rfk          1307 drivers/platform/x86/thinkpad_acpi.c 	res = rfkill_register(atp_rfk->rfkill);
atp_rfk          1310 drivers/platform/x86/thinkpad_acpi.c 		rfkill_destroy(atp_rfk->rfkill);
atp_rfk          1311 drivers/platform/x86/thinkpad_acpi.c 		kfree(atp_rfk);
atp_rfk          1315 drivers/platform/x86/thinkpad_acpi.c 	tpacpi_rfkill_switches[id] = atp_rfk;