Lines Matching defs:subdev

43 	struct host1x_subdev *subdev;
46 subdev = kzalloc_obj(*subdev);
47 if (!subdev)
50 INIT_LIST_HEAD(&subdev->list);
51 subdev->np = of_node_get(np);
54 list_add_tail(&subdev->list, &device->subdevs);
74 * @subdev: subdevice to remove
76 static void host1x_subdev_del(struct host1x_subdev *subdev)
78 list_del(&subdev->list);
79 of_node_put(subdev->np);
80 kfree(subdev);
106 struct host1x_subdev *subdev,
119 list_move_tail(&subdev->list, &device->active);
121 subdev->client = client;
135 struct host1x_subdev *subdev)
137 struct host1x_client *client = subdev->client;
155 subdev->client = NULL;
157 list_move_tail(&subdev->list, &device->subdevs);
171 struct host1x_subdev *subdev)
174 __host1x_subdev_unregister(device, subdev);
291 struct host1x_subdev *subdev;
296 list_for_each_entry(subdev, &device->subdevs, list) {
297 if (subdev->np == client->dev->of_node) {
298 host1x_subdev_register(device, subdev, client);
313 struct host1x_subdev *subdev;
318 list_for_each_entry(subdev, &device->active, list) {
319 if (subdev->client == client) {
320 host1x_subdev_unregister(device, subdev);
400 struct host1x_subdev *subdev, *sd;
406 list_for_each_entry_safe(subdev, sd, &device->active, list) {
416 client = subdev->client;
418 __host1x_subdev_unregister(device, subdev);
427 list_for_each_entry_safe(subdev, sd, &device->subdevs, list)
428 host1x_subdev_del(subdev);
458 struct host1x_subdev *subdev;
497 list_for_each_entry(subdev, &device->subdevs, list) {
498 if (subdev->np == client->dev->of_node) {
499 host1x_subdev_register(device, subdev, client);
583 struct host1x_subdev *subdev;
589 list_for_each_entry(subdev, &device->active, list)
590 seq_printf(s, " %pOFf: %s\n", subdev->np,
591 dev_name(subdev->client->dev));
593 list_for_each_entry(subdev, &device->subdevs, list)
594 seq_printf(s, " %pOFf:\n", subdev->np);