/foundation/systemabilitymgr/samgr/test/autotest/testcases/level0/ |
H A D | case22_process001.py | 31 self.driver = UiDriver(self.device1)
39 push_source(source_path=source_path, driver=self.driver, sn=self.sn)
42 driver = self.driver
44 result = driver.System.execute_command("ondemand proc getp")
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | siox.h | 53 struct device_driver driver; member 56 static inline struct siox_driver *to_siox_driver(struct device_driver *driver) in to_siox_driver() argument 58 if (driver) in to_siox_driver() 59 return container_of(driver, struct siox_driver, driver); in to_siox_driver() 73 return driver_unregister(&sdriver->driver); in siox_driver_unregister()
|
H A D | greybus.h | 3 * Greybus driver and device API 65 struct device_driver driver; member 67 #define to_greybus_driver(d) container_of(d, struct greybus_driver, driver) 80 int greybus_register_driver(struct greybus_driver *driver, 82 void greybus_deregister_driver(struct greybus_driver *driver); 85 #define greybus_register(driver) \ 86 greybus_register_driver(driver, THIS_MODULE, KBUILD_MODNAME) 87 #define greybus_deregister(driver) \ 88 greybus_deregister_driver(driver) 91 * module_greybus_driver() - Helper macro for registering a Greybus driver [all...] |
/kernel/linux/linux-6.6/include/linux/ |
H A D | siox.h | 53 struct device_driver driver; member 56 static inline struct siox_driver *to_siox_driver(struct device_driver *driver) in to_siox_driver() argument 58 if (driver) in to_siox_driver() 59 return container_of(driver, struct siox_driver, driver); in to_siox_driver() 73 return driver_unregister(&sdriver->driver); in siox_driver_unregister()
|
H A D | greybus.h | 3 * Greybus driver and device API 65 struct device_driver driver; member 67 #define to_greybus_driver(d) container_of(d, struct greybus_driver, driver) 80 int greybus_register_driver(struct greybus_driver *driver, 82 void greybus_deregister_driver(struct greybus_driver *driver); 85 #define greybus_register(driver) \ 86 greybus_register_driver(driver, THIS_MODULE, KBUILD_MODNAME) 87 #define greybus_deregister(driver) \ 88 greybus_deregister_driver(driver) 91 * module_greybus_driver() - Helper macro for registering a Greybus driver [all...] |
/kernel/linux/linux-6.6/drivers/usb/core/ |
H A D | hcd-pci.c | 55 * a USB host controller driver, so skip it. in for_each_companion() 160 * @driver: USB HC driver handle 172 int usb_hcd_pci_probe(struct pci_dev *dev, const struct hc_driver *driver) in usb_hcd_pci_probe() argument 181 if (!driver) in usb_hcd_pci_probe() 188 * The xHCI driver has its own irq management in usb_hcd_pci_probe() 191 if ((driver->flags & HCD_MASK) < HCD_USB3) { in usb_hcd_pci_probe() 203 hcd = usb_create_hcd(driver, &dev->dev, pci_name(dev)); in usb_hcd_pci_probe() 210 driver->flags & (HCD_USB11 | HCD_USB3)) ? 1 : 0; in usb_hcd_pci_probe() 212 if (driver in usb_hcd_pci_probe() [all...] |
/kernel/linux/linux-6.6/drivers/firmware/arm_scmi/ |
H A D | bus.c | 42 * This helper let an SCMI driver request specific devices identified by the 248 struct scmi_driver *scmi_drv = to_scmi_driver(dev->driver); in scmi_dev_probe() 259 struct scmi_driver *scmi_drv = to_scmi_driver(dev->driver); in scmi_dev_remove() 274 int scmi_driver_register(struct scmi_driver *driver, struct module *owner, in scmi_driver_register() argument 279 if (!driver->probe) in scmi_driver_register() 282 retval = scmi_protocol_device_request(driver->id_table); in scmi_driver_register() 286 driver->driver.bus = &scmi_bus_type; in scmi_driver_register() 287 driver->driver in scmi_driver_register() 299 scmi_driver_unregister(struct scmi_driver *driver) scmi_driver_unregister() argument [all...] |
/third_party/skia/third_party/externals/freetype/src/type1/ |
H A D | t1objs.c | 63 module = FT_Get_Module( size->root.face->driver->root.library, in T1_Size_Get_Globals_Funcs() 168 module = FT_Get_Module( slot->face->driver->root.library, in FT_LOCAL_DEF() 346 FT_TRACE2(( "Type 1 driver\n" )); in FT_LOCAL_DEF() 587 * Initializes a given Type 1 driver object. 590 * driver :: 591 * A handle to the target driver object. 599 PS_Driver driver = (PS_Driver)module; in FT_LOCAL_DEF() local 605 driver->hinting_engine = FT_HINTING_ADOBE; in FT_LOCAL_DEF() 607 driver->no_stem_darkening = TRUE; in FT_LOCAL_DEF() 609 driver in FT_LOCAL_DEF() [all...] |
/kernel/linux/linux-5.10/drivers/staging/comedi/ |
H A D | drivers.c | 35 * driver), comedi_set_hw_dev() is called automatically by the COMEDI core 134 * is zero-filled. The low-level driver is responsible for updating its 184 dev->driver = NULL; in comedi_device_detach_cleanup() 206 if (dev->driver) in comedi_device_detach() 207 dev->driver->detach(dev); in comedi_device_detach() 272 * comedi_timeout() - Busy-wait for a driver condition to occur 277 * @context: Private context from the driver. 582 * to stop the acquisition at the driver level. 784 * a 'struct comedi_device' that the low-level comedi driver's 810 pr_info("comedi: valid board names for %s driver ar in comedi_report_boards() 1032 comedi_auto_config(struct device *hardware_device, struct comedi_driver *driver, unsigned long context) comedi_auto_config() argument 1126 comedi_driver_register(struct comedi_driver *driver) comedi_driver_register() argument 1146 comedi_driver_unregister(struct comedi_driver *driver) comedi_driver_unregister() argument [all...] |
/kernel/linux/linux-6.6/drivers/comedi/ |
H A D | drivers.c | 34 * driver), comedi_set_hw_dev() is called automatically by the COMEDI core 133 * is zero-filled. The low-level driver is responsible for updating its 183 dev->driver = NULL; in comedi_device_detach_cleanup() 205 if (dev->driver) in comedi_device_detach() 206 dev->driver->detach(dev); in comedi_device_detach() 271 * comedi_timeout() - Busy-wait for a driver condition to occur 276 * @context: Private context from the driver. 581 * to stop the acquisition at the driver level. 783 * a 'struct comedi_device' that the low-level comedi driver's 809 pr_info("comedi: valid board names for %s driver ar in comedi_report_boards() 1031 comedi_auto_config(struct device *hardware_device, struct comedi_driver *driver, unsigned long context) comedi_auto_config() argument 1125 comedi_driver_register(struct comedi_driver *driver) comedi_driver_register() argument 1145 comedi_driver_unregister(struct comedi_driver *driver) comedi_driver_unregister() argument [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/ |
H A D | drm_drv.c | 77 * of the device-driver, different interfaces are registered. 265 * DOC: driver instance overview 267 * A device instance for a drm driver is represented by &struct drm_device. This 269 * bus-specific ->probe() callbacks implemented by the driver. The driver then 284 * any other resources allocated at device initialization and drop the driver's 289 * driver is unbound from the underlying physical struct &device. Best to use 297 * Display driver example 300 * The following example shows a typical structure of a DRM display driver. 389 * .driver 605 drm_dev_init(struct drm_device *dev, const struct drm_driver *driver, struct device *parent) drm_dev_init() argument 713 devm_drm_dev_init(struct device *parent, struct drm_device *dev, const struct drm_driver *driver) devm_drm_dev_init() argument 727 __devm_drm_dev_alloc(struct device *parent, const struct drm_driver *driver, size_t size, size_t offset) __devm_drm_dev_alloc() argument 763 drm_dev_alloc(const struct drm_driver *driver, struct device *parent) drm_dev_alloc() argument 908 const struct drm_driver *driver = dev->driver; drm_dev_register() local [all...] |
H A D | drm_irq.c | 84 if (dev->driver->irq_preinstall) in drm_legacy_irq_install() 85 dev->driver->irq_preinstall(dev); in drm_legacy_irq_install() 91 ret = request_irq(irq, dev->driver->irq_handler, in drm_legacy_irq_install() 92 sh_flags, dev->driver->name, dev); in drm_legacy_irq_install() 100 if (dev->driver->irq_postinstall) in drm_legacy_irq_install() 101 ret = dev->driver->irq_postinstall(dev); in drm_legacy_irq_install() 154 if (dev->driver->irq_uninstall) in drm_legacy_irq_uninstall() 155 dev->driver->irq_uninstall(dev); in drm_legacy_irq_uninstall()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvif/ |
H A D | driver.c | 24 #include <nvif/driver.h> 45 for (i = 0; (client->driver = nvif_driver[i]); i++) { in nvif_driver_init() 46 if (!drv || !strcmp(client->driver->name, drv)) { in nvif_driver_init() 47 ret = client->driver->init(name, device, cfg, dbg, in nvif_driver_init() 51 client->driver->fini(client->object.priv); in nvif_driver_init()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvif/ |
H A D | driver.c | 24 #include <nvif/driver.h> 45 for (i = 0; (client->driver = nvif_driver[i]); i++) { in nvif_driver_init() 46 if (!drv || !strcmp(client->driver->name, drv)) { in nvif_driver_init() 47 ret = client->driver->init(name, device, cfg, dbg, in nvif_driver_init() 51 client->driver->fini(client->object.priv); in nvif_driver_init()
|
/kernel/linux/linux-5.10/drivers/nubus/ |
H A D | bus.c | 15 #define to_nubus_driver(d) container_of(d, struct nubus_driver, driver) 17 static int nubus_bus_match(struct device *dev, struct device_driver *driver) in nubus_bus_match() argument 24 struct nubus_driver *ndrv = to_nubus_driver(dev->driver); in nubus_device_probe() 34 struct nubus_driver *ndrv = to_nubus_driver(dev->driver); in nubus_device_remove() 37 if (dev->driver && ndrv->remove) in nubus_device_remove() 52 ndrv->driver.bus = &nubus_bus_type; in nubus_driver_register() 53 return driver_register(&ndrv->driver); in nubus_driver_register() 59 driver_unregister(&ndrv->driver); in nubus_driver_unregister()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/ |
H A D | drm_irq.c | 89 * Initializes the IRQ related data. Installs the handler, calling the driver 121 if (dev->driver->irq_preinstall) in drm_irq_install() 122 dev->driver->irq_preinstall(dev); in drm_irq_install() 128 ret = request_irq(irq, dev->driver->irq_handler, in drm_irq_install() 129 sh_flags, dev->driver->name, dev); in drm_irq_install() 137 if (dev->driver->irq_postinstall) in drm_irq_install() 138 ret = dev->driver->irq_postinstall(dev); in drm_irq_install() 157 * Calls the driver's &drm_driver.irq_uninstall function and unregisters the IRQ 208 if (dev->driver->irq_uninstall) in drm_irq_uninstall() 209 dev->driver in drm_irq_uninstall() [all...] |
/kernel/linux/linux-5.10/drivers/media/radio/ |
H A D | radio-typhoon.c | 2 /* Typhoon Radio Card driver for radio support 45 MODULE_DESCRIPTION("A driver for the Typhoon radio card (a.k.a. EcoRadio)."); 142 .driver = { 146 .driver = { 165 typhoon_driver.driver.driver.name); in typhoon_init() 167 typhoon_driver.driver.driver.name); in typhoon_init() 170 return isa_register_driver(&typhoon_driver.driver, TYPHOON_MAX); in typhoon_init() 175 isa_unregister_driver(&typhoon_driver.driver); in typhoon_exit() [all...] |
/kernel/linux/linux-6.6/drivers/media/radio/ |
H A D | radio-typhoon.c | 2 /* Typhoon Radio Card driver for radio support 45 MODULE_DESCRIPTION("A driver for the Typhoon radio card (a.k.a. EcoRadio)."); 142 .driver = { 146 .driver = { 165 typhoon_driver.driver.driver.name); in typhoon_init() 167 typhoon_driver.driver.driver.name); in typhoon_init() 170 return isa_register_driver(&typhoon_driver.driver, TYPHOON_MAX); in typhoon_init() 175 isa_unregister_driver(&typhoon_driver.driver); in typhoon_exit() [all...] |
/third_party/toybox/toys/other/ |
H A D | lspci.c | 15 -k Print kernel driver 43 driver[256], *vbig = 0, *dbig = 0, **fields; in do_lspci() local 53 *driver = 0; in do_lspci() 54 if (FLAG(k)) readlinkat0(dirfd, "driver", driver, sizeof(driver)); in do_lspci() 102 goto driver; in do_lspci() 109 driver: in do_lspci() 110 if (*driver) printf(FLAG(m) ? " \"%s\"" : " %s", basename(driver)); in do_lspci() [all...] |
/kernel/linux/linux-5.10/drivers/thunderbolt/ |
H A D | domain.c | 52 struct tb_service_driver *driver; in __tb_service_match() local 60 driver = container_of(drv, struct tb_service_driver, driver); in __tb_service_match() 61 if (!driver->id_table) in __tb_service_match() 64 for (ids = driver->id_table; ids->match_flags != 0; ids++) { in __tb_service_match() 80 struct tb_service_driver *driver; in tb_service_probe() local 83 driver = container_of(dev->driver, struct tb_service_driver, driver); in tb_service_probe() 84 id = __tb_service_match(dev, &driver in tb_service_probe() 92 struct tb_service_driver *driver; tb_service_remove() local 103 struct tb_service_driver *driver; tb_service_shutdown() local [all...] |
/kernel/linux/linux-6.6/drivers/thunderbolt/ |
H A D | domain.c | 50 struct tb_service_driver *driver; in __tb_service_match() local 58 driver = container_of(drv, struct tb_service_driver, driver); in __tb_service_match() 59 if (!driver->id_table) in __tb_service_match() 62 for (ids = driver->id_table; ids->match_flags != 0; ids++) { in __tb_service_match() 78 struct tb_service_driver *driver; in tb_service_probe() local 81 driver = container_of(dev->driver, struct tb_service_driver, driver); in tb_service_probe() 82 id = __tb_service_match(dev, &driver in tb_service_probe() 90 struct tb_service_driver *driver; tb_service_remove() local 99 struct tb_service_driver *driver; tb_service_shutdown() local [all...] |
/kernel/linux/linux-5.10/drivers/net/phy/ |
H A D | mdio_device.c | 144 * and calling the driver to probe the device. 149 struct device_driver *drv = mdiodev->dev.driver; in mdio_probe() 170 struct device_driver *drv = mdiodev->dev.driver; in mdio_remove() 185 struct device_driver *drv = mdiodev->dev.driver; in mdio_shutdown() 201 pr_debug("mdio_driver_register: %s\n", mdiodrv->driver.name); in mdio_driver_register() 203 mdiodrv->driver.bus = &mdio_bus_type; in mdio_driver_register() 204 mdiodrv->driver.probe = mdio_probe; in mdio_driver_register() 205 mdiodrv->driver.remove = mdio_remove; in mdio_driver_register() 206 mdiodrv->driver.shutdown = mdio_shutdown; in mdio_driver_register() 208 retval = driver_register(&mdiodrv->driver); in mdio_driver_register() [all...] |
/kernel/linux/linux-6.6/drivers/net/phy/ |
H A D | mdio_device.c | 146 * and calling the driver to probe the device. 151 struct device_driver *drv = mdiodev->dev.driver; in mdio_probe() 172 struct device_driver *drv = mdiodev->dev.driver; in mdio_remove() 187 struct device_driver *drv = mdiodev->dev.driver; in mdio_shutdown() 203 pr_debug("%s: %s\n", __func__, mdiodrv->driver.name); in mdio_driver_register() 205 mdiodrv->driver.bus = &mdio_bus_type; in mdio_driver_register() 206 mdiodrv->driver.probe = mdio_probe; in mdio_driver_register() 207 mdiodrv->driver.remove = mdio_remove; in mdio_driver_register() 208 mdiodrv->driver.shutdown = mdio_shutdown; in mdio_driver_register() 210 retval = driver_register(&mdiodrv->driver); in mdio_driver_register() [all...] |
/kernel/linux/linux-5.10/drivers/cpufreq/ |
H A D | sparc-us2e-cpufreq.c | 7 * infrastructure in order to make this driver easier to implement. 322 struct cpufreq_driver *driver; in us2e_freq_init() local 325 driver = kzalloc(sizeof(*driver), GFP_KERNEL); in us2e_freq_init() 326 if (!driver) in us2e_freq_init() 334 driver->init = us2e_freq_cpu_init; in us2e_freq_init() 335 driver->verify = cpufreq_generic_frequency_table_verify; in us2e_freq_init() 336 driver->target_index = us2e_freq_target; in us2e_freq_init() 337 driver->get = us2e_freq_get; in us2e_freq_init() 338 driver in us2e_freq_init() [all...] |
/kernel/linux/linux-6.6/drivers/tty/serial/ |
H A D | tegra-tcu.c | 23 struct uart_driver driver; member 205 tcu->console.data = &tcu->driver; in tegra_tcu_probe() 208 /* setup the driver */ in tegra_tcu_probe() 209 tcu->driver.owner = THIS_MODULE; in tegra_tcu_probe() 210 tcu->driver.driver_name = "tegra-tcu"; in tegra_tcu_probe() 211 tcu->driver.dev_name = "ttyTCU"; in tegra_tcu_probe() 213 tcu->driver.cons = &tcu->console; in tegra_tcu_probe() 215 tcu->driver.nr = 1; in tegra_tcu_probe() 217 err = uart_register_driver(&tcu->driver); in tegra_tcu_probe() 219 dev_err(&pdev->dev, "failed to register UART driver in tegra_tcu_probe() [all...] |