Home
last modified time | relevance | path

Searched +full:bl +full:- +full:name (Results 1 – 25 of 337) sorted by relevance

12345678910>>...14

/openbmc/linux/drivers/video/backlight/
H A Dlp8788_bl.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * TI LP8788 MFD - backlight driver
32 #define DEFAULT_BL_NAME "lcd-backlight"
71 static int lp8788_backlight_configure(struct lp8788_bl *bl) in lp8788_backlight_configure() argument
73 struct lp8788_backlight_platform_data *pdata = bl->pdata; in lp8788_backlight_configure()
83 cfg->bl_mode = pdata->bl_mode; in lp8788_backlight_configure()
84 cfg->dim_mode = pdata->dim_mode; in lp8788_backlight_configure()
85 cfg->full_scale = pdata->full_scale; in lp8788_backlight_configure()
86 cfg->rise_time = pdata->rise_time; in lp8788_backlight_configure()
87 cfg->fall_time = pdata->fall_time; in lp8788_backlight_configure()
[all …]
H A Dda9052_bl.c1 // SPDX-License-Identifier: GPL-2.0-or-later
53 if (wleds->state == DA9052_WLEDS_OFF) { in da9052_adjust_wled_brightness()
58 ret = da9052_reg_write(wleds->da9052, DA9052_BOOST_REG, boost_en); in da9052_adjust_wled_brightness()
62 ret = da9052_reg_write(wleds->da9052, DA9052_LED_CONT_REG, i_sink); in da9052_adjust_wled_brightness()
66 ret = da9052_reg_write(wleds->da9052, wled_bank[wleds->led_reg], 0x0); in da9052_adjust_wled_brightness()
72 if (wleds->brightness) { in da9052_adjust_wled_brightness()
73 ret = da9052_reg_write(wleds->da9052, wled_bank[wleds->led_reg], in da9052_adjust_wled_brightness()
74 wleds->brightness); in da9052_adjust_wled_brightness()
82 static int da9052_backlight_update_status(struct backlight_device *bl) in da9052_backlight_update_status() argument
84 int brightness = bl->props.brightness; in da9052_backlight_update_status()
[all …]
H A D88pm860x_bl.c1 // SPDX-License-Identifier: GPL-2.0-only
40 int ret = -EINVAL; in backlight_power_set()
59 static int pm860x_backlight_set(struct backlight_device *bl, int brightness) in pm860x_backlight_set() argument
61 struct pm860x_backlight_data *data = bl_get_data(bl); in pm860x_backlight_set()
62 struct pm860x_chip *chip = data->chip; in pm860x_backlight_set()
72 backlight_power_set(chip, data->port, 1); in pm860x_backlight_set()
74 ret = pm860x_reg_write(data->i2c, data->reg_duty_cycle, value); in pm860x_backlight_set()
78 if ((data->current_brightness == 0) && brightness) { in pm860x_backlight_set()
79 if (data->iset) { in pm860x_backlight_set()
80 ret = pm860x_set_bits(data->i2c, data->reg_current, in pm860x_backlight_set()
[all …]
H A Dep93xx_bl.c1 // SPDX-License-Identifier: GPL-2.0-only
26 static int ep93xxbl_set(struct backlight_device *bl, int brightness) in ep93xxbl_set() argument
28 struct ep93xxbl *ep93xxbl = bl_get_data(bl); in ep93xxbl_set()
30 writel((brightness << 8) | EP93XX_MAX_COUNT, ep93xxbl->mmio); in ep93xxbl_set()
32 ep93xxbl->brightness = brightness; in ep93xxbl_set()
37 static int ep93xxbl_update_status(struct backlight_device *bl) in ep93xxbl_update_status() argument
39 return ep93xxbl_set(bl, backlight_get_brightness(bl)); in ep93xxbl_update_status()
42 static int ep93xxbl_get_brightness(struct backlight_device *bl) in ep93xxbl_get_brightness() argument
44 struct ep93xxbl *ep93xxbl = bl_get_data(bl); in ep93xxbl_get_brightness()
46 return ep93xxbl->brightness; in ep93xxbl_get_brightness()
[all …]
H A Dpcf50633-backlight.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (C) 2009-2010, Lars-Peter Clausen <lars@metafoo.de>
20 struct backlight_device *bl; member
34 * @limit: The brightness limit. Valid values are 0-63
38 struct pcf50633_bl *pcf_bl = platform_get_drvdata(pcf->bl_pdev); in pcf50633_bl_set_brightness_limit()
41 return -ENODEV; in pcf50633_bl_set_brightness_limit()
43 pcf_bl->brightness_limit = limit & 0x3f; in pcf50633_bl_set_brightness_limit()
44 backlight_update_status(pcf_bl->bl); in pcf50633_bl_set_brightness_limit()
49 static int pcf50633_bl_update_status(struct backlight_device *bl) in pcf50633_bl_update_status() argument
51 struct pcf50633_bl *pcf_bl = bl_get_data(bl); in pcf50633_bl_update_status()
[all …]
H A Dlm3533_bl.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * lm3533-bl.c -- LM3533 Backlight driver
5 * Copyright (C) 2011-2012 Texas Instruments
34 static inline int lm3533_bl_get_ctrlbank_id(struct lm3533_bl *bl) in lm3533_bl_get_ctrlbank_id() argument
36 return bl->id; in lm3533_bl_get_ctrlbank_id()
41 struct lm3533_bl *bl = bl_get_data(bd); in lm3533_bl_update_status() local
43 return lm3533_ctrlbank_set_brightness(&bl->cb, backlight_get_brightness(bd)); in lm3533_bl_update_status()
48 struct lm3533_bl *bl = bl_get_data(bd); in lm3533_bl_get_brightness() local
52 ret = lm3533_ctrlbank_get_brightness(&bl->cb, &val); in lm3533_bl_get_brightness()
67 struct lm3533_bl *bl = dev_get_drvdata(dev); in show_id() local
[all …]
H A Dda903x_bl.c1 // SPDX-License-Identifier: GPL-2.0-only
8 * Copyright (C) 2006-2008 Marvell International Ltd.
40 static int da903x_backlight_set(struct backlight_device *bl, int brightness) in da903x_backlight_set() argument
42 struct da903x_backlight_data *data = bl_get_data(bl); in da903x_backlight_set()
43 struct device *dev = data->da903x_dev; in da903x_backlight_set()
47 switch (data->id) { in da903x_backlight_set()
54 if (data->current_brightness && brightness == 0) in da903x_backlight_set()
59 if (data->current_brightness == 0 && brightness) in da903x_backlight_set()
74 data->current_brightness = brightness; in da903x_backlight_set()
78 static int da903x_backlight_update_status(struct backlight_device *bl) in da903x_backlight_update_status() argument
[all …]
H A Dpandora_bl.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Pandora uses TWL4030 PWM0 -> TPS61161 combo for control backlight.
33 #define MAX_USER_VALUE (MAX_VALUE - MIN_VALUE)
40 static int pandora_backlight_update_status(struct backlight_device *bl) in pandora_backlight_update_status() argument
42 int brightness = bl->props.brightness; in pandora_backlight_update_status()
43 struct pandora_private *priv = bl_get_data(bl); in pandora_backlight_update_status()
46 if (bl->props.power != FB_BLANK_UNBLANK) in pandora_backlight_update_status()
48 if (bl->props.state & BL_CORE_FBBLANK) in pandora_backlight_update_status()
50 if (bl->props.state & BL_CORE_SUSPENDED) in pandora_backlight_update_status()
57 if (priv->old_state == PANDORABL_WAS_OFF) in pandora_backlight_update_status()
[all …]
H A Domap1_bl.c1 // SPDX-License-Identifier: GPL-2.0-or-later
17 #include <linux/soc/ti/omap1-io.h>
18 #include <linux/soc/ti/omap1-mux.h>
40 static void omapbl_blank(struct omap_backlight *bl, int mode) in omapbl_blank() argument
42 if (bl->pdata->set_power) in omapbl_blank()
43 bl->pdata->set_power(bl->dev, mode); in omapbl_blank()
55 omapbl_send_intensity(bl->current_intensity); in omapbl_blank()
65 struct omap_backlight *bl = bl_get_data(bl_dev); in omapbl_suspend() local
67 omapbl_blank(bl, FB_BLANK_POWERDOWN); in omapbl_suspend()
74 struct omap_backlight *bl = bl_get_data(bl_dev); in omapbl_resume() local
[all …]
H A Dlp855x_bl.c1 // SPDX-License-Identifier: GPL-2.0-only
40 #define DEFAULT_BL_NAME "lcd-backlight"
70 struct backlight_device *bl; member
81 return i2c_smbus_write_byte_data(lp->client, reg, data); in lp855x_write_byte()
89 ret = i2c_smbus_read_byte_data(lp->client, reg); in lp855x_update_bit()
91 dev_err(lp->dev, "failed to read 0x%.2x\n", reg); in lp855x_update_bit()
106 switch (lp->chip_id) { in lp855x_is_valid_rom_area()
173 struct lp855x_platform_data *pd = lp->pdata; in lp855x_configure()
175 if (lp->cfg->pre_init_device) { in lp855x_configure()
176 ret = lp->cfg->pre_init_device(lp); in lp855x_configure()
[all …]
H A Dadp5520_bl.c1 // SPDX-License-Identifier: GPL-2.0-or-later
26 static int adp5520_bl_set(struct backlight_device *bl, int brightness) in adp5520_bl_set() argument
28 struct adp5520_bl *data = bl_get_data(bl); in adp5520_bl_set()
29 struct device *master = data->master; in adp5520_bl_set()
32 if (data->pdata->en_ambl_sens) { in adp5520_bl_set()
41 * MAX_BRIGHTNESS -> Enable Ambient Light auto adjust in adp5520_bl_set()
45 data->cached_daylight_max); in adp5520_bl_set()
53 if (data->current_brightness && brightness == 0) in adp5520_bl_set()
56 else if (data->current_brightness == 0 && brightness) in adp5520_bl_set()
61 data->current_brightness = brightness; in adp5520_bl_set()
[all …]
H A Dgpio_backlight.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * gpio_backlight.c - Simple GPIO-controlled backlight
24 static int gpio_backlight_update_status(struct backlight_device *bl) in gpio_backlight_update_status() argument
26 struct gpio_backlight *gbl = bl_get_data(bl); in gpio_backlight_update_status()
28 gpiod_set_value_cansleep(gbl->gpiod, backlight_get_brightness(bl)); in gpio_backlight_update_status()
33 static int gpio_backlight_check_fb(struct backlight_device *bl, in gpio_backlight_check_fb() argument
36 struct gpio_backlight *gbl = bl_get_data(bl); in gpio_backlight_check_fb()
38 return !gbl->dev || gbl->dev == info->device; in gpio_backlight_check_fb()
49 struct device *dev = &pdev->dev; in gpio_backlight_probe()
51 struct device_node *of_node = dev->of_node; in gpio_backlight_probe()
[all …]
H A Darcxcnn_bl.c1 // SPDX-License-Identifier: GPL-2.0-only
22 * @name : Backlight driver name (NULL will use default)
33 const char *name; member
48 #define ARCXCNN_CMD_OVP_MASK 0x0C /* --- Over Voltage Threshold */
63 #define ARCXCNN_LEDEN_ISETEXT 0x80 /* Full-scale current set extern */
89 struct backlight_device *bl; member
99 ret = i2c_smbus_read_byte_data(lp->client, reg); in arcxcnn_update_field()
101 dev_err(lp->dev, "failed to read 0x%.2x\n", reg); in arcxcnn_update_field()
109 return i2c_smbus_write_byte_data(lp->client, reg, tmp); in arcxcnn_update_field()
119 ret = i2c_smbus_write_byte_data(lp->client, in arcxcnn_set_brightness()
[all …]
H A Dlm3639_bl.c1 // SPDX-License-Identifier: GPL-2.0-only
51 struct lm3639_platform_data *pdata = pchip->pdata; in lm3639_chip_init()
55 regmap_update_bits(pchip->regmap, REG_BL_CONF_1, 0x08, in lm3639_chip_init()
56 pdata->pin_pwm); in lm3639_chip_init()
60 reg_val = (pdata->pin_pwm & 0x40) | pdata->pin_strobe | pdata->pin_tx; in lm3639_chip_init()
61 ret = regmap_update_bits(pchip->regmap, REG_IO_CTRL, 0x7C, reg_val); in lm3639_chip_init()
66 ret = regmap_write(pchip->regmap, REG_BL_CONF_4, pdata->init_brt_led); in lm3639_chip_init()
70 ret = regmap_write(pchip->regmap, REG_BL_CONF_3, pdata->init_brt_led); in lm3639_chip_init()
75 if (!pdata->init_brt_led) { in lm3639_chip_init()
76 reg_val = pdata->fled_pins; in lm3639_chip_init()
[all …]
H A Dtps65217_bl.c1 // SPDX-License-Identifier: GPL-2.0-only
23 struct backlight_device *bl; member
31 rc = tps65217_set_bits(tps65217_bl->tps, TPS65217_REG_WLEDCTRL1, in tps65217_bl_enable()
35 dev_err(tps65217_bl->dev, in tps65217_bl_enable()
40 tps65217_bl->is_enabled = true; in tps65217_bl_enable()
42 dev_dbg(tps65217_bl->dev, "backlight enabled\n"); in tps65217_bl_enable()
51 rc = tps65217_clear_bits(tps65217_bl->tps, in tps65217_bl_disable()
56 dev_err(tps65217_bl->dev, in tps65217_bl_disable()
61 tps65217_bl->is_enabled = false; in tps65217_bl_disable()
63 dev_dbg(tps65217_bl->dev, "backlight disabled\n"); in tps65217_bl_disable()
[all …]
H A Dwm831x_bl.c1 // SPDX-License-Identifier: GPL-2.0-only
26 static int wm831x_backlight_set(struct backlight_device *bl, int brightness) in wm831x_backlight_set() argument
28 struct wm831x_backlight_data *data = bl_get_data(bl); in wm831x_backlight_set()
29 struct wm831x *wm831x = data->wm831x; in wm831x_backlight_set()
30 int power_up = !data->current_brightness && brightness; in wm831x_backlight_set()
31 int power_down = data->current_brightness && !brightness; in wm831x_backlight_set()
36 ret = wm831x_set_bits(wm831x, data->isink_reg, in wm831x_backlight_set()
41 /* Enable the DC-DC */ in wm831x_backlight_set()
56 ret = wm831x_set_bits(wm831x, data->isink_reg, in wm831x_backlight_set()
63 ret = wm831x_set_bits(wm831x, data->isink_reg, in wm831x_backlight_set()
[all …]
H A Dktd253-backlight.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Based on code and know-how from the Samsung GT-S7710
33 struct backlight_device *bl; member
40 gpiod_set_value_cansleep(ktd253->gpiod, 1); in ktd253_backlight_set_max_ratio()
63 gpiod_set_value(ktd253->gpiod, 0); in ktd253_backlight_stepdown()
65 gpiod_set_value(ktd253->gpiod, 1); in ktd253_backlight_stepdown()
66 ns = ktime_get_ns() - ns; in ktd253_backlight_stepdown()
68 dev_err(ktd253->dev, "PCM on backlight took too long (%llu ns)\n", ns); in ktd253_backlight_stepdown()
69 return -EAGAIN; in ktd253_backlight_stepdown()
75 static int ktd253_backlight_update_status(struct backlight_device *bl) in ktd253_backlight_update_status() argument
[all …]
H A Dmax8925_bl.c1 // SPDX-License-Identifier: GPL-2.0-only
22 #define LWX_FREQ(x) (((x - 601) / 100) & 0x7)
32 static int max8925_backlight_set(struct backlight_device *bl, int brightness) in max8925_backlight_set() argument
34 struct max8925_backlight_data *data = bl_get_data(bl); in max8925_backlight_set()
35 struct max8925_chip *chip = data->chip; in max8925_backlight_set()
44 ret = max8925_reg_write(chip->i2c, data->reg_cntl, value); in max8925_backlight_set()
48 if (!data->current_brightness && brightness) in max8925_backlight_set()
50 ret = max8925_set_bits(chip->i2c, data->reg_mode_cntl, 1, 1); in max8925_backlight_set()
53 ret = max8925_set_bits(chip->i2c, data->reg_mode_cntl, 1, 0); in max8925_backlight_set()
56 dev_dbg(chip->dev, "set brightness %d\n", value); in max8925_backlight_set()
[all …]
/openbmc/linux/drivers/gpu/drm/tegra/
H A Driscv.c1 // SPDX-License-Identifier: GPL-2.0-only
34 writel(value, riscv->regs + offset); in riscv_writel()
39 struct tegra_drm_riscv_descriptor *bl = &riscv->bl_desc; in tegra_drm_riscv_read_descriptors() local
40 struct tegra_drm_riscv_descriptor *os = &riscv->os_desc; in tegra_drm_riscv_read_descriptors()
41 const struct device_node *np = riscv->dev->of_node; in tegra_drm_riscv_read_descriptors()
44 #define READ_PROP(name, location) \ in tegra_drm_riscv_read_descriptors() argument
45 err = of_property_read_u32(np, name, location); \ in tegra_drm_riscv_read_descriptors()
47 dev_err(riscv->dev, "failed to read " name ": %d\n", err); \ in tegra_drm_riscv_read_descriptors()
51 READ_PROP("nvidia,bl-manifest-offset", &bl->manifest_offset); in tegra_drm_riscv_read_descriptors()
52 READ_PROP("nvidia,bl-code-offset", &bl->code_offset); in tegra_drm_riscv_read_descriptors()
[all …]
/openbmc/linux/drivers/gpu/drm/nouveau/
H A Dnouveau_backlight.c33 #include <linux/apple-gmux.h>
45 #define BL_NAME_SIZE 15 // 12 for name + 2 for digits + 1 for '\0'
49 struct nouveau_backlight *bl) in nouveau_get_backlight_name() argument
59 bl->id = nb; in nouveau_get_backlight_name()
67 struct nouveau_drm *drm = nouveau_drm(nv_encoder->base.base.dev); in nv40_get_intensity()
68 struct nvif_object *device = &drm->client.device.object; in nv40_get_intensity()
79 struct nouveau_drm *drm = nouveau_drm(nv_encoder->base.base.dev); in nv40_set_intensity()
80 struct nvif_object *device = &drm->client.device.object; in nv40_set_intensity()
81 int val = bd->props.brightness; in nv40_set_intensity()
101 struct nouveau_drm *drm = nouveau_drm(encoder->base.base.dev); in nv40_backlight_init()
[all …]
/openbmc/linux/fs/hpfs/
H A Ddentry.c1 // SPDX-License-Identifier: GPL-2.0
5 * Mikulas Patocka (mikulas@artax.karlin.mff.cuni.cz), 1998-1999
20 unsigned l = qstr->len; in hpfs_hash_dentry()
22 if (l == 1) if (qstr->name[0]=='.') goto x; in hpfs_hash_dentry()
23 if (l == 2) if (qstr->name[0]=='.' || qstr->name[1]=='.') goto x; in hpfs_hash_dentry()
24 hpfs_adjust_length(qstr->name, &l); in hpfs_hash_dentry()
25 /*if (hpfs_chk_name(qstr->name,&l))*/ in hpfs_hash_dentry()
26 /*return -ENAMETOOLONG;*/ in hpfs_hash_dentry()
27 /*return -ENOENT;*/ in hpfs_hash_dentry()
32 hash = partial_name_hash(hpfs_upcase(hpfs_sb(dentry->d_sb)->sb_cp_table,qstr->name[i]), hash); in hpfs_hash_dentry()
[all …]
/openbmc/qemu/block/
H A Dblkdebug.c4 * Copyright (C) 2016-2017 Red Hat, Inc.
29 #include "qemu/config-file.h"
30 #include "block/block-io.h"
35 #include "qapi/qapi-visit-block-core.h"
39 #include "qapi/qobject-input-visitor.h"
42 /* All APIs are thread-safe */
116 .name = "inject-error",
120 .name = "event",
124 .name = "state",
128 .name = "iotype",
[all …]
/openbmc/linux/arch/powerpc/kernel/
H A Dinterrupt_64.S1 #include <asm/asm-offsets.h>
4 #include <asm/exception-64s.h>
6 #include <asm/exception-64e.h>
8 #include <asm/feature-fixups.h>
9 #include <asm/head-64.h>
47 .macro system_call_vectored name trapnr
48 .globl system_call_vectored_\name
49 system_call_vectored_\name:
50 _ASM_NOKPROBE_SYMBOL(system_call_vectored_\name)
64 /* Save syscall parameters in r3-r8 */
[all …]
H A Dexceptions-64s.S1 /* SPDX-License-Identifier: GPL-2.0 */
3 * This file contains the 64-bit "server" PowerPC variant
18 #include <asm/exception-64s.h>
21 #include <asm/head-64.h>
22 #include <asm/feature-fixups.h>
28 * EXC_REAL_BEGIN/END - real, unrelocated exception vectors
29 * EXC_VIRT_BEGIN/END - virt (AIL), unrelocated exception vectors
30 * TRAMP_REAL_BEGIN - real, unrelocated helpers (virt may call these)
31 * TRAMP_VIRT_BEGIN - virt, unreloc helpers (in practice, real can use)
32 * EXC_COMMON - After switching to virtual, relocated mode.
[all …]
/openbmc/linux/drivers/gpu/drm/display/
H A Ddrm_dp_helper.c8 * that the name of the copyright holders not be used in advertising or
75 return link_status[r - DP_LANE0_1_STATUS]; in dp_link_status()
229 drm_dbg_kms(aux->drm_dev, "%s: invalid AUX interval 0x%02x (max 4)\n", in __8b10b_clock_recovery_delay_us()
230 aux->name, rd_interval); in __8b10b_clock_recovery_delay_us()
241 drm_dbg_kms(aux->drm_dev, "%s: invalid AUX interval 0x%02x (max 4)\n", in __8b10b_channel_eq_delay_us()
242 aux->name, rd_interval); in __8b10b_channel_eq_delay_us()
254 drm_dbg_kms(aux->drm_dev, "%s: invalid AUX interval 0x%02x\n", in __128b132b_channel_eq_delay_us()
255 aux->name, rd_interval); in __128b132b_channel_eq_delay_us()
277 * - Clock recovery vs. channel equalization
278 * - DPRX vs. LTTPR
[all …]

12345678910>>...14