Lines Matching refs:switches
45 * @bs_idev: The input device for non-matrix buttons and switches (or NULL).
76 * Only applicable to switches.
218 * cros_ec_keyb_report_bs - Report non-matrixed buttons or switches
220 * This takes a bitmap of buttons or switches from the EC and reports events,
295 &ckdev->ec->event_data.data.switches);
396 * cros_ec_keyb_query_switches - Query the state of switches and report
398 * This will ask the EC about the current state of switches and report to the
414 sizeof(event_data.switches));
419 get_unaligned_le32(&event_data.switches));
427 * We use the resume notification as a chance to query the EC for switches.
444 * cros_ec_keyb_register_bs - Register non-matrix buttons/switches
447 * and switches, including asking the EC about which are present and telling
450 * If this device has no support for buttons and switches we'll return no error
468 u32 switches;
481 sizeof(event_data.switches));
484 switches = get_unaligned_le32(&event_data.switches);
486 if (!buttons && !switches)
490 * We call the non-matrix buttons/switches 'input1', if present.
518 (map->ev_type == EV_SW && (switches & BIT(map->bit))))
524 dev_err(dev, "cannot query switches\n");
772 { .compatible = "google,cros-ec-keyb-switches", .data = (void *)true },