Lines Matching refs:index

266 	    field->index + 2 < field->report->maxfield) {
267 struct hid_field *a = field->report->field[field->index + 1];
268 struct hid_field *b = field->report->field[field->index + 2];
341 /* Ignore if value index is out of bounds. */
1859 char *buf, int index)
1866 mode = wacom->led.groups[index].select;
1897 int index)
1902 remote->remotes[index].group.name = devm_kasprintf(&wacom->hdev->dev,
1905 if (!remote->remotes[index].group.name)
1909 &remote->remotes[index].group);
1911 remote->remotes[index].group.name = NULL;
2555 static void wacom_remote_destroy_battery(struct wacom *wacom, int index)
2559 if (remote->remotes[index].battery.battery) {
2561 &remote->remotes[index].battery.bat_desc);
2562 remote->remotes[index].battery.battery = NULL;
2563 remote->remotes[index].active_time = 0;
2567 static void wacom_remote_destroy_one(struct wacom *wacom, unsigned int index)
2570 u32 serial = remote->remotes[index].serial;
2595 unsigned int index)
2610 remote->remotes[index].serial = serial;
2614 if (!devres_open_group(dev, &remote->remotes[index], GFP_KERNEL))
2617 error = wacom_remote_create_attr_group(wacom, serial, index);
2621 remote->remotes[index].input = wacom_allocate_input(wacom);
2622 if (!remote->remotes[index].input) {
2626 remote->remotes[index].input->uniq = remote->remotes[index].group.name;
2627 remote->remotes[index].input->name = wacom->wacom_wac.pad_name;
2629 if (!remote->remotes[index].input->name) {
2634 error = wacom_setup_pad_input_capabilities(remote->remotes[index].input,
2639 remote->remotes[index].serial = serial;
2641 error = input_register_device(remote->remotes[index].input);
2646 &remote->remotes[index].input->dev,
2647 wacom, index, 3, true);
2651 remote->remotes[index].registered = true;
2653 devres_close_group(dev, &remote->remotes[index]);
2657 devres_release_group(dev, &remote->remotes[index]);
2658 remote->remotes[index].serial = 0;
2662 static int wacom_remote_attach_battery(struct wacom *wacom, int index)
2667 if (!remote->remotes[index].registered)
2670 if (remote->remotes[index].battery.battery)
2673 if (!remote->remotes[index].active_time)
2676 if (wacom->led.groups[index].select == WACOM_STATUS_UNKNOWN)
2680 &wacom->remote->remotes[index].battery);