Lines Matching refs:handle
71 static int nouveau_optimus_dsm(acpi_handle handle, int func, int arg, uint32_t *result)
87 obj = acpi_evaluate_dsm_typed(handle, &nouveau_op_dsm_muid, 0x00000100,
90 acpi_handle_info(handle, "failed to evaluate _DSM\n");
110 static int nouveau_dsm_get_optimus_functions(acpi_handle handle)
118 if (nouveau_optimus_dsm(handle, 0, 0, &result))
130 static int nouveau_dsm(acpi_handle handle, int func, int arg)
139 obj = acpi_evaluate_dsm_typed(handle, &nouveau_dsm_muid, 0x00000102,
142 acpi_handle_info(handle, "failed to evaluate _DSM\n");
153 static int nouveau_dsm_switch_mux(acpi_handle handle, int mux_id)
157 return nouveau_dsm(handle, NOUVEAU_DSM_LED, mux_id);
160 static int nouveau_dsm_set_discrete_state(acpi_handle handle, enum vga_switcheroo_state state)
167 nouveau_dsm(handle, NOUVEAU_DSM_POWER, arg);
303 pr_info("VGA switcheroo: detected Optimus DSM method %s handle\n",
315 pr_info("VGA switcheroo: detected DSM switching method %s handle\n",