Lines Matching defs:drv

338 	struct ps3_system_bus_driver *drv = ps3_drv_to_system_bus_drv(_drv);
342 result = dev->match_id == drv->match_id;
344 result = dev->match_sub_id == drv->match_sub_id &&
345 dev->match_id == drv->match_id;
348 pr_info("%s:%d: dev=%u.%u(%s), drv=%u.%u(%s): match\n",
351 drv->match_id, drv->match_sub_id, drv->core.name);
353 pr_debug("%s:%d: dev=%u.%u(%s), drv=%u.%u(%s): miss\n",
356 drv->match_id, drv->match_sub_id, drv->core.name);
365 struct ps3_system_bus_driver *drv;
370 drv = ps3_system_bus_dev_to_system_bus_drv(dev);
371 BUG_ON(!drv);
373 if (drv->probe)
374 result = drv->probe(dev);
387 struct ps3_system_bus_driver *drv;
392 drv = ps3_system_bus_dev_to_system_bus_drv(dev);
393 BUG_ON(!drv);
395 if (drv->remove)
396 result = drv->remove(dev);
399 __func__, __LINE__, drv->core.name);
408 struct ps3_system_bus_driver *drv;
421 drv = ps3_system_bus_dev_to_system_bus_drv(dev);
423 BUG_ON(!drv);
426 dev_name(&dev->core), drv->core.name);
428 if (drv->shutdown)
429 drv->shutdown(dev);
430 else if (drv->remove) {
432 __func__, __LINE__, drv->core.name);
433 drv->remove(dev);
436 __func__, __LINE__, drv->core.name);
779 int ps3_system_bus_driver_register(struct ps3_system_bus_driver *drv)
783 pr_debug(" -> %s:%d: %s\n", __func__, __LINE__, drv->core.name);
788 drv->core.bus = &ps3_system_bus_type;
790 result = driver_register(&drv->core);
791 pr_debug(" <- %s:%d: %s\n", __func__, __LINE__, drv->core.name);
797 void ps3_system_bus_driver_unregister(struct ps3_system_bus_driver *drv)
799 pr_debug(" -> %s:%d: %s\n", __func__, __LINE__, drv->core.name);
800 driver_unregister(&drv->core);
801 pr_debug(" <- %s:%d: %s\n", __func__, __LINE__, drv->core.name);