Lines Matching refs:driver
38 struct host1x_driver *driver, in host1x_subdev_add() argument
58 if (of_match_node(driver->subdevs, child) && in host1x_subdev_add()
60 err = host1x_subdev_add(device, driver, child); in host1x_subdev_add()
89 struct host1x_driver *driver) in host1x_device_parse_dt() argument
95 if (of_match_node(driver->subdevs, np) && in host1x_device_parse_dt()
97 err = host1x_subdev_add(device, driver, np); in host1x_device_parse_dt()
417 struct host1x_driver *driver) in host1x_device_add() argument
436 device->driver = driver; in host1x_device_add()
440 dev_set_name(&device->dev, "%s", driver->driver.name); in host1x_device_add()
450 err = host1x_device_parse_dt(device, driver); in host1x_device_add()
492 struct host1x_driver *driver) in host1x_attach_driver() argument
500 if (device->driver == driver) { in host1x_attach_driver()
506 err = host1x_device_add(host1x, driver); in host1x_attach_driver()
514 struct host1x_driver *driver) in host1x_detach_driver() argument
521 if (device->driver == driver) in host1x_detach_driver()
567 struct host1x_driver *driver; in host1x_register() local
575 list_for_each_entry(driver, &drivers, list) in host1x_register()
576 host1x_attach_driver(host1x, driver); in host1x_register()
595 struct host1x_driver *driver; in host1x_unregister() local
599 list_for_each_entry(driver, &drivers, list) in host1x_unregister()
600 host1x_detach_driver(host1x, driver); in host1x_unregister()
613 struct host1x_driver *driver = to_host1x_driver(dev->driver); in host1x_device_probe() local
616 if (driver->probe) in host1x_device_probe()
617 return driver->probe(device); in host1x_device_probe()
624 struct host1x_driver *driver = to_host1x_driver(dev->driver); in host1x_device_remove() local
627 if (driver->remove) in host1x_device_remove()
628 return driver->remove(device); in host1x_device_remove()
635 struct host1x_driver *driver = to_host1x_driver(dev->driver); in host1x_device_shutdown() local
638 if (driver->shutdown) in host1x_device_shutdown()
639 driver->shutdown(device); in host1x_device_shutdown()
652 int host1x_driver_register_full(struct host1x_driver *driver, in host1x_driver_register_full() argument
657 INIT_LIST_HEAD(&driver->list); in host1x_driver_register_full()
660 list_add_tail(&driver->list, &drivers); in host1x_driver_register_full()
666 host1x_attach_driver(host1x, driver); in host1x_driver_register_full()
670 driver->driver.bus = &host1x_bus_type; in host1x_driver_register_full()
671 driver->driver.owner = owner; in host1x_driver_register_full()
672 driver->driver.probe = host1x_device_probe; in host1x_driver_register_full()
673 driver->driver.remove = host1x_device_remove; in host1x_driver_register_full()
674 driver->driver.shutdown = host1x_device_shutdown; in host1x_driver_register_full()
676 return driver_register(&driver->driver); in host1x_driver_register_full()
687 void host1x_driver_unregister(struct host1x_driver *driver) in host1x_driver_unregister() argument
691 driver_unregister(&driver->driver); in host1x_driver_unregister()
696 host1x_detach_driver(host1x, driver); in host1x_driver_unregister()
701 list_del_init(&driver->list); in host1x_driver_unregister()