Lines Matching refs:fbd
278 struct mx3fb_data *fbd = bl_get_data(bl); in mx3fb_bl_get_brightness() local
280 return sdc_get_brightness(fbd); in mx3fb_bl_get_brightness()
285 struct mx3fb_data *fbd = bl_get_data(bl); in mx3fb_bl_update_status() local
293 fbd->backlight_level = (fbd->backlight_level & ~0xFF) | brightness; in mx3fb_bl_update_status()
295 sdc_set_brightness(fbd, fbd->backlight_level); in mx3fb_bl_update_status()
305 static void mx3fb_init_backlight(struct mx3fb_data *fbd) in mx3fb_init_backlight() argument
310 if (fbd->bl) in mx3fb_init_backlight()
316 sdc_set_brightness(fbd, fbd->backlight_level); in mx3fb_init_backlight()
318 bl = backlight_device_register("mx3fb-bl", fbd->dev, fbd, in mx3fb_init_backlight()
321 dev_err(fbd->dev, "error %ld on backlight register\n", in mx3fb_init_backlight()
326 fbd->bl = bl; in mx3fb_init_backlight()
332 static void mx3fb_exit_backlight(struct mx3fb_data *fbd) in mx3fb_exit_backlight() argument
334 backlight_device_unregister(fbd->bl); in mx3fb_exit_backlight()