Lines Matching refs:adev
51 static inline acpi_handle acpi_device_handle(struct acpi_device *adev) in acpi_device_handle() argument
53 return adev ? adev->handle : NULL; in acpi_device_handle()
57 #define ACPI_COMPANION_SET(dev, adev) set_primary_fwnode(dev, (adev) ? \ argument
58 acpi_fwnode_handle(adev) : NULL)
72 static inline const char *acpi_dev_name(struct acpi_device *adev) in acpi_dev_name() argument
74 return dev_name(&adev->dev); in acpi_dev_name()
316 int acpi_dev_get_resources(struct acpi_device *adev, struct list_head *list,
467 #define ACPI_COMPANION_SET(dev, adev) do { } while (0) argument
482 static inline struct fwnode_handle *acpi_fwnode_handle(struct acpi_device *adev) in acpi_fwnode_handle() argument
492 static inline const char *acpi_dev_name(struct acpi_device *adev) in acpi_dev_name() argument
718 int acpi_dev_add_driver_gpios(struct acpi_device *adev,
721 static inline void acpi_dev_remove_driver_gpios(struct acpi_device *adev) in acpi_dev_remove_driver_gpios() argument
723 if (adev) in acpi_dev_remove_driver_gpios()
724 adev->driver_gpios = NULL; in acpi_dev_remove_driver_gpios()
727 static inline int acpi_dev_add_driver_gpios(struct acpi_device *adev, in acpi_dev_add_driver_gpios() argument
732 static inline void acpi_dev_remove_driver_gpios(struct acpi_device *adev) {} in acpi_dev_remove_driver_gpios() argument
739 struct acpi_device *adev; member
745 int acpi_dev_get_property(struct acpi_device *adev, const char *name,
747 int acpi_dev_get_property_array(struct acpi_device *adev, const char *name,
750 int acpi_dev_get_property_reference(struct acpi_device *adev,
754 int acpi_dev_prop_get(struct acpi_device *adev, const char *propname,
756 int acpi_dev_prop_read_single(struct acpi_device *adev, const char *propname,
758 int acpi_dev_prop_read(struct acpi_device *adev, const char *propname,
764 static inline int acpi_dev_get_property(struct acpi_device *adev, in acpi_dev_get_property() argument
770 static inline int acpi_dev_get_property_array(struct acpi_device *adev, in acpi_dev_get_property_array() argument
777 static inline int acpi_dev_get_property_reference(struct acpi_device *adev, in acpi_dev_get_property_reference() argument
784 static inline int acpi_dev_prop_get(struct acpi_device *adev, in acpi_dev_prop_get() argument
791 static inline int acpi_dev_prop_read_single(struct acpi_device *adev, in acpi_dev_prop_read_single() argument
799 static inline int acpi_dev_prop_read(struct acpi_device *adev, in acpi_dev_prop_read() argument