Lines Matching +full:dynamic +full:- +full:power +full:- +full:switching
1 // SPDX-License-Identifier: MIT
5 #include <linux/mxm-wmi.h>
93 if (obj->buffer.length == 4) { in nouveau_optimus_dsm()
94 *result |= obj->buffer.pointer[0]; in nouveau_optimus_dsm()
95 *result |= (obj->buffer.pointer[1] << 8); in nouveau_optimus_dsm()
96 *result |= (obj->buffer.pointer[2] << 16); in nouveau_optimus_dsm()
97 *result |= (obj->buffer.pointer[3] << 24); in nouveau_optimus_dsm()
123 * If the n-th bit is enabled, function n is supported in nouveau_dsm_get_optimus_functions()
145 if (obj->integer.value == 0x80000002) in nouveau_dsm()
146 ret = -ENODEV; in nouveau_dsm()
197 /* easy option one - intel vendor ID means Integrated */ in nouveau_dsm_get_client_id()
198 if (pdev->vendor == PCI_VENDOR_ID_INTEL) in nouveau_dsm_get_client_id()
201 /* is this device on Bus 0? - this may need improving */ in nouveau_dsm_get_client_id()
202 if (pdev->bus->number == 0) in nouveau_dsm_get_client_id()
223 if (pdev->vendor != PCI_VENDOR_ID_NVIDIA) in nouveau_dsm_pci_probe()
229 if (parent_pdev->bridge_d3) in nouveau_dsm_pci_probe()
235 dhandle = ACPI_HANDLE(&pdev->dev); in nouveau_dsm_pci_probe()
259 dev_info(&pdev->dev, "optimus capabilities: %s, status %s%s\n", in nouveau_dsm_pci_probe()
261 (result & OPTIMUS_DYNAMIC_PWR_CAP) ? "dynamic power, " : "", in nouveau_dsm_pci_probe()
318 pr_info("VGA switcheroo: detected DSM switching method %s handle\n", in nouveau_dsm_detect()
373 switch (connector->connector_type) { in nouveau_acpi_edid()
382 acpidev = ACPI_COMPANION(dev->dev); in nouveau_acpi_edid()
386 ret = acpi_video_get_edid(acpidev, type, -1, &edid); in nouveau_acpi_edid()