Lines Matching refs:handle
74 static int nouveau_optimus_dsm(acpi_handle handle, int func, int arg, uint32_t *result) in nouveau_optimus_dsm() argument
90 obj = acpi_evaluate_dsm_typed(handle, nouveau_op_dsm_muid, 0x00000100, in nouveau_optimus_dsm()
93 acpi_handle_info(handle, "failed to evaluate _DSM\n"); in nouveau_optimus_dsm()
113 static int nouveau_check_optimus_dsm(acpi_handle handle) in nouveau_check_optimus_dsm() argument
121 if (nouveau_optimus_dsm(handle, 0, 0, &result)) in nouveau_check_optimus_dsm()
131 static int nouveau_dsm(acpi_handle handle, int func, int arg) in nouveau_dsm() argument
140 obj = acpi_evaluate_dsm_typed(handle, nouveau_dsm_muid, 0x00000102, in nouveau_dsm()
143 acpi_handle_info(handle, "failed to evaluate _DSM\n"); in nouveau_dsm()
154 static int nouveau_dsm_switch_mux(acpi_handle handle, int mux_id) in nouveau_dsm_switch_mux() argument
158 return nouveau_dsm(handle, NOUVEAU_DSM_LED, mux_id); in nouveau_dsm_switch_mux()
161 static int nouveau_dsm_set_discrete_state(acpi_handle handle, enum vga_switcheroo_state state) in nouveau_dsm_set_discrete_state() argument
168 nouveau_dsm(handle, NOUVEAU_DSM_POWER, arg); in nouveau_dsm_set_discrete_state()
402 acpi_handle handle; in nouveau_acpi_edid() local
415 handle = ACPI_HANDLE(&dev->pdev->dev); in nouveau_acpi_edid()
416 if (!handle) in nouveau_acpi_edid()
419 ret = acpi_bus_get_device(handle, &acpidev); in nouveau_acpi_edid()