Lines Matching refs:nd_drv
92 struct nd_device_driver *nd_drv = to_nd_device_driver(dev->driver); in nvdimm_bus_probe() local
101 rc = nd_drv->probe(dev); in nvdimm_bus_probe()
118 struct nd_device_driver *nd_drv = to_nd_device_driver(dev->driver); in nvdimm_bus_remove() local
123 if (nd_drv->remove) in nvdimm_bus_remove()
124 rc = nd_drv->remove(dev); in nvdimm_bus_remove()
136 struct nd_device_driver *nd_drv = NULL; in nvdimm_bus_shutdown() local
139 nd_drv = to_nd_device_driver(dev->driver); in nvdimm_bus_shutdown()
141 if (nd_drv && nd_drv->shutdown) { in nvdimm_bus_shutdown()
142 nd_drv->shutdown(dev); in nvdimm_bus_shutdown()
152 struct nd_device_driver *nd_drv; in nd_device_notify() local
154 nd_drv = to_nd_device_driver(dev->driver); in nd_device_notify()
155 if (nd_drv->notify) in nd_device_notify()
156 nd_drv->notify(dev, event); in nd_device_notify()
402 struct nd_device_driver *nd_drv = to_nd_device_driver(drv); in nvdimm_bus_match() local
404 if (is_nvdimm_bus(dev) && nd_drv == &nd_bus_driver) in nvdimm_bus_match()
407 return !!test_bit(to_nd_device_type(dev), &nd_drv->type); in nvdimm_bus_match()
480 int __nd_driver_register(struct nd_device_driver *nd_drv, struct module *owner, in __nd_driver_register() argument
483 struct device_driver *drv = &nd_drv->drv; in __nd_driver_register()
485 if (!nd_drv->type) { in __nd_driver_register()
491 if (!nd_drv->probe) { in __nd_driver_register()