Home
last modified time | relevance | path

Searched refs:win (Results 1 – 25 of 57) sorted by relevance

123

/drivers/video/
Ds3c-fb.c64 #define OSD_BASE(win, variant) ((variant).osd + ((win) * (variant).osd_stride)) argument
65 #define VIDOSD_A(win, variant) (OSD_BASE(win, variant) + 0x00) argument
66 #define VIDOSD_B(win, variant) (OSD_BASE(win, variant) + 0x04) argument
67 #define VIDOSD_C(win, variant) (OSD_BASE(win, variant) + 0x08) argument
68 #define VIDOSD_D(win, variant) (OSD_BASE(win, variant) + 0x0C) argument
140 struct s3c_fb_win_variant *win[S3C_FB_MAX_WIN]; member
230 static bool s3c_fb_validate_win_bpp(struct s3c_fb_win *win, unsigned int bpp) in s3c_fb_validate_win_bpp() argument
232 return win->variant.valid_bpp & VALID_BPP(bpp); in s3c_fb_validate_win_bpp()
246 struct s3c_fb_win *win = info->par; in s3c_fb_check_var() local
247 struct s3c_fb *sfb = win->parent; in s3c_fb_check_var()
[all …]
Dau1200fb.c180 static struct window_settings *win; variable
724 xsz = win->w[plane].xres; in au1200_setlocation()
725 ysz = win->w[plane].yres; in au1200_setlocation()
726 if ((xpos + win->w[plane].xres) > panel->Xres) { in au1200_setlocation()
732 if ((ypos + win->w[plane].yres) > panel->Yres) { in au1200_setlocation()
740 xsz = win->w[plane].xres + xpos; in au1200_setlocation()
748 ysz = win->w[plane].yres + ypos; in au1200_setlocation()
755 win->w[plane].xpos = xpos; in au1200_setlocation()
756 win->w[plane].ypos = ypos; in au1200_setlocation()
855 au1200_setlocation(fbdev, 0, win->w[0].xpos, win->w[0].ypos); in au1200_setpanel()
[all …]
/drivers/media/video/omap/
Domap_voutlib.c112 struct v4l2_window *win, struct v4l2_framebuffer *fbuf, in omap_vout_new_window() argument
122 win->w = new_win->w; in omap_vout_new_window()
123 win->field = new_win->field; in omap_vout_new_window()
124 win->chromakey = new_win->chromakey; in omap_vout_new_window()
129 if ((crop->height/win->w.height) >= 2) in omap_vout_new_window()
130 crop->height = win->w.height * 2; in omap_vout_new_window()
132 if ((crop->width/win->w.width) >= 2) in omap_vout_new_window()
133 crop->width = win->w.width * 2; in omap_vout_new_window()
140 if (crop->height != win->w.height) in omap_vout_new_window()
145 if ((crop->height/win->w.height) >= 4) in omap_vout_new_window()
[all …]
Domap_vout.c412 info.global_alpha = vout->win.global_alpha; in omapvid_setup_overlay()
449 struct v4l2_window *win; in omapvid_init() local
455 win = &vout->win; in omapvid_init()
463 outw = win->w.width; in omapvid_init()
464 outh = win->w.height; in omapvid_init()
473 posy = (timing->y_res - win->w.width) - win->w.left; in omapvid_init()
474 posx = win->w.top; in omapvid_init()
478 posx = (timing->x_res - win->w.width) - win->w.left; in omapvid_init()
479 posy = (timing->y_res - win->w.height) - win->w.top; in omapvid_init()
486 posy = win->w.left; in omapvid_init()
[all …]
Domap_voutlib.h19 struct v4l2_rect *crop, struct v4l2_window *win,
27 struct v4l2_window *win, struct v4l2_framebuffer *fbuf,
32 struct v4l2_window *win);
/drivers/gpu/drm/exynos/
Dexynos_drm_fimd.c37 #define VIDOSD_A(win) (VIDOSD_BASE + 0x00 + (win) * 16) argument
38 #define VIDOSD_B(win) (VIDOSD_BASE + 0x04 + (win) * 16) argument
42 #define VIDOSD_C(win) (VIDOSD_BASE + 0x18 + (win) * 16) argument
44 #define VIDOSD_D(win) (VIDOSD_BASE + 0x0C + (win) * 16) argument
46 #define VIDWx_BUF_START(win, buf) (VIDW_BUF_START(buf) + (win) * 8) argument
47 #define VIDWx_BUF_END(win, buf) (VIDW_BUF_END(buf) + (win) * 8) argument
48 #define VIDWx_BUF_SIZE(win, buf) (VIDW_BUF_SIZE(buf) + (win) * 4) argument
302 int win; in fimd_win_mode_set() local
312 win = overlay->zpos; in fimd_win_mode_set()
313 if (win == DEFAULT_ZPOS) in fimd_win_mode_set()
[all …]
Dexynos_mixer.c322 static void mixer_cfg_layer(struct mixer_context *ctx, int win, bool enable) in mixer_cfg_layer() argument
327 switch (win) { in mixer_cfg_layer()
350 static void vp_video_buffer(struct mixer_context *ctx, int win) in vp_video_buffer() argument
365 win_data = &ctx->win_data[win]; in vp_video_buffer()
473 mixer_cfg_layer(ctx, win, true); in vp_video_buffer()
482 static void mixer_graph_buffer(struct mixer_context *ctx, int win) in mixer_graph_buffer() argument
495 win_data = &ctx->win_data[win]; in mixer_graph_buffer()
545 mixer_reg_writemask(res, MXR_GRAPHIC_CFG(win), in mixer_graph_buffer()
549 mixer_reg_write(res, MXR_GRAPHIC_SPAN(win), full_width); in mixer_graph_buffer()
555 mixer_reg_write(res, MXR_GRAPHIC_WH(win), val); in mixer_graph_buffer()
[all …]
Dexynos_drm_vidi.c271 int win; in vidi_win_mode_set() local
281 win = overlay->zpos; in vidi_win_mode_set()
282 if (win == DEFAULT_ZPOS) in vidi_win_mode_set()
283 win = ctx->default_win; in vidi_win_mode_set()
285 if (win < 0 || win > WINDOWS_NR) in vidi_win_mode_set()
293 win_data = &ctx->win_data[win]; in vidi_win_mode_set()
328 int win = zpos; in vidi_win_commit() local
335 if (win == DEFAULT_ZPOS) in vidi_win_commit()
336 win = ctx->default_win; in vidi_win_commit()
338 if (win < 0 || win > WINDOWS_NR) in vidi_win_commit()
[all …]
/drivers/net/wireless/iwlegacy/
D3945-rs.c133 il3945_clear_win(struct il3945_rate_scale_data *win) in il3945_clear_win() argument
135 win->data = 0; in il3945_clear_win()
136 win->success_counter = 0; in il3945_clear_win()
137 win->success_ratio = -1; in il3945_clear_win()
138 win->counter = 0; in il3945_clear_win()
139 win->average_tpt = IL_INVALID_VALUE; in il3945_clear_win()
140 win->stamp = 0; in il3945_clear_win()
164 if (!rs_sta->win[i].counter) in il3945_rate_scale_flush_wins()
168 if (time_after(jiffies, rs_sta->win[i].stamp + RATE_WIN_FLUSH)) { in il3945_rate_scale_flush_wins()
170 rs_sta->win[i].counter, i); in il3945_rate_scale_flush_wins()
[all …]
D4965-rs.c230 il4965_rs_rate_scale_clear_win(struct il_rate_scale_data *win) in il4965_rs_rate_scale_clear_win() argument
232 win->data = 0; in il4965_rs_rate_scale_clear_win()
233 win->success_counter = 0; in il4965_rs_rate_scale_clear_win()
234 win->success_ratio = IL_INVALID_VALUE; in il4965_rs_rate_scale_clear_win()
235 win->counter = 0; in il4965_rs_rate_scale_clear_win()
236 win->average_tpt = IL_INVALID_VALUE; in il4965_rs_rate_scale_clear_win()
237 win->stamp = 0; in il4965_rs_rate_scale_clear_win()
423 struct il_rate_scale_data *win = NULL; in il4965_rs_collect_tx_data() local
431 win = &(tbl->win[scale_idx]); in il4965_rs_collect_tx_data()
445 if (win->counter >= RATE_MAX_WINDOW) { in il4965_rs_collect_tx_data()
[all …]
/drivers/media/video/
Dbtcx-risc.c92 btcx_screen_clips(int swidth, int sheight, struct v4l2_rect *win, in btcx_screen_clips() argument
95 if (win->left < 0) { in btcx_screen_clips()
99 clips[n].c.width = -win->left; in btcx_screen_clips()
100 clips[n].c.height = win->height; in btcx_screen_clips()
103 if (win->left + win->width > swidth) { in btcx_screen_clips()
105 clips[n].c.left = swidth - win->left; in btcx_screen_clips()
107 clips[n].c.width = win->width - clips[n].c.left; in btcx_screen_clips()
108 clips[n].c.height = win->height; in btcx_screen_clips()
111 if (win->top < 0) { in btcx_screen_clips()
115 clips[n].c.width = win->width; in btcx_screen_clips()
[all …]
Dov772x.c408 const struct ov772x_win_size *win; member
583 if (!priv->win || !priv->cfmt) { in ov772x_s_stream()
591 priv->cfmt->code, priv->win->name); in ov772x_s_stream()
689 const struct ov772x_win_size *win; in ov772x_select_win() local
694 win = &ov772x_win_qvga; in ov772x_select_win()
700 win = &ov772x_win_vga; in ov772x_select_win()
702 return win; in ov772x_select_win()
729 priv->win = ov772x_select_win(*width, *height); in ov772x_set_params()
786 ret = ov772x_write_array(client, priv->win->regs); in ov772x_set_params()
822 val = priv->win->com7_bit | priv->cfmt->com7; in ov772x_set_params()
[all …]
Dov2640.c306 const struct ov2640_win_size *win; member
772 priv->win = ov2640_select_win(width, height); in ov2640_set_params()
797 dev_dbg(&client->dev, "%s: Set size to %s", __func__, priv->win->name); in ov2640_set_params()
803 ret = ov2640_write_array(client, priv->win->regs); in ov2640_set_params()
819 *width = priv->win->width; in ov2640_set_params()
820 *height = priv->win->height; in ov2640_set_params()
827 priv->win = NULL; in ov2640_set_params()
838 if (!priv->win) { in ov2640_g_fmt()
846 mf->width = priv->win->width; in ov2640_g_fmt()
847 mf->height = priv->win->height; in ov2640_g_fmt()
[all …]
Dfsl-viu.c203 struct v4l2_window win; member
709 f->fmt.win = fh->win; in vidioc_g_fmt_overlay()
713 static int verify_preview(struct viu_dev *dev, struct v4l2_window *win) in verify_preview() argument
722 if (win->w.width < 48 || win->w.height < 32) in verify_preview()
725 field = win->field; in verify_preview()
730 field = (win->w.height > maxh/2) in verify_preview()
745 win->field = field; in verify_preview()
746 if (win->w.width > maxw) in verify_preview()
747 win->w.width = maxw; in verify_preview()
748 if (win->w.height > maxh) in verify_preview()
[all …]
Dbtcx-risc.h21 int btcx_screen_clips(int swidth, int sheight, struct v4l2_rect *win,
23 int btcx_align(struct v4l2_rect *win, struct v4l2_clip *clips,
/drivers/media/video/davinci/
Dvpbe_osd.c463 struct osd_window_state *win = &osd->win[layer]; in osd_disable_layer() local
468 if (!win->is_enabled) { in osd_disable_layer()
472 win->is_enabled = 0; in osd_disable_layer()
509 struct osd_window_state *win = &osd->win[layer]; in osd_enable_layer() local
510 struct osd_layer_config *cfg = &win->lconfig; in osd_enable_layer()
519 if (!otherwin && (!win->is_allocated || in osd_enable_layer()
520 !win->fb_base_phys || in osd_enable_layer()
528 if (win->is_enabled) { in osd_enable_layer()
532 win->is_enabled = 1; in osd_enable_layer()
613 struct osd_window_state *win = &sd->win[layer]; in _osd_start_layer() local
[all …]
Disif.c103 .win = ISIF_WIN_NTSC,
113 .win = ISIF_WIN_VGA,
639 val |= ((params->win.width + 31) >> 5); in isif_config_raw()
641 val |= (((params->win.width + in isif_config_raw()
642 (params->win.width >> 2)) + 31) >> 5); in isif_config_raw()
644 val |= (((params->win.width * 2) + 31) >> 5); in isif_config_raw()
671 isif_setwin(&params->win, params->frm_fmt, 1); in isif_config_raw()
699 frame_size.hlpfr = isif_cfg.bayer.win.width; in isif_config_raw()
700 frame_size.pplen = isif_cfg.bayer.win.height; in isif_config_raw()
797 static int isif_set_image_window(struct v4l2_rect *win) in isif_set_image_window() argument
[all …]
Ddm644x_ccdc.c74 .win = CCDC_WIN_VGA,
85 .win = CCDC_WIN_PAL,
424 ccdc_setwin(&params->win, params->frm_fmt, 2); in ccdc_config_ycbcr()
442 regw(((params->win.width * 2 + 31) & ~0x1f), CCDC_HSIZE_OFF); in ccdc_config_ycbcr()
570 ccdc_setwin(&params->win, params->frm_fmt, CCDC_PPC_RAW); in ccdc_config_raw()
612 val = ((params->win.left & CCDC_FMT_HORZ_FMTSPH_MASK) << in ccdc_config_raw()
614 (params->win.width & CCDC_FMT_HORZ_FMTLNH_MASK); in ccdc_config_raw()
618 val = (params->win.top & CCDC_FMT_VERT_FMTSLV_MASK) in ccdc_config_raw()
621 val |= (params->win.height) & CCDC_FMT_VERT_FMTLNV_MASK; in ccdc_config_raw()
623 val |= (params->win.height >> 1) & CCDC_FMT_VERT_FMTLNV_MASK; in ccdc_config_raw()
[all …]
Ddm355_ccdc.c73 .win = CCDC_WIN_VGA,
110 .win = CCDC_WIN_PAL,
395 ccdc_setwin(&params->win, params->frm_fmt, 2); in ccdc_config_ycbcr()
407 regw(((params->win.width * 2 + 31) >> 5), HSIZE); in ccdc_config_ycbcr()
696 ccdc_setwin(&params->win, params->frm_fmt, 1); in ccdc_config_raw()
734 val |= (((params->win.width) + 31) >> 5) & in ccdc_config_raw()
739 (((params->win.width) + 31) >> 5) & in ccdc_config_raw()
743 val |= (((params->win.width * 2) + 31) >> 5) & in ccdc_config_raw()
747 (((params->win.width * 2) + 31) >> 5) & in ccdc_config_raw()
861 static int ccdc_set_image_window(struct v4l2_rect *win) in ccdc_set_image_window() argument
[all …]
Dccdc_hw_device.h77 int (*set_image_window) (struct v4l2_rect *win);
79 void (*get_image_window) (struct v4l2_rect *win);
/drivers/pcmcia/
Dpcmcia_resource.c239 s->win[w].card_start = offset; in pcmcia_map_mem_page()
240 ret = s->ops->set_mem_map(s, &s->win[w]); in pcmcia_map_mem_page()
435 pccard_mem_map *win; in pcmcia_release_window() local
445 win = &s->win[w]; in pcmcia_release_window()
454 win->flags &= ~MAP_ACTIVE; in pcmcia_release_window()
455 s->ops->set_mem_map(s, win); in pcmcia_release_window()
459 if (win->res) { in pcmcia_release_window()
461 release_resource(win->res); in pcmcia_release_window()
462 kfree(win->res); in pcmcia_release_window()
463 win->res = NULL; in pcmcia_release_window()
[all …]
Dpcmcia_cis.c216 i = (io->win[1].len > io->win[0].len); in pcmcia_do_loop_config()
218 p_dev->resource[1]->start = io->win[1-i].base; in pcmcia_do_loop_config()
219 p_dev->resource[1]->end = io->win[1-i].len; in pcmcia_do_loop_config()
221 p_dev->resource[0]->start = io->win[i].base; in pcmcia_do_loop_config()
222 p_dev->resource[0]->end = io->win[i].len; in pcmcia_do_loop_config()
235 p_dev->resource[2]->start = mem->win[0].host_addr; in pcmcia_do_loop_config()
236 p_dev->resource[2]->end = mem->win[0].len; in pcmcia_do_loop_config()
239 p_dev->card_addr = mem->win[0].card_addr; in pcmcia_do_loop_config()
/drivers/video/omap/
Domapfb_main.c719 struct omapfb_update_window *win, in omapfb_update_window_async() argument
743 if (win->x >= xres || win->y >= yres || in omapfb_update_window_async()
744 win->out_x > xres || win->out_y > yres) in omapfb_update_window_async()
751 if (win->x + win->width > xres) in omapfb_update_window_async()
752 win->width = xres - win->x; in omapfb_update_window_async()
753 if (win->y + win->height > yres) in omapfb_update_window_async()
754 win->height = yres - win->y; in omapfb_update_window_async()
755 if (win->out_x + win->out_width > xres) in omapfb_update_window_async()
756 win->out_width = xres - win->out_x; in omapfb_update_window_async()
757 if (win->out_y + win->out_height > yres) in omapfb_update_window_async()
[all …]
/drivers/media/common/
Dsaa7146_video.c142 fmt.fmt.win = fh->ov.win; in saa7146_start_preview()
148 fh->ov.win = fmt.fmt.win; in saa7146_start_preview()
152 fh->ov.win.w.width, fh->ov.win.w.height, in saa7146_start_preview()
153 fh->ov.win.w.left, fh->ov.win.w.top, in saa7146_start_preview()
154 vv->ov_fmt->name, v4l2_field_names[fh->ov.win.field]); in saa7146_start_preview()
737 f->fmt.win = ((struct saa7146_fh *)fh)->ov.win; in vidioc_g_fmt_vid_overlay()
816 struct v4l2_window *win = &f->fmt.win; in vidioc_try_fmt_vid_overlay() local
830 if (win->w.width < 48 || win->w.height < 32) { in vidioc_try_fmt_vid_overlay()
832 win->w.width, win->w.height); in vidioc_try_fmt_vid_overlay()
835 if (win->clipcount > 16) { in vidioc_try_fmt_vid_overlay()
[all …]
/drivers/media/video/saa7134/
Dsaa7134-video.c828 static int verify_preview(struct saa7134_dev *dev, struct v4l2_window *win) in verify_preview() argument
837 if (win->w.width < 48 || win->w.height < 32) in verify_preview()
839 if (win->clipcount > 2048) in verify_preview()
842 field = win->field; in verify_preview()
847 field = (win->w.height > maxh/2) in verify_preview()
862 win->field = field; in verify_preview()
863 if (win->w.width > maxw) in verify_preview()
864 win->w.width = maxw; in verify_preview()
865 if (win->w.height > maxh) in verify_preview()
866 win->w.height = maxh; in verify_preview()
[all …]

123