Lines Matching refs:remotes
1930 remote->remotes[index].group.name = devm_kasprintf(&wacom->hdev->dev, in wacom_remote_create_attr_group()
1933 if (!remote->remotes[index].group.name) in wacom_remote_create_attr_group()
1937 &remote->remotes[index].group); in wacom_remote_create_attr_group()
1939 remote->remotes[index].group.name = NULL; in wacom_remote_create_attr_group()
2043 remote->remotes[0].group = remote0_serial_group; in wacom_initialize_remotes()
2044 remote->remotes[1].group = remote1_serial_group; in wacom_initialize_remotes()
2045 remote->remotes[2].group = remote2_serial_group; in wacom_initialize_remotes()
2046 remote->remotes[3].group = remote3_serial_group; in wacom_initialize_remotes()
2047 remote->remotes[4].group = remote4_serial_group; in wacom_initialize_remotes()
2068 remote->remotes[i].serial = 0; in wacom_initialize_remotes()
2598 if (remote->remotes[index].battery.battery) { in wacom_remote_destroy_battery()
2600 &remote->remotes[index].battery.bat_desc); in wacom_remote_destroy_battery()
2601 remote->remotes[index].battery.battery = NULL; in wacom_remote_destroy_battery()
2602 remote->remotes[index].active_time = 0; in wacom_remote_destroy_battery()
2609 u32 serial = remote->remotes[index].serial; in wacom_remote_destroy_one()
2614 if (remote->remotes[i].serial == serial) { in wacom_remote_destroy_one()
2617 remote->remotes[i].registered = false; in wacom_remote_destroy_one()
2622 if (remote->remotes[i].group.name) in wacom_remote_destroy_one()
2624 &remote->remotes[i]); in wacom_remote_destroy_one()
2626 remote->remotes[i].serial = 0; in wacom_remote_destroy_one()
2627 remote->remotes[i].group.name = NULL; in wacom_remote_destroy_one()
2644 if (remote->remotes[k].serial == serial) in wacom_remote_create_one()
2649 remote->remotes[index].serial = serial; in wacom_remote_create_one()
2653 if (!devres_open_group(dev, &remote->remotes[index], GFP_KERNEL)) in wacom_remote_create_one()
2660 remote->remotes[index].input = wacom_allocate_input(wacom); in wacom_remote_create_one()
2661 if (!remote->remotes[index].input) { in wacom_remote_create_one()
2665 remote->remotes[index].input->uniq = remote->remotes[index].group.name; in wacom_remote_create_one()
2666 remote->remotes[index].input->name = wacom->wacom_wac.pad_name; in wacom_remote_create_one()
2668 if (!remote->remotes[index].input->name) { in wacom_remote_create_one()
2673 error = wacom_setup_pad_input_capabilities(remote->remotes[index].input, in wacom_remote_create_one()
2678 remote->remotes[index].serial = serial; in wacom_remote_create_one()
2680 error = input_register_device(remote->remotes[index].input); in wacom_remote_create_one()
2685 &remote->remotes[index].input->dev, in wacom_remote_create_one()
2690 remote->remotes[index].registered = true; in wacom_remote_create_one()
2692 devres_close_group(dev, &remote->remotes[index]); in wacom_remote_create_one()
2696 devres_release_group(dev, &remote->remotes[index]); in wacom_remote_create_one()
2697 remote->remotes[index].serial = 0; in wacom_remote_create_one()
2706 if (!remote->remotes[index].registered) in wacom_remote_attach_battery()
2709 if (remote->remotes[index].battery.battery) in wacom_remote_attach_battery()
2712 if (!remote->remotes[index].active_time) in wacom_remote_attach_battery()
2719 &wacom->remote->remotes[index].battery); in wacom_remote_attach_battery()
2758 if (kt - remote->remotes[i].active_time > WACOM_REMOTE_BATTERY_TIMEOUT in wacom_remote_work()
2759 && remote->remotes[i].active_time != 0) in wacom_remote_work()
2762 if (remote->remotes[i].serial == work_serial) { in wacom_remote_work()
2767 if (remote->remotes[i].serial) in wacom_remote_work()
2772 } else if (remote->remotes[i].serial) { in wacom_remote_work()