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
118 if (nd_drv->remove) { in nvdimm_bus_remove()
120 rc = nd_drv->remove(dev); in nvdimm_bus_remove()
133 struct nd_device_driver *nd_drv = NULL; in nvdimm_bus_shutdown() local
136 nd_drv = to_nd_device_driver(dev->driver); in nvdimm_bus_shutdown()
138 if (nd_drv && nd_drv->shutdown) { in nvdimm_bus_shutdown()
139 nd_drv->shutdown(dev); in nvdimm_bus_shutdown()
149 struct nd_device_driver *nd_drv; in nd_device_notify() local
151 nd_drv = to_nd_device_driver(dev->driver); in nd_device_notify()
152 if (nd_drv->notify) in nd_device_notify()
153 nd_drv->notify(dev, event); in nd_device_notify()
486 struct nd_device_driver *nd_drv = to_nd_device_driver(drv); in nvdimm_bus_match() local
488 if (is_nvdimm_bus(dev) && nd_drv == &nd_bus_driver) in nvdimm_bus_match()
491 return !!test_bit(to_nd_device_type(dev), &nd_drv->type); in nvdimm_bus_match()
607 int __nd_driver_register(struct nd_device_driver *nd_drv, struct module *owner, in __nd_driver_register() argument
610 struct device_driver *drv = &nd_drv->drv; in __nd_driver_register()
612 if (!nd_drv->type) { in __nd_driver_register()
618 if (!nd_drv->probe) { in __nd_driver_register()