• Home
  • Raw
  • Download

Lines Matching refs:drv

242 	struct device_driver *drv = dev->driver;  in driver_sysfs_remove()  local
244 if (drv) { in driver_sysfs_remove()
245 sysfs_remove_link(&drv->p->kobj, kobject_name(&dev->kobj)); in driver_sysfs_remove()
278 static int really_probe(struct device *dev, struct device_driver *drv) in really_probe() argument
285 drv->bus->name, __func__, drv->name, dev_name(dev)); in really_probe()
288 dev->driver = drv; in really_probe()
305 } else if (drv->probe) { in really_probe()
306 ret = drv->probe(dev); in really_probe()
314 drv->bus->name, __func__, dev_name(dev), drv->name); in really_probe()
325 dev_info(dev, "Driver %s requests probe deferral\n", drv->name); in really_probe()
334 drv->name, dev_name(dev), ret); in really_probe()
337 drv->name, dev_name(dev), ret); in really_probe()
389 int driver_probe_device(struct device_driver *drv, struct device *dev) in driver_probe_device() argument
397 drv->bus->name, __func__, dev_name(dev), drv->name); in driver_probe_device()
400 ret = really_probe(dev, drv); in driver_probe_device()
406 static int __device_attach(struct device_driver *drv, void *data) in __device_attach() argument
410 if (!driver_match_device(drv, dev)) in __device_attach()
413 return driver_probe_device(drv, dev); in __device_attach()
459 struct device_driver *drv = data; in __driver_attach() local
471 if (!driver_match_device(drv, dev)) in __driver_attach()
478 driver_probe_device(drv, dev); in __driver_attach()
495 int driver_attach(struct device_driver *drv) in driver_attach() argument
497 return bus_for_each_dev(drv->bus, NULL, drv, __driver_attach); in driver_attach()
507 struct device_driver *drv; in __device_release_driver() local
509 drv = dev->driver; in __device_release_driver()
510 if (drv) { in __device_release_driver()
524 else if (drv->remove) in __device_release_driver()
525 drv->remove(dev); in __device_release_driver()
562 void driver_detach(struct device_driver *drv) in driver_detach() argument
568 spin_lock(&drv->p->klist_devices.k_lock); in driver_detach()
569 if (list_empty(&drv->p->klist_devices.k_list)) { in driver_detach()
570 spin_unlock(&drv->p->klist_devices.k_lock); in driver_detach()
573 dev_prv = list_entry(drv->p->klist_devices.k_list.prev, in driver_detach()
578 spin_unlock(&drv->p->klist_devices.k_lock); in driver_detach()
583 if (dev->driver == drv) in driver_detach()