Lines Matching defs:drv

339 	struct ps3_system_bus_driver *drv = ps3_drv_to_system_bus_drv(_drv);
343 result = dev->match_id == drv->match_id;
345 result = dev->match_sub_id == drv->match_sub_id &&
346 dev->match_id == drv->match_id;
349 pr_info("%s:%d: dev=%u.%u(%s), drv=%u.%u(%s): match\n",
352 drv->match_id, drv->match_sub_id, drv->core.name);
354 pr_debug("%s:%d: dev=%u.%u(%s), drv=%u.%u(%s): miss\n",
357 drv->match_id, drv->match_sub_id, drv->core.name);
366 struct ps3_system_bus_driver *drv;
371 drv = ps3_system_bus_dev_to_system_bus_drv(dev);
372 BUG_ON(!drv);
374 if (drv->probe)
375 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 drv->remove(dev);
399 __func__, __LINE__, drv->core.name);
407 struct ps3_system_bus_driver *drv;
420 drv = ps3_system_bus_dev_to_system_bus_drv(dev);
422 BUG_ON(!drv);
425 dev_name(&dev->core), drv->core.name);
427 if (drv->shutdown)
428 drv->shutdown(dev);
429 else if (drv->remove) {
431 __func__, __LINE__, drv->core.name);
432 drv->remove(dev);
435 __func__, __LINE__, drv->core.name);
778 int ps3_system_bus_driver_register(struct ps3_system_bus_driver *drv)
782 pr_debug(" -> %s:%d: %s\n", __func__, __LINE__, drv->core.name);
787 drv->core.bus = &ps3_system_bus_type;
789 result = driver_register(&drv->core);
790 pr_debug(" <- %s:%d: %s\n", __func__, __LINE__, drv->core.name);
796 void ps3_system_bus_driver_unregister(struct ps3_system_bus_driver *drv)
798 pr_debug(" -> %s:%d: %s\n", __func__, __LINE__, drv->core.name);
799 driver_unregister(&drv->core);
800 pr_debug(" <- %s:%d: %s\n", __func__, __LINE__, drv->core.name);