Lines Matching refs:device
39 /* For automatically allocated device IDs */
42 struct device platform_bus = {
48 * platform_get_resource - get a resource for a device
49 * @dev: platform device
88 * platform device and get resource
90 * @pdev: platform device to use both for memory resource lookup as well as
113 * device
115 * @pdev: platform device to use both for memory resource lookup as well as
131 * a platform device, retrieve the
134 * @pdev: platform device to use both for memory resource lookup as well as
154 * platform_get_irq_optional - get an optional IRQ for a device
155 * @dev: platform device
158 * Gets an IRQ for a platform device. Device drivers should check the return
220 * resources. While a device could have both Interrupt and GpioInt
222 * the device will only expose one IRQ, and this fallback
243 * platform_get_irq - get an IRQ for a device
244 * @dev: platform device
247 * Gets an IRQ for a platform device and prints an error message if finding the
273 * platform_irq_count - Count the number of IRQs a platform device uses
274 * @dev: platform device
276 * Return: Number of IRQs a platform device uses or EPROBE_DEFER
306 static void devm_platform_get_irqs_affinity_release(struct device *dev,
322 * device using an interrupt affinity descriptor
323 * @dev: platform device pointer
329 * Gets a set of IRQs for a platform device, and updates IRQ afffinty according
414 * platform_get_resource_byname - get a resource for a device by name
415 * @dev: platform device
459 * platform_get_irq_byname - get an IRQ for a device by name
460 * @dev: platform device
480 * platform_get_irq_byname_optional - get an optional IRQ for a device by name
481 * @dev: platform device
542 * platform_device_put - destroy a platform device
543 * @pdev: platform device to free
545 * Free all memory associated with a platform device. This function must
555 static void platform_device_release(struct device *dev)
569 * platform_device_alloc - create a platform device
570 * @name: base name of the device we're adding
573 * Create a platform device object which can have other objects attached
595 * platform_device_add_resources - add resources to a platform device
596 * @pdev: platform device allocated by platform_device_alloc to add resources to
597 * @res: set of resources that needs to be allocated for the device
600 * Add a copy of the resources to the platform device. The memory
601 * associated with the resources will be freed when the platform device is
623 * platform_device_add_data - add platform-specific data to a platform device
624 * @pdev: platform device allocated by platform_device_alloc to add resources to
625 * @data: platform specific data for this platform device
628 * Add a copy of platform specific data to the platform device's
630 * will be freed when the platform device is released.
650 * platform_device_add - add a platform device to device hierarchy
651 * @pdev: platform device we're adding
678 * Automatically allocated device ID. We mark it as such so
714 pr_debug("Registering platform device '%s'. Parent at %s\n",
739 * platform_device_del - remove a platform-level device
740 * @pdev: platform device we're removing
743 * resources owned by the device (@dev->resource). This function must
768 * platform_device_register - add a platform-level device
769 * @pdev: platform device we're adding
784 * platform_device_unregister - unregister a platform-level device
785 * @pdev: platform device we're unregistering
799 * platform_device_register_full - add a platform-level device with
802 * @pdevinfo: data used to create device
886 static int is_bound_to_driver(struct device *dev, void *driver)
894 * __platform_driver_probe - register driver for non-hotpluggable device
899 * Use this instead of platform_driver_register() when you know the device
902 * has bound to the device.
910 * Returns zero if the driver registered and bound to a device, else returns
950 * If not, return an error as the device should have done so by now.
962 * __platform_create_bundle - register driver and create corresponding device
965 * @res: set of resources that needs to be allocated for the device
967 * @data: platform specific data for this platform device
972 * register a single platform device and corresponding platform driver.
1095 static int platform_legacy_suspend(struct device *dev, pm_message_t mesg)
1107 static int platform_legacy_resume(struct device *dev)
1123 int platform_pm_suspend(struct device *dev)
1141 int platform_pm_resume(struct device *dev)
1163 int platform_pm_freeze(struct device *dev)
1181 int platform_pm_thaw(struct device *dev)
1199 int platform_pm_poweroff(struct device *dev)
1217 int platform_pm_restore(struct device *dev)
1243 static ssize_t modalias_show(struct device *dev,
1261 static ssize_t numa_node_show(struct device *dev,
1268 static ssize_t driver_override_show(struct device *dev,
1281 static ssize_t driver_override_store(struct device *dev,
1306 struct device *dev = container_of(kobj, typeof(*dev), kobj);
1323 * platform_match - bind platform device to platform driver.
1324 * @dev: device.
1327 * Platform device IDs are assumed to be encoded like this:
1329 * device, like "pci" or "floppy", and <instance> is the enumerated
1330 * instance of the device, like '0' or '42'. Driver IDs are simply
1335 static int platform_match(struct device *dev, struct device_driver *drv)
1360 static int platform_uevent(const struct device *dev, struct kobj_uevent_env *env)
1379 static int platform_probe(struct device *_dev)
1418 static void platform_remove(struct device *_dev)
1434 static void platform_shutdown(struct device *_dev)
1447 static int platform_dma_configure(struct device *dev)
1469 static void platform_dma_cleanup(struct device *dev)
1496 static inline int __platform_match(struct device *dev, const void *drv)
1502 * platform_find_device_by_driver - Find a platform device with a given
1504 * @start: The device to start the search from.
1505 * @drv: The device driver to look for.
1507 struct device *platform_find_device_by_driver(struct device *start,