Lines Matching refs:win
466 struct osd_window_state *win = &osd->win[layer]; in osd_disable_layer() local
471 if (!win->is_enabled) { in osd_disable_layer()
475 win->is_enabled = 0; in osd_disable_layer()
512 struct osd_window_state *win = &osd->win[layer]; in osd_enable_layer() local
513 struct osd_layer_config *cfg = &win->lconfig; in osd_enable_layer()
522 if (!otherwin && (!win->is_allocated || in osd_enable_layer()
523 !win->fb_base_phys || in osd_enable_layer()
531 if (win->is_enabled) { in osd_enable_layer()
535 win->is_enabled = 1; in osd_enable_layer()
616 struct osd_window_state *win = &sd->win[layer]; in _osd_start_layer() local
623 cbcr_offset_32 = win->lconfig.line_length * in _osd_start_layer()
624 win->lconfig.ysize; in _osd_start_layer()
632 if (win->lconfig.pixfmt == PIXFMT_NV12) { in _osd_start_layer()
685 if (win->lconfig.pixfmt != PIXFMT_NV12) { in _osd_start_layer()
715 if (win->lconfig.pixfmt != PIXFMT_NV12) { in _osd_start_layer()
739 struct osd_window_state *win = &osd->win[layer]; in osd_start_layer() local
740 struct osd_layer_config *cfg = &win->lconfig; in osd_start_layer()
745 win->fb_base_phys = fb_base_phys & ~0x1F; in osd_start_layer()
751 win->fb_base_phys, in osd_start_layer()
762 struct osd_window_state *win = &osd->win[layer]; in osd_get_layer_config() local
767 *lconfig = win->lconfig; in osd_get_layer_config()
788 struct osd_window_state *win = &osd->win[layer]; in try_layer_config() local
830 *lconfig = win->lconfig; in try_layer_config()
841 pixfmt = osd->win[WIN_OSD1].lconfig.pixfmt; in try_layer_config()
843 pixfmt = osd->win[WIN_OSD0].lconfig.pixfmt; in try_layer_config()
850 *lconfig = win->lconfig; in try_layer_config()
861 pixfmt = osd->win[WIN_VID1].lconfig.pixfmt; in try_layer_config()
863 pixfmt = osd->win[WIN_VID0].lconfig.pixfmt; in try_layer_config()
870 *lconfig = win->lconfig; in try_layer_config()
877 *lconfig = win->lconfig; in try_layer_config()
1224 struct osd_window_state *win = &osd->win[layer]; in osd_set_layer_config() local
1225 struct osd_layer_config *cfg = &win->lconfig; in osd_set_layer_config()
1250 win->is_enabled = 0; in osd_set_layer_config()
1341 if (osd->win[WIN_VID0].lconfig.pixfmt == PIXFMT_RGB888) in osd_set_layer_config()
1343 else if (osd->win[WIN_VID1].lconfig.pixfmt == PIXFMT_RGB888) in osd_set_layer_config()
1351 win->fb_base_phys, in osd_set_layer_config()
1363 struct osd_window_state *win = &osd->win[layer]; in osd_init_layer() local
1366 struct osd_layer_config *cfg = &win->lconfig; in osd_init_layer()
1371 win->is_enabled = 0; in osd_init_layer()
1374 win->h_zoom = ZOOM_X1; in osd_init_layer()
1375 win->v_zoom = ZOOM_X1; in osd_init_layer()
1376 _osd_set_zoom(sd, layer, win->h_zoom, win->v_zoom); in osd_init_layer()
1378 win->fb_base_phys = 0; in osd_init_layer()
1379 _osd_start_layer(sd, layer, win->fb_base_phys, 0); in osd_init_layer()
1427 struct osd_window_state *win = &osd->win[layer]; in osd_release_layer() local
1432 if (!win->is_allocated) { in osd_release_layer()
1441 win->is_allocated = 0; in osd_release_layer()
1449 struct osd_window_state *win = &osd->win[layer]; in osd_request_layer() local
1454 if (win->is_allocated) { in osd_request_layer()
1458 win->is_allocated = 1; in osd_request_layer()