Lines Matching refs:remotes

1894 	remote->remotes[index].group.name = devm_kasprintf(&wacom->hdev->dev,  in wacom_remote_create_attr_group()
1897 if (!remote->remotes[index].group.name) in wacom_remote_create_attr_group()
1901 &remote->remotes[index].group); in wacom_remote_create_attr_group()
1903 remote->remotes[index].group.name = NULL; in wacom_remote_create_attr_group()
2007 remote->remotes[0].group = remote0_serial_group; in wacom_initialize_remotes()
2008 remote->remotes[1].group = remote1_serial_group; in wacom_initialize_remotes()
2009 remote->remotes[2].group = remote2_serial_group; in wacom_initialize_remotes()
2010 remote->remotes[3].group = remote3_serial_group; in wacom_initialize_remotes()
2011 remote->remotes[4].group = remote4_serial_group; in wacom_initialize_remotes()
2028 remote->remotes[i].serial = 0; in wacom_initialize_remotes()
2553 if (remote->remotes[index].battery.battery) { in wacom_remote_destroy_battery()
2555 &remote->remotes[index].battery.bat_desc); in wacom_remote_destroy_battery()
2556 remote->remotes[index].battery.battery = NULL; in wacom_remote_destroy_battery()
2557 remote->remotes[index].active_time = 0; in wacom_remote_destroy_battery()
2564 u32 serial = remote->remotes[index].serial; in wacom_remote_destroy_one()
2569 if (remote->remotes[i].serial == serial) { in wacom_remote_destroy_one()
2572 remote->remotes[i].registered = false; in wacom_remote_destroy_one()
2577 if (remote->remotes[i].group.name) in wacom_remote_destroy_one()
2579 &remote->remotes[i]); in wacom_remote_destroy_one()
2581 remote->remotes[i].serial = 0; in wacom_remote_destroy_one()
2582 remote->remotes[i].group.name = NULL; in wacom_remote_destroy_one()
2599 if (remote->remotes[k].serial == serial) in wacom_remote_create_one()
2604 remote->remotes[index].serial = serial; in wacom_remote_create_one()
2608 if (!devres_open_group(dev, &remote->remotes[index], GFP_KERNEL)) in wacom_remote_create_one()
2615 remote->remotes[index].input = wacom_allocate_input(wacom); in wacom_remote_create_one()
2616 if (!remote->remotes[index].input) { in wacom_remote_create_one()
2620 remote->remotes[index].input->uniq = remote->remotes[index].group.name; in wacom_remote_create_one()
2621 remote->remotes[index].input->name = wacom->wacom_wac.pad_name; in wacom_remote_create_one()
2623 if (!remote->remotes[index].input->name) { in wacom_remote_create_one()
2628 error = wacom_setup_pad_input_capabilities(remote->remotes[index].input, in wacom_remote_create_one()
2633 remote->remotes[index].serial = serial; in wacom_remote_create_one()
2635 error = input_register_device(remote->remotes[index].input); in wacom_remote_create_one()
2640 &remote->remotes[index].input->dev, in wacom_remote_create_one()
2645 remote->remotes[index].registered = true; in wacom_remote_create_one()
2647 devres_close_group(dev, &remote->remotes[index]); in wacom_remote_create_one()
2651 devres_release_group(dev, &remote->remotes[index]); in wacom_remote_create_one()
2652 remote->remotes[index].serial = 0; in wacom_remote_create_one()
2661 if (!remote->remotes[index].registered) in wacom_remote_attach_battery()
2664 if (remote->remotes[index].battery.battery) in wacom_remote_attach_battery()
2667 if (!remote->remotes[index].active_time) in wacom_remote_attach_battery()
2674 &wacom->remote->remotes[index].battery); in wacom_remote_attach_battery()
2713 if (kt - remote->remotes[i].active_time > WACOM_REMOTE_BATTERY_TIMEOUT in wacom_remote_work()
2714 && remote->remotes[i].active_time != 0) in wacom_remote_work()
2717 if (remote->remotes[i].serial == work_serial) { in wacom_remote_work()
2722 if (remote->remotes[i].serial) in wacom_remote_work()
2727 } else if (remote->remotes[i].serial) { in wacom_remote_work()