Lines Matching defs:result
33 /* result of the optimus caps function */
71 static int nouveau_optimus_dsm(acpi_handle handle, int func, int arg, uint32_t *result)
86 *result = 0;
94 *result |= obj->buffer.pointer[0];
95 *result |= (obj->buffer.pointer[1] << 8);
96 *result |= (obj->buffer.pointer[2] << 16);
97 *result |= (obj->buffer.pointer[3] << 24);
112 int result;
118 if (nouveau_optimus_dsm(handle, 0, 0, &result))
125 if (result & 1 && result & (1 << NOUVEAU_DSM_OPTIMUS_CAPS))
126 return result;
256 uint32_t result;
258 &result);
260 (result & OPTIMUS_ENABLED) ? "enabled" : "disabled",
261 (result & OPTIMUS_DYNAMIC_PWR_CAP) ? "dynamic power, " : "",
262 (result & OPTIMUS_HDA_CODEC_MASK) ? "hda bios codec supported" : "");
342 u32 result = 0;
348 0x3, &result);
351 NOUVEAU_DSM_OPTIMUS_SET_POWERDOWN, &result);