/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 | 18 int intensity = backlight_get_brightness(bd); in micro_bl_update_status() local 28 * Byte 2: intensity, 0-255 in micro_bl_update_status() 31 msg.tx_data[1] = intensity > 0 ? 1 : 0; in micro_bl_update_status() 32 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()
|
/linux/drivers/platform/x86/ |
H A D | silicom-platform.c | 288 .intensity = 0, 294 .intensity = 0, 300 .intensity = 0, 309 .intensity = 0, 315 .intensity = 0, 321 .intensity = 0, 330 .intensity = 0, 336 .intensity = 0, 342 .intensity = 0, 348 .intensity = 0, [all …]
|
/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.
|
/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()
|
/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() 112 /* Configure the LED intensity to its maximum */ in leds_gmc_probe() 113 subled[i].intensity = max_brightness; in leds_gmc_probe()
|
/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 …]
|
/linux/drivers/staging/media/atomisp/include/linux/ |
H A D | atomisp.h | 66 /* [intensity] Sensitivity of Edge (Used by Bayer NR) */ 68 /* [intensity] coring threshold for Cb (Used by YCC NR) */ 70 /* [intensity] coring threshold for Cr (Used by YCC NR) */ 77 unsigned int threshold_y;/* [intensity] Motion sensitivity for Y */ 78 unsigned int threshold_uv;/* [intensity] Motion sensitivity for U/V */ 99 /* [intensity] optical black level for GR (relevant for fixed mode) */ 101 /* [intensity] optical black level for R (relevant for fixed mode) */ 103 /* [intensity] optical black level for B (relevant for fixed mode) */ 105 /* [intensity] optical black level for GB (relevant for fixed mode) */ 117 /* [intensity] The threshold that divides noises from edge. u8_8 */ [all …]
|
/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
|
/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
|
/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 | 627 qcom_flash_intensity_to_led_brightness(struct v4l2_flash *v4l2_flash, s32 intensity) in qcom_flash_intensity_to_led_brightness() argument 631 u32 current_ma = intensity / UA_PER_MA; in qcom_flash_intensity_to_led_brightness() 660 struct led_flash_setting *intensity = &v4l2_cfg.intensity; in qcom_flash_v4l2_init() local 666 intensity->min = intensity->step = TORCH_IRES_UA * led->chan_count; in qcom_flash_v4l2_init() 667 intensity->max = led->max_torch_current_ma * UA_PER_MA; in qcom_flash_v4l2_init() 668 intensity->val = min_t(u32, intensity->max, TORCH_CURRENT_DEFAULT_UA); in qcom_flash_v4l2_init()
|
/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:
|
/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 */
|
/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
|
/linux/drivers/leds/ |
H A D | led-class-multicolor.c | 23 mcled_cdev->subled_info[i].intensity, in led_mc_calc_color_components() 60 mcled_cdev->subled_info[i].intensity = intensity_value[i]; in multi_intensity_store() 80 mcled_cdev->subled_info[i].intensity); in multi_intensity_show()
|
/linux/Documentation/userspace-api/media/v4l/ |
H A D | ext-ctrls-flash.rst | 121 Intensity of the flash strobe when the flash LED is in flash mode 126 Intensity of the flash LED in torch mode 132 Intensity of the indicator LED. The indicator LED may be fully
|
/linux/drivers/staging/greybus/ |
H A D | light.c | 110 u32 intensity) in __gb_lights_flash_intensity_set() argument 126 req.intensity_uA = cpu_to_le32(intensity); in __gb_lights_flash_intensity_set() 138 u32 intensity; in __gb_lights_flash_brightness_set() local 148 /* For not flash we need to convert brightness to intensity */ in __gb_lights_flash_brightness_set() 149 intensity = channel->intensity_uA.min + in __gb_lights_flash_brightness_set() 152 return __gb_lights_flash_intensity_set(channel, intensity); in __gb_lights_flash_brightness_set() 524 &sd_cfg.intensity); in gb_lights_light_v4l2_register() 529 &sd_cfg_ind.intensity); in gb_lights_light_v4l2_register() 827 * Intensity constraints for flash related modes: flash, torch, in gb_lights_channel_flash_config() 836 * On flash type, max brightness is set as the number of intensity steps in gb_lights_channel_flash_config()
|
/linux/arch/arm/mach-omap1/ |
H A D | board-sx1.c | 99 /* set keyboard backlight intensity */ 106 /* get current keylight intensity */ 111 /* set LCD backlight intensity */ 119 /* get current LCD backlight intensity */
|