Lines Matching refs:cldrv
835 const struct mei_cl_driver *cldrv) in mei_cl_device_find() argument
845 id = cldrv->id_table; in mei_cl_device_find()
879 const struct mei_cl_driver *cldrv = to_mei_cl_driver(drv); in mei_cl_device_match() local
888 if (!cldrv || !cldrv->id_table) in mei_cl_device_match()
891 found_id = mei_cl_device_find(cldev, cldrv); in mei_cl_device_match()
908 struct mei_cl_driver *cldrv; in mei_cl_device_probe() local
913 cldrv = to_mei_cl_driver(dev->driver); in mei_cl_device_probe()
918 if (!cldrv || !cldrv->probe) in mei_cl_device_probe()
921 id = mei_cl_device_find(cldev, cldrv); in mei_cl_device_probe()
930 ret = cldrv->probe(cldev, id); in mei_cl_device_probe()
950 struct mei_cl_driver *cldrv = to_mei_cl_driver(dev->driver); in mei_cl_device_remove() local
952 if (cldrv->remove) in mei_cl_device_remove()
953 cldrv->remove(cldev); in mei_cl_device_remove()
1361 int __mei_cldev_driver_register(struct mei_cl_driver *cldrv, in __mei_cldev_driver_register() argument
1366 cldrv->driver.name = cldrv->name; in __mei_cldev_driver_register()
1367 cldrv->driver.owner = owner; in __mei_cldev_driver_register()
1368 cldrv->driver.bus = &mei_cl_bus_type; in __mei_cldev_driver_register()
1370 err = driver_register(&cldrv->driver); in __mei_cldev_driver_register()
1374 pr_debug("mei: driver [%s] registered\n", cldrv->driver.name); in __mei_cldev_driver_register()
1380 void mei_cldev_driver_unregister(struct mei_cl_driver *cldrv) in mei_cldev_driver_unregister() argument
1382 driver_unregister(&cldrv->driver); in mei_cldev_driver_unregister()
1384 pr_debug("mei: driver [%s] unregistered\n", cldrv->driver.name); in mei_cldev_driver_unregister()