Lines Matching refs:nd_drv
95 struct nd_device_driver *nd_drv = to_nd_device_driver(dev->driver); in nvdimm_bus_probe() local
107 rc = nd_drv->probe(dev); in nvdimm_bus_probe()
124 struct nd_device_driver *nd_drv = to_nd_device_driver(dev->driver); in nvdimm_bus_remove() local
129 if (nd_drv->remove) in nvdimm_bus_remove()
130 rc = nd_drv->remove(dev); in nvdimm_bus_remove()
142 struct nd_device_driver *nd_drv = NULL; in nvdimm_bus_shutdown() local
145 nd_drv = to_nd_device_driver(dev->driver); in nvdimm_bus_shutdown()
147 if (nd_drv && nd_drv->shutdown) { in nvdimm_bus_shutdown()
148 nd_drv->shutdown(dev); in nvdimm_bus_shutdown()
158 struct nd_device_driver *nd_drv; in nd_device_notify() local
160 nd_drv = to_nd_device_driver(dev->driver); in nd_device_notify()
161 if (nd_drv->notify) in nd_device_notify()
162 nd_drv->notify(dev, event); in nd_device_notify()
466 struct nd_device_driver *nd_drv = to_nd_device_driver(drv); in nvdimm_bus_match() local
468 if (is_nvdimm_bus(dev) && nd_drv == &nd_bus_driver) in nvdimm_bus_match()
471 return !!test_bit(to_nd_device_type(dev), &nd_drv->type); in nvdimm_bus_match()
544 int __nd_driver_register(struct nd_device_driver *nd_drv, struct module *owner, in __nd_driver_register() argument
547 struct device_driver *drv = &nd_drv->drv; in __nd_driver_register()
549 if (!nd_drv->type) { in __nd_driver_register()
555 if (!nd_drv->probe) { in __nd_driver_register()