Home
last modified time | relevance | path

Searched +full:default +full:- +full:intensity (Results 1 – 25 of 54) sorted by relevance

123

/linux/drivers/platform/x86/
H A Dsilicom-platform.c1 // SPDX-License-Identifier: GPL-2.0+
3 // silicom-platform.c - Silicom MEC170x platform driver
5 // Copyright (C) 2023 Henry Shi <henrys@silicom-usa.com>
15 #include <linux/led-class-multicolor.h>
52 #define CHANNEL_TO_OFFSET(chan) (((chan) >> 3) - 0x14)
204 for (i = 0; i < mc_cdev->num_colors; i++) { in silicom_mec_led_mc_brightness_get()
205 mc_cdev->subled_info[i].brightness = in silicom_mec_led_mc_brightness_get()
206 silicom_mec_led_get(mc_cdev->subled_info[i].channel); in silicom_mec_led_mc_brightness_get()
208 if (mc_cdev->subled_info[i].brightness != LED_OFF) in silicom_mec_led_mc_brightness_get()
222 for (i = 0; i < mc_cdev->num_colors; i++) { in silicom_mec_led_mc_brightness_set()
[all …]
/linux/drivers/video/backlight/
H A Dcorgi_lcd.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (c) 2004-2006 Richard Purdie
43 #define POWER1_GVSS_ON 0x02 /* GVSS(-8V) Power Supply ON */
44 #define POWER1_VDD_ON 0x04 /* VDD(8V),SVSS(-4V) Power Supply ON */
47 #define POWER1_GVSS_OFF 0x00 /* GVSS(-8V) Power Supply OFF */
48 #define POWER1_VDD_OFF 0x00 /* VDD(8V),SVSS(-4V) Power Supply OFF */
88 int intensity; member
176 .tx_buf = lcd->buf, in corgi_ssp_lcdtg_send()
179 lcd->buf[0] = ((adrs & 0x07) << 5) | (data & 0x1f); in corgi_ssp_lcdtg_send()
183 return spi_sync(lcd->spi_dev, &msg); in corgi_ssp_lcdtg_send()
[all …]
/linux/drivers/hid/
H A Dhid-lenovo-go-s.c1 // SPDX-License-Identifier: GPL-2.0-or-later
19 #include <linux/led-class-multicolor.h>
30 #include "hid-ids.h"
155 [DIR8] = "8-way",
156 [DIR4] = "4-way",
241 drvdata.hdev->firmware_version = get_unaligned_le32(&ver_rep->version); in hid_gos_version_event()
247 drvdata.mcu_id[0] = cmd_rep->sub_cmd; in hid_gos_mcu_id_event()
248 memcpy(&drvdata.mcu_id[1], cmd_rep->data, 11); in hid_gos_mcu_id_event()
257 switch (cmd_rep->sub_cmd) { in hid_gos_gamepad_cfg_event()
259 drvdata.gp_mode = cmd_rep->data[0]; in hid_gos_gamepad_cfg_event()
[all …]
H A Dhid-steam.c1 // SPDX-License-Identifier: GPL-2.0+
19 * and re-enable it when the input device is closed, so as not to break user
26 * - it will not send any command to the controller.
27 * - this input device will be removed, to avoid double input of the same
31 * For additional functions, such as changing the right-pad margin or switching
32 * the led, you can use the user-space tool at:
48 #include "hid-ids.h"
75 /* Accelerometer has 16 bit resolution and a range of +/- 2g */
80 /* Gyroscope has 16 bit resolution and a range of +/- 2000 dps */
262 /* Read-only attributes */
[all …]
/linux/drivers/media/v4l2-core/
H A Dv4l2-flash-led-class.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * V4L2 flash LED sub-device registration helpers.
9 #include <linux/led-class-flash.h>
15 #include <media/v4l2-flash-led-class.h>
18 (v4l2_flash && v4l2_flash->ops && v4l2_flash->ops->op)
22 v4l2_flash->ops->op(v4l2_flash, arg) : \
23 -EINVAL)
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()
[all …]
/linux/drivers/leds/flash/
H A Dleds-rt8515.c1 // SPDX-License-Identifier: GPL-2.0-or-later
28 #include <linux/led-class-flash.h>
34 #include <media/v4l2-flash-led-class.h>
36 /* We can provide 15-700 mA out to the LED */
39 /* The maximum intensity is 1-16 for flash and 1-100 for torch */
67 gpiod_set_value(rt->enable_flash, 0); in rt8515_gpio_led_off()
68 gpiod_set_value(rt->enable_torch, 0); in rt8515_gpio_led_off()
95 mutex_lock(&rt->lock); in rt8515_led_brightness_set()
102 rt8515_gpio_brightness_commit(rt->enable_torch, brightness); in rt8515_led_brightness_set()
105 gpiod_set_value(rt->enable_torch, 1); in rt8515_led_brightness_set()
[all …]
H A Dleds-aat1290.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * 1.5A Step-Up Current Regulator for Flash LEDs
13 #include <linux/led-class-flash.h>
21 #include <media/v4l2-flash-led-class.h>
99 gpiod_direction_output(led->gpio_fl_en, 0); in aat1290_as2cwire_write()
100 gpiod_direction_output(led->gpio_en_set, 0); in aat1290_as2cwire_write()
107 gpiod_direction_output(led->gpio_en_set, 0); in aat1290_as2cwire_write()
109 gpiod_direction_output(led->gpio_en_set, 1); in aat1290_as2cwire_write()
117 gpiod_direction_output(led->gpio_en_set, 0); in aat1290_as2cwire_write()
119 gpiod_direction_output(led->gpio_en_set, 1); in aat1290_as2cwire_write()
[all …]
/linux/drivers/platform/x86/amd/
H A Damd_halo_led.c1 // SPDX-License-Identifier: GPL-2.0
19 #include <linux/led-class-multicolor.h>
29 #define AMD_HALO_GUID "081E747B-E028-4232-AF24-EAAEAB2B1E86"
47 /* Brightness uses 0-100 range */
51 * struct amd_halo_led_data - Driver private data
89 return -EINVAL; in wmi_status_to_err()
90 default: in wmi_status_to_err()
91 return -EIO; in wmi_status_to_err()
105 /* Return buffer per spec: Bytes[0:1] = Status (little-endian) */ in __amd_halo_wmi_call()
117 * amd_halo_wmi_turn_off - Turn off all LED channels
[all …]
/linux/include/linux/
H A Dconsole_struct.h1 /* SPDX-License-Identifier: GPL-2.0 */
8 * Fields marked with [#] must be set by the low-level driver.
9 * Fields marked with [!] can be changed by the low-level driver
33 * struct vc_state -- state of a VC
34 * @x: cursor's x-position
35 * @y: cursor's y-position
39 * @intensity: see enum vc_intensity for values
54 enum vc_intensity intensity; member
62 * struct vc_font - Describes a font
92 * vc_screenbuf ---------> +----------------------+-.
[all …]
/linux/drivers/staging/greybus/
H A Dlight.c1 // SPDX-License-Identifier: GPL-2.0
11 #include <linux/led-class-flash.h>
15 #include <media/v4l2-flash-led-class.h>
69 return channel->light->glights->connection; in get_conn_from_channel()
74 return light->glights->connection; in get_conn_from_light()
79 return !!(channel->mode & (GB_CHANNEL_MODE_FLASH | GB_CHANNEL_MODE_TORCH in is_channel_flash()
92 return &channel->fled.led_cdev; in get_channel_cdev()
101 for (i = 0; i < light->channels_count; i++) { in get_channel_from_mode()
102 channel = &light->channels[i]; in get_channel_from_mode()
103 if (channel->mode == mode) in get_channel_from_mode()
[all …]
/linux/drivers/iio/light/
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
21 be called acpi-als.
24 tristate "ADJD-S311-CR999 digital color sensor"
29 If you say yes here you get support for the Avago ADJD-S311-CR999
133 intensity data for red, green, blue and IR channels, plus
255 Say Y here if you have a Sharp GP2AP002 proximity/ALS combo-chip
269 Say Y here if you have a Sharp GP2AP020A00F proximity/ALS combo-chip
283 will be called iqs621-als.
292 This driver will provide the measurements of ambient light intensity
302 This driver supports the sysfs interface to get the ALS, IR intensity,
[all …]
/linux/include/linux/platform_data/
H A Dtsl2772.h1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Device driver for monitoring ambient light intensity (lux)
7 * Copyright (c) 2017-2018 Brian Masney <masneyb@onstation.org>
20 /* The default LUX tables all have 3 elements. */
37 * struct tsl2772_settings - Settings for the tsl2772 driver
40 * (256 - als_time) * 2.73.
42 * @als_gain_trim: Default gain trim to account for aperture effects.
47 * (256 - prx_time) * 2.73.
92 * struct tsl2772_platform_data - Platform callback, glass and defaults
/linux/drivers/video/console/
H A Dvgacon.c2 * linux/drivers/video/vgacon.c -- Low level VGA based console driver
16 * Improved loadable font/UTF-8 support by H. Peter Anvin
17 * Feb-Sep 1995 <peter.anvin@linux.org>
20 * 17-Jun-95 <sgt20@cam.ac.uk>
22 * if 512 char mode is already enabled don't re-enable it,
24 * 5-May-96 <mitja.horvat@guest.arnes.si>
82 static unsigned int vga_default_font_height __read_mostly; /* Height of default screen font */
100 * Disabling scrollback is required for the Braillex ib80-piezo in no_scroll()
102 * Use the "no-scroll" bootflag. in no_scroll()
108 __setup("no-scroll", no_scroll);
[all …]
/linux/drivers/platform/x86/uniwill/
H A Duniwill-acpi.c1 // SPDX-License-Identifier: GPL-2.0-or-later
25 #include <linux/fixp-arith.h>
27 #include <linux/hwmon-sysfs.h>
30 #include <linux/input/sparse-keymap.h>
34 #include <linux/led-class-multicolor.h>
52 #include "uniwill-wmi.h"
515 return (data->features & features) == features; in uniwill_device_supports()
521 return data->features & features; in uniwill_device_supports_any()
547 status = acpi_evaluate_object(data->handle, "ECRW", &input, NULL); in uniwill_ec_reg_write()
549 return -EIO; in uniwill_ec_reg_write()
[all …]
/linux/Documentation/leds/
H A Dleds-class-flash.rst5 Some LED devices provide two modes - torch and flash. In the LED subsystem
6 those modes are supported by LED class (see Documentation/leds/leds-class.rst)
8 by default and the flash ones only if a driver declares it by setting
16 (see Documentation/ABI/testing/sysfs-class-led-flash)
18 - flash_brightness
19 - max_flash_brightness
20 - flash_timeout
21 - max_flash_timeout
22 - flash_strobe
23 - flash_fault
[all …]
H A Dleds-blinkm.rst5 The leds-blinkm driver supports the devices of the BlinkM family.
7 They are RGB-LED modules driven by a (AT)tiny microcontroller and
8 communicate through I2C. The default address of these modules is
10 daisy-chain up to 127 BlinkMs on an I2C bus.
16 The interface this driver provides is 3-fold:
23 blinkm-<i2c-bus-nr>-<i2c-device-nr>:rgb:indicator
25 $ ls -h /sys/class/leds/blinkm-1-9:rgb:indicator
31 The order in which to write the intensity values can be found in multi_index.
45 blinkm-<i2c-bus-nr>-<i2c-device-nr>-<color>
47 $ ls -h /sys/class/leds/blinkm-6-*
[all …]
/linux/Documentation/admin-guide/laptops/
H A Duniwill-laptop.rst1 .. SPDX-License-Identifier: GPL-2.0+
6 On laptops manufactured by Uniwill (either directly or as ODM), the ``uniwill-laptop`` driver
7 handles various platform-specific features.
10 --------------
12 The ``uniwill-laptop`` driver relies on a DMI table to automatically load on supported devices.
17 -------
19 Usually the FN keys work without a special driver. However as soon as the ``uniwill-laptop`` driver
23 -----------------
25 The ``uniwill-laptop`` driver allows the user to enable/disable:
27 - the FN lock and super key of the integrated keyboard
[all …]
/linux/Documentation/sound/cards/
H A Daudigy-mixer.rst2 Sound Blaster Audigy mixer / default DSP code
5 This is based on sb-live-mixer.rst.
12 The ALSA driver programs this portion of chip by default code
20 functionality. Only the default built-in code in the ALSA driver is described
34 one-way three wire serial bus for digital sound by Philips Semiconductors
42 FX-bus
48 ----------------------------------------
49 This control is used to attenuate samples from left and right front PCM FX-bus
54 -------------------------------------------
55 This control is used to attenuate samples from left and right surround PCM FX-bus
[all …]
H A Demu-mixer.rst2 E-MU Digital Audio System mixer / default DSP code
5 This document covers the E-MU 0404/1010/1212/1616/1820 PCI/PCI-e/CardBus
9 alternative front-end geared towards semi-professional studio recording.
11 This document is based on audigy-mixer.rst.
33 This driver supports only 16-bit 44.1/48 kHz operation. The multi-channel
34 device (see emu10k1-jack.rst) additionally supports 24-bit capture.
37 <https://github.com/ossilator/linux/tree/ossis-emu10k1>`_.
38 Its multi-channel device supports 24-bit for both playback and capture,
62 FX-bus
68 ---------------------------
[all …]
H A Dsb-live-mixer.rst2 Sound Blaster Live mixer / default DSP code
11 The ALSA driver programs this portion of chip by default code
19 (index 0) for a given card) allows to forward 48kHz, stereo, 16-bit
22 to 8 raw PCM devices operating at 48kHz, 16-bit little endian. It would
24 but the conversion routines exist only for stereo (2-channel streams)
34 functionality. Only the default built-in code in the ALSA driver is described
48 one-way three wire serial bus for digital sound by Philips Semiconductors
56 FX-bus
63 ---------------------------------------
64 This control is used to attenuate samples from left and right PCM FX-bus
[all …]
/linux/Documentation/userspace-api/media/v4l/
H A Dext-ctrls-camera.rst1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
4 .. _camera-controls:
14 .. _camera-control-id:
24 .. _v4l2-exposure-auto-type:
29 enum v4l2_exposure_auto_type -
38 .. flat-table::
39 :header-rows: 0
40 :stub-columns: 0
42 * - ``V4L2_EXPOSURE_AUTO``
43 - Automatic exposure time, automatic iris aperture.
[all …]
/linux/drivers/s390/block/
H A Ddasd_eckd.c1 // SPDX-License-Identifier: GPL-2.0
53 * Default full-track write bias applied to every ESE volume at online time;
54 * individual volumes can be re-tuned afterwards through their per-device
55 * full_track_bias sysfs attribute. 0 disables full-track writes, 100 always
56 * uses them, 50 (the default) enables the adaptive heuristic. Values above
62 "Default ESE full-track write bias 0..100 (0=off, 1..99=adaptive, 100=always)");
156 /* set ECKD specific ccw-device options */ in dasd_eckd_probe()
162 "ccw-device options"); in dasd_eckd_probe()
185 return (d1 + (d2 - 1)) / d2; in ceil_quot()
194 switch (rdc->dev_type) { in recs_per_track()
[all …]
/linux/Documentation/hid/
H A Dhid-sensor.rst26 Logical Minimum(-32767)
35 The report is indicating "sensor page (0x20)" contains an accelerometer-3D (0x73).
36 This accelerometer-3D has some fields. Here for example field 2 is motion intensity
37 (0x045f) with a logical minimum value of -32767 and logical maximum of 32767. The
51 - Core HID driver
52 - Individual sensor processing part (sensor drivers)
55 -----------
56 The core driver (hid-sensor-hub) registers as a HID driver. It parses
58 with name HID-SENSOR-xxxx (where xxxx is usage id from the specification).
62 HID-SENSOR-200073 is registered for an Accelerometer 3D driver.
[all …]
/linux/Documentation/ABI/obsolete/
H A Dsysfs-driver-hid-roccat-ryos1 What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<p…
9 What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<p…
21 What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<p…
24 Description: When written, this file lets one set the default of all keys for
31 What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<p…
41 What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<p…
51 What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<p…
61 What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<p…
71 What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<p…
81 What: /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<p…
[all …]
/linux/Documentation/fb/
H A Dframebuffer.rst9 ---------------
13 software to access the graphics hardware through a well-defined interface, so
14 the software doesn't need to know anything about the low-level (hardware
22 --------------------------
39 /dev/fb0current -> fb0
40 /dev/fb1current -> fb1
50 graphics card in addition to the built-in hardware. The corresponding frame
54 use /dev/fb0 by default (older software uses /dev/fb0current). You can specify
69 --------------------------------
82 - You can request unchangeable information about the hardware, like name,
[all …]

123