Lines Matching defs:event
158 u16 event_count[128]; /* count for each event */
643 static void eeepc_rfkill_notify(acpi_handle handle, u32 event, void *data)
647 if (event != ACPI_NOTIFY_BUS_CHECK)
1199 static void eeepc_input_notify(struct eeepc_laptop *eeepc, int event)
1203 if (!sparse_keymap_report_event(eeepc->inputdev, event, 1, true))
1204 pr_info("Unknown key %x pressed\n", event);
1207 static void eeepc_acpi_notify(struct acpi_device *device, u32 event)
1213 if (event > ACPI_MAX_SYS_NOTIFY)
1215 count = eeepc->event_count[event % 128]++;
1217 dev_name(&device->dev), event,
1221 if (event < NOTIFY_BRN_MIN || event > NOTIFY_BRN_MAX) {
1222 eeepc_input_notify(eeepc, event);
1233 /* Convert event to keypress (obsolescent hack) */
1234 new_brightness = event - NOTIFY_BRN_MIN;
1237 event = NOTIFY_BRN_MIN; /* brightness down */
1239 event = NOTIFY_BRN_MAX; /* brightness up */
1243 * event will be desired value (or else ignored)
1246 eeepc_input_notify(eeepc, event);