/kernel/linux/linux-6.6/drivers/base/ |
H A D | core.c | 80 link->supplier = sup; in __fwnode_link_add() 113 link->consumer, link->supplier); in __fwnode_link_del() 128 link->consumer, link->supplier); in __fwnode_link_cycle() 133 * fwnode_links_purge_suppliers - Delete all supplier links of fwnode_handle. 134 * @fwnode: fwnode whose supplier links need to be deleted 136 * Deletes all supplier links connecting directly to @fwnode. 213 * @new_sup: fwnode of new supplier 220 * Otherwise, move its consumers to the new supplier @new_sup. 335 struct device *supplier) in device_link_init_status() 337 switch (supplier in device_link_init_status() 333 device_link_init_status(struct device_link *link, struct device *consumer, struct device *supplier) device_link_init_status() argument 713 device_link_add(struct device *consumer, struct device *supplier, u32 flags) device_link_add() argument 961 device_link_remove(void *consumer, struct device *supplier) device_link_remove() argument 1347 struct device *supplier; device_links_driver_bound() local [all...] |
/kernel/linux/linux-5.10/drivers/base/ |
H A D | core.c | 179 struct device *supplier) in device_link_init_status() 181 switch (supplier->links.status) { in device_link_init_status() 186 * A consumer driver can create a link to a supplier in device_link_init_status() 188 * knows that the supplier is already functional (for in device_link_init_status() 190 * supplier). in device_link_init_status() 289 output = "supplier unbinding"; in status_show() 307 output = "supplier unbind"; in auto_remove_on_show() 353 pm_request_idle(link->supplier); in device_link_release_fn() 356 put_device(link->supplier); in device_link_release_fn() 368 * supplier device in devlink_dev_release() 177 device_link_init_status(struct device_link *link, struct device *consumer, struct device *supplier) device_link_init_status() argument 548 device_link_add(struct device *consumer, struct device *supplier, u32 flags) device_link_add() argument 862 device_link_remove(void *consumer, struct device *supplier) device_link_remove() argument 1160 struct device *supplier; device_links_driver_bound() local [all...] |
/kernel/linux/linux-5.10/drivers/base/power/ |
H A D | runtime.c | 297 retval = pm_runtime_get_sync(link->supplier); in rpm_get_suppliers() 300 pm_runtime_put_noidle(link->supplier); in rpm_get_suppliers() 309 * pm_runtime_release_supplier - Drop references to device link's supplier. 312 * Drop all runtime PM references associated with @link to its supplier device. 316 struct device *supplier = link->supplier; in pm_runtime_release_supplier() local 325 atomic_read(&supplier->power.usage_count) > 0) in pm_runtime_release_supplier() 326 pm_runtime_put_noidle(supplier); in pm_runtime_release_supplier() 337 pm_request_idle(link->supplier); in __rpm_put_suppliers() 353 pm_request_idle(link->supplier); in rpm_suspend_suppliers() [all...] |
H A D | main.c | 268 * If the supplier goes away right after we've checked the link to it, in dpm_wait_for_suppliers() 276 dpm_wait(link->supplier, async); in dpm_wait_for_suppliers() 1179 link->supplier->power.must_resume = true; in dpm_superior_set_must_resume() 1587 spin_lock_irq(&link->supplier->power.lock); in dpm_clear_superiors_direct_complete() 1588 link->supplier->power.direct_complete = false; in dpm_clear_superiors_direct_complete() 1589 spin_unlock_irq(&link->supplier->power.lock); in dpm_clear_superiors_direct_complete()
|
/kernel/linux/linux-6.6/drivers/base/power/ |
H A D | runtime.c | 294 retval = pm_runtime_get_sync(link->supplier); in rpm_get_suppliers() 297 pm_runtime_put_noidle(link->supplier); in rpm_get_suppliers() 306 * pm_runtime_release_supplier - Drop references to device link's supplier. 309 * Drop all runtime PM references associated with @link to its supplier device. 313 struct device *supplier = link->supplier; in pm_runtime_release_supplier() local 322 atomic_read(&supplier->power.usage_count) > 0) in pm_runtime_release_supplier() 323 pm_runtime_put_noidle(supplier); in pm_runtime_release_supplier() 334 pm_request_idle(link->supplier); in __rpm_put_suppliers() 350 pm_request_idle(link->supplier); in rpm_suspend_suppliers() [all...] |
H A D | main.c | 264 * If the supplier goes away right after we've checked the link to it, in dpm_wait_for_suppliers() 272 dpm_wait(link->supplier, async); in dpm_wait_for_suppliers() 1173 link->supplier->power.must_resume = true; in dpm_superior_set_must_resume() 1580 spin_lock_irq(&link->supplier->power.lock); in dpm_clear_superiors_direct_complete() 1581 link->supplier->power.direct_complete = false; in dpm_clear_superiors_direct_complete() 1582 spin_unlock_irq(&link->supplier->power.lock); in dpm_clear_superiors_direct_complete()
|
/kernel/linux/linux-6.6/include/acpi/ |
H A D | acpi_bus.h | 289 acpi_handle supplier; member 767 void acpi_dev_clear_dependencies(struct acpi_device *supplier); 769 struct acpi_device *acpi_dev_get_next_consumer_dev(struct acpi_device *supplier, 774 * given supplier 775 * @supplier: Pointer to the supplier's ACPI device 778 #define for_each_acpi_consumer_dev(supplier, consumer) \ 779 for (consumer = acpi_dev_get_next_consumer_dev(supplier, NULL); \ 781 consumer = acpi_dev_get_next_consumer_dev(supplier, consumer))
|
/kernel/linux/linux-5.10/scripts/ |
H A D | dev-needs.sh | 119 SUPPLIER_LINKS=$(ls -1d $CON/supplier:* 2>/dev/null) 131 SUPPLIER=$(realpath $SL/supplier) 268 # considered a "supplier" as a device can't probe without its parent.
|
/kernel/linux/linux-6.6/scripts/ |
H A D | dev-needs.sh | 119 SUPPLIER_LINKS=$(ls -1d $CON/supplier:* 2>/dev/null) 131 SUPPLIER=$(realpath $SL/supplier) 268 # considered a "supplier" as a device can't probe without its parent.
|
/kernel/linux/linux-5.10/drivers/power/supply/ |
H A D | power_supply_core.c | 37 static bool __power_supply_is_supplied_by(struct power_supply *supplier, in __power_supply_is_supplied_by() argument 42 if (!supply->supplied_from && !supplier->supplied_to) in __power_supply_is_supplied_by() 47 if (!supplier->desc->name) in __power_supply_is_supplied_by() 50 if (!strcmp(supplier->desc->name, supply->supplied_from[i])) in __power_supply_is_supplied_by() 55 for (i = 0; i < supplier->num_supplicants; i++) in __power_supply_is_supplied_by() 56 if (!strcmp(supplier->supplied_to[i], supply->desc->name)) in __power_supply_is_supplied_by()
|
/kernel/linux/linux-6.6/drivers/power/supply/ |
H A D | power_supply_core.c | 39 static bool __power_supply_is_supplied_by(struct power_supply *supplier, in __power_supply_is_supplied_by() argument 44 if (!supply->supplied_from && !supplier->supplied_to) in __power_supply_is_supplied_by() 49 if (!supplier->desc->name) in __power_supply_is_supplied_by() 52 if (!strcmp(supplier->desc->name, supply->supplied_from[i])) in __power_supply_is_supplied_by() 57 for (i = 0; i < supplier->num_supplicants; i++) in __power_supply_is_supplied_by() 58 if (!strcmp(supplier->supplied_to[i], supply->desc->name)) in __power_supply_is_supplied_by()
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | fwnode.h | 58 struct fwnode_handle *supplier; member
|
H A D | device.h | 441 * @DL_STATE_DORMANT: None of the supplier/consumer drivers is present. 442 * @DL_STATE_AVAILABLE: The supplier driver is present, but the consumer is not. 443 * @DL_STATE_CONSUMER_PROBE: The consumer is probing (supplier driver present). 444 * @DL_STATE_ACTIVE: Both the supplier and consumer drivers are present. 445 * @DL_STATE_SUPPLIER_UNBIND: The supplier driver is unbinding. 462 * RPM_ACTIVE: Run pm_runtime_get_sync() on the supplier during link creation. 463 * AUTOREMOVE_SUPPLIER: Remove the link automatically on supplier driver unbind. 464 * AUTOPROBE_CONSUMER: Probe consumer driver automatically after supplier binds. 465 * MANAGED: The core tracks presence of supplier/consumer drivers (internal). 512 * @suppliers: List of links to supplier device 825 struct device *supplier; global() member [all...] |
/kernel/linux/linux-5.10/include/linux/ |
H A D | device.h | 301 * @DL_STATE_DORMANT: None of the supplier/consumer drivers is present. 302 * @DL_STATE_AVAILABLE: The supplier driver is present, but the consumer is not. 303 * @DL_STATE_CONSUMER_PROBE: The consumer is probing (supplier driver present). 304 * @DL_STATE_ACTIVE: Both the supplier and consumer drivers are present. 305 * @DL_STATE_SUPPLIER_UNBIND: The supplier driver is unbinding. 322 * RPM_ACTIVE: Run pm_runtime_get_sync() on the supplier during link creation. 323 * AUTOREMOVE_SUPPLIER: Remove the link automatically on supplier driver unbind. 324 * AUTOPROBE_CONSUMER: Probe consumer driver automatically after supplier binds. 325 * MANAGED: The core tracks presence of supplier/consumer drivers (internal). 369 * @suppliers: List of links to supplier device 599 struct device *supplier; global() member [all...] |
/kernel/linux/linux-6.6/drivers/acpi/ |
H A D | scan.c | 2027 dep->supplier = dep_devices.handles[i]; in acpi_scan_check_dep() 2333 * @handle: The ACPI handle of the supplier device 2352 if (dep->supplier == handle) { in acpi_walk_dep_device_list() 2365 * @supplier: Pointer to the supplier &struct acpi_device 2369 void acpi_dev_clear_dependencies(struct acpi_device *supplier) in acpi_dev_clear_dependencies() argument 2371 acpi_walk_dep_device_list(supplier->handle, acpi_scan_clear_dep, NULL); in acpi_dev_clear_dependencies() 2393 * acpi_dev_get_next_consumer_dev - Return the next adev dependent on @supplier 2394 * @supplier: Pointer to the dependee device 2398 * @supplier vi 2403 acpi_dev_get_next_consumer_dev(struct acpi_device *supplier, struct acpi_device *start) acpi_dev_get_next_consumer_dev() argument [all...] |
/kernel/linux/linux-6.6/drivers/platform/surface/ |
H A D | surface_acpi_notify.c | 742 acpi_handle supplier = ACPI_HANDLE(&pdev->dev); in is_san_consumer() local 756 if (dep_devices.handles[i] == supplier) in is_san_consumer()
|
/kernel/linux/linux-6.6/drivers/cpufreq/ |
H A D | mediatek-cpufreq.c | 192 if (sup_link->supplier->links.status != DL_DEV_DRIVER_BOUND) in is_ccifreq_ready()
|
/kernel/linux/linux-6.6/drivers/ufs/core/ |
H A D | ufshcd.c | 4959 * Device wlun is the supplier & rest of the luns are consumers. in ufshcd_setup_links() 5143 struct device *supplier = NULL; in ufshcd_slave_destroy() local 5148 supplier = &hba->ufs_device_wlun->sdev_gendev; in ufshcd_slave_destroy() 5149 get_device(supplier); in ufshcd_slave_destroy() 5153 if (supplier) { in ufshcd_slave_destroy() 5159 device_link_remove(&sdev->sdev_gendev, supplier); in ufshcd_slave_destroy() 5160 put_device(supplier); in ufshcd_slave_destroy() 6310 * resumed due to supplier runtime resume failure. This is to unblock in ufshcd_recover_pm_error()
|
/kernel/linux/linux-6.6/drivers/firmware/arm_scmi/ |
H A D | driver.c | 2189 struct device *supplier) in scmi_device_link_add() 2193 link = device_link_add(consumer, supplier, DL_FLAG_AUTOREMOVE_CONSUMER); in scmi_device_link_add() 2188 scmi_device_link_add(struct device *consumer, struct device *supplier) scmi_device_link_add() argument
|
/kernel/linux/linux-5.10/drivers/pci/ |
H A D | quirks.c | 5482 * dependencies of one function (consumer) on another (supplier). For the 5483 * consumer to work in D0, the supplier must also be in D0. Create a 5484 * device link from the consumer to the supplier to enforce this 5486 * it from permanently keeping the supplier awake. 5489 unsigned int supplier, unsigned int class, in pci_create_device_link() 5499 PCI_DEVFN(PCI_SLOT(pdev->devfn), supplier)); in pci_create_device_link() 5488 pci_create_device_link(struct pci_dev *pdev, unsigned int consumer, unsigned int supplier, unsigned int class, unsigned int class_shift) pci_create_device_link() argument
|
/kernel/linux/linux-6.6/drivers/pci/ |
H A D | quirks.c | 5609 * dependencies of one function (consumer) on another (supplier). For the 5610 * consumer to work in D0, the supplier must also be in D0. Create a 5611 * device link from the consumer to the supplier to enforce this 5613 * it from permanently keeping the supplier awake. 5616 unsigned int supplier, unsigned int class, in pci_create_device_link() 5626 PCI_DEVFN(PCI_SLOT(pdev->devfn), supplier)); in pci_create_device_link() 5615 pci_create_device_link(struct pci_dev *pdev, unsigned int consumer, unsigned int supplier, unsigned int class, unsigned int class_shift) pci_create_device_link() argument
|
/kernel/linux/linux-6.6/drivers/soc/mediatek/ |
H A D | mtk-svs.c | 2038 if (sup_link->supplier->links.status != DL_DEV_DRIVER_BOUND) in svs_add_device_link()
|