Home
last modified time | relevance | path

Searched refs:blDev (Results 1 – 10 of 10) sorted by relevance

/drivers/hdf_core/framework/model/display/driver/backlight/
Dhdf_bl.c41 struct BacklightDev *blDev[MAX_BL_DEV]; member
56 struct BacklightDev *blDev = NULL; in BlDevInstance() local
58 blDev = (struct BacklightDev *)OsalMemCalloc(sizeof(struct BacklightDev)); in BlDevInstance()
59 if (blDev == NULL) { in BlDevInstance()
63 blDev->ops = ops; in BlDevInstance()
64 ret = memcpy_s(blDev->name, MAX_BL_NAME_LEN - 1, devName, strlen(devName) + 1); in BlDevInstance()
66 HDF_LOGE("%s blDev->name %s", __func__, blDev->name); in BlDevInstance()
69 ret = memcpy_s(&blDev->props, sizeof(struct BacklightProperties), in BlDevInstance()
75 return blDev; in BlDevInstance()
77 OsalMemFree(blDev); in BlDevInstance()
[all …]
Dhdf_bl.h38 void *ToBlDevPriv(struct BacklightDev *blDev);
40 int32_t UpdateBacklightState(struct BacklightDev *blDev, enum FbPowerStatus status);
41 int32_t UpdateBrightness(struct BacklightDev *blDev, uint32_t brightness);
42 int32_t GetMinBrightness(struct BacklightDev *blDev, uint32_t *brightness);
43 int32_t GetCurrBrightness(struct BacklightDev *blDev, uint32_t *brightness);
44 int32_t GetDefBrightness(struct BacklightDev *blDev, uint32_t *brightness);
45 int32_t GetMaxBrightness(struct BacklightDev *blDev, uint32_t *brightness);
Dpwm_bl.c36 static int32_t BlPwmUpdateBrightness(struct BacklightDev *blDev, uint32_t brightness) in BlPwmUpdateBrightness() argument
42 blPwmDev = ToBlDevPriv(blDev); in BlPwmUpdateBrightness()
146 struct BacklightDev *blDev = NULL; in BlPwmEntryInit() local
159 blDev = RegisterBlDev(blPwmDev->name, &blPwmDev->props, &g_blDevOps, blPwmDev); in BlPwmEntryInit()
160 if (blDev == NULL) { in BlPwmEntryInit()
164 if (UpdateBacklightState(blDev, FB_POWER_ON) != HDF_SUCCESS) { in BlPwmEntryInit()
167 if (UpdateBrightness(blDev, blPwmDev->props.defBrightness) != HDF_SUCCESS) { in BlPwmEntryInit()
/drivers/hdf_core/framework/model/display/driver/panel/
Dmipi_icn9700.c310 icn9700->panel.blDev = GetBacklightDev("hdf_pwm"); in Icn9700EntryInit()
311 if (icn9700->panel.blDev == NULL) { in Icn9700EntryInit()
Dili9881c_boe.c671 ili9881cBoeDev->panel.blDev = GetBacklightDev("hdf_pwm"); in Ili9881cBoeEntryInit()
672 if (ili9881cBoeDev->panel.blDev == NULL) { in Ili9881cBoeEntryInit()
/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/resources/templates/lite/display_template/
Drk3568_display_driver_source.template191 ${driver_lower_case}->panel.blDev = GetBacklightDev("hdf_pwm");
192 if (${driver_lower_case}->panel.blDev == NULL) {
Dhi35xx_display_driver_source.template212 ${driver_lower_case}->panel.blDev = GetBacklightDev("hdf_pwm");
213 if (${driver_lower_case}->panel.blDev == NULL) {
/drivers/hdf_core/framework/model/display/driver/
Dhdf_disp.h114 struct BacklightDev *blDev; member
Dhdf_disp.c116 if ((panel == NULL) || (UpdateBrightness(panel->blDev, level) != HDF_SUCCESS)) { in SetDispBacklight()
187 ret = UpdateBacklightState(panel->blDev, FB_POWER_ON); in SetDispPower()
195 ret = UpdateBacklightState(panel->blDev, FB_POWER_OFF); in SetDispPower()
297 if (GetCurrBrightness(panel->blDev, &currLevel) != HDF_SUCCESS) { in GetBacklight()
Dhdf_drm_panel.c195 ret = UpdateBrightness(panel->blDev, level); in BacklightStore()