/linux-master/drivers/base/ |
H A D | core.c | 82 link->supplier = sup; 116 link->consumer, link->supplier); 131 link->consumer, link->supplier); 136 * fwnode_links_purge_suppliers - Delete all supplier links of fwnode_handle. 137 * @fwnode: fwnode whose supplier links need to be deleted 139 * Deletes all supplier links connecting directly to @fwnode. 216 * @new_sup: fwnode of new supplier 223 * Otherwise, move its consumers to the new supplier @new_sup. 338 struct device *supplier) 340 switch (supplier 336 device_link_init_status(struct device_link *link, struct device *consumer, struct device *supplier) argument 730 device_link_add(struct device *consumer, struct device *supplier, u32 flags) argument 978 device_link_remove(void *consumer, struct device *supplier) argument 1365 struct device *supplier; local [all...] |
/linux-master/drivers/base/power/ |
H A D | runtime.c | 296 retval = pm_runtime_get_sync(link->supplier); 299 pm_runtime_put_noidle(link->supplier); 308 * pm_runtime_release_supplier - Drop references to device link's supplier. 311 * Drop all runtime PM references associated with @link to its supplier device. 315 struct device *supplier = link->supplier; local 324 atomic_read(&supplier->power.usage_count) > 0) 325 pm_runtime_put_noidle(supplier); 336 pm_request_idle(link->supplier); 352 pm_request_idle(link->supplier); [all...] |
H A D | main.c | 263 * If the supplier goes away right after we've checked the link to it, 271 dpm_wait(link->supplier, async); 1189 link->supplier->power.must_resume = true; 1569 spin_lock_irq(&link->supplier->power.lock); 1570 link->supplier->power.direct_complete = false; 1571 spin_unlock_irq(&link->supplier->power.lock);
|
/linux-master/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.
|
/linux-master/include/linux/ |
H A D | fwnode.h | 68 struct fwnode_handle *supplier; member in struct:fwnode_link
|
H A D | device.h | 440 * @DL_STATE_DORMANT: None of the supplier/consumer drivers is present. 441 * @DL_STATE_AVAILABLE: The supplier driver is present, but the consumer is not. 442 * @DL_STATE_CONSUMER_PROBE: The consumer is probing (supplier driver present). 443 * @DL_STATE_ACTIVE: Both the supplier and consumer drivers are present. 444 * @DL_STATE_SUPPLIER_UNBIND: The supplier driver is unbinding. 461 * RPM_ACTIVE: Run pm_runtime_get_sync() on the supplier during link creation. 462 * AUTOREMOVE_SUPPLIER: Remove the link automatically on supplier driver unbind. 463 * AUTOPROBE_CONSUMER: Probe consumer driver automatically after supplier binds. 464 * MANAGED: The core tracks presence of supplier/consumer drivers (internal). 511 * @suppliers: List of links to supplier device 823 struct device *supplier; member in struct:device_link [all...] |
/linux-master/include/acpi/ |
H A D | acpi_bus.h | 291 acpi_handle supplier; member in struct:acpi_dep_data 928 void acpi_dev_clear_dependencies(struct acpi_device *supplier); 930 struct acpi_device *acpi_dev_get_next_consumer_dev(struct acpi_device *supplier, 935 * given supplier 936 * @supplier: Pointer to the supplier's ACPI device 939 #define for_each_acpi_consumer_dev(supplier, consumer) \ 940 for (consumer = acpi_dev_get_next_consumer_dev(supplier, NULL); \ 942 consumer = acpi_dev_get_next_consumer_dev(supplier, consumer))
|
/linux-master/drivers/power/supply/ |
H A D | power_supply_core.c | 42 static bool __power_supply_is_supplied_by(struct power_supply *supplier, argument 47 if (!supply->supplied_from && !supplier->supplied_to) 52 if (!supplier->desc->name) 55 if (!strcmp(supplier->desc->name, supply->supplied_from[i])) 60 for (i = 0; i < supplier->num_supplicants; i++) 61 if (!strcmp(supplier->supplied_to[i], supply->desc->name))
|
/linux-master/drivers/acpi/ |
H A D | scan.c | 2076 dep->supplier = dep_devices.handles[i]; 2405 * @handle: The ACPI handle of the supplier device 2424 if (dep->supplier == handle) { 2437 * @supplier: Pointer to the supplier &struct acpi_device 2441 void acpi_dev_clear_dependencies(struct acpi_device *supplier) argument 2443 acpi_walk_dep_device_list(supplier->handle, acpi_scan_clear_dep, NULL); 2465 * acpi_dev_get_next_consumer_dev - Return the next adev dependent on @supplier 2466 * @supplier: Pointer to the dependee device 2470 * @supplier vi 2475 acpi_dev_get_next_consumer_dev(struct acpi_device *supplier, struct acpi_device *start) argument [all...] |
/linux-master/drivers/cpufreq/ |
H A D | mediatek-cpufreq.c | 192 if (sup_link->supplier->links.status != DL_DEV_DRIVER_BOUND)
|
/linux-master/drivers/firmware/arm_scmi/ |
H A D | driver.c | 2295 struct device *supplier) 2299 link = device_link_add(consumer, supplier, DL_FLAG_AUTOREMOVE_CONSUMER); 2294 scmi_device_link_add(struct device *consumer, struct device *supplier) argument
|
/linux-master/drivers/ufs/core/ |
H A D | ufshcd.c | 5106 * Device wlun is the supplier & rest of the luns are consumers. 5292 struct device *supplier = NULL; local 5297 supplier = &hba->ufs_device_wlun->sdev_gendev; 5298 get_device(supplier); 5302 if (supplier) { 5308 device_link_remove(&sdev->sdev_gendev, supplier); 5309 put_device(supplier); 6455 * resumed due to supplier runtime resume failure. This is to unblock
|
/linux-master/drivers/soc/mediatek/ |
H A D | mtk-svs.c | 2164 if (sup_link->supplier->links.status != DL_DEV_DRIVER_BOUND)
|
/linux-master/drivers/pci/ |
H A D | quirks.c | 5616 * dependencies of one function (consumer) on another (supplier). For the 5617 * consumer to work in D0, the supplier must also be in D0. Create a 5618 * device link from the consumer to the supplier to enforce this 5620 * it from permanently keeping the supplier awake. 5623 unsigned int supplier, unsigned int class, 5633 PCI_DEVFN(PCI_SLOT(pdev->devfn), supplier)); 5622 pci_create_device_link(struct pci_dev *pdev, unsigned int consumer, unsigned int supplier, unsigned int class, unsigned int class_shift) argument
|