Home
last modified time | relevance | path

Searched full:intensity (Results 1 – 25 of 110) sorted by relevance

12345

/Linux-v6.1/drivers/video/backlight/
Dapple_bl.c50 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 …]
Dhp680_bl.c36 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()
Dkb3886_bl.c28 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()
Dipaq_micro_bl.c19 int intensity = bd->props.brightness; in micro_bl_update_status() local
26 intensity = 0; in micro_bl_update_status()
28 intensity = 0; in micro_bl_update_status()
34 * Byte 2: intensity, 0-255 in micro_bl_update_status()
37 msg.tx_data[1] = intensity > 0 ? 1 : 0; in micro_bl_update_status()
38 msg.tx_data[2] = intensity; in micro_bl_update_status()
Dcorgi_lcd.c88 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 …]
Drave-sp-backlight.c21 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()
Dcr_bllcd.c82 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()
Dlocomolcd.c114 int intensity = backlight_get_brightness(bd); in locomolcd_set_intensity() local
117 intensity = 0; in locomolcd_set_intensity()
119 switch (intensity) { in locomolcd_set_intensity()
142 current_intensity = intensity; in locomolcd_set_intensity()
/Linux-v6.1/Documentation/ABI/testing/
Dsysfs-bus-iio-light-si11335 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-v6.1/drivers/input/misc/
Darizona-haptics.c28 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()
Dregulator-haptic.c61 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-v6.1/drivers/staging/media/atomisp/i2c/
Datomisp-lm3554.c282 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 …]
/Linux-v6.1/drivers/media/v4l2-core/
Dv4l2-flash-led-class.c44 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-v6.1/include/media/
Dv4l2-flash-led-class.h38 * @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-v6.1/Documentation/leds/
Dleds-class-multicolor.rst43 intensity setting divided by the global max_brightness setting multiplied by
59 intensity = 138
62 intensity = 43
65 intensity = 226
/Linux-v6.1/Documentation/devicetree/bindings/leds/
Dleds-trigger-pattern.txt19 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-v6.1/drivers/leds/flash/
Dleds-rt8515.c40 /* 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()
/Linux-v6.1/drivers/staging/media/atomisp/include/linux/
Datomisp.h79 /* [intensity] Sensitivity of Edge (Used by Bayer NR) */
81 /* [intensity] coring threshold for Cb (Used by YCC NR) */
83 /* [intensity] coring threshold for Cr (Used by YCC NR) */
90 unsigned int threshold_y;/* [intensity] Motion sensitivity for Y */
91 unsigned int threshold_uv;/* [intensity] Motion sensitivity for U/V */
112 /* [intensity] optical black level for GR (relevant for fixed mode) */
114 /* [intensity] optical black level for R (relevant for fixed mode) */
116 /* [intensity] optical black level for B (relevant for fixed mode) */
118 /* [intensity] optical black level for GB (relevant for fixed mode) */
130 /* [intensity] The threshold that divides noises from edge. u8_8 */
[all …]
/Linux-v6.1/include/media/i2c/
Dadp1653.h89 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-v6.1/Documentation/devicetree/bindings/iio/light/
Damstaos,tsl2591.yaml14 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-v6.1/drivers/leds/
Dled-class-multicolor.c23 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-v6.1/Documentation/userspace-api/media/v4l/
Dext-ctrls-flash.rst121 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-v6.1/drivers/staging/greybus/
Dlight.c115 u32 intensity) in __gb_lights_flash_intensity_set() argument
131 req.intensity_uA = cpu_to_le32(intensity); in __gb_lights_flash_intensity_set()
143 u32 intensity; in __gb_lights_flash_brightness_set() local
150 /* For not flash we need to convert brightness to intensity */ in __gb_lights_flash_brightness_set()
151 intensity = channel->intensity_uA.min + in __gb_lights_flash_brightness_set()
154 return __gb_lights_flash_intensity_set(channel, intensity); in __gb_lights_flash_brightness_set()
542 &sd_cfg.intensity); in gb_lights_light_v4l2_register()
547 &sd_cfg_ind.intensity); in gb_lights_light_v4l2_register()
842 * Intensity constraints for flash related modes: flash, torch, in gb_lights_channel_flash_config()
851 * On flash type, max brightness is set as the number of intensity steps in gb_lights_channel_flash_config()
/Linux-v6.1/arch/arm/mach-omap1/
Dboard-sx1.c98 /* set keyboard backlight intensity */
105 /* get current keylight intensity */
110 /* set LCD backlight intensity */
118 /* get current LCD backlight intensity */
/Linux-v6.1/include/linux/
Dconsole_struct.h40 * @intensity: see enum vc_intensity for values
55 enum vc_intensity intensity; member
118 unsigned char vc_halfcolor; /* Color for half intensity mode */

12345