Home
last modified time | relevance | path

Searched refs:switches (Results 1 - 25 of 29) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/input/keyboard/
H A Diqs62x-keys.c39 struct iqs62x_switch_desc switches[ARRAY_SIZE(iqs62x_switch_names)]; member
70 for (i = 0; i < ARRAY_SIZE(iqs62x_keys->switches); i++) { in iqs62x_keys_parse_prop()
82 iqs62x_keys->switches[i].code = val; in iqs62x_keys_parse_prop()
83 iqs62x_keys->switches[i].enabled = true; in iqs62x_keys_parse_prop()
86 iqs62x_keys->switches[i].flag = (i == IQS62X_SW_HALL_N ? in iqs62x_keys_parse_prop()
90 iqs62x_keys->switches[i].flag = (i == IQS62X_SW_HALL_N ? in iqs62x_keys_parse_prop()
133 * Hall UI flags represent switches and are unmasked if their in iqs62x_keys_init()
136 for (i = 0; i < ARRAY_SIZE(iqs62x_keys->switches); i++) { in iqs62x_keys_init()
137 if (!(iqs62x_keys->switches[i].enabled)) in iqs62x_keys_init()
140 flag = iqs62x_keys->switches[ in iqs62x_keys_init()
[all...]
H A Dcros_ec_keyb.c41 * @bs_idev: The input device for non-matrix buttons and switches (or NULL).
70 * Only applicable to switches.
197 * cros_ec_keyb_report_bs - Report non-matrixed buttons or switches
199 * This takes a bitmap of buttons or switches from the EC and reports events,
274 &ckdev->ec->event_data.data.switches); in cros_ec_keyb_work()
375 * cros_ec_keyb_query_switches - Query the state of switches and report
377 * This will ask the EC about the current state of switches and report to the
393 sizeof(event_data.switches)); in cros_ec_keyb_query_switches()
398 get_unaligned_le32(&event_data.switches)); in cros_ec_keyb_query_switches()
406 * We use the resume notification as a chance to query the EC for switches
444 u32 switches; cros_ec_keyb_register_bs() local
[all...]
H A Dgpio_keys.c62 * SYSFS interface for enabling/disabling keys and switches:
67 * switches [ro] - bitmap of switches (EV_SW) which can be
70 * disabled_switches [rw] - bitmap of switches currently disabled
76 * For example, if we have following switches set up as gpio-keys:
81 * This is read from switches:
301 ATTR_SHOW_FN(switches, EV_SW, false);
309 * /sys/devices/platform/gpio-keys/switches [ro]
312 static DEVICE_ATTR(switches, S_IRUGO, gpio_keys_show_switches, NULL);
/kernel/linux/linux-6.6/drivers/input/keyboard/
H A Diqs62x-keys.c39 struct iqs62x_switch_desc switches[ARRAY_SIZE(iqs62x_switch_names)]; member
70 for (i = 0; i < ARRAY_SIZE(iqs62x_keys->switches); i++) { in iqs62x_keys_parse_prop()
83 iqs62x_keys->switches[i].code = val; in iqs62x_keys_parse_prop()
84 iqs62x_keys->switches[i].enabled = true; in iqs62x_keys_parse_prop()
87 iqs62x_keys->switches[i].flag = (i == IQS62X_SW_HALL_N ? in iqs62x_keys_parse_prop()
91 iqs62x_keys->switches[i].flag = (i == IQS62X_SW_HALL_N ? in iqs62x_keys_parse_prop()
136 * Hall UI flags represent switches and are unmasked if their in iqs62x_keys_init()
139 for (i = 0; i < ARRAY_SIZE(iqs62x_keys->switches); i++) { in iqs62x_keys_init()
140 if (!(iqs62x_keys->switches[i].enabled)) in iqs62x_keys_init()
143 flag = iqs62x_keys->switches[ in iqs62x_keys_init()
[all...]
H A Dcros_ec_keyb.c45 * @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); in cros_ec_keyb_work()
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)); in cros_ec_keyb_query_switches()
419 get_unaligned_le32(&event_data.switches)); in cros_ec_keyb_query_switches()
427 * We use the resume notification as a chance to query the EC for switches
468 u32 switches; cros_ec_keyb_register_bs() local
[all...]
H A Dgpio_keys.c65 * SYSFS interface for enabling/disabling keys and switches:
70 * switches [ro] - bitmap of switches (EV_SW) which can be
73 * disabled_switches [rw] - bitmap of switches currently disabled
79 * For example, if we have following switches set up as gpio-keys:
84 * This is read from switches:
311 ATTR_SHOW_FN(switches, EV_SW, false);
319 * /sys/devices/platform/gpio-keys/switches [ro]
322 static DEVICE_ATTR(switches, S_IRUGO, gpio_keys_show_switches, NULL);
/kernel/linux/linux-6.6/drivers/iio/proximity/
H A Dcros_ec_mkbp_proximity.c54 u32 switches = get_unaligned_le32(data); in cros_ec_mkbp_proximity_parse_state() local
56 return !!(switches & BIT(EC_MKBP_FRONT_PROXIMITY)); in cros_ec_mkbp_proximity_parse_state()
66 u32 switches; in cros_ec_mkbp_proximity_query() member
71 u32 *switches = &buf.switches; in cros_ec_mkbp_proximity_query() local
72 size_t insize = sizeof(*switches); in cros_ec_mkbp_proximity_query()
93 *state = cros_ec_mkbp_proximity_parse_state(switches); in cros_ec_mkbp_proximity_query()
129 void *switches; in cros_ec_mkbp_proximity_notify() local
136 switches = &ec->event_data.data.switches; in cros_ec_mkbp_proximity_notify()
[all...]
/kernel/linux/linux-6.6/drivers/platform/x86/intel/
H A Dhid.c183 struct input_dev *switches; member
455 /* Setup input device for switches */ in intel_hid_switches_setup()
456 priv->switches = devm_input_allocate_device(&device->dev); in intel_hid_switches_setup()
457 if (!priv->switches) in intel_hid_switches_setup()
460 __set_bit(EV_SW, priv->switches->evbit); in intel_hid_switches_setup()
461 __set_bit(SW_TABLET_MODE, priv->switches->swbit); in intel_hid_switches_setup()
463 priv->switches->name = "Intel HID switches"; in intel_hid_switches_setup()
464 priv->switches->id.bustype = BUS_HOST; in intel_hid_switches_setup()
465 return input_register_device(priv->switches); in intel_hid_switches_setup()
[all...]
/kernel/linux/linux-5.10/drivers/rapidio/
H A DMakefile11 obj-$(CONFIG_RAPIDIO) += switches/
H A Drio-scan.c881 * rio_update_route_tables- Updates route tables in switches
899 list_for_each_entry(rswitch, &net->switches, node) { in rio_update_route_tables()
922 * rio_init_em - Initializes RIO Error Management (for switches)
1031 list_for_each_entry(rswitch, &net->switches, node) { in rio_build_route_tables()
/kernel/linux/linux-6.6/drivers/rapidio/
H A DMakefile11 obj-$(CONFIG_RAPIDIO) += switches/
H A Drio-scan.c881 * rio_update_route_tables- Updates route tables in switches
899 list_for_each_entry(rswitch, &net->switches, node) { in rio_update_route_tables()
922 * rio_init_em - Initializes RIO Error Management (for switches)
1031 list_for_each_entry(rswitch, &net->switches, node) { in rio_build_route_tables()
/kernel/linux/linux-5.10/drivers/input/misc/
H A Diqs269a.c8 * inductive keys as well as Hall-effect switches, and one for each of the two
287 struct iqs269_switch_desc switches[ARRAY_SIZE(iqs269_events)]; member
731 iqs269->switches[i].code = val; in iqs269_parse_chan()
732 iqs269->switches[i].enabled = true; in iqs269_parse_chan()
1078 sw_code = iqs269->switches[i].code; in iqs269_input_init()
1090 iqs269->switches[i].enabled) in iqs269_input_init()
1204 sw_code = iqs269->switches[i].code; in iqs269_report()
1212 iqs269->switches[i].enabled) in iqs269_report()
1665 * The keypad may include one or more switches and is not registered in iqs269_probe()
/kernel/linux/linux-6.6/drivers/input/misc/
H A Diqs269a.c8 * inductive keys as well as Hall-effect switches, and one for each of the two
287 struct iqs269_switch_desc switches[ARRAY_SIZE(iqs269_events)]; member
731 iqs269->switches[i].code = val; in iqs269_parse_chan()
732 iqs269->switches[i].enabled = true; in iqs269_parse_chan()
1078 sw_code = iqs269->switches[i].code; in iqs269_input_init()
1090 iqs269->switches[i].enabled) in iqs269_input_init()
1204 sw_code = iqs269->switches[i].code; in iqs269_report()
1212 iqs269->switches[i].enabled) in iqs269_report()
1665 * The keypad may include one or more switches and is not registered in iqs269_probe()
/kernel/linux/linux-6.6/tools/perf/tests/shell/
H A Dstat+std_output.sh13 event_name=(cpu-clock task-clock context-switches cpu-migrations page-faults stalled-cycles-frontend stalled-cycles-backend cycles instructions branches branch-misses)
/kernel/linux/linux-5.10/arch/m68k/atari/
H A Dconfig.c147 /* Parse the Atari-specific switches= option. */
150 char switches[COMMAND_LINE_SIZE]; in atari_switches_setup() local
153 char *args = switches; in atari_switches_setup()
159 strcpy(switches, str); in atari_switches_setup()
187 early_param("switches", atari_switches_setup);
216 /* Set switches as requested by the user */ in config_atari()
/kernel/linux/linux-6.6/arch/m68k/atari/
H A Dconfig.c148 /* Parse the Atari-specific switches= option. */
151 char switches[COMMAND_LINE_SIZE]; in atari_switches_setup() local
154 char *args = switches; in atari_switches_setup()
160 strcpy(switches, str); in atari_switches_setup()
188 early_param("switches", atari_switches_setup);
216 /* Set switches as requested by the user */ in config_atari()
/kernel/linux/linux-5.10/drivers/hid/
H A Dhid-google-hammer.c48 u32 switches = get_unaligned_le32(data); in cbas_parse_base_state() local
50 return !!(switches & BIT(EC_MKBP_BASE_ATTACHED)); in cbas_parse_base_state()
101 &ec->event_data.data.switches); in cbas_ec_notify()
/kernel/linux/linux-5.10/drivers/media/dvb-frontends/
H A Dsp8870.c448 /* only for debugging: counter for channel switches */
449 static int switches; variable
503 switches++; in sp8870_set_frontend()
504 printk("%s: switches = %i lockups = %i\n", __func__, switches, lockups); in sp8870_set_frontend()
/kernel/linux/linux-6.6/drivers/staging/media/av7110/
H A Dsp8870.c448 /* only for debugging: counter for channel switches */
449 static int switches; variable
503 switches++; in sp8870_set_frontend()
504 printk("%s: switches = %i lockups = %i\n", __func__, switches, lockups); in sp8870_set_frontend()
/kernel/linux/linux-6.6/drivers/hid/
H A Dhid-google-hammer.c51 u32 switches = get_unaligned_le32(data); in cbas_parse_base_state() local
53 return !!(switches & BIT(EC_MKBP_BASE_ATTACHED)); in cbas_parse_base_state()
104 &ec->event_data.data.switches); in cbas_ec_notify()
/kernel/linux/linux-5.10/drivers/thunderbolt/
H A Dicm.c55 * @rescan_work: Work used to rescan the surviving switches after resume
384 struct icm_fr_pkg_get_topology_response *switches, *sw; in icm_fr_get_route() local
392 switches = kcalloc(npackets, sizeof(*switches), GFP_KERNEL); in icm_fr_get_route()
393 if (!switches) in icm_fr_get_route()
396 ret = icm_request(tb, &request, sizeof(request), switches, in icm_fr_get_route()
397 sizeof(*switches), npackets, ICM_RETRIES, ICM_TIMEOUT); in icm_fr_get_route()
401 sw = &switches[0]; in icm_fr_get_route()
408 sw = &switches[index]; in icm_fr_get_route()
420 sw = &switches[inde in icm_fr_get_route()
[all...]
/kernel/linux/linux-6.6/drivers/thunderbolt/
H A Dicm.c67 * @rescan_work: Work used to rescan the surviving switches after resume
400 struct icm_fr_pkg_get_topology_response *switches, *sw; in icm_fr_get_route() local
408 switches = kcalloc(npackets, sizeof(*switches), GFP_KERNEL); in icm_fr_get_route()
409 if (!switches) in icm_fr_get_route()
412 ret = icm_request(tb, &request, sizeof(request), switches, in icm_fr_get_route()
413 sizeof(*switches), npackets, ICM_RETRIES, ICM_TIMEOUT); in icm_fr_get_route()
417 sw = &switches[0]; in icm_fr_get_route()
424 sw = &switches[index]; in icm_fr_get_route()
436 sw = &switches[inde in icm_fr_get_route()
[all...]
/kernel/linux/linux-5.10/include/linux/
H A Drio.h74 * identifying switches (which do not have device ID register), it also is used
90 * @node: Node in global list of switches
312 * @switches: List of switches in this network
323 struct list_head switches; /* list of switches in this net */ member
/kernel/linux/linux-6.6/include/linux/
H A Drio.h74 * identifying switches (which do not have device ID register), it also is used
90 * @node: Node in global list of switches
312 * @switches: List of switches in this network
323 struct list_head switches; /* list of switches in this net */ member

Completed in 40 milliseconds

12