Lines Matching refs:nd_drv
82 struct nd_device_driver *nd_drv = to_nd_device_driver(dev->driver); in nvdimm_bus_probe() local
95 rc = nd_drv->probe(dev); in nvdimm_bus_probe()
113 struct nd_device_driver *nd_drv = to_nd_device_driver(dev->driver); in nvdimm_bus_remove() local
117 if (nd_drv->remove) { in nvdimm_bus_remove()
119 nd_drv->remove(dev); in nvdimm_bus_remove()
131 struct nd_device_driver *nd_drv = NULL; in nvdimm_bus_shutdown() local
134 nd_drv = to_nd_device_driver(dev->driver); in nvdimm_bus_shutdown()
136 if (nd_drv && nd_drv->shutdown) { in nvdimm_bus_shutdown()
137 nd_drv->shutdown(dev); in nvdimm_bus_shutdown()
147 struct nd_device_driver *nd_drv; in nd_device_notify() local
149 nd_drv = to_nd_device_driver(dev->driver); in nd_device_notify()
150 if (nd_drv->notify) in nd_device_notify()
151 nd_drv->notify(dev, event); in nd_device_notify()
476 struct nd_device_driver *nd_drv = to_nd_device_driver(drv); in nvdimm_bus_match() local
478 if (is_nvdimm_bus(dev) && nd_drv == &nd_bus_driver) in nvdimm_bus_match()
481 return !!test_bit(to_nd_device_type(dev), &nd_drv->type); in nvdimm_bus_match()
598 int __nd_driver_register(struct nd_device_driver *nd_drv, struct module *owner, in __nd_driver_register() argument
601 struct device_driver *drv = &nd_drv->drv; in __nd_driver_register()
603 if (!nd_drv->type) { in __nd_driver_register()
609 if (!nd_drv->probe) { in __nd_driver_register()