Lines Matching refs:remotes
1867 remote->remotes[index].group.name = devm_kasprintf(&wacom->hdev->dev, in wacom_remote_create_attr_group()
1870 if (!remote->remotes[index].group.name) in wacom_remote_create_attr_group()
1874 &remote->remotes[index].group); in wacom_remote_create_attr_group()
1876 remote->remotes[index].group.name = NULL; in wacom_remote_create_attr_group()
1980 remote->remotes[0].group = remote0_serial_group; in wacom_initialize_remotes()
1981 remote->remotes[1].group = remote1_serial_group; in wacom_initialize_remotes()
1982 remote->remotes[2].group = remote2_serial_group; in wacom_initialize_remotes()
1983 remote->remotes[3].group = remote3_serial_group; in wacom_initialize_remotes()
1984 remote->remotes[4].group = remote4_serial_group; in wacom_initialize_remotes()
2001 remote->remotes[i].serial = 0; in wacom_initialize_remotes()
2492 u32 serial = remote->remotes[index].serial; in wacom_remote_destroy_one()
2497 if (remote->remotes[i].serial == serial) { in wacom_remote_destroy_one()
2500 remote->remotes[i].registered = false; in wacom_remote_destroy_one()
2503 if (remote->remotes[i].battery.battery) in wacom_remote_destroy_one()
2505 &remote->remotes[i].battery.bat_desc); in wacom_remote_destroy_one()
2507 if (remote->remotes[i].group.name) in wacom_remote_destroy_one()
2509 &remote->remotes[i]); in wacom_remote_destroy_one()
2511 remote->remotes[i].serial = 0; in wacom_remote_destroy_one()
2512 remote->remotes[i].group.name = NULL; in wacom_remote_destroy_one()
2513 remote->remotes[i].battery.battery = NULL; in wacom_remote_destroy_one()
2530 if (remote->remotes[k].serial == serial) in wacom_remote_create_one()
2535 remote->remotes[index].serial = serial; in wacom_remote_create_one()
2539 if (!devres_open_group(dev, &remote->remotes[index], GFP_KERNEL)) in wacom_remote_create_one()
2546 remote->remotes[index].input = wacom_allocate_input(wacom); in wacom_remote_create_one()
2547 if (!remote->remotes[index].input) { in wacom_remote_create_one()
2551 remote->remotes[index].input->uniq = remote->remotes[index].group.name; in wacom_remote_create_one()
2552 remote->remotes[index].input->name = wacom->wacom_wac.pad_name; in wacom_remote_create_one()
2554 if (!remote->remotes[index].input->name) { in wacom_remote_create_one()
2559 error = wacom_setup_pad_input_capabilities(remote->remotes[index].input, in wacom_remote_create_one()
2564 remote->remotes[index].serial = serial; in wacom_remote_create_one()
2566 error = input_register_device(remote->remotes[index].input); in wacom_remote_create_one()
2571 &remote->remotes[index].input->dev, in wacom_remote_create_one()
2576 remote->remotes[index].registered = true; in wacom_remote_create_one()
2578 devres_close_group(dev, &remote->remotes[index]); in wacom_remote_create_one()
2582 devres_release_group(dev, &remote->remotes[index]); in wacom_remote_create_one()
2583 remote->remotes[index].serial = 0; in wacom_remote_create_one()
2592 if (!remote->remotes[index].registered) in wacom_remote_attach_battery()
2595 if (remote->remotes[index].battery.battery) in wacom_remote_attach_battery()
2602 &wacom->remote->remotes[index].battery); in wacom_remote_attach_battery()
2639 if (remote->remotes[i].serial == serial) { in wacom_remote_work()
2644 if (remote->remotes[i].serial) in wacom_remote_work()
2649 } else if (remote->remotes[i].serial) { in wacom_remote_work()