Lines Matching defs:period
584 intel_get_backlight_register(bool period)
587 if (period)
598 // a single register with both period and duty in it, or two separate registers.
599 if (period)
614 // The "duty cycle" is a proportion of the period (0 = backlight off,
615 // period = maximum brightness).
622 uint32_t period = read32(intel_get_backlight_register(true));
624 uint32_t duty = (uint32_t)(period * brightness);
629 uint32_t period = read32(intel_get_backlight_register(true)) >> 16;
631 uint32_t duty = (uint32_t)(period * brightness) & 0xffff;
634 write32(intel_get_backlight_register(false), duty | (period << 16));
636 // On older devices there is a single register with both period and duty cycle
645 uint32_t period = tmp >> 16;
655 period = tmp >> 17;
658 period *= 0xfe;
659 uint32_t duty = (uint32_t)(period * brightness);
691 uint32_t period;
694 period = read32(intel_get_backlight_register(true));
704 period = tmp >> 16;
707 period *= 0xff;
717 period >>= 1;
721 *brightness = (float)duty / period;