Lines Matching refs:drv
350 struct ps3_system_bus_driver *drv = ps3_drv_to_system_bus_drv(_drv); in ps3_system_bus_match() local
354 result = dev->match_id == drv->match_id; in ps3_system_bus_match()
356 result = dev->match_sub_id == drv->match_sub_id && in ps3_system_bus_match()
357 dev->match_id == drv->match_id; in ps3_system_bus_match()
363 drv->match_id, drv->match_sub_id, drv->core.name); in ps3_system_bus_match()
368 drv->match_id, drv->match_sub_id, drv->core.name); in ps3_system_bus_match()
377 struct ps3_system_bus_driver *drv; in ps3_system_bus_probe() local
382 drv = ps3_system_bus_dev_to_system_bus_drv(dev); in ps3_system_bus_probe()
383 BUG_ON(!drv); in ps3_system_bus_probe()
385 if (drv->probe) in ps3_system_bus_probe()
386 result = drv->probe(dev); in ps3_system_bus_probe()
399 struct ps3_system_bus_driver *drv; in ps3_system_bus_remove() local
404 drv = ps3_system_bus_dev_to_system_bus_drv(dev); in ps3_system_bus_remove()
405 BUG_ON(!drv); in ps3_system_bus_remove()
407 if (drv->remove) in ps3_system_bus_remove()
408 result = drv->remove(dev); in ps3_system_bus_remove()
411 __func__, __LINE__, drv->core.name); in ps3_system_bus_remove()
420 struct ps3_system_bus_driver *drv; in ps3_system_bus_shutdown() local
433 drv = ps3_system_bus_dev_to_system_bus_drv(dev); in ps3_system_bus_shutdown()
435 BUG_ON(!drv); in ps3_system_bus_shutdown()
438 dev_name(&dev->core), drv->core.name); in ps3_system_bus_shutdown()
440 if (drv->shutdown) in ps3_system_bus_shutdown()
441 drv->shutdown(dev); in ps3_system_bus_shutdown()
442 else if (drv->remove) { in ps3_system_bus_shutdown()
444 __func__, __LINE__, drv->core.name); in ps3_system_bus_shutdown()
445 drv->remove(dev); in ps3_system_bus_shutdown()
448 __func__, __LINE__, drv->core.name); in ps3_system_bus_shutdown()
788 int ps3_system_bus_driver_register(struct ps3_system_bus_driver *drv) in ps3_system_bus_driver_register() argument
792 pr_debug(" -> %s:%d: %s\n", __func__, __LINE__, drv->core.name); in ps3_system_bus_driver_register()
797 drv->core.bus = &ps3_system_bus_type; in ps3_system_bus_driver_register()
799 result = driver_register(&drv->core); in ps3_system_bus_driver_register()
800 pr_debug(" <- %s:%d: %s\n", __func__, __LINE__, drv->core.name); in ps3_system_bus_driver_register()
806 void ps3_system_bus_driver_unregister(struct ps3_system_bus_driver *drv) in ps3_system_bus_driver_unregister() argument
808 pr_debug(" -> %s:%d: %s\n", __func__, __LINE__, drv->core.name); in ps3_system_bus_driver_unregister()
809 driver_unregister(&drv->core); in ps3_system_bus_driver_unregister()
810 pr_debug(" <- %s:%d: %s\n", __func__, __LINE__, drv->core.name); in ps3_system_bus_driver_unregister()