Home
last modified time | relevance | path

Searched refs:brightnessLegacy (Results 1 – 2 of 2) sorted by relevance

/haiku/src/add-ons/kernel/drivers/graphics/intel_extreme/
H A Ddevice.cpp343 intel_brightness_legacy brightnessLegacy; in device_ioctl() local
344 if (user_memcpy(&brightnessLegacy, buffer, in device_ioctl()
345 sizeof(brightnessLegacy)) < B_OK) in device_ioctl()
348 if (brightnessLegacy.magic != INTEL_PRIVATE_DATA_MAGIC) in device_ioctl()
351 brightnessLegacy.lpc = get_pci_config(info->pci, LEGACY_BACKLIGHT_BRIGHTNESS, 1); in device_ioctl()
353 if (user_memcpy(buffer, &brightnessLegacy, sizeof(brightnessLegacy)) < B_OK) in device_ioctl()
356 set_pci_config(info->pci, LEGACY_BACKLIGHT_BRIGHTNESS, 1, brightnessLegacy.lpc); in device_ioctl()
/haiku/src/add-ons/accelerants/intel_extreme/
H A Dmode.cpp665 intel_brightness_legacy brightnessLegacy; in intel_set_brightness() local
666 brightnessLegacy.magic = INTEL_PRIVATE_DATA_MAGIC; in intel_set_brightness()
667 brightnessLegacy.lpc = lpc; in intel_set_brightness()
668 ioctl(gInfo->device, INTEL_SET_BRIGHTNESS_LEGACY, &brightnessLegacy, in intel_set_brightness()
669 sizeof(brightnessLegacy)); in intel_set_brightness()
710 intel_brightness_legacy brightnessLegacy; in intel_get_brightness() local
711 brightnessLegacy.magic = INTEL_PRIVATE_DATA_MAGIC; in intel_get_brightness()
712 ioctl(gInfo->device, INTEL_GET_BRIGHTNESS_LEGACY, &brightnessLegacy, in intel_get_brightness()
713 sizeof(brightnessLegacy)); in intel_get_brightness()
714 duty *= brightnessLegacy.lpc; in intel_get_brightness()