Lines Matching refs:cldrv
840 const struct mei_cl_driver *cldrv) in mei_cl_device_find() argument
850 id = cldrv->id_table; in mei_cl_device_find()
884 const struct mei_cl_driver *cldrv = to_mei_cl_driver(drv); in mei_cl_device_match() local
893 if (!cldrv || !cldrv->id_table) in mei_cl_device_match()
896 found_id = mei_cl_device_find(cldev, cldrv); in mei_cl_device_match()
913 struct mei_cl_driver *cldrv; in mei_cl_device_probe() local
918 cldrv = to_mei_cl_driver(dev->driver); in mei_cl_device_probe()
923 if (!cldrv || !cldrv->probe) in mei_cl_device_probe()
926 id = mei_cl_device_find(cldev, cldrv); in mei_cl_device_probe()
935 ret = cldrv->probe(cldev, id); in mei_cl_device_probe()
955 struct mei_cl_driver *cldrv = to_mei_cl_driver(dev->driver); in mei_cl_device_remove() local
957 if (cldrv->remove) in mei_cl_device_remove()
958 cldrv->remove(cldev); in mei_cl_device_remove()
1365 int __mei_cldev_driver_register(struct mei_cl_driver *cldrv, in __mei_cldev_driver_register() argument
1370 cldrv->driver.name = cldrv->name; in __mei_cldev_driver_register()
1371 cldrv->driver.owner = owner; in __mei_cldev_driver_register()
1372 cldrv->driver.bus = &mei_cl_bus_type; in __mei_cldev_driver_register()
1374 err = driver_register(&cldrv->driver); in __mei_cldev_driver_register()
1378 pr_debug("mei: driver [%s] registered\n", cldrv->driver.name); in __mei_cldev_driver_register()
1384 void mei_cldev_driver_unregister(struct mei_cl_driver *cldrv) in mei_cldev_driver_unregister() argument
1386 driver_unregister(&cldrv->driver); in mei_cldev_driver_unregister()
1388 pr_debug("mei: driver [%s] unregistered\n", cldrv->driver.name); in mei_cldev_driver_unregister()