Lines Matching full:switches

44  * @bs_idev: The input device for non-matrix buttons and switches (or NULL).
74 * Only applicable to switches.
117 /* Switches */
216 * cros_ec_keyb_report_bs - Report non-matrixed buttons or switches
218 * This takes a bitmap of buttons or switches from the EC and reports events,
254 * suspend. Switches will be re-checked in in cros_ec_keyb_work()
293 &ckdev->ec->event_data.data.switches); in cros_ec_keyb_work()
394 * cros_ec_keyb_query_switches - Query the state of switches and report
396 * This will ask the EC about the current state of switches and report to the
412 sizeof(event_data.switches)); in cros_ec_keyb_query_switches()
417 get_unaligned_le32(&event_data.switches)); in cros_ec_keyb_query_switches()
425 * We use the resume notification as a chance to query the EC for switches.
442 * cros_ec_keyb_register_bs - Register non-matrix buttons/switches
445 * and switches, including asking the EC about which are present and telling
448 * If this device has no support for buttons and switches we'll return no error
466 u32 switches; in cros_ec_keyb_register_bs() local
479 sizeof(event_data.switches)); in cros_ec_keyb_register_bs()
482 switches = get_unaligned_le32(&event_data.switches); in cros_ec_keyb_register_bs()
484 if (!buttons && !switches) in cros_ec_keyb_register_bs()
488 * We call the non-matrix buttons/switches 'input1', if present. in cros_ec_keyb_register_bs()
516 (map->ev_type == EV_SW && (switches & BIT(map->bit)))) in cros_ec_keyb_register_bs()
522 dev_err(dev, "cannot query switches\n"); in cros_ec_keyb_register_bs()
763 { .compatible = "google,cros-ec-keyb-switches", .data = (void *)true },