Home
last modified time | relevance | path

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

1234

/drivers/video/fbdev/
Ds3c-fb.c63 #define OSD_BASE(win, variant) ((variant).osd + ((win) * (variant).osd_stride)) argument
64 #define VIDOSD_A(win, variant) (OSD_BASE(win, variant) + 0x00) argument
65 #define VIDOSD_B(win, variant) (OSD_BASE(win, variant) + 0x04) argument
66 #define VIDOSD_C(win, variant) (OSD_BASE(win, variant) + 0x08) argument
67 #define VIDOSD_D(win, variant) (OSD_BASE(win, variant) + 0x0C) argument
139 struct s3c_fb_win_variant *win[S3C_FB_MAX_WIN]; member
229 static bool s3c_fb_validate_win_bpp(struct s3c_fb_win *win, unsigned int bpp) in s3c_fb_validate_win_bpp() argument
231 return win->variant.valid_bpp & VALID_BPP(bpp); in s3c_fb_validate_win_bpp()
245 struct s3c_fb_win *win = info->par; in s3c_fb_check_var() local
246 struct s3c_fb *sfb = win->parent; in s3c_fb_check_var()
[all …]
Dau1200fb.c182 static struct window_settings *win; variable
715 xsz = win->w[plane].xres; in au1200_setlocation()
716 ysz = win->w[plane].yres; in au1200_setlocation()
717 if ((xpos + win->w[plane].xres) > panel->Xres) { in au1200_setlocation()
723 if ((ypos + win->w[plane].yres) > panel->Yres) { in au1200_setlocation()
731 xsz = win->w[plane].xres + xpos; in au1200_setlocation()
739 ysz = win->w[plane].yres + ypos; in au1200_setlocation()
746 win->w[plane].xpos = xpos; in au1200_setlocation()
747 win->w[plane].ypos = ypos; in au1200_setlocation()
851 au1200_setlocation(fbdev, 0, win->w[0].xpos, win->w[0].ypos); in au1200_setpanel()
[all …]
/drivers/media/platform/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 …]
/drivers/bus/
Dmvebu-mbus.c116 unsigned int (*win_cfg_offset)(const int win);
117 unsigned int (*win_remap_offset)(const int win);
191 const int win) in mvebu_mbus_window_is_remappable() argument
193 return mbus->soc->win_remap_offset(win) != MVEBU_MBUS_NO_REMAP; in mvebu_mbus_window_is_remappable()
201 int win, int *enabled, u64 *base, in mvebu_mbus_read_window() argument
206 mbus->soc->win_cfg_offset(win); in mvebu_mbus_read_window()
227 if (mvebu_mbus_window_is_remappable(mbus, win)) { in mvebu_mbus_read_window()
230 mbus->soc->win_remap_offset(win); in mvebu_mbus_read_window()
240 int win) in mvebu_mbus_disable_window() argument
244 addr = mbus->mbuswins_base + mbus->soc->win_cfg_offset(win); in mvebu_mbus_disable_window()
[all …]
/drivers/hwtracing/intel_th/
Dmsu.c79 struct msc_window *win; member
159 struct msc_window *win; in msc_oldest_window() local
172 list_for_each_entry(win, &msc->win_list, entry) { in msc_oldest_window()
173 if (win->block[0].addr == win_addr) in msc_oldest_window()
177 if (msc_block_is_empty(win->block[0].bdesc)) in msc_oldest_window()
181 return win; in msc_oldest_window()
193 static unsigned int msc_win_oldest_block(struct msc_window *win) in msc_win_oldest_block() argument
196 struct msc_block_desc *bdesc = win->block[0].bdesc; in msc_win_oldest_block()
206 for (blk = 0; blk < win->nr_blocks; blk++) { in msc_win_oldest_block()
207 bdesc = win->block[blk].bdesc; in msc_win_oldest_block()
[all …]
/drivers/net/wireless/intel/iwlegacy/
D3945-rs.c132 il3945_clear_win(struct il3945_rate_scale_data *win) in il3945_clear_win() argument
134 win->data = 0; in il3945_clear_win()
135 win->success_counter = 0; in il3945_clear_win()
136 win->success_ratio = -1; in il3945_clear_win()
137 win->counter = 0; in il3945_clear_win()
138 win->average_tpt = IL_INVALID_VALUE; in il3945_clear_win()
139 win->stamp = 0; in il3945_clear_win()
163 if (!rs_sta->win[i].counter) in il3945_rate_scale_flush_wins()
167 if (time_after(jiffies, rs_sta->win[i].stamp + RATE_WIN_FLUSH)) { in il3945_rate_scale_flush_wins()
169 rs_sta->win[i].counter, i); in il3945_rate_scale_flush_wins()
[all …]
D4965-rs.c229 il4965_rs_rate_scale_clear_win(struct il_rate_scale_data *win) in il4965_rs_rate_scale_clear_win() argument
231 win->data = 0; in il4965_rs_rate_scale_clear_win()
232 win->success_counter = 0; in il4965_rs_rate_scale_clear_win()
233 win->success_ratio = IL_INVALID_VALUE; in il4965_rs_rate_scale_clear_win()
234 win->counter = 0; in il4965_rs_rate_scale_clear_win()
235 win->average_tpt = IL_INVALID_VALUE; in il4965_rs_rate_scale_clear_win()
236 win->stamp = 0; in il4965_rs_rate_scale_clear_win()
422 struct il_rate_scale_data *win = NULL; in il4965_rs_collect_tx_data() local
430 win = &(tbl->win[scale_idx]); in il4965_rs_collect_tx_data()
444 if (win->counter >= RATE_MAX_WINDOW) { in il4965_rs_collect_tx_data()
[all …]
/drivers/media/pci/bt8xx/
Dbtcx-risc.c88 btcx_screen_clips(int swidth, int sheight, struct v4l2_rect *win, in btcx_screen_clips() argument
91 if (win->left < 0) { in btcx_screen_clips()
95 clips[n].c.width = -win->left; in btcx_screen_clips()
96 clips[n].c.height = win->height; in btcx_screen_clips()
99 if (win->left + win->width > swidth) { in btcx_screen_clips()
101 clips[n].c.left = swidth - win->left; in btcx_screen_clips()
103 clips[n].c.width = win->width - clips[n].c.left; in btcx_screen_clips()
104 clips[n].c.height = win->height; in btcx_screen_clips()
107 if (win->top < 0) { in btcx_screen_clips()
111 clips[n].c.width = win->width; in btcx_screen_clips()
[all …]
/drivers/usb/host/
Dxhci-mvebu.c27 int win; in xhci_mvebu_mbus_config() local
30 for (win = 0; win < USB3_MAX_WINDOWS; win++) { in xhci_mvebu_mbus_config()
31 writel(0, base + USB3_WIN_CTRL(win)); in xhci_mvebu_mbus_config()
32 writel(0, base + USB3_WIN_BASE(win)); in xhci_mvebu_mbus_config()
36 for (win = 0; win < dram->num_cs; win++) { in xhci_mvebu_mbus_config()
37 const struct mbus_dram_window *cs = dram->cs + win; in xhci_mvebu_mbus_config()
41 base + USB3_WIN_CTRL(win)); in xhci_mvebu_mbus_config()
43 writel((cs->base & 0xffff0000), base + USB3_WIN_BASE(win)); in xhci_mvebu_mbus_config()
/drivers/gpu/drm/exynos/
Dexynos_drm_fimd.c47 #define VIDOSD_A(win) (VIDOSD_BASE + 0x00 + (win) * 16) argument
48 #define VIDOSD_B(win) (VIDOSD_BASE + 0x04 + (win) * 16) argument
53 #define VIDOSD_C(win) (VIDOSD_BASE + 0x08 + (win) * 16) argument
55 #define VIDOSD_D(win) (VIDOSD_BASE + 0x0C + (win) * 16) argument
57 #define VIDWnALPHA0(win) (VIDW_ALPHA + 0x00 + (win) * 8) argument
58 #define VIDWnALPHA1(win) (VIDW_ALPHA + 0x04 + (win) * 8) argument
60 #define VIDWx_BUF_START(win, buf) (VIDW_BUF_START(buf) + (win) * 8) argument
61 #define VIDWx_BUF_START_S(win, buf) (VIDW_BUF_START_S(buf) + (win) * 8) argument
62 #define VIDWx_BUF_END(win, buf) (VIDW_BUF_END(buf) + (win) * 8) argument
63 #define VIDWx_BUF_SIZE(win, buf) (VIDW_BUF_SIZE(buf) + (win) * 4) argument
[all …]
Dexynos5433_drm_decon.c196 static void decon_win_set_pixfmt(struct decon_context *ctx, unsigned int win, in decon_win_set_pixfmt() argument
201 val = readl(ctx->addr + DECON_WINCONx(win)); in decon_win_set_pixfmt()
245 writel(val, ctx->addr + DECON_WINCONx(win)); in decon_win_set_pixfmt()
248 static void decon_shadow_protect_win(struct decon_context *ctx, int win, in decon_shadow_protect_win() argument
251 decon_set_bits(ctx, DECON_SHADOWCON, SHADOWCON_Wx_PROTECT(win), in decon_shadow_protect_win()
278 unsigned int win = plane->index; in decon_update_plane() local
288 writel(val, ctx->addr + DECON_VIDOSDxA(win)); in decon_update_plane()
292 writel(val, ctx->addr + DECON_VIDOSDxB(win)); in decon_update_plane()
296 writel(val, ctx->addr + DECON_VIDOSDxC(win)); in decon_update_plane()
300 writel(val, ctx->addr + DECON_VIDOSDxD(win)); in decon_update_plane()
[all …]
Dexynos7_drm_decon.c110 unsigned int win, ch_enabled = 0; in decon_clear_channels() local
115 for (win = 0; win < WINDOWS_NR; win++) { in decon_clear_channels()
116 u32 val = readl(ctx->regs + WINCON(win)); in decon_clear_channels()
120 writel(val, ctx->regs + WINCON(win)); in decon_clear_channels()
275 static void decon_win_set_pixfmt(struct decon_context *ctx, unsigned int win, in decon_win_set_pixfmt() argument
281 val = readl(ctx->regs + WINCON(win)); in decon_win_set_pixfmt()
349 writel(val, ctx->regs + WINCON(win)); in decon_win_set_pixfmt()
352 static void decon_win_set_colkey(struct decon_context *ctx, unsigned int win) in decon_win_set_colkey() argument
361 writel(keycon0, ctx->regs + WKEYCON0_BASE(win)); in decon_win_set_colkey()
362 writel(keycon1, ctx->regs + WKEYCON1_BASE(win)); in decon_win_set_colkey()
[all …]
/drivers/gpu/drm/rockchip/
Drockchip_drm_vop.c55 #define VOP_WIN_SET(x, win, name, v) \ argument
56 REG_SET(x, win->base, win->phy->name, v, RELAXED)
57 #define VOP_SCL_SET(x, win, name, v) \ argument
58 REG_SET(x, win->base, win->phy->scl->name, v, RELAXED)
59 #define VOP_SCL_SET_EXT(x, win, name, v) \ argument
60 REG_SET(x, win->base, win->phy->scl->ext->name, v, RELAXED)
83 #define VOP_WIN_GET(x, win, name) \ argument
84 vop_read_reg(x, win->base, &win->phy->name)
86 #define VOP_WIN_GET_YRGBADDR(vop, win) \ argument
87 vop_readl(vop, win->base + win->phy->yrgb_mst.offset)
[all …]
/drivers/media/platform/davinci/
Dvpbe_osd.c481 struct osd_window_state *win = &osd->win[layer]; in osd_disable_layer() local
486 if (!win->is_enabled) { in osd_disable_layer()
490 win->is_enabled = 0; in osd_disable_layer()
527 struct osd_window_state *win = &osd->win[layer]; in osd_enable_layer() local
528 struct osd_layer_config *cfg = &win->lconfig; in osd_enable_layer()
537 if (!otherwin && (!win->is_allocated || in osd_enable_layer()
538 !win->fb_base_phys || in osd_enable_layer()
546 if (win->is_enabled) { in osd_enable_layer()
550 win->is_enabled = 1; in osd_enable_layer()
631 struct osd_window_state *win = &sd->win[layer]; in _osd_start_layer() local
[all …]
Disif.c100 .win = ISIF_WIN_NTSC,
110 .win = ISIF_WIN_VGA,
636 val |= ((params->win.width + 31) >> 5); in isif_config_raw()
638 val |= (((params->win.width + in isif_config_raw()
639 (params->win.width >> 2)) + 31) >> 5); in isif_config_raw()
641 val |= (((params->win.width * 2) + 31) >> 5); in isif_config_raw()
668 isif_setwin(&params->win, params->frm_fmt, 1); in isif_config_raw()
696 frame_size.hlpfr = isif_cfg.bayer.win.width; in isif_config_raw()
697 frame_size.pplen = isif_cfg.bayer.win.height; in isif_config_raw()
794 static int isif_set_image_window(struct v4l2_rect *win) in isif_set_image_window() argument
[all …]
Ddm644x_ccdc.c69 .win = CCDC_WIN_VGA,
80 .win = CCDC_WIN_PAL,
422 ccdc_setwin(&params->win, params->frm_fmt, 2); in ccdc_config_ycbcr()
440 regw(((params->win.width * 2 + 31) & ~0x1f), CCDC_HSIZE_OFF); in ccdc_config_ycbcr()
568 ccdc_setwin(&params->win, params->frm_fmt, CCDC_PPC_RAW); in ccdc_config_raw()
605 val = ((params->win.left & CCDC_FMT_HORZ_FMTSPH_MASK) << in ccdc_config_raw()
607 (params->win.width & CCDC_FMT_HORZ_FMTLNH_MASK); in ccdc_config_raw()
611 val = (params->win.top & CCDC_FMT_VERT_FMTSLV_MASK) in ccdc_config_raw()
614 val |= (params->win.height) & CCDC_FMT_VERT_FMTLNV_MASK; in ccdc_config_raw()
616 val |= (params->win.height >> 1) & CCDC_FMT_VERT_FMTLNV_MASK; in ccdc_config_raw()
[all …]
Ddm355_ccdc.c68 .win = CCDC_WIN_VGA,
105 .win = CCDC_WIN_PAL,
390 ccdc_setwin(&params->win, params->frm_fmt, 2); in ccdc_config_ycbcr()
402 regw(((params->win.width * 2 + 31) >> 5), HSIZE); in ccdc_config_ycbcr()
691 ccdc_setwin(&params->win, params->frm_fmt, 1); in ccdc_config_raw()
729 val |= (((params->win.width) + 31) >> 5) & in ccdc_config_raw()
734 (((params->win.width) + 31) >> 5) & in ccdc_config_raw()
738 val |= (((params->win.width * 2) + 31) >> 5) & in ccdc_config_raw()
742 (((params->win.width * 2) + 31) >> 5) & in ccdc_config_raw()
856 static int ccdc_set_image_window(struct v4l2_rect *win) in ccdc_set_image_window() argument
[all …]
/drivers/media/i2c/soc_camera/
Dov772x.c399 const struct ov772x_win_size *win; member
569 priv->cfmt->code, priv->win->name); in ov772x_s_stream()
664 const struct ov772x_win_size *win = &ov772x_win_sizes[0]; in ov772x_select_win() local
673 win = &ov772x_win_sizes[i]; in ov772x_select_win()
677 return win; in ov772x_select_win()
682 const struct ov772x_win_size **win) in ov772x_select_params() argument
697 *win = ov772x_select_win(mf->width, mf->height); in ov772x_select_params()
702 const struct ov772x_win_size *win) in ov772x_set_params() argument
761 ret = ov772x_write(client, HSTART, win->rect.left >> 2); in ov772x_set_params()
764 ret = ov772x_write(client, HSIZE, win->rect.width >> 2); in ov772x_set_params()
[all …]
/drivers/acpi/
Dresource.c200 static bool acpi_decode_space(struct resource_win *win, in acpi_decode_space() argument
208 struct resource *res = &win->res; in acpi_decode_space()
234 win->offset = offset; in acpi_decode_space()
238 (offset != win->offset || start != res->start || end != res->end)) { in acpi_decode_space()
284 struct resource_win *win) in acpi_dev_resource_address_space() argument
288 win->res.flags = 0; in acpi_dev_resource_address_space()
292 return acpi_decode_space(win, (struct acpi_resource_address *)&addr, in acpi_dev_resource_address_space()
313 struct resource_win *win) in acpi_dev_resource_ext_address_space() argument
317 win->res.flags = 0; in acpi_dev_resource_ext_address_space()
323 return acpi_decode_space(win, (struct acpi_resource_address *)ext_addr, in acpi_dev_resource_ext_address_space()
[all …]
/drivers/media/platform/vivid/
Dvivid-vid-out.c823 struct v4l2_window *win = &f->fmt.win; in vidioc_g_fmt_vid_out_overlay() local
824 unsigned clipcount = win->clipcount; in vidioc_g_fmt_vid_out_overlay()
828 win->w.top = dev->overlay_out_top; in vidioc_g_fmt_vid_out_overlay()
829 win->w.left = dev->overlay_out_left; in vidioc_g_fmt_vid_out_overlay()
830 win->w.width = compose->width; in vidioc_g_fmt_vid_out_overlay()
831 win->w.height = compose->height; in vidioc_g_fmt_vid_out_overlay()
832 win->clipcount = dev->clipcount_out; in vidioc_g_fmt_vid_out_overlay()
833 win->field = V4L2_FIELD_ANY; in vidioc_g_fmt_vid_out_overlay()
834 win->chromakey = dev->chromakey_out; in vidioc_g_fmt_vid_out_overlay()
835 win->global_alpha = dev->global_alpha_out; in vidioc_g_fmt_vid_out_overlay()
[all …]
/drivers/gpu/drm/omapdrm/
Domap_plane.c85 struct omap_drm_window win; in omap_plane_atomic_update() local
97 memset(&win, 0, sizeof(win)); in omap_plane_atomic_update()
98 win.rotation = state->rotation; in omap_plane_atomic_update()
99 win.crtc_x = state->crtc_x; in omap_plane_atomic_update()
100 win.crtc_y = state->crtc_y; in omap_plane_atomic_update()
101 win.crtc_w = state->crtc_w; in omap_plane_atomic_update()
102 win.crtc_h = state->crtc_h; in omap_plane_atomic_update()
108 win.src_x = state->src_x >> 16; in omap_plane_atomic_update()
109 win.src_y = state->src_y >> 16; in omap_plane_atomic_update()
114 win.src_w = state->src_h >> 16; in omap_plane_atomic_update()
[all …]
Domap_fb.c153 struct omap_drm_window *win, struct omap_overlay_info *info) in omap_framebuffer_update_scanout() argument
162 info->pos_x = win->crtc_x; in omap_framebuffer_update_scanout()
163 info->pos_y = win->crtc_y; in omap_framebuffer_update_scanout()
164 info->out_width = win->crtc_w; in omap_framebuffer_update_scanout()
165 info->out_height = win->crtc_h; in omap_framebuffer_update_scanout()
166 info->width = win->src_w; in omap_framebuffer_update_scanout()
167 info->height = win->src_h; in omap_framebuffer_update_scanout()
169 x = win->src_x; in omap_framebuffer_update_scanout()
170 y = win->src_y; in omap_framebuffer_update_scanout()
173 uint32_t w = win->src_w; in omap_framebuffer_update_scanout()
[all …]
/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 …]
/drivers/video/fbdev/mmp/hw/
Dmmp_ctrl.c138 tmp |= fmt_to_reg(overlay, overlay->win.pix_fmt); in dmafetch_set_fmt()
142 static void overlay_set_win(struct mmp_overlay *overlay, struct mmp_win *win) in overlay_set_win() argument
147 memcpy(&overlay->win, win, sizeof(struct mmp_win)); in overlay_set_win()
152 writel_relaxed(win->pitch[0], &regs->v_pitch_yc); in overlay_set_win()
153 writel_relaxed(win->pitch[2] << 16 | in overlay_set_win()
154 win->pitch[1], &regs->v_pitch_uv); in overlay_set_win()
156 writel_relaxed((win->ysrc << 16) | win->xsrc, &regs->v_size); in overlay_set_win()
157 writel_relaxed((win->ydst << 16) | win->xdst, &regs->v_size_z); in overlay_set_win()
158 writel_relaxed(win->ypos << 16 | win->xpos, &regs->v_start); in overlay_set_win()
160 writel_relaxed(win->pitch[0], &regs->g_pitch); in overlay_set_win()
[all …]
/drivers/video/fbdev/omap/
Domapfb_main.c686 struct omapfb_update_window *win, in omapfb_update_window_async() argument
710 if (win->x >= xres || win->y >= yres || in omapfb_update_window_async()
711 win->out_x > xres || win->out_y > yres) in omapfb_update_window_async()
718 if (win->x + win->width > xres) in omapfb_update_window_async()
719 win->width = xres - win->x; in omapfb_update_window_async()
720 if (win->y + win->height > yres) in omapfb_update_window_async()
721 win->height = yres - win->y; in omapfb_update_window_async()
722 if (win->out_x + win->out_width > xres) in omapfb_update_window_async()
723 win->out_width = xres - win->out_x; in omapfb_update_window_async()
724 if (win->out_y + win->out_height > yres) in omapfb_update_window_async()
[all …]

1234