Lines Matching defs:rfkill
74 #include <linux/rfkill.h>
202 TP_HKEY_EV_RFKILL_CHANGED = 0x7000, /* rfkill switch changed */
1096 * rfkill and radio control support helpers
1124 /* rfkill switches */
1139 /* ThinkPad-ACPI rfkill subdriver */
1141 struct rfkill *rfkill;
1154 /* Query FW and update rfkill sw state for a given rfkill switch */
1166 rfkill_set_sw_state(tp_rfk->rfkill,
1172 /* Query FW and update rfkill sw state for all rfkill switches */
1182 * Sync the HW-blocking state of all rfkill switches,
1183 * do notice it causes the rfkill core to schedule uevents
1193 if (rfkill_set_hw_state(tp_rfk->rfkill,
1204 /* Call to query WLSW state and update all rfkill switches */
1233 /* and update the rfkill core with whatever the FW really did */
1259 atp_rfk->rfkill = rfkill_alloc(name,
1264 if (!atp_rfk || !atp_rfk->rfkill) {
1266 "failed to allocate memory for rfkill class\n");
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);
1293 "failed to register %s rfkill switch: %d\n",
1295 rfkill_destroy(atp_rfk->rfkill);
1302 printk(TPACPI_INFO "rfkill switch %s: radio is %sblocked\n",
1315 rfkill_unregister(tp_rfk->rfkill);
1316 rfkill_destroy(tp_rfk->rfkill);
1325 "Please switch to generic rfkill before year 2010");
2992 * We must sync all rfkill controllers *before* issuing any
2993 * rfkill input events, or we will race the rfkill core input
3015 /* Issue rfkill input event for WLSW switch */