/linux-master/drivers/input/keyboard/ |
H A D | iqs62x-keys.c | 39 struct iqs62x_switch_desc switches[ARRAY_SIZE(iqs62x_switch_names)]; member in struct:iqs62x_keys_private 70 for (i = 0; i < ARRAY_SIZE(iqs62x_keys->switches); i++) { 83 iqs62x_keys->switches[i].code = val; 84 iqs62x_keys->switches[i].enabled = true; 87 iqs62x_keys->switches[i].flag = (i == IQS62X_SW_HALL_N ? 91 iqs62x_keys->switches[i].flag = (i == IQS62X_SW_HALL_N ? 136 * Hall UI flags represent switches and are unmasked if their 139 for (i = 0; i < ARRAY_SIZE(iqs62x_keys->switches); i++) { 140 if (!(iqs62x_keys->switches[i].enabled)) 143 flag = iqs62x_keys->switches[ [all...] |
H A D | cros_ec_keyb.c | 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 468 u32 switches; local [all...] |
H A D | gpio_keys.c | 67 * SYSFS interface for enabling/disabling keys and switches: 72 * switches [ro] - bitmap of switches (EV_SW) which can be 75 * disabled_switches [rw] - bitmap of switches currently disabled 81 * For example, if we have following switches set up as gpio-keys: 86 * This is read from switches: 313 ATTR_SHOW_FN(switches, EV_SW, false); 321 * /sys/devices/platform/gpio-keys/switches [ro] 324 static DEVICE_ATTR(switches, S_IRUGO, gpio_keys_show_switches, NULL);
|
/linux-master/drivers/rapidio/ |
H A D | Makefile | 11 obj-$(CONFIG_RAPIDIO) += switches/
|
H A D | rio-scan.c | 881 * rio_update_route_tables- Updates route tables in switches 899 list_for_each_entry(rswitch, &net->switches, node) { 922 * rio_init_em - Initializes RIO Error Management (for switches) 1031 list_for_each_entry(rswitch, &net->switches, node) {
|
H A D | rio.c | 115 INIT_LIST_HEAD(&net->switches); 187 &rdev->net->switches); 1202 * For switches rc==0 signals that no standard processing required.
|
/linux-master/drivers/iio/proximity/ |
H A D | cros_ec_mkbp_proximity.c | 54 u32 switches = get_unaligned_le32(data); local 56 return !!(switches & BIT(EC_MKBP_FRONT_PROXIMITY)); 66 u32 switches; member in union:__anon343::__anon344 71 u32 *switches = &buf.switches; local 72 size_t insize = sizeof(*switches); 93 *state = cros_ec_mkbp_proximity_parse_state(switches); 129 void *switches; local 136 switches = &ec->event_data.data.switches; [all...] |
/linux-master/drivers/platform/x86/intel/ |
H A D | hid.c | 185 struct input_dev *switches; member in struct:intel_hid_priv 457 /* Setup input device for switches */ 458 priv->switches = devm_input_allocate_device(&device->dev); 459 if (!priv->switches) 462 __set_bit(EV_SW, priv->switches->evbit); 463 __set_bit(SW_TABLET_MODE, priv->switches->swbit); 465 priv->switches->name = "Intel HID switches"; 466 priv->switches->id.bustype = BUS_HOST; 467 return input_register_device(priv->switches); [all...] |
/linux-master/tools/perf/tests/shell/ |
H A D | stat+std_output.sh | 14 event_name=(cpu-clock task-clock context-switches cpu-migrations page-faults stalled-cycles-frontend stalled-cycles-backend cycles instructions branches branch-misses)
|
/linux-master/drivers/staging/media/av7110/ |
H A D | sp8870.c | 448 /* only for debugging: counter for channel switches */ 449 static int switches; variable 503 switches++; 504 printk("%s: switches = %i lockups = %i\n", __func__, switches, lockups);
|
/linux-master/drivers/hid/ |
H A D | hid-google-hammer.c | 51 u32 switches = get_unaligned_le32(data); local 53 return !!(switches & BIT(EC_MKBP_BASE_ATTACHED)); 104 &ec->event_data.data.switches);
|
/linux-master/arch/m68k/atari/ |
H A D | config.c | 141 /* Parse the Atari-specific switches= option. */ 144 char switches[COMMAND_LINE_SIZE]; local 147 char *args = switches; 153 strcpy(switches, str); 181 early_param("switches", atari_switches_setup); 209 /* Set switches as requested by the user */
|
/linux-master/tools/perf/util/ |
H A D | parse-events.l | 317 context-switches|cs { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_CONTEXT_SWITCHES); } 326 cgroup-switches { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_CGROUP_SWITCHES); }
|
/linux-master/drivers/input/misc/ |
H A D | iqs269a.c | 8 * inductive keys as well as Hall-effect switches, and one for each of the two 319 struct iqs269_switch_desc switches[ARRAY_SIZE(iqs269_events)]; member in struct:iqs269_private 790 iqs269->switches[i].code = val; 791 iqs269->switches[i].enabled = true; 1262 sw_code = iqs269->switches[i].code; 1274 iqs269->switches[i].enabled) 1440 sw_code = iqs269->switches[i].code; 1448 iqs269->switches[i].enabled) 1898 * The keypad may include one or more switches and is not registered
|
/linux-master/drivers/thunderbolt/ |
H A D | icm.c | 67 * @rescan_work: Work used to rescan the surviving switches after resume 400 struct icm_fr_pkg_get_topology_response *switches, *sw; local 408 switches = kcalloc(npackets, sizeof(*switches), GFP_KERNEL); 409 if (!switches) 412 ret = icm_request(tb, &request, sizeof(request), switches, 413 sizeof(*switches), npackets, ICM_RETRIES, ICM_TIMEOUT); 417 sw = &switches[0]; 424 sw = &switches[index]; 436 sw = &switches[inde [all...] |
/linux-master/include/linux/ |
H A D | rio.h | 74 * 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 in struct:rio_net
|
/linux-master/include/linux/platform_data/ |
H A D | cros_ec_commands.h | 3171 /* Formerly "switches", which was 0. */ 3189 * For buttons and switches, info about which specifically are 3194 * bitmask indicating which buttons or switches are present. See the 3200 * Instantaneous state of buttons and switches. 3213 * For EC_MKBP_EVENT_SWITCH, returns uint32_t switches, indicating the 3214 * state of supported switches. 3381 /* The state of the switches have changed. */ 3428 uint32_t switches; member in union:ec_response_get_next_data 3453 uint32_t switches; member in union:ec_response_get_next_data_v1 3478 /* Bit indices for buttons and switches [all...] |