Lines Matching refs:ret
149 int ret; in s6e63j0x03_power_on() local
151 ret = regulator_bulk_enable(ARRAY_SIZE(ctx->supplies), ctx->supplies); in s6e63j0x03_power_on()
152 if (ret < 0) in s6e63j0x03_power_on()
153 return ret; in s6e63j0x03_power_on()
187 int ret; in s6e63j0x03_update_gamma() local
189 ret = s6e63j0x03_apply_mtp_key(ctx, true); in s6e63j0x03_update_gamma()
190 if (ret < 0) in s6e63j0x03_update_gamma()
191 return ret; in s6e63j0x03_update_gamma()
193 ret = s6e63j0x03_dcs_write_seq(ctx, gamma_tbl[index], GAMMA_CMD_CNT); in s6e63j0x03_update_gamma()
194 if (ret < 0) in s6e63j0x03_update_gamma()
195 return ret; in s6e63j0x03_update_gamma()
197 ret = s6e63j0x03_apply_mtp_key(ctx, false); in s6e63j0x03_update_gamma()
198 if (ret < 0) in s6e63j0x03_update_gamma()
199 return ret; in s6e63j0x03_update_gamma()
222 int ret; in s6e63j0x03_disable() local
224 ret = mipi_dsi_dcs_set_display_off(dsi); in s6e63j0x03_disable()
225 if (ret < 0) in s6e63j0x03_disable()
226 return ret; in s6e63j0x03_disable()
230 ret = mipi_dsi_dcs_enter_sleep_mode(dsi); in s6e63j0x03_disable()
231 if (ret < 0) in s6e63j0x03_disable()
232 return ret; in s6e63j0x03_disable()
242 int ret; in s6e63j0x03_unprepare() local
244 ret = s6e63j0x03_power_off(ctx); in s6e63j0x03_unprepare()
245 if (ret < 0) in s6e63j0x03_unprepare()
246 return ret; in s6e63j0x03_unprepare()
256 int ret; in s6e63j0x03_panel_init() local
258 ret = s6e63j0x03_enable_lv2_command(ctx); in s6e63j0x03_panel_init()
259 if (ret < 0) in s6e63j0x03_panel_init()
260 return ret; in s6e63j0x03_panel_init()
262 ret = s6e63j0x03_apply_mtp_key(ctx, true); in s6e63j0x03_panel_init()
263 if (ret < 0) in s6e63j0x03_panel_init()
264 return ret; in s6e63j0x03_panel_init()
267 ret = s6e63j0x03_dcs_write_seq_static(ctx, 0xf2, 0x1c, 0x28); in s6e63j0x03_panel_init()
268 if (ret < 0) in s6e63j0x03_panel_init()
269 return ret; in s6e63j0x03_panel_init()
272 ret = s6e63j0x03_dcs_write_seq_static(ctx, 0xb5, 0x00, 0x02, 0x00); in s6e63j0x03_panel_init()
273 if (ret < 0) in s6e63j0x03_panel_init()
274 return ret; in s6e63j0x03_panel_init()
277 ret = mipi_dsi_dcs_set_column_address(dsi, FIRST_COLUMN, in s6e63j0x03_panel_init()
279 if (ret < 0) in s6e63j0x03_panel_init()
280 return ret; in s6e63j0x03_panel_init()
282 ret = mipi_dsi_dcs_set_page_address(dsi, 0, default_mode.vdisplay - 1); in s6e63j0x03_panel_init()
283 if (ret < 0) in s6e63j0x03_panel_init()
284 return ret; in s6e63j0x03_panel_init()
287 ret = s6e63j0x03_dcs_write_seq_static(ctx, 0xf8, 0x08, 0x08, 0x08, 0x17, in s6e63j0x03_panel_init()
289 if (ret < 0) in s6e63j0x03_panel_init()
290 return ret; in s6e63j0x03_panel_init()
292 ret = s6e63j0x03_dcs_write_seq_static(ctx, 0xf7, 0x02); in s6e63j0x03_panel_init()
293 if (ret < 0) in s6e63j0x03_panel_init()
294 return ret; in s6e63j0x03_panel_init()
297 ret = s6e63j0x03_dcs_write_seq_static(ctx, 0xb0, 0x01); in s6e63j0x03_panel_init()
298 if (ret < 0) in s6e63j0x03_panel_init()
299 return ret; in s6e63j0x03_panel_init()
302 ret = s6e63j0x03_dcs_write_seq_static(ctx, 0xe2, 0x0f); in s6e63j0x03_panel_init()
303 if (ret < 0) in s6e63j0x03_panel_init()
304 return ret; in s6e63j0x03_panel_init()
307 ret = s6e63j0x03_dcs_write_seq_static(ctx, 0xb0, 0x00); in s6e63j0x03_panel_init()
308 if (ret < 0) in s6e63j0x03_panel_init()
309 return ret; in s6e63j0x03_panel_init()
311 ret = mipi_dsi_dcs_exit_sleep_mode(dsi); in s6e63j0x03_panel_init()
312 if (ret < 0) in s6e63j0x03_panel_init()
313 return ret; in s6e63j0x03_panel_init()
315 ret = s6e63j0x03_apply_mtp_key(ctx, false); in s6e63j0x03_panel_init()
316 if (ret < 0) in s6e63j0x03_panel_init()
317 return ret; in s6e63j0x03_panel_init()
325 int ret; in s6e63j0x03_prepare() local
327 ret = s6e63j0x03_power_on(ctx); in s6e63j0x03_prepare()
328 if (ret < 0) in s6e63j0x03_prepare()
329 return ret; in s6e63j0x03_prepare()
331 ret = s6e63j0x03_panel_init(ctx); in s6e63j0x03_prepare()
332 if (ret < 0) in s6e63j0x03_prepare()
341 return ret; in s6e63j0x03_prepare()
348 int ret; in s6e63j0x03_enable() local
352 ret = s6e63j0x03_apply_mtp_key(ctx, true); in s6e63j0x03_enable()
353 if (ret < 0) in s6e63j0x03_enable()
354 return ret; in s6e63j0x03_enable()
357 ret = s6e63j0x03_dcs_write_seq_static(ctx, 0xb1, 0x00, 0x09); in s6e63j0x03_enable()
358 if (ret < 0) in s6e63j0x03_enable()
359 return ret; in s6e63j0x03_enable()
362 ret = s6e63j0x03_dcs_write_seq_static(ctx, in s6e63j0x03_enable()
364 if (ret < 0) in s6e63j0x03_enable()
365 return ret; in s6e63j0x03_enable()
368 ret = mipi_dsi_dcs_set_display_brightness(dsi, 0x00ff); in s6e63j0x03_enable()
369 if (ret < 0) in s6e63j0x03_enable()
370 return ret; in s6e63j0x03_enable()
373 ret = s6e63j0x03_dcs_write_seq_static(ctx, in s6e63j0x03_enable()
375 if (ret < 0) in s6e63j0x03_enable()
376 return ret; in s6e63j0x03_enable()
379 ret = s6e63j0x03_dcs_write_seq_static(ctx, in s6e63j0x03_enable()
381 if (ret < 0) in s6e63j0x03_enable()
382 return ret; in s6e63j0x03_enable()
384 ret = mipi_dsi_dcs_set_tear_on(dsi, MIPI_DSI_DCS_TEAR_MODE_VBLANK); in s6e63j0x03_enable()
385 if (ret < 0) in s6e63j0x03_enable()
386 return ret; in s6e63j0x03_enable()
388 ret = s6e63j0x03_apply_mtp_key(ctx, false); in s6e63j0x03_enable()
389 if (ret < 0) in s6e63j0x03_enable()
390 return ret; in s6e63j0x03_enable()
392 ret = mipi_dsi_dcs_set_display_on(dsi); in s6e63j0x03_enable()
393 if (ret < 0) in s6e63j0x03_enable()
394 return ret; in s6e63j0x03_enable()
437 int ret; in s6e63j0x03_probe() local
454 ret = devm_regulator_bulk_get(dev, ARRAY_SIZE(ctx->supplies), in s6e63j0x03_probe()
456 if (ret < 0) in s6e63j0x03_probe()
457 return dev_err_probe(dev, ret, "failed to get regulators\n"); in s6e63j0x03_probe()
480 ret = mipi_dsi_attach(dsi); in s6e63j0x03_probe()
481 if (ret < 0) in s6e63j0x03_probe()
484 return ret; in s6e63j0x03_probe()
490 return ret; in s6e63j0x03_probe()