/device/soc/hisilicon/hi3751v350/sdk_linux/source/common/drv/himedia/ |
H A D | himedia_base.c | 93 if (dev->driver && dev->driver->suspend) { in himedia_legacy_suspend() 94 ret = dev->driver->suspend(dev, mesg); in himedia_legacy_suspend() 104 pm_basedrv *pdrv = to_himedia_basedrv(dev->driver); in himedia_legacy_suspend_late() 106 if (dev->driver && pdrv->suspend_late) { in himedia_legacy_suspend_late() 117 pm_basedrv *pdrv = to_himedia_basedrv(dev->driver); in himedia_legacy_resume_early() 119 if (dev->driver && pdrv->resume_early) { in himedia_legacy_resume_early() 130 if (dev->driver && dev->driver->resume) { in himedia_legacy_resume() 131 ret = dev->driver in himedia_legacy_resume() [all...] |
/device/soc/rockchip/common/vendor/drivers/gpu/arm/mali400/mali/platform/rk/ |
H A D | rk.c | 448 if (device->driver && device->driver->pm && device->driver->pm->runtime_suspend) { in mali_runtime_suspend() 449 /* Need to notify Mali driver about this event */ in mali_runtime_suspend() 450 ret = device->driver->pm->runtime_suspend(device); in mali_runtime_suspend() 466 if (device->driver && device->driver->pm && device->driver->pm->runtime_resume) { in mali_runtime_resume() 467 /* Need to notify Mali driver about this event */ in mali_runtime_resume() 468 ret = device->driver in mali_runtime_resume() [all...] |
/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/mali/platform/rk/ |
H A D | rk.c | 470 if (device->driver && in mali_runtime_suspend() 471 device->driver->pm && in mali_runtime_suspend() 472 device->driver->pm->runtime_suspend) { in mali_runtime_suspend() 473 /* Need to notify Mali driver about this event */ in mali_runtime_suspend() 474 ret = device->driver->pm->runtime_suspend(device); in mali_runtime_suspend() 491 if (device->driver && in mali_runtime_resume() 492 device->driver->pm && in mali_runtime_resume() 493 device->driver->pm->runtime_resume) { in mali_runtime_resume() 494 /* Need to notify Mali driver about this event */ in mali_runtime_resume() 495 ret = device->driver in mali_runtime_resume() [all...] |
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/osal/linux/himedia/ |
H A D | base.c | 65 struct himedia_driver *pdrv = to_himedia_driver(dev->driver); in himedia_pm_prepare() 77 struct himedia_driver *pdrv = to_himedia_driver(dev->driver); in himedia_pm_complete() 89 struct himedia_driver *pdrv = to_himedia_driver(dev->driver); in himedia_pm_suspend() 101 struct himedia_driver *pdrv = to_himedia_driver(dev->driver); in himedia_pm_resume() 113 struct himedia_driver *pdrv = to_himedia_driver(dev->driver); in himedia_pm_freeze() 125 struct himedia_driver *pdrv = to_himedia_driver(dev->driver); in himedia_pm_thaw() 137 struct himedia_driver *pdrv = to_himedia_driver(dev->driver); in himedia_pm_poweroff() 149 struct himedia_driver *pdrv = to_himedia_driver(dev->driver); in himedia_pm_restore() 160 struct himedia_driver *pdrv = to_himedia_driver(dev->driver); in himedia_pm_suspend_noirq() 172 struct himedia_driver *pdrv = to_himedia_driver(dev->driver); in himedia_pm_resume_noirq() [all...] |
H A D | himedia.h | 64 struct device_driver driver; member 70 container_of((drv), struct himedia_driver, driver) 88 struct himedia_driver *driver; member
|
H A D | himedia.c | 166 /* driver register */ in himedia_register() 177 himedia->driver = pdrv; in himedia_register() 216 /* if found, unregister device & driver */ in himedia_unregister() 220 himedia_driver_unregister(himedia->driver); in himedia_unregister() 222 himedia->driver = NULL; in himedia_unregister()
|
/device/soc/rockchip/common/sdk_linux/drivers/i2c/ |
H A D | i2c-core-base.c | 65 static int i2c_detect(struct i2c_adapter *adapter, struct i2c_driver *driver);
100 struct i2c_driver *driver;
in i2c_device_match() local 109 driver = to_i2c_driver(drv);
in i2c_device_match() 111 if (i2c_match_id(driver->id_table, client)) {
in i2c_device_match() 328 * don't touch the recovery information if the driver is not using
in i2c_gpio_init_generic_recovery() 468 struct i2c_driver *driver;
in i2c_device_probe() local 498 driver = to_i2c_driver(dev->driver);
in i2c_device_probe() 503 if (!driver->id_table && !acpi_driver_match_device(dev, dev->driver) in i2c_device_probe() 568 struct i2c_driver *driver; i2c_device_remove() local 597 struct i2c_driver *driver; i2c_device_shutdown() local 1300 i2c_do_add_adapter(struct i2c_driver *driver, struct i2c_adapter *adap) i2c_do_add_adapter() argument 1589 i2c_do_del_adapter(struct i2c_driver *driver, struct i2c_adapter *adapter) i2c_do_del_adapter() argument 1788 i2c_register_driver(struct module *owner, struct i2c_driver *driver) i2c_register_driver() argument 1832 i2c_del_driver(struct i2c_driver *driver) i2c_del_driver() argument 1880 struct i2c_driver *driver; i2c_cmd() local 2303 i2c_detect_address(struct i2c_client *temp_client, struct i2c_driver *driver) i2c_detect_address() argument 2363 i2c_detect(struct i2c_adapter *adapter, struct i2c_driver *driver) i2c_detect() argument [all...] |
/device/soc/rockchip/common/sdk_linux/include/drm/ |
H A D | drm_mipi_dsi.h | 103 * @dev: driver model device node for this DSI host 175 * @dev: driver model device node for this peripheral 288 * struct mipi_dsi_driver - DSI driver 289 * @driver: device driver model driver 295 struct device_driver driver; member 301 static inline struct mipi_dsi_driver *to_mipi_dsi_driver(struct device_driver *driver) in to_mipi_dsi_driver() argument 303 return container_of(driver, struct mipi_dsi_driver, driver); in to_mipi_dsi_driver() [all...] |
H A D | drm_drv.h | 109 * Denote a legacy driver using shadow attach. Do not use. 155 * struct drm_driver - DRM driver structure 167 * Backward-compatible driver callback to complete initialization steps 168 * after the driver is registered. For this reason, may suffer from 186 * setting up driver-private data structures like buffer allocators, 187 * execution contexts or similar things. Such driver-private resources 193 * in this callback. Doing so would be a driver design bug. 205 * One of the driver callbacks when a new &struct drm_file is closed. 206 * Useful for tearing down driver-private data structures allocated in 212 * resources in this callback. Doing so would be a driver desig [all...] |
/device/soc/rockchip/common/sdk_linux/drivers/gpu/drm/ |
H A D | drm_prime.c | 55 * actual driver interfaces is provided through the &drm_gem_object_funcs.export 291 * &drm_driver.gem_prime_import driver callback. 315 if (dev->driver->gem_prime_import) { in drm_gem_prime_fd_to_handle() 316 obj = dev->driver->gem_prime_import(dev, dma_buf); in drm_gem_prime_fd_to_handle() 350 /* hmm, if driver attached, we are relying on the free-object path in drm_gem_prime_fd_to_handle() 370 if (!dev->driver->prime_fd_to_handle) { in drm_prime_fd_to_handle_ioctl() 374 return dev->driver->prime_fd_to_handle(dev, file_priv, args->fd, &args->handle); in drm_prime_fd_to_handle_ioctl() 389 } else if (dev->driver->gem_prime_export) { in export_and_register_object() 390 dmabuf = dev->driver->gem_prime_export(obj, flags); in export_and_register_object() 423 * &drm_driver.gem_prime_export driver callbac [all...] |
H A D | drm_ioctl.c | 62 * - The internal set_busid kernel functions and driver callbacks are 73 * there's 2 different ways, either by busid, or by device driver name. 85 * 1. Directly call VERSION to get the version and to match against the driver 90 * 2. Match driver name. If it mismatches, proceed to the next device node. 94 * copypasta from drm 1.0 times where a set unique name meant that the driver 231 * Get device/driver capabilities 246 req->value |= dev->driver->prime_fd_to_handle ? DRM_PRIME_CAP_IMPORT : 0; in drm_getcap() 247 req->value |= dev->driver->prime_handle_to_fd ? DRM_PRIME_CAP_EXPORT : 0; in drm_getcap() 264 if (dev->driver->dumb_create) { in drm_getcap() 316 * Set device/driver capabilitie [all...] |
H A D | drm_gem.c | 56 * the graphics memory manager implemented by each device driver. 60 * the driver, and all that the general API provides should be generic -- 63 * the CPU mean we'll likely hook those out to driver-specific calls. However, 254 else if (dev->driver->gem_close_object) in drm_gem_object_release_handle() 255 dev->driver->gem_close_object(obj, file_priv); in drm_gem_object_release_handle() 287 /* Release driver's reference and decrement refcount. */ in drm_gem_handle_delete() 306 * This implements the &drm_driver.dumb_map_offset kms driver callback for 346 * This implements the &drm_driver.dumb_destroy kms driver callback for drivers 410 } else if (dev->driver->gem_open_object) { in drm_gem_handle_create_tail() 411 ret = dev->driver in drm_gem_handle_create_tail() [all...] |
H A D | drm_file.c | 71 * The deprecated ->load callback must be called after the driver is in drm_dev_needs_global_mutex() 73 * sure an open can't proceed until the driver is actually fully set up. in drm_dev_needs_global_mutex() 76 if (dev->driver->load || dev->driver->unload) { in drm_dev_needs_global_mutex() 86 if (dev->driver->lastclose) { in drm_dev_needs_global_mutex() 113 * For the driver-side event interface see drm_event_reserve_init() and 116 * The memory mapping implementation will vary depending on how the driver 141 * The driver's &file_operations must be stored in &drm_driver.fops. 143 * For driver-private IOCTL handling see the more detailed discussion in 196 if (dev->driver in drm_file_alloc() [all...] |
H A D | drm_mipi_dsi.c | 59 /* compare DSI device and driver names */ in mipi_dsi_device_match() 1110 struct mipi_dsi_driver *drv = to_mipi_dsi_driver(dev->driver); in mipi_dsi_drv_probe() 1118 struct mipi_dsi_driver *drv = to_mipi_dsi_driver(dev->driver); in mipi_dsi_drv_remove() 1126 struct mipi_dsi_driver *drv = to_mipi_dsi_driver(dev->driver); in mipi_dsi_drv_shutdown() 1133 * mipi_dsi_driver_register_full() - register a driver for DSI devices 1134 * @drv: DSI driver structure 1141 drv->driver.bus = &mipi_dsi_bus_type; in mipi_dsi_driver_register_full() 1142 drv->driver.owner = owner; in mipi_dsi_driver_register_full() 1145 drv->driver.probe = mipi_dsi_drv_probe; in mipi_dsi_driver_register_full() 1148 drv->driver in mipi_dsi_driver_register_full() [all...] |
H A D | drm_auth.c | 128 if (dev->driver->master_set) { in drm_set_master() 129 dev->driver->master_set(dev, fpriv, new_master); in drm_set_master() 261 if (dev->driver->master_drop) { in drm_drop_master() 262 dev->driver->master_drop(dev, fpriv); in drm_drop_master()
|
/device/board/hisilicon/hispark_taurus/display_drivers/ |
H A D | Makefile | 37 -I$(srctree)/$(KHDF_FRAMEWORK_ROOT_DIR)/model/display/driver \ 38 -I$(srctree)/$(KHDF_FRAMEWORK_ROOT_DIR)/model/display/driver/backlight \ 39 -I$(srctree)/$(KHDF_FRAMEWORK_ROOT_DIR)/model/display/driver/adapter_soc \
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/arbiter/ |
H A D | mali_kbase_arbif.c | 206 if (!pdev->dev.driver || !try_module_get(pdev->dev.driver->owner)) { in kbase_arbif_init() 207 dev_err(kbdev->dev, "arbiter_if driver not available\n"); in kbase_arbif_init() 213 dev_err(kbdev->dev, "arbiter_if driver not ready\n"); in kbase_arbif_init() 214 module_put(pdev->dev.driver->owner); in kbase_arbif_init() 235 module_put(pdev->dev.driver->owner); in kbase_arbif_init() 266 module_put(kbdev->arb.arb_dev->driver->owner); in kbase_arbif_destroy()
|
/device/soc/rockchip/rk3588/kernel/include/linux/usb/ |
H A D | hcd.h | 93 * hcd->driver->flags & HCD_MASK 95 char irq_descr[24]; /* driver + bus # */ 107 const struct hc_driver *driver; /* hw-specific hooks */ member 157 unsigned msix_enabled:1; /* driver has MSI-X enabled? */ 158 unsigned msi_enabled:1; /* driver has MSI enabled? */ 160 * do not manage the PHY state in the HCD core, instead let the driver 234 /* The HC driver's private data is stored at the end of 427 return hcd->driver->flags & HCD_BH; in hcd_giveback_urb_in_bh() 438 return IS_ENABLED(CONFIG_HAS_DMA) && (hcd->driver->flags & HCD_DMA); in hcd_uses_dma() 467 struct usb_hcd *__usb_create_hcd(const struct hc_driver *driver, [all...] |
/device/soc/rockchip/common/sdk_linux/drivers/hid/ |
H A D | hid-core.c | 42 #define DRIVER_DESC "HID core driver"
88 MODULE_PARM_DESC(ignore_special_drivers, "Ignore any special drivers and handle all devices by generic driver");
866 * Sets device groups and other properties that determine what driver
935 * Allocate the device report as read by the bus driver. This function should
1161 * hid_open_report - open a driver-specific device report
1200 if (device->driver->report_fixup) {
in hid_open_report() 1201 start = device->driver->report_fixup(device, buf, &size);
in hid_open_report() 1426 * hid_match_report - check if driver's raw_event should be called
1431 * compare hid->driver->report_table->report_type to report->type
1435 const struct hid_report_id *id = hid->driver in hid_match_report() [all...] |
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/linuxkpi/include/linux/ |
H A D | platform_device.h | 66 * Define the structure of the parameters used for platform driver creation.
74 struct device_driver driver;
member 87 * <li>The platform bus system is a soft bus that is used to deal the host device and driver.</li>
93 * @retval #LOS_ERRNO_DRIVER_INPUT_INVALID Invalid input.drv and drv.driver->name can not be NULL.
116 * @retval #LOS_ERRNO_DRIVER_INPUT_INVALID Invalid input.drv and drv.driver->name can not be NULL.
177 #define to_platform_driver(drv) (container_of((drv), struct platform_driver, driver))
|
/device/soc/hisilicon/hi3751v350/sdk_linux/source/common/drv/include/ |
H A D | himedia.h | 70 struct device_driver driver; member 73 #define to_himedia_basedrv(drv) container_of((drv), pm_basedrv, driver)
|
/device/soc/rockchip/common/sdk_linux/include/linux/ |
H A D | i2c.h | 199 * struct i2c_driver - represent an I2C device driver 207 * @driver: Device driver model driver 208 * @id_table: List of I2C devices supported by this driver 213 * The driver.owner field should be set to the module owner of this driver. 214 * The driver.name field should be set to the name of this driver. 222 * If @detect is missing, the driver wil 262 struct device_driver driver; global() member [all...] |
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/oal/ |
H A D | oal_sdio_if.h | 136 * SDIO function device driver 143 static inline hi_s32 sdio_register_driver(struct sdio_driver *driver) in sdio_register_driver() argument 145 hi_unref_param(driver); in sdio_register_driver() 219 static inline hi_s32 sdio_register_driver(struct sdio_driver *driver) in sdio_register_driver() argument
|
/device/soc/rockchip/common/sdk_linux/include/linux/usb/ |
H A D | typec_altmode.h | 22 * @ops: Operations vector from the driver 136 * struct typec_altmode_driver - USB Type-C alternate mode device driver 140 * @driver: Device driver model driver 149 struct device_driver driver; member 152 #define to_altmode_driver(d) container_of(d, struct typec_altmode_driver, driver) 156 * device driver 166 * device driver
|
H A D | gadget.h | 6 * driver, except for the hardware-specific bus glue. One USB host can 66 * @list: For use by the gadget driver. 73 * or when the driver disabled the endpoint. 83 * hardware's driver can add extra per-request data to the memory it returns, 199 * endpoint. It's set once by UDC driver when endpoint is initialized, and 205 * @driver_data:for use by the gadget driver. 214 * the bus controller driver lists all the general purpose endpoints in 216 * and is accessed only in response to a driver setup() callback. 348 * driver setup() requests 368 * gadget driver mus 760 struct device_driver driver; global() member [all...] |