Home
last modified time | relevance | path

Searched refs:bl (Results 1 – 25 of 83) sorted by relevance

1234

/drivers/video/backlight/
Dlm3533_bl.c34 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
69 return scnprintf(buf, PAGE_SIZE, "%d\n", bl->id); in show_id()
75 struct lm3533_bl *bl = dev_get_drvdata(dev); in show_als_channel() local
76 unsigned channel = lm3533_bl_get_ctrlbank_id(bl); in show_als_channel()
[all …]
Dlp8788_bl.c71 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()
93 ret = lp8788_write_byte(bl->lp, LP8788_BL_RAMP, val); in lp8788_backlight_configure()
112 dev_err(bl->lp->dev, "invalid mode: %d\n", cfg->bl_mode); in lp8788_backlight_configure()
116 bl->mode = cfg->bl_mode; in lp8788_backlight_configure()
118 return lp8788_write_byte(bl->lp, LP8788_BL_CONFIG, val); in lp8788_backlight_configure()
121 static void lp8788_pwm_ctrl(struct lp8788_bl *bl, int br, int max_br) in lp8788_pwm_ctrl() argument
128 if (!bl->pdata) in lp8788_pwm_ctrl()
131 period = bl->pdata->period_ns; in lp8788_pwm_ctrl()
133 dev = bl->lp->dev; in lp8788_pwm_ctrl()
[all …]
Domap1_bl.c40 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
76 omapbl_blank(bl, bl->powermode); in omapbl_resume()
83 struct omap_backlight *bl = bl_get_data(dev); in omapbl_set_power() local
85 omapbl_blank(bl, state); in omapbl_set_power()
[all …]
Dep93xx_bl.c26 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()
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()
57 struct backlight_device *bl; in ep93xxbl_probe() local
86 bl = devm_backlight_device_register(&dev->dev, dev->name, &dev->dev, in ep93xxbl_probe()
88 if (IS_ERR(bl)) in ep93xxbl_probe()
89 return PTR_ERR(bl); in ep93xxbl_probe()
[all …]
Das3711_bl.c30 struct backlight_device *bl; member
102 static int as3711_bl_update_status(struct backlight_device *bl) in as3711_bl_update_status() argument
104 struct as3711_bl_data *data = bl_get_data(bl); in as3711_bl_update_status()
110 brightness = backlight_get_brightness(bl); in as3711_bl_update_status()
161 static int as3711_bl_get_brightness(struct backlight_device *bl) in as3711_bl_get_brightness() argument
163 struct as3711_bl_data *data = bl_get_data(bl); in as3711_bl_get_brightness()
226 struct backlight_device *bl; in as3711_bl_register() local
231 bl = devm_backlight_device_register(&pdev->dev, in as3711_bl_register()
236 if (IS_ERR(bl)) { in as3711_bl_register()
238 return PTR_ERR(bl); in as3711_bl_register()
[all …]
Dgpio_backlight.c24 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()
53 struct backlight_device *bl; in gpio_backlight_probe() local
78 bl = devm_backlight_device_register(dev, dev_name(dev), dev, gbl, in gpio_backlight_probe()
80 if (IS_ERR(bl)) { in gpio_backlight_probe()
82 return PTR_ERR(bl); in gpio_backlight_probe()
88 bl->props.power = def_value ? FB_BLANK_UNBLANK in gpio_backlight_probe()
[all …]
Dpcf50633-backlight.c20 struct backlight_device *bl; member
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()
55 if (bl->props.state & (BL_CORE_SUSPENDED | BL_CORE_FBBLANK) || in pcf50633_bl_update_status()
56 bl->props.power != FB_BLANK_UNBLANK) in pcf50633_bl_update_status()
58 else if (bl->props.brightness < pcf_bl->brightness_limit) in pcf50633_bl_update_status()
59 new_brightness = bl->props.brightness; in pcf50633_bl_update_status()
81 static int pcf50633_bl_get_brightness(struct backlight_device *bl) in pcf50633_bl_get_brightness() argument
83 struct pcf50633_bl *pcf_bl = bl_get_data(bl); in pcf50633_bl_get_brightness()
[all …]
Dktd253-backlight.c33 struct backlight_device *bl; member
75 static int ktd253_backlight_update_status(struct backlight_device *bl) in ktd253_backlight_update_status() argument
77 struct ktd253_backlight *ktd253 = bl_get_data(bl); in ktd253_backlight_update_status()
78 int brightness = backlight_get_brightness(bl); in ktd253_backlight_update_status()
146 struct backlight_device *bl; in ktd253_backlight_probe() local
186 bl = devm_backlight_device_register(dev, dev_name(dev), dev, ktd253, in ktd253_backlight_probe()
188 if (IS_ERR(bl)) { in ktd253_backlight_probe()
190 return PTR_ERR(bl); in ktd253_backlight_probe()
192 bl->props.max_brightness = max_brightness; in ktd253_backlight_probe()
195 bl->props.brightness = brightness; in ktd253_backlight_probe()
[all …]
Dda903x_bl.c40 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()
78 static int da903x_backlight_update_status(struct backlight_device *bl) in da903x_backlight_update_status() argument
80 return da903x_backlight_set(bl, backlight_get_brightness(bl)); in da903x_backlight_update_status()
83 static int da903x_backlight_get_brightness(struct backlight_device *bl) in da903x_backlight_get_brightness() argument
85 struct da903x_backlight_data *data = bl_get_data(bl); in da903x_backlight_get_brightness()
100 struct backlight_device *bl; in da903x_backlight_probe() local
133 bl = devm_backlight_device_register(&pdev->dev, pdev->name, in da903x_backlight_probe()
136 if (IS_ERR(bl)) { in da903x_backlight_probe()
138 return PTR_ERR(bl); in da903x_backlight_probe()
[all …]
Dda9052_bl.c82 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()
85 struct da9052_bl *wleds = bl_get_data(bl); in da9052_backlight_update_status()
93 static int da9052_backlight_get_brightness(struct backlight_device *bl) in da9052_backlight_get_brightness() argument
95 struct da9052_bl *wleds = bl_get_data(bl); in da9052_backlight_get_brightness()
107 struct backlight_device *bl; in da9052_backlight_probe() local
123 bl = devm_backlight_device_register(&pdev->dev, pdev->name, in da9052_backlight_probe()
126 if (IS_ERR(bl)) { in da9052_backlight_probe()
128 return PTR_ERR(bl); in da9052_backlight_probe()
131 bl->props.max_brightness = DA9052_MAX_BRIGHTNESS; in da9052_backlight_probe()
[all …]
Dadp5520_bl.c26 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()
66 static int adp5520_bl_update_status(struct backlight_device *bl) in adp5520_bl_update_status() argument
68 return adp5520_bl_set(bl, backlight_get_brightness(bl)); in adp5520_bl_update_status()
71 static int adp5520_bl_get_brightness(struct backlight_device *bl) in adp5520_bl_get_brightness() argument
73 struct adp5520_bl *data = bl_get_data(bl); in adp5520_bl_get_brightness()
87 static int adp5520_bl_setup(struct backlight_device *bl) in adp5520_bl_setup() argument
89 struct adp5520_bl *data = bl_get_data(bl); in adp5520_bl_setup()
283 struct backlight_device *bl; in adp5520_bl_probe() local
307 bl = devm_backlight_device_register(&pdev->dev, pdev->name, in adp5520_bl_probe()
[all …]
Dpandora_bl.c40 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()
112 struct backlight_device *bl; in pandora_backlight_probe() local
125 bl = devm_backlight_device_register(&pdev->dev, pdev->name, &pdev->dev, in pandora_backlight_probe()
127 if (IS_ERR(bl)) { in pandora_backlight_probe()
129 return PTR_ERR(bl); in pandora_backlight_probe()
[all …]
Dmax8925_bl.c32 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()
65 static int max8925_backlight_update_status(struct backlight_device *bl) in max8925_backlight_update_status() argument
67 return max8925_backlight_set(bl, backlight_get_brightness(bl)); in max8925_backlight_update_status()
70 static int max8925_backlight_get_brightness(struct backlight_device *bl) in max8925_backlight_get_brightness() argument
72 struct max8925_backlight_data *data = bl_get_data(bl); in max8925_backlight_get_brightness()
124 struct backlight_device *bl; in max8925_backlight_probe() local
154 bl = devm_backlight_device_register(&pdev->dev, "max8925-backlight", in max8925_backlight_probe()
157 if (IS_ERR(bl)) { in max8925_backlight_probe()
159 return PTR_ERR(bl); in max8925_backlight_probe()
[all …]
Dwm831x_bl.c26 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()
92 static int wm831x_backlight_update_status(struct backlight_device *bl) in wm831x_backlight_update_status() argument
94 return wm831x_backlight_set(bl, backlight_get_brightness(bl)); in wm831x_backlight_update_status()
97 static int wm831x_backlight_get_brightness(struct backlight_device *bl) in wm831x_backlight_get_brightness() argument
99 struct wm831x_backlight_data *data = bl_get_data(bl); in wm831x_backlight_get_brightness()
116 struct backlight_device *bl; in wm831x_backlight_probe() local
185 bl = devm_backlight_device_register(&pdev->dev, "wm831x", &pdev->dev, in wm831x_backlight_probe()
187 if (IS_ERR(bl)) { in wm831x_backlight_probe()
189 return PTR_ERR(bl); in wm831x_backlight_probe()
[all …]
Dtosa_bl.c30 struct backlight_device *bl; member
94 dev_dbg(&data->bl->dev, "Unable to request gpio!\n"); in tosa_bl_probe()
104 data->bl = devm_backlight_device_register(&client->dev, "tosa-bl", in tosa_bl_probe()
107 if (IS_ERR(data->bl)) { in tosa_bl_probe()
108 ret = PTR_ERR(data->bl); in tosa_bl_probe()
112 data->bl->props.brightness = 69; in tosa_bl_probe()
113 data->bl->props.power = FB_BLANK_UNBLANK; in tosa_bl_probe()
115 backlight_update_status(data->bl); in tosa_bl_probe()
120 data->bl = NULL; in tosa_bl_probe()
128 data->bl = NULL; in tosa_bl_remove()
[all …]
D88pm860x_bl.c59 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()
122 static int pm860x_backlight_update_status(struct backlight_device *bl) in pm860x_backlight_update_status() argument
124 return pm860x_backlight_set(bl, backlight_get_brightness(bl)); in pm860x_backlight_update_status()
127 static int pm860x_backlight_get_brightness(struct backlight_device *bl) in pm860x_backlight_get_brightness() argument
129 struct pm860x_backlight_data *data = bl_get_data(bl); in pm860x_backlight_get_brightness()
185 struct backlight_device *bl; in pm860x_backlight_probe() local
230 bl = devm_backlight_device_register(&pdev->dev, name, &pdev->dev, data, in pm860x_backlight_probe()
232 if (IS_ERR(bl)) { in pm860x_backlight_probe()
234 return PTR_ERR(bl); in pm860x_backlight_probe()
[all …]
Dpwm_bl.c108 static int pwm_backlight_update_status(struct backlight_device *bl) in pwm_backlight_update_status() argument
110 struct pwm_bl_data *pb = bl_get_data(bl); in pwm_backlight_update_status()
111 int brightness = backlight_get_brightness(bl); in pwm_backlight_update_status()
132 static int pwm_backlight_check_fb(struct backlight_device *bl, in pwm_backlight_check_fb() argument
135 struct pwm_bl_data *pb = bl_get_data(bl); in pwm_backlight_check_fb()
458 struct backlight_device *bl; in pwm_backlight_probe() local
603 bl = backlight_device_register(dev_name(&pdev->dev), &pdev->dev, pb, in pwm_backlight_probe()
605 if (IS_ERR(bl)) { in pwm_backlight_probe()
607 ret = PTR_ERR(bl); in pwm_backlight_probe()
620 bl->props.brightness = data->dft_brightness; in pwm_backlight_probe()
[all …]
Dlm3639_bl.c94 static int lm3639_bled_update_status(struct backlight_device *bl) in lm3639_bled_update_status() argument
98 struct lm3639_chip_data *pchip = bl_get_data(bl); in lm3639_bled_update_status()
111 pdata->pwm_set_intensity(bl->props.brightness, in lm3639_bled_update_status()
116 return bl->props.brightness; in lm3639_bled_update_status()
120 ret = regmap_write(pchip->regmap, REG_BL_CONF_4, bl->props.brightness); in lm3639_bled_update_status()
123 ret = regmap_write(pchip->regmap, REG_BL_CONF_3, bl->props.brightness); in lm3639_bled_update_status()
127 if (!bl->props.brightness) in lm3639_bled_update_status()
134 return bl->props.brightness; in lm3639_bled_update_status()
137 return bl->props.brightness; in lm3639_bled_update_status()
140 static int lm3639_bled_get_brightness(struct backlight_device *bl) in lm3639_bled_get_brightness() argument
[all …]
Dlm3630a_bl.c187 static int lm3630a_bank_a_update_status(struct backlight_device *bl) in lm3630a_bank_a_update_status() argument
190 struct lm3630a_chip *pchip = bl_get_data(bl); in lm3630a_bank_a_update_status()
195 return lm3630a_pwm_ctrl(pchip, bl->props.brightness, in lm3630a_bank_a_update_status()
196 bl->props.max_brightness); in lm3630a_bank_a_update_status()
204 ret = lm3630a_write(pchip, REG_BRT_A, bl->props.brightness); in lm3630a_bank_a_update_status()
205 if (bl->props.brightness < 0x4) in lm3630a_bank_a_update_status()
219 static int lm3630a_bank_a_get_brightness(struct backlight_device *bl) in lm3630a_bank_a_get_brightness() argument
222 struct lm3630a_chip *pchip = bl_get_data(bl); in lm3630a_bank_a_get_brightness()
248 bl->props.brightness = brightness; in lm3630a_bank_a_get_brightness()
249 return bl->props.brightness; in lm3630a_bank_a_get_brightness()
[all …]
Dlp855x_bl.c69 struct backlight_device *bl; member
262 static int lp855x_bl_update_status(struct backlight_device *bl) in lp855x_bl_update_status() argument
264 struct lp855x *lp = bl_get_data(bl); in lp855x_bl_update_status()
265 int brightness = bl->props.brightness; in lp855x_bl_update_status()
267 if (bl->props.state & (BL_CORE_SUSPENDED | BL_CORE_FBBLANK)) in lp855x_bl_update_status()
271 lp855x_pwm_ctrl(lp, brightness, bl->props.max_brightness); in lp855x_bl_update_status()
285 struct backlight_device *bl; in lp855x_backlight_register() local
299 bl = devm_backlight_device_register(lp->dev, name, lp->dev, lp, in lp855x_backlight_register()
301 if (IS_ERR(bl)) in lp855x_backlight_register()
302 return PTR_ERR(bl); in lp855x_backlight_register()
[all …]
/drivers/target/iscsi/
Discsi_target_seq_pdu_list.c203 struct iscsi_build_list *bl, in iscsit_determine_counts_for_list() argument
218 if ((bl->type == PDULIST_IMMEDIATE) || in iscsit_determine_counts_for_list()
219 (bl->type == PDULIST_IMMEDIATE_AND_UNSOLICITED)) in iscsit_determine_counts_for_list()
222 if ((bl->type == PDULIST_UNSOLICITED) || in iscsit_determine_counts_for_list()
223 (bl->type == PDULIST_IMMEDIATE_AND_UNSOLICITED)) in iscsit_determine_counts_for_list()
232 offset += bl->immediate_data_length; in iscsit_determine_counts_for_list()
236 bl->immediate_data_length; in iscsit_determine_counts_for_list()
287 struct iscsi_build_list *bl) in iscsit_do_build_pdu_and_seq_lists() argument
304 if ((bl->type == PDULIST_IMMEDIATE) || in iscsit_do_build_pdu_and_seq_lists()
305 (bl->type == PDULIST_IMMEDIATE_AND_UNSOLICITED)) in iscsit_do_build_pdu_and_seq_lists()
[all …]
/drivers/gpu/drm/nouveau/
Dnouveau_backlight.c47 struct nouveau_backlight *bl) in nouveau_get_backlight_name() argument
57 bl->id = nb; in nouveau_get_backlight_name()
288 nv50_backlight_init(struct nouveau_backlight *bl, in nv50_backlight_init() argument
316 ret = drm_edp_backlight_init(&nv_conn->aux, &bl->edp_info, 0, edp_dpcd, in nv50_backlight_init()
321 ret = drm_edp_backlight_enable(&nv_conn->aux, &bl->edp_info, current_level); in nv50_backlight_init()
330 props->max_brightness = bl->edp_info.max; in nv50_backlight_init()
331 bl->uses_dpcd = true; in nv50_backlight_init()
352 struct nouveau_backlight *bl; in nouveau_backlight_init() local
375 bl = kzalloc(sizeof(*bl), GFP_KERNEL); in nouveau_backlight_init()
376 if (!bl) in nouveau_backlight_init()
[all …]
/drivers/regulator/
Drpi-panel-attiny-regulator.c126 static int attiny_update_status(struct backlight_device *bl) in attiny_update_status() argument
128 struct regmap *regmap = bl_get_data(bl); in attiny_update_status()
129 int brightness = bl->props.brightness; in attiny_update_status()
132 if (bl->props.power != FB_BLANK_UNBLANK || in attiny_update_status()
133 bl->props.fb_blank != FB_BLANK_UNBLANK) in attiny_update_status()
145 static int attiny_get_brightness(struct backlight_device *bl) in attiny_get_brightness() argument
147 struct regmap *regmap = bl_get_data(bl); in attiny_get_brightness()
175 struct backlight_device *bl; in attiny_i2c_probe() local
220 bl = devm_backlight_device_register(&i2c->dev, in attiny_i2c_probe()
224 if (IS_ERR(bl)) in attiny_i2c_probe()
[all …]
/drivers/gpu/drm/bridge/
Dparade-ps8622.c49 struct backlight_device *bl; member
273 if (ps8622->bl) { in ps8622_send_config()
281 ps8622->bl->props.brightness); in ps8622_send_config()
324 static int ps8622_backlight_update(struct backlight_device *bl) in ps8622_backlight_update() argument
326 struct ps8622_bridge *ps8622 = dev_get_drvdata(&bl->dev); in ps8622_backlight_update()
327 int ret, brightness = bl->props.brightness; in ps8622_backlight_update()
329 if (bl->props.power != FB_BLANK_UNBLANK || in ps8622_backlight_update()
330 bl->props.state & (BL_CORE_SUSPENDED | BL_CORE_FBBLANK)) in ps8622_backlight_update()
509 ps8622->bl = backlight_device_register("ps8622-backlight", in ps8622_probe()
512 if (IS_ERR(ps8622->bl)) { in ps8622_probe()
[all …]
/drivers/gpu/drm/
Ddrm_dp_helper.c3129 int drm_edp_backlight_set_level(struct drm_dp_aux *aux, const struct drm_edp_backlight_info *bl, in drm_edp_backlight_set_level() argument
3135 if (bl->lsb_reg_used) { in drm_edp_backlight_set_level()
3155 drm_edp_backlight_set_enable(struct drm_dp_aux *aux, const struct drm_edp_backlight_info *bl, in drm_edp_backlight_set_enable() argument
3162 if (!bl->aux_enable) in drm_edp_backlight_set_enable()
3204 int drm_edp_backlight_enable(struct drm_dp_aux *aux, const struct drm_edp_backlight_info *bl, in drm_edp_backlight_enable() argument
3210 if (bl->pwmgen_bit_count) { in drm_edp_backlight_enable()
3211 ret = drm_dp_dpcd_writeb(aux, DP_EDP_PWMGEN_BIT_COUNT, bl->pwmgen_bit_count); in drm_edp_backlight_enable()
3217 if (bl->pwm_freq_pre_divider) { in drm_edp_backlight_enable()
3218 ret = drm_dp_dpcd_writeb(aux, DP_EDP_BACKLIGHT_FREQ_SET, bl->pwm_freq_pre_divider); in drm_edp_backlight_enable()
3234 ret = drm_edp_backlight_set_level(aux, bl, level); in drm_edp_backlight_enable()
[all …]

1234