/drivers/video/fbdev/ |
D | s3c-fb.c | 60 #define OSD_BASE(win, variant) ((variant).osd + ((win) * (variant).osd_stride)) argument 61 #define VIDOSD_A(win, variant) (OSD_BASE(win, variant) + 0x00) argument 62 #define VIDOSD_B(win, variant) (OSD_BASE(win, variant) + 0x04) argument 63 #define VIDOSD_C(win, variant) (OSD_BASE(win, variant) + 0x08) argument 64 #define VIDOSD_D(win, variant) (OSD_BASE(win, variant) + 0x0C) argument 137 struct s3c_fb_win_variant *win[S3C_FB_MAX_WIN]; member 227 static bool s3c_fb_validate_win_bpp(struct s3c_fb_win *win, unsigned int bpp) in s3c_fb_validate_win_bpp() argument 229 return win->variant.valid_bpp & VALID_BPP(bpp); in s3c_fb_validate_win_bpp() 243 struct s3c_fb_win *win = info->par; in s3c_fb_check_var() local 244 struct s3c_fb *sfb = win->parent; in s3c_fb_check_var() [all …]
|
/drivers/media/platform/ti/omap/ |
D | omap_voutlib.c | 116 struct v4l2_window *win, struct v4l2_framebuffer *fbuf, in omap_vout_new_window() argument 126 win->w = new_win->w; in omap_vout_new_window() 127 win->field = new_win->field; in omap_vout_new_window() 128 win->chromakey = new_win->chromakey; in omap_vout_new_window() 133 if ((crop->height/win->w.height) >= 2) in omap_vout_new_window() 134 crop->height = win->w.height * 2; in omap_vout_new_window() 136 if ((crop->width/win->w.width) >= 2) in omap_vout_new_window() 137 crop->width = win->w.width * 2; in omap_vout_new_window() 144 if (crop->height != win->w.height) in omap_vout_new_window() 149 if ((crop->height/win->w.height) >= 4) in omap_vout_new_window() [all …]
|
D | omap_vout.c | 321 info.global_alpha = vout->win.global_alpha; in omapvid_setup_overlay() 358 struct v4l2_window *win; in omapvid_init() local 364 win = &vout->win; in omapvid_init() 376 outw = win->w.width; in omapvid_init() 377 outh = win->w.height; in omapvid_init() 384 posy = (timing->y_res - win->w.width) - win->w.left; in omapvid_init() 385 posx = win->w.top; in omapvid_init() 389 posx = (timing->x_res - win->w.width) - win->w.left; in omapvid_init() 390 posy = (timing->y_res - win->w.height) - win->w.top; in omapvid_init() 395 posy = win->w.left; in omapvid_init() [all …]
|
/drivers/bus/ |
D | mvebu-mbus.c | 113 unsigned int (*win_cfg_offset)(const int win); 114 unsigned int (*win_remap_offset)(const int win); 188 const int win) in mvebu_mbus_window_is_remappable() argument 190 return mbus->soc->win_remap_offset(win) != MVEBU_MBUS_NO_REMAP; in mvebu_mbus_window_is_remappable() 198 int win, int *enabled, u64 *base, in mvebu_mbus_read_window() argument 203 mbus->soc->win_cfg_offset(win); in mvebu_mbus_read_window() 224 if (mvebu_mbus_window_is_remappable(mbus, win)) { in mvebu_mbus_read_window() 227 mbus->soc->win_remap_offset(win); in mvebu_mbus_read_window() 237 int win) in mvebu_mbus_disable_window() argument 241 addr = mbus->mbuswins_base + mbus->soc->win_cfg_offset(win); in mvebu_mbus_disable_window() [all …]
|
/drivers/hwtracing/intel_th/ |
D | msu.c | 96 struct msc_window *win; member 278 static inline struct scatterlist *msc_win_base_sg(struct msc_window *win) in msc_win_base_sg() argument 280 return win->sgt->sgl; in msc_win_base_sg() 283 static inline struct msc_block_desc *msc_win_base(struct msc_window *win) in msc_win_base() argument 285 return sg_virt(msc_win_base_sg(win)); in msc_win_base() 288 static inline dma_addr_t msc_win_base_dma(struct msc_window *win) in msc_win_base_dma() argument 290 return sg_dma_address(msc_win_base_sg(win)); in msc_win_base_dma() 294 msc_win_base_pfn(struct msc_window *win) in msc_win_base_pfn() argument 296 return PFN_DOWN(msc_win_base_dma(win)); in msc_win_base_pfn() 304 static inline bool msc_is_last_win(struct msc_window *win) in msc_is_last_win() argument [all …]
|
/drivers/pci/controller/mobiveil/ |
D | pcie-mobiveil.h | 29 #define PAB_REG_ADDR(offset, win) \ argument 30 (offset + (win * PAB_REG_BLOCK_SIZE)) 31 #define PAB_EXT_REG_ADDR(offset, win) \ argument 32 (offset + (win * PAB_EXT_REG_BLOCK_SIZE)) 69 #define PAB_AXI_AMAP_CTRL(win) PAB_REG_ADDR(0x0ba0, win) argument 75 #define PAB_EXT_AXI_AMAP_SIZE(win) PAB_EXT_REG_ADDR(0xbaf0, win) argument 77 #define PAB_EXT_AXI_AMAP_AXI_WIN(win) PAB_EXT_REG_ADDR(0x80a0, win) argument 78 #define PAB_AXI_AMAP_AXI_WIN(win) PAB_REG_ADDR(0x0ba4, win) argument 81 #define PAB_AXI_AMAP_PEX_WIN_L(win) PAB_REG_ADDR(0x0ba8, win) argument 86 #define PAB_AXI_AMAP_PEX_WIN_H(win) PAB_REG_ADDR(0x0bac, win) argument [all …]
|
/drivers/net/wireless/intel/iwlegacy/ |
D | 3945-rs.c | 117 il3945_clear_win(struct il3945_rate_scale_data *win) in il3945_clear_win() argument 119 win->data = 0; in il3945_clear_win() 120 win->success_counter = 0; in il3945_clear_win() 121 win->success_ratio = -1; in il3945_clear_win() 122 win->counter = 0; in il3945_clear_win() 123 win->average_tpt = IL_INVALID_VALUE; in il3945_clear_win() 124 win->stamp = 0; in il3945_clear_win() 148 if (!rs_sta->win[i].counter) in il3945_rate_scale_flush_wins() 152 if (time_after(jiffies, rs_sta->win[i].stamp + RATE_WIN_FLUSH)) { in il3945_rate_scale_flush_wins() 154 rs_sta->win[i].counter, i); in il3945_rate_scale_flush_wins() [all …]
|
D | 4965-rs.c | 214 il4965_rs_rate_scale_clear_win(struct il_rate_scale_data *win) in il4965_rs_rate_scale_clear_win() argument 216 win->data = 0; in il4965_rs_rate_scale_clear_win() 217 win->success_counter = 0; in il4965_rs_rate_scale_clear_win() 218 win->success_ratio = IL_INVALID_VALUE; in il4965_rs_rate_scale_clear_win() 219 win->counter = 0; in il4965_rs_rate_scale_clear_win() 220 win->average_tpt = IL_INVALID_VALUE; in il4965_rs_rate_scale_clear_win() 221 win->stamp = 0; in il4965_rs_rate_scale_clear_win() 407 struct il_rate_scale_data *win = NULL; in il4965_rs_collect_tx_data() local 415 win = &(tbl->win[scale_idx]); in il4965_rs_collect_tx_data() 429 if (win->counter >= RATE_MAX_WINDOW) { in il4965_rs_collect_tx_data() [all …]
|
/drivers/media/pci/bt8xx/ |
D | btcx-risc.c | 83 btcx_screen_clips(int swidth, int sheight, struct v4l2_rect *win, in btcx_screen_clips() argument 86 if (win->left < 0) { in btcx_screen_clips() 90 clips[n].c.width = -win->left; in btcx_screen_clips() 91 clips[n].c.height = win->height; in btcx_screen_clips() 94 if (win->left + win->width > swidth) { in btcx_screen_clips() 96 clips[n].c.left = swidth - win->left; in btcx_screen_clips() 98 clips[n].c.width = win->width - clips[n].c.left; in btcx_screen_clips() 99 clips[n].c.height = win->height; in btcx_screen_clips() 102 if (win->top < 0) { in btcx_screen_clips() 106 clips[n].c.width = win->width; in btcx_screen_clips() [all …]
|
/drivers/gpu/drm/rockchip/ |
D | rockchip_drm_vop2.c | 216 struct vop2_win win[]; member 258 static void vop2_win_write(const struct vop2_win *win, unsigned int reg, u32 v) in vop2_win_write() argument 260 regmap_field_write(win->reg[reg], v); in vop2_win_write() 263 static bool vop2_cluster_window(const struct vop2_win *win) in vop2_cluster_window() argument 265 return win->data->feature & WIN_FEATURE_CLUSTER; in vop2_cluster_window() 276 static void vop2_win_disable(struct vop2_win *win) in vop2_win_disable() argument 278 vop2_win_write(win, VOP2_WIN_ENABLE, 0); in vop2_win_disable() 280 if (vop2_cluster_window(win)) in vop2_win_disable() 281 vop2_win_write(win, VOP2_WIN_CLUSTER_ENABLE, 0); in vop2_win_disable() 460 struct vop2_win *win = to_vop2_win(plane); in rockchip_vop2_mod_supported() local [all …]
|
D | rockchip_drm_vop.c | 45 #define VOP_WIN_SET(vop, win, name, v) \ argument 46 vop_reg_set(vop, &win->phy->name, win->base, ~0, v, #name) 47 #define VOP_SCL_SET(vop, win, name, v) \ argument 48 vop_reg_set(vop, &win->phy->scl->name, win->base, ~0, v, #name) 49 #define VOP_SCL_SET_EXT(vop, win, name, v) \ argument 50 vop_reg_set(vop, &win->phy->scl->ext->name, \ 51 win->base, ~0, v, #name) 88 #define VOP_WIN_GET(vop, win, name) \ argument 89 vop_read_reg(vop, win->base, &win->phy->name) 91 #define VOP_WIN_HAS_REG(win, name) \ argument [all …]
|
/drivers/gpu/drm/exynos/ |
D | exynos_drm_fimd.c | 45 #define VIDOSD_A(win) (VIDOSD_BASE + 0x00 + (win) * 16) argument 46 #define VIDOSD_B(win) (VIDOSD_BASE + 0x04 + (win) * 16) argument 51 #define VIDOSD_C(win) (VIDOSD_BASE + 0x08 + (win) * 16) argument 53 #define VIDOSD_D(win) (VIDOSD_BASE + 0x0C + (win) * 16) argument 55 #define VIDWnALPHA0(win) (VIDW_ALPHA + 0x00 + (win) * 8) argument 56 #define VIDWnALPHA1(win) (VIDW_ALPHA + 0x04 + (win) * 8) argument 58 #define VIDWx_BUF_START(win, buf) (VIDW_BUF_START(buf) + (win) * 8) argument 59 #define VIDWx_BUF_START_S(win, buf) (VIDW_BUF_START_S(buf) + (win) * 8) argument 60 #define VIDWx_BUF_END(win, buf) (VIDW_BUF_END(buf) + (win) * 8) argument 61 #define VIDWx_BUF_SIZE(win, buf) (VIDW_BUF_SIZE(buf) + (win) * 4) argument [all …]
|
D | exynos5433_drm_decon.c | 264 static void decon_win_set_bldeq(struct decon_context *ctx, unsigned int win, in decon_win_set_bldeq() argument 287 decon_set_bits(ctx, DECON_BLENDERQx(win), mask, val); in decon_win_set_bldeq() 290 static void decon_win_set_bldmod(struct decon_context *ctx, unsigned int win, in decon_win_set_bldmod() argument 307 decon_set_bits(ctx, DECON_WINCONx(win), WINCONx_BLEND_MODE_MASK, val); in decon_win_set_bldmod() 313 decon_set_bits(ctx, DECON_VIDOSDxC(win), in decon_win_set_bldmod() 319 static void decon_win_set_pixfmt(struct decon_context *ctx, unsigned int win, in decon_win_set_pixfmt() argument 322 struct exynos_drm_plane *plane = &ctx->planes[win]; in decon_win_set_pixfmt() 334 val = readl(ctx->addr + DECON_WINCONx(win)); in decon_win_set_pixfmt() 375 decon_set_bits(ctx, DECON_WINCONx(win), ~WINCONx_BLEND_MODE_MASK, val); in decon_win_set_pixfmt() 377 if (win > 0) { in decon_win_set_pixfmt() [all …]
|
D | exynos7_drm_decon.c | 107 unsigned int win, ch_enabled = 0; in decon_clear_channels() local 110 for (win = 0; win < WINDOWS_NR; win++) { in decon_clear_channels() 111 u32 val = readl(ctx->regs + WINCON(win)); in decon_clear_channels() 115 writel(val, ctx->regs + WINCON(win)); in decon_clear_channels() 262 static void decon_win_set_pixfmt(struct decon_context *ctx, unsigned int win, in decon_win_set_pixfmt() argument 268 val = readl(ctx->regs + WINCON(win)); in decon_win_set_pixfmt() 331 writel(val, ctx->regs + WINCON(win)); in decon_win_set_pixfmt() 334 static void decon_win_set_colkey(struct decon_context *ctx, unsigned int win) in decon_win_set_colkey() argument 343 writel(keycon0, ctx->regs + WKEYCON0_BASE(win)); in decon_win_set_colkey() 344 writel(keycon1, ctx->regs + WKEYCON1_BASE(win)); in decon_win_set_colkey() [all …]
|
/drivers/usb/host/ |
D | xhci-mvebu.c | 25 int win; in xhci_mvebu_mbus_config() local 28 for (win = 0; win < USB3_MAX_WINDOWS; win++) { in xhci_mvebu_mbus_config() 29 writel(0, base + USB3_WIN_CTRL(win)); in xhci_mvebu_mbus_config() 30 writel(0, base + USB3_WIN_BASE(win)); in xhci_mvebu_mbus_config() 34 for (win = 0; win < dram->num_cs; win++) { in xhci_mvebu_mbus_config() 35 const struct mbus_dram_window *cs = &dram->cs[win]; in xhci_mvebu_mbus_config() 39 base + USB3_WIN_CTRL(win)); in xhci_mvebu_mbus_config() 41 writel((cs->base & 0xffff0000), base + USB3_WIN_BASE(win)); in xhci_mvebu_mbus_config()
|
/drivers/media/platform/ti/davinci/ |
D | vpbe_osd.c | 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 [all …]
|
/drivers/acpi/ |
D | resource.c | 206 static bool acpi_decode_space(struct resource_win *win, in acpi_decode_space() argument 214 struct resource *res = &win->res; in acpi_decode_space() 240 win->offset = offset; in acpi_decode_space() 244 (offset != win->offset || start != res->start || end != res->end)) { in acpi_decode_space() 290 struct resource_win *win) in acpi_dev_resource_address_space() argument 294 win->res.flags = 0; in acpi_dev_resource_address_space() 298 return acpi_decode_space(win, (struct acpi_resource_address *)&addr, in acpi_dev_resource_address_space() 319 struct resource_win *win) in acpi_dev_resource_ext_address_space() argument 323 win->res.flags = 0; in acpi_dev_resource_ext_address_space() 329 return acpi_decode_space(win, (struct acpi_resource_address *)ext_addr, in acpi_dev_resource_ext_address_space() [all …]
|
/drivers/staging/media/deprecated/vpfe_capture/ |
D | isif.c | 85 .win = ISIF_WIN_NTSC, 95 .win = ISIF_WIN_VGA, 621 val |= ((params->win.width + 31) >> 5); in isif_config_raw() 623 val |= (((params->win.width + in isif_config_raw() 624 (params->win.width >> 2)) + 31) >> 5); in isif_config_raw() 626 val |= (((params->win.width * 2) + 31) >> 5); in isif_config_raw() 653 isif_setwin(¶ms->win, params->frm_fmt, 1); in isif_config_raw() 681 frame_size.hlpfr = isif_cfg.bayer.win.width; in isif_config_raw() 682 frame_size.pplen = isif_cfg.bayer.win.height; in isif_config_raw() 779 static int isif_set_image_window(struct v4l2_rect *win) in isif_set_image_window() argument [all …]
|
D | dm644x_ccdc.c | 52 .win = CCDC_WIN_VGA, 63 .win = CCDC_WIN_PAL, 294 ccdc_setwin(¶ms->win, params->frm_fmt, 2); in ccdc_config_ycbcr() 312 regw(((params->win.width * 2 + 31) & ~0x1f), CCDC_HSIZE_OFF); in ccdc_config_ycbcr() 414 ccdc_setwin(¶ms->win, params->frm_fmt, CCDC_PPC_RAW); in ccdc_config_raw() 448 val = ((params->win.left & CCDC_FMT_HORZ_FMTSPH_MASK) << in ccdc_config_raw() 450 (params->win.width & CCDC_FMT_HORZ_FMTLNH_MASK); in ccdc_config_raw() 454 val = (params->win.top & CCDC_FMT_VERT_FMTSLV_MASK) in ccdc_config_raw() 457 val |= (params->win.height) & CCDC_FMT_VERT_FMTLNV_MASK; in ccdc_config_raw() 459 val |= (params->win.height >> 1) & CCDC_FMT_VERT_FMTLNV_MASK; in ccdc_config_raw() [all …]
|
D | dm355_ccdc.c | 50 .win = CCDC_WIN_VGA, 87 .win = CCDC_WIN_PAL, 288 ccdc_setwin(¶ms->win, params->frm_fmt, 2); in ccdc_config_ycbcr() 300 regw(((params->win.width * 2 + 31) >> 5), HSIZE); in ccdc_config_ycbcr() 589 ccdc_setwin(¶ms->win, params->frm_fmt, 1); in ccdc_config_raw() 627 val |= (((params->win.width) + 31) >> 5) & in ccdc_config_raw() 632 (((params->win.width) + 31) >> 5) & in ccdc_config_raw() 636 val |= (((params->win.width * 2) + 31) >> 5) & in ccdc_config_raw() 640 (((params->win.width * 2) + 31) >> 5) & in ccdc_config_raw() 754 static int ccdc_set_image_window(struct v4l2_rect *win) in ccdc_set_image_window() argument [all …]
|
/drivers/media/i2c/ |
D | ov772x.c | 425 const struct ov772x_win_size *win; member 607 priv->cfmt->code, priv->win->name); in ov772x_s_stream() 644 const struct ov772x_win_size *win) in ov772x_set_frame_rate() argument 659 fsize = win->sizeimage; in ov772x_set_frame_rate() 664 fsize = win->sizeimage * 2; in ov772x_set_frame_rate() 757 ret = ov772x_set_frame_rate(priv, fps, priv->cfmt, priv->win); in ov772x_s_frame_interval() 917 const struct ov772x_win_size *win); 938 priv->win); in ov772x_s_power() 958 const struct ov772x_win_size *win = &ov772x_win_sizes[0]; in ov772x_select_win() local 967 win = &ov772x_win_sizes[i]; in ov772x_select_win() [all …]
|
/drivers/media/test-drivers/vivid/ |
D | vivid-vid-out.c | 838 struct v4l2_window *win = &f->fmt.win; in vidioc_g_fmt_vid_out_overlay() local 839 unsigned clipcount = win->clipcount; in vidioc_g_fmt_vid_out_overlay() 843 win->w.top = dev->overlay_out_top; in vidioc_g_fmt_vid_out_overlay() 844 win->w.left = dev->overlay_out_left; in vidioc_g_fmt_vid_out_overlay() 845 win->w.width = compose->width; in vidioc_g_fmt_vid_out_overlay() 846 win->w.height = compose->height; in vidioc_g_fmt_vid_out_overlay() 847 win->clipcount = dev->clipcount_out; in vidioc_g_fmt_vid_out_overlay() 848 win->field = V4L2_FIELD_ANY; in vidioc_g_fmt_vid_out_overlay() 849 win->chromakey = dev->chromakey_out; in vidioc_g_fmt_vid_out_overlay() 850 win->global_alpha = dev->global_alpha_out; in vidioc_g_fmt_vid_out_overlay() [all …]
|
/drivers/spi/ |
D | spi-aspeed-smc.c | 415 struct aspeed_spi_window *win = &windows[chip->cs]; in aspeed_spi_chip_set_default_window() local 419 win->offset = 0; in aspeed_spi_chip_set_default_window() 420 win->size = aspi->ahb_window_size; in aspeed_spi_chip_set_default_window() 425 chip->ahb_base = aspi->ahb_base + win->offset; in aspeed_spi_chip_set_default_window() 426 chip->ahb_window_size = win->size; in aspeed_spi_chip_set_default_window() 429 chip->cs, aspi->ahb_base_phy + win->offset, in aspeed_spi_chip_set_default_window() 430 aspi->ahb_base_phy + win->offset + win->size - 1, in aspeed_spi_chip_set_default_window() 431 win->size >> 20); in aspeed_spi_chip_set_default_window() 437 const struct aspeed_spi_window *win) in aspeed_spi_set_window() argument 439 u32 start = aspi->ahb_base_phy + win->offset; in aspeed_spi_set_window() [all …]
|
/drivers/pcmcia/ |
D | pcmcia_resource.c | 235 s->win[w].card_start = offset; in pcmcia_map_mem_page() 236 ret = s->ops->set_mem_map(s, &s->win[w]); in pcmcia_map_mem_page() 428 pccard_mem_map *win; in pcmcia_release_window() local 438 win = &s->win[w]; in pcmcia_release_window() 447 win->flags &= ~MAP_ACTIVE; in pcmcia_release_window() 448 s->ops->set_mem_map(s, win); in pcmcia_release_window() 452 if (win->res) { in pcmcia_release_window() 454 release_resource(win->res); in pcmcia_release_window() 455 kfree(win->res); in pcmcia_release_window() 456 win->res = NULL; in pcmcia_release_window() [all …]
|
/drivers/video/fbdev/mmp/hw/ |
D | mmp_ctrl.c | 125 tmp |= fmt_to_reg(overlay, overlay->win.pix_fmt); in dmafetch_set_fmt() 129 static void overlay_set_win(struct mmp_overlay *overlay, struct mmp_win *win) in overlay_set_win() argument 134 memcpy(&overlay->win, win, sizeof(struct mmp_win)); in overlay_set_win() 139 writel_relaxed(win->pitch[0], in overlay_set_win() 141 writel_relaxed(win->pitch[2] << 16 | win->pitch[1], in overlay_set_win() 144 writel_relaxed((win->ysrc << 16) | win->xsrc, in overlay_set_win() 146 writel_relaxed((win->ydst << 16) | win->xdst, in overlay_set_win() 148 writel_relaxed(win->ypos << 16 | win->xpos, in overlay_set_win() 151 writel_relaxed(win->pitch[0], (void __iomem *)®s->g_pitch); in overlay_set_win() 153 writel_relaxed((win->ysrc << 16) | win->xsrc, in overlay_set_win() [all …]
|