/openbmc/linux/drivers/video/backlight/ |
H A D | apple_bl.c | 50 static void intel_chipset_set_brightness(int intensity) in intel_chipset_set_brightness() argument 52 outb(0x04 | (intensity << 4), 0xb3); in intel_chipset_set_brightness() 58 int intensity = bd->props.brightness; in intel_chipset_send_intensity() local 61 pr_debug("setting brightness to %d\n", intensity); in intel_chipset_send_intensity() 63 intel_chipset_set_brightness(intensity); in intel_chipset_send_intensity() 69 int intensity; in intel_chipset_get_intensity() local 73 intensity = inb(0xb3) >> 4; in intel_chipset_get_intensity() 76 pr_debug("read brightness of %d\n", intensity); in intel_chipset_get_intensity() 78 return intensity; in intel_chipset_get_intensity() 95 static void nvidia_chipset_set_brightness(int intensity) in nvidia_chipset_set_brightness() argument [all …]
|
H A D | hp680_bl.c | 36 int intensity = backlight_get_brightness(bd); in hp680bl_send_intensity() local 39 intensity = 0; in hp680bl_send_intensity() 42 if (intensity && current_intensity == 0) { in hp680bl_send_intensity() 47 sh_dac_output(255-(u8)intensity, DAC_LCD_BRIGHTNESS); in hp680bl_send_intensity() 48 } else if (intensity == 0 && current_intensity != 0) { in hp680bl_send_intensity() 49 sh_dac_output(255-(u8)intensity, DAC_LCD_BRIGHTNESS); in hp680bl_send_intensity() 54 } else if (intensity) { in hp680bl_send_intensity() 55 sh_dac_output(255-(u8)intensity, DAC_LCD_BRIGHTNESS); in hp680bl_send_intensity() 59 current_intensity = intensity; in hp680bl_send_intensity()
|
H A D | kb3886_bl.c | 28 static void kb3886_bl_set_intensity(int intensity) in kb3886_bl_set_intensity() argument 31 intensity = intensity&0xff; in kb3886_bl_set_intensity() 36 outb(intensity, KB3886_IO); in kb3886_bl_set_intensity() 44 void (*set_bl_intensity)(int intensity); 90 int intensity = backlight_get_brightness(bd); in kb3886bl_send_intensity() local 93 intensity = 0; in kb3886bl_send_intensity() 95 bl_machinfo->set_bl_intensity(intensity); in kb3886bl_send_intensity() 97 kb3886bl_intensity = intensity; in kb3886bl_send_intensity()
|
H A D | corgi_lcd.c | 88 int intensity; member 392 return lcd->intensity; in corgi_bl_get_intensity() 395 static int corgi_bl_set_intensity(struct corgi_lcd *lcd, int intensity) in corgi_bl_set_intensity() argument 399 if (intensity > 0x10) in corgi_bl_set_intensity() 400 intensity += 0x10; in corgi_bl_set_intensity() 402 corgi_ssp_lcdtg_send(lcd, DUTYCTRL_ADRS, intensity); in corgi_bl_set_intensity() 405 cont = !!(intensity & 0x20); in corgi_bl_set_intensity() 411 gpiod_set_value_cansleep(lcd->backlight_on, intensity); in corgi_bl_set_intensity() 416 lcd->intensity = intensity; in corgi_bl_set_intensity() 423 int intensity = backlight_get_brightness(bd); in corgi_bl_update_status() local [all …]
|
H A D | ipaq_micro_bl.c | 19 int intensity = backlight_get_brightness(bd); in micro_bl_update_status() local 29 * Byte 2: intensity, 0-255 in micro_bl_update_status() 32 msg.tx_data[1] = intensity > 0 ? 1 : 0; in micro_bl_update_status() 33 msg.tx_data[2] = intensity; in micro_bl_update_status()
|
H A D | rave-sp-backlight.c | 21 const u8 intensity = in rave_sp_backlight_update_status() local 27 [2] = intensity ? RAVE_SP_BACKLIGHT_LCD_EN | intensity : 0, in rave_sp_backlight_update_status()
|
H A D | locomolcd.c | 112 int intensity = backlight_get_brightness(bd); in locomolcd_set_intensity() local 115 intensity = 0; in locomolcd_set_intensity() 117 switch (intensity) { in locomolcd_set_intensity() 140 current_intensity = intensity; in locomolcd_set_intensity()
|
H A D | cr_bllcd.c | 82 u8 intensity; in cr_backlight_get_intensity() local 85 intensity = 0; in cr_backlight_get_intensity() 87 intensity = 1; in cr_backlight_get_intensity() 89 return intensity; in cr_backlight_get_intensity()
|
/openbmc/linux/Documentation/ABI/testing/ |
H A D | sysfs-bus-iio-light-si1133 | 5 Unit-less infrared intensity. The intensity is measured from 1 13 Unit-less infrared intensity. The intensity is measured from 4 21 Unit-less light intensity with more diodes.
|
/openbmc/linux/drivers/input/misc/ |
H A D | arizona-haptics.c | 28 u8 intensity; member 46 if (haptics->intensity) { in arizona_haptics_work() 50 haptics->intensity); in arizona_haptics_work() 52 dev_err(arizona->dev, "Failed to set intensity: %d\n", in arizona_haptics_work() 122 haptics->intensity = in arizona_haptics_play() 125 haptics->intensity += 0x7f; in arizona_haptics_play() 127 haptics->intensity = in arizona_haptics_play() 131 haptics->intensity = 0; in arizona_haptics_play()
|
H A D | regulator-haptic.c | 61 unsigned int intensity; in regulator_haptic_set_voltage() local 65 intensity = (unsigned int)(volt_mag_multi >> MAX_MAGNITUDE_SHIFT); in regulator_haptic_set_voltage() 68 intensity + haptic->min_volt, in regulator_haptic_set_voltage() 72 intensity + haptic->min_volt, error); in regulator_haptic_set_voltage()
|
/openbmc/linux/drivers/staging/media/atomisp/i2c/ |
H A D | atomisp-lm3554.c | 282 static int lm3554_s_flash_intensity(struct v4l2_subdev *sd, u32 intensity) in lm3554_s_flash_intensity() argument 286 intensity = LM3554_CLAMP_PERCENTAGE(intensity); in lm3554_s_flash_intensity() 287 intensity = LM3554_PERCENT_TO_VALUE(intensity, LM3554_FLASH_STEP); in lm3554_s_flash_intensity() 289 flash->flash_current = intensity; in lm3554_s_flash_intensity() 304 static int lm3554_s_torch_intensity(struct v4l2_subdev *sd, u32 intensity) in lm3554_s_torch_intensity() argument 308 intensity = LM3554_CLAMP_PERCENTAGE(intensity); in lm3554_s_torch_intensity() 309 intensity = LM3554_PERCENT_TO_VALUE(intensity, LM3554_TORCH_STEP); in lm3554_s_torch_intensity() 311 flash->torch_current = intensity; in lm3554_s_torch_intensity() 326 static int lm3554_s_indicator_intensity(struct v4l2_subdev *sd, u32 intensity) in lm3554_s_indicator_intensity() argument 330 intensity = LM3554_CLAMP_PERCENTAGE(intensity); in lm3554_s_indicator_intensity() [all …]
|
/openbmc/linux/drivers/leds/rgb/ |
H A D | leds-group-multicolor.c | 38 unsigned int intensity = mc_cdev->subled_info[i].intensity; in leds_gmc_set() local 42 * Scale the brightness according to relative intensity of the in leds_gmc_set() 45 mono_brightness = DIV_ROUND_CLOSEST(brightness * intensity * mono_max_brightness, in leds_gmc_set() 111 /* Configure the LED intensity to its maximum */ in leds_gmc_probe() 112 subled[i].intensity = max_brightness; in leds_gmc_probe()
|
/openbmc/qemu/include/hw/misc/ |
H A D | led.h | 49 * logic (when used with GPIO, the intensity at reset is related 58 * led_set_intensity: Set the intensity of a LED device 60 * @intensity_percent: intensity as percentage in range 0 to 100. 68 * Returns: The LED intensity as percentage in range 0 to 100.
|
/openbmc/linux/drivers/media/v4l2-core/ |
H A D | v4l2-flash-led-class.c | 44 struct v4l2_ctrl *ctrl, s32 intensity) in __intensity_to_led_brightness() argument 46 intensity -= ctrl->minimum; in __intensity_to_led_brightness() 47 intensity /= (u32) ctrl->step; in __intensity_to_led_brightness() 56 ++intensity; in __intensity_to_led_brightness() 58 return intensity; in __intensity_to_led_brightness() 71 * V4L2_FLASH_LED_MODE_NONE the cached torch intensity value is used. in __led_brightness_to_intensity() 94 * brightness <-> intensity conversion, it also must have defined in v4l2_flash_set_led_brightness() 96 * from led brightness to v4l2 intensity is required to find out the in v4l2_flash_set_led_brightness() 97 * aligned intensity value. in v4l2_flash_set_led_brightness() 188 * microamperes for flash intensity units. in v4l2_flash_g_volatile_ctrl() [all …]
|
/openbmc/linux/include/media/ |
H A D | v4l2-flash-led-class.h | 38 * @intensity_to_led_brightness: Convert intensity to brightness in a device 40 * @led_brightness_to_intensity: convert brightness to intensity in a device 47 (struct v4l2_flash *v4l2_flash, s32 intensity); 56 * @intensity: non-flash strobe constraints for the LED 65 struct led_flash_setting intensity; member
|
/openbmc/linux/Documentation/leds/ |
H A D | leds-class-multicolor.rst | 43 intensity setting divided by the global max_brightness setting multiplied by 59 intensity = 138 62 intensity = 43 65 intensity = 226
|
/openbmc/linux/drivers/staging/media/atomisp/include/linux/ |
H A D | atomisp.h | 78 /* [intensity] Sensitivity of Edge (Used by Bayer NR) */ 80 /* [intensity] coring threshold for Cb (Used by YCC NR) */ 82 /* [intensity] coring threshold for Cr (Used by YCC NR) */ 89 unsigned int threshold_y;/* [intensity] Motion sensitivity for Y */ 90 unsigned int threshold_uv;/* [intensity] Motion sensitivity for U/V */ 111 /* [intensity] optical black level for GR (relevant for fixed mode) */ 113 /* [intensity] optical black level for R (relevant for fixed mode) */ 115 /* [intensity] optical black level for B (relevant for fixed mode) */ 117 /* [intensity] optical black level for GB (relevant for fixed mode) */ 129 /* [intensity] The threshold that divides noises from edge. u8_8 */ [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/leds/ |
H A D | leds-trigger-pattern.txt | 19 It will make the LED go gradually from zero-intensity to max (255) intensity in 20 1000 milliseconds, then back to zero intensity in 2000 milliseconds:
|
/openbmc/linux/drivers/leds/flash/ |
H A D | leds-rt8515.c | 40 /* The maximum intensity is 1-16 for flash and 1-100 for torch */ 203 * Init flash intensity setting: this is a linear scale in rt8515_init_v4l2_flash_config() 204 * capped from the device tree max intensity setting in rt8515_init_v4l2_flash_config() 207 s = &v4l2_sd_cfg->intensity; in rt8515_init_v4l2_flash_config() 261 * Calculate max intensity (linear scaling) in rt8515_determine_max_intensity() 267 "current restricted from %u to %u mA, max intensity %d/100\n", in rt8515_determine_max_intensity() 271 dev_info(rt->dev, "max intensity %d/%d = %d mA\n", in rt8515_determine_max_intensity()
|
H A D | leds-qcom-flash.c | 474 qcom_flash_intensity_to_led_brightness(struct v4l2_flash *v4l2_flash, s32 intensity) in qcom_flash_intensity_to_led_brightness() argument 478 u32 current_ma = intensity / UA_PER_MA; in qcom_flash_intensity_to_led_brightness() 507 struct led_flash_setting *intensity = &v4l2_cfg.intensity; in qcom_flash_v4l2_init() local 513 intensity->min = intensity->step = TORCH_IRES_UA * led->chan_count; in qcom_flash_v4l2_init() 514 intensity->max = led->max_torch_current_ma * UA_PER_MA; in qcom_flash_v4l2_init() 515 intensity->val = min_t(u32, intensity->max, TORCH_CURRENT_DEFAULT_UA); in qcom_flash_v4l2_init()
|
/openbmc/linux/include/media/i2c/ |
H A D | adp1653.h | 89 u32 max_flash_intensity; /* led intensity, flash mode, mA */ 90 u32 max_torch_intensity; /* led intensity, torch mode, mA */ 91 u32 max_indicator_intensity; /* indicator led intensity, uA */
|
/openbmc/linux/Documentation/devicetree/bindings/iio/light/ |
H A D | amstaos,tsl2591.yaml | 14 light-to-digital converter that transforms light intensity into a digital 28 interrupt is used to detect if the light intensity has fallen below
|
/openbmc/linux/drivers/leds/ |
H A D | led-class-multicolor.c | 25 mcled_cdev->subled_info[i].intensity, in led_mc_calc_color_components() 62 mcled_cdev->subled_info[i].intensity = intensity_value[i]; in multi_intensity_store() 82 mcled_cdev->subled_info[i].intensity); in multi_intensity_show()
|
/openbmc/qemu/ui/ |
H A D | vnc-enc-tight.h | 99 * intensity and the actual intensity. Such a technique does not affect 108 * Here V[i,j] is the intensity of a color component for a pixel at 109 * coordinates (i,j). MAX is the maximum value of intensity for a color
|