• Home
  • Raw
  • Download

Lines Matching refs:bl

47 			   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()
391 ret = nv50_backlight_init(bl, nouveau_connector(connector), in nouveau_backlight_init()
405 if (!nouveau_get_backlight_name(backlight_name, bl)) { in nouveau_backlight_init()
411 bl->dev = backlight_device_register(backlight_name, connector->kdev, in nouveau_backlight_init()
413 if (IS_ERR(bl->dev)) { in nouveau_backlight_init()
414 if (bl->id >= 0) in nouveau_backlight_init()
415 ida_free(&bl_ida, bl->id); in nouveau_backlight_init()
416 ret = PTR_ERR(bl->dev); in nouveau_backlight_init()
420 nouveau_connector(connector)->backlight = bl; in nouveau_backlight_init()
421 if (!bl->dev->props.brightness) in nouveau_backlight_init()
422 bl->dev->props.brightness = in nouveau_backlight_init()
423 bl->dev->ops->get_brightness(bl->dev); in nouveau_backlight_init()
424 backlight_update_status(bl->dev); in nouveau_backlight_init()
429 kfree(bl); in nouveau_backlight_init()
437 struct nouveau_backlight *bl = nv_conn->backlight; in nouveau_backlight_fini() local
439 if (!bl) in nouveau_backlight_fini()
442 if (bl->id >= 0) in nouveau_backlight_fini()
443 ida_free(&bl_ida, bl->id); in nouveau_backlight_fini()
445 backlight_device_unregister(bl->dev); in nouveau_backlight_fini()
447 kfree(bl); in nouveau_backlight_fini()