Searched refs:win (Results 1 - 200 of 231) sorted by relevance

12

/linux-4.1.27/drivers/usb/host/
H A Dxhci-mvebu.c24 int win; xhci_mvebu_mbus_config() local
27 for (win = 0; win < USB3_MAX_WINDOWS; win++) { xhci_mvebu_mbus_config()
28 writel(0, base + USB3_WIN_CTRL(win)); xhci_mvebu_mbus_config()
29 writel(0, base + USB3_WIN_BASE(win)); xhci_mvebu_mbus_config()
33 for (win = 0; win < dram->num_cs; win++) { xhci_mvebu_mbus_config()
34 const struct mbus_dram_window *cs = dram->cs + win; xhci_mvebu_mbus_config()
38 base + USB3_WIN_CTRL(win)); xhci_mvebu_mbus_config()
40 writel((cs->base & 0xffff0000), base + USB3_WIN_BASE(win)); xhci_mvebu_mbus_config()
/linux-4.1.27/drivers/media/platform/omap/
H A Domap_voutlib.c107 * successful, new_win, vout->win, and crop are updated.
112 struct v4l2_window *win, struct v4l2_framebuffer *fbuf, omap_vout_new_window()
122 win->w = new_win->w; omap_vout_new_window()
123 win->field = new_win->field; omap_vout_new_window()
124 win->chromakey = new_win->chromakey; omap_vout_new_window()
129 if ((crop->height/win->w.height) >= 2) omap_vout_new_window()
130 crop->height = win->w.height * 2; omap_vout_new_window()
132 if ((crop->width/win->w.width) >= 2) omap_vout_new_window()
133 crop->width = win->w.width * 2; omap_vout_new_window()
140 if (crop->height != win->w.height) omap_vout_new_window()
145 if ((crop->height/win->w.height) >= 4) omap_vout_new_window()
146 crop->height = win->w.height * 4; omap_vout_new_window()
148 if ((crop->width/win->w.width) >= 4) omap_vout_new_window()
149 crop->width = win->w.width * 4; omap_vout_new_window()
156 * the nearest supported configuration. The image render window in win will
161 * and win are updated.
166 struct v4l2_rect *crop, struct v4l2_window *win, omap_vout_new_crop()
200 if (try_crop.height != win->w.height) { omap_vout_new_crop()
209 vresize = (1024 * try_crop.height) / win->w.height; omap_vout_new_crop()
215 win->w.height = ((1024 * try_crop.height) / vresize) & ~1; omap_vout_new_crop()
216 if (win->w.height == 0) omap_vout_new_crop()
217 win->w.height = 2; omap_vout_new_crop()
218 if (win->w.height + win->w.top > fbuf->fmt.height) { omap_vout_new_crop()
223 win->w.height = (fbuf->fmt.height - win->w.top) & ~1; omap_vout_new_crop()
228 hresize = (1024 * try_crop.width) / win->w.width; omap_vout_new_crop()
234 win->w.width = ((1024 * try_crop.width) / hresize) & ~1; omap_vout_new_crop()
235 if (win->w.width == 0) omap_vout_new_crop()
236 win->w.width = 2; omap_vout_new_crop()
237 if (win->w.width + win->w.left > fbuf->fmt.width) { omap_vout_new_crop()
242 win->w.width = (fbuf->fmt.width - win->w.left) & ~1; omap_vout_new_crop()
247 if ((try_crop.height/win->w.height) >= 2) omap_vout_new_crop()
248 try_crop.height = win->w.height * 2; omap_vout_new_crop()
250 if ((try_crop.width/win->w.width) >= 2) omap_vout_new_crop()
251 try_crop.width = win->w.width * 2; omap_vout_new_crop()
258 if (try_crop.height != win->w.height) omap_vout_new_crop()
262 if ((try_crop.height/win->w.height) >= 4) omap_vout_new_crop()
263 try_crop.height = win->w.height * 4; omap_vout_new_crop()
265 if ((try_crop.width/win->w.width) >= 4) omap_vout_new_crop()
266 try_crop.width = win->w.width * 4; omap_vout_new_crop()
274 /* Given a new format in pix and fbuf, crop and win
277 * crop window is centered in the image. win is initialized to
283 struct v4l2_window *win) omap_vout_new_format()
290 /* win defines the preview target window on the display */ omap_vout_new_format()
291 win->w.width = crop->width; omap_vout_new_format()
292 win->w.height = crop->height; omap_vout_new_format()
293 win->w.left = ((fbuf->fmt.width - win->w.width) >> 1) & ~1; omap_vout_new_format()
294 win->w.top = ((fbuf->fmt.height - win->w.height) >> 1) & ~1; omap_vout_new_format()
111 omap_vout_new_window(struct v4l2_rect *crop, struct v4l2_window *win, struct v4l2_framebuffer *fbuf, struct v4l2_window *new_win) omap_vout_new_window() argument
165 omap_vout_new_crop(struct v4l2_pix_format *pix, struct v4l2_rect *crop, struct v4l2_window *win, struct v4l2_framebuffer *fbuf, const struct v4l2_rect *new_crop) omap_vout_new_crop() argument
281 omap_vout_new_format(struct v4l2_pix_format *pix, struct v4l2_framebuffer *fbuf, struct v4l2_rect *crop, struct v4l2_window *win) omap_vout_new_format() argument
H A 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);
H A Domap_vout.c409 info.global_alpha = vout->win.global_alpha; omapvid_setup_overlay()
446 struct v4l2_window *win; omapvid_init() local
452 win = &vout->win; omapvid_init()
464 outw = win->w.width; omapvid_init()
465 outh = win->w.height; omapvid_init()
474 posy = (timing->y_res - win->w.width) - win->w.left; omapvid_init()
475 posx = win->w.top; omapvid_init()
479 posx = (timing->x_res - win->w.width) - win->w.left; omapvid_init()
480 posy = (timing->y_res - win->w.height) - win->w.top; omapvid_init()
487 posy = win->w.left; omapvid_init()
488 posx = (timing->x_res - win->w.height) - win->w.top; omapvid_init()
492 posx = win->w.left; omapvid_init()
493 posy = win->w.top; omapvid_init()
1175 /* set default crop and win */ vidioc_s_fmt_vid_out()
1176 omap_vout_new_format(&vout->pix, &vout->fbuf, &vout->crop, &vout->win); vidioc_s_fmt_vid_out()
1192 struct v4l2_window *win = &f->fmt.win; vidioc_try_fmt_vid_overlay() local
1197 ret = omap_vout_try_window(&vout->fbuf, win); vidioc_try_fmt_vid_overlay()
1201 win->global_alpha = 255; vidioc_try_fmt_vid_overlay()
1203 win->global_alpha = f->fmt.win.global_alpha; vidioc_try_fmt_vid_overlay()
1216 struct v4l2_window *win = &f->fmt.win; vidioc_s_fmt_vid_overlay() local
1222 ret = omap_vout_new_window(&vout->crop, &vout->win, &vout->fbuf, win); vidioc_s_fmt_vid_overlay()
1226 vout->win.global_alpha = 255; vidioc_s_fmt_vid_overlay()
1228 vout->win.global_alpha = f->fmt.win.global_alpha; vidioc_s_fmt_vid_overlay()
1230 vout->win.chromakey = f->fmt.win.chromakey; vidioc_s_fmt_vid_overlay()
1244 struct v4l2_window *win = &f->fmt.win; vidioc_g_fmt_vid_overlay() local
1249 win->w = vout->win.w; vidioc_g_fmt_vid_overlay()
1250 win->field = vout->win.field; vidioc_g_fmt_vid_overlay()
1251 win->global_alpha = vout->win.global_alpha; vidioc_g_fmt_vid_overlay()
1257 win->chromakey = key_value; vidioc_g_fmt_vid_overlay()
1324 ret = omap_vout_new_crop(&vout->pix, &vout->crop, &vout->win, vidioc_s_crop()
1781 info.trans_key = vout->win.chromakey; vidioc_s_fbuf()
1902 vout->win.global_alpha = 255; omap_vout_setup_video_data()
1906 vout->win.chromakey = 0; omap_vout_setup_video_data()
1908 omap_vout_new_format(pix, &vout->fbuf, &vout->crop, &vout->win); omap_vout_setup_video_data()
H A Domap_voutdef.h146 struct v4l2_window win; member in struct:omap_vout_device
/linux-4.1.27/drivers/video/fbdev/
H A Ds3c-fb.c63 #define OSD_BASE(win, variant) ((variant).osd + ((win) * (variant).osd_stride))
64 #define VIDOSD_A(win, variant) (OSD_BASE(win, variant) + 0x00)
65 #define VIDOSD_B(win, variant) (OSD_BASE(win, variant) + 0x04)
66 #define VIDOSD_C(win, variant) (OSD_BASE(win, variant) + 0x08)
67 #define VIDOSD_D(win, variant) (OSD_BASE(win, variant) + 0x0C)
135 * @win: The window information for each window.
139 struct s3c_fb_win_variant *win[S3C_FB_MAX_WIN]; member in struct:s3c_fb_driverdata
226 * @win: The device window.
229 static bool s3c_fb_validate_win_bpp(struct s3c_fb_win *win, unsigned int bpp) s3c_fb_validate_win_bpp() argument
231 return win->variant.valid_bpp & VALID_BPP(bpp); s3c_fb_validate_win_bpp()
245 struct s3c_fb_win *win = info->par; s3c_fb_check_var() local
246 struct s3c_fb *sfb = win->parent; s3c_fb_check_var()
253 if (!s3c_fb_validate_win_bpp(win, var->bits_per_pixel)) { s3c_fb_check_var()
254 dev_dbg(sfb->dev, "win %d: unsupported bpp %d\n", s3c_fb_check_var()
255 win->index, var->bits_per_pixel); s3c_fb_check_var()
268 if (sfb->variant.palette[win->index] != 0) { s3c_fb_check_var()
392 * @win: the window to set OSD size for
395 static void vidosd_set_size(struct s3c_fb_win *win, u32 size) vidosd_set_size() argument
397 struct s3c_fb *sfb = win->parent; vidosd_set_size()
400 if (win->variant.osd_size_off) vidosd_set_size()
401 writel(size, sfb->regs + OSD_BASE(win->index, sfb->variant) vidosd_set_size()
402 + win->variant.osd_size_off); vidosd_set_size()
408 * @win: the window to set OSD size for
411 static void vidosd_set_alpha(struct s3c_fb_win *win, u32 alpha) vidosd_set_alpha() argument
413 struct s3c_fb *sfb = win->parent; vidosd_set_alpha()
415 if (win->variant.has_osd_alpha) vidosd_set_alpha()
416 writel(alpha, sfb->regs + VIDOSD_C(win->index, sfb->variant)); vidosd_set_alpha()
422 * @win: window to protect registers for
425 static void shadow_protect_win(struct s3c_fb_win *win, bool protect) shadow_protect_win() argument
427 struct s3c_fb *sfb = win->parent; shadow_protect_win()
435 writel(reg | SHADOWCON_WINx_PROTECT(win->index), shadow_protect_win()
443 writel(reg & ~SHADOWCON_WINx_PROTECT(win->index), shadow_protect_win()
491 struct s3c_fb_win *win = info->par; s3c_fb_set_par() local
492 struct s3c_fb *sfb = win->parent; s3c_fb_set_par()
495 int win_no = win->index; s3c_fb_set_par()
504 shadow_protect_win(win, 1); s3c_fb_set_par()
514 if (win->variant.palette_sz >= 256) s3c_fb_set_par()
576 vidosd_set_alpha(win, alpha); s3c_fb_set_par()
577 vidosd_set_size(win, data); s3c_fb_set_par()
587 sfb->enabled |= (1 << win->index); s3c_fb_set_par()
678 shadow_protect_win(win, 0); s3c_fb_set_par()
688 * @win: The window being updated.
700 struct s3c_fb_win *win, s3c_fb_update_palette()
707 palreg = sfb->regs + sfb->variant.palette[win->index]; s3c_fb_update_palette()
709 dev_dbg(sfb->dev, "%s: win %d, reg %d (%p): %08x\n", s3c_fb_update_palette()
710 __func__, win->index, reg, palreg, value); s3c_fb_update_palette()
712 win->palette_buffer[reg] = value; s3c_fb_update_palette()
717 if (win->variant.palette_16bpp) s3c_fb_update_palette()
746 struct s3c_fb_win *win = info->par; s3c_fb_setcolreg() local
747 struct s3c_fb *sfb = win->parent; s3c_fb_setcolreg()
750 dev_dbg(sfb->dev, "%s: win %d: %d => rgb=%d/%d/%d\n", s3c_fb_setcolreg()
751 __func__, win->index, regno, red, green, blue); s3c_fb_setcolreg()
771 if (regno < win->variant.palette_sz) { s3c_fb_setcolreg()
772 val = chan_to_field(red, &win->palette.r); s3c_fb_setcolreg()
773 val |= chan_to_field(green, &win->palette.g); s3c_fb_setcolreg()
774 val |= chan_to_field(blue, &win->palette.b); s3c_fb_setcolreg()
776 s3c_fb_update_palette(sfb, win, regno, val); s3c_fb_setcolreg()
799 struct s3c_fb_win *win = info->par; s3c_fb_blank() local
800 struct s3c_fb *sfb = win->parent; s3c_fb_blank()
801 unsigned int index = win->index; s3c_fb_blank()
819 shadow_protect_win(win, 1); s3c_fb_blank()
822 shadow_protect_win(win, 0); s3c_fb_blank()
826 shadow_protect_win(win, 1); s3c_fb_blank()
828 shadow_protect_win(win, 0); s3c_fb_blank()
840 shadow_protect_win(win, 1); s3c_fb_blank()
849 shadow_protect_win(win, 0); s3c_fb_blank()
870 struct s3c_fb_win *win = info->par; s3c_fb_pan_display() local
871 struct s3c_fb *sfb = win->parent; s3c_fb_pan_display()
872 void __iomem *buf = sfb->regs + win->index * 8; s3c_fb_pan_display()
904 shadow_protect_win(win, 1); s3c_fb_pan_display()
909 shadow_protect_win(win, 0); s3c_fb_pan_display()
1020 struct s3c_fb_win *win = info->par; s3c_fb_ioctl() local
1021 struct s3c_fb *sfb = win->parent; s3c_fb_ioctl()
1079 * @win: The window to initialise memory for.
1083 static int s3c_fb_alloc_memory(struct s3c_fb *sfb, struct s3c_fb_win *win) s3c_fb_alloc_memory() argument
1085 struct s3c_fb_pd_win *windata = win->windata; s3c_fb_alloc_memory()
1087 struct fb_info *fbi = win->fbinfo; s3c_fb_alloc_memory()
1125 * @win: The window to free the display memory for.
1129 static void s3c_fb_free_memory(struct s3c_fb *sfb, struct s3c_fb_win *win) s3c_fb_free_memory() argument
1131 struct fb_info *fbi = win->fbinfo; s3c_fb_free_memory()
1140 * @win: The window to cleanup the resources for.
1145 static void s3c_fb_release_win(struct s3c_fb *sfb, struct s3c_fb_win *win) s3c_fb_release_win() argument
1149 if (win->fbinfo) { s3c_fb_release_win()
1152 data &= ~SHADOWCON_CHx_ENABLE(win->index); s3c_fb_release_win()
1153 data &= ~SHADOWCON_CHx_LOCAL_ENABLE(win->index); s3c_fb_release_win()
1156 unregister_framebuffer(win->fbinfo); s3c_fb_release_win()
1157 if (win->fbinfo->cmap.len) s3c_fb_release_win()
1158 fb_dealloc_cmap(&win->fbinfo->cmap); s3c_fb_release_win()
1159 s3c_fb_free_memory(sfb, win); s3c_fb_release_win()
1160 framebuffer_release(win->fbinfo); s3c_fb_release_win()
1180 struct s3c_fb_win *win; s3c_fb_probe_win() local
1198 windata = sfb->pdata->win[win_no]; s3c_fb_probe_win()
1205 win = fbinfo->par; s3c_fb_probe_win()
1206 *res = win; s3c_fb_probe_win()
1208 win->variant = *variant; s3c_fb_probe_win()
1209 win->fbinfo = fbinfo; s3c_fb_probe_win()
1210 win->parent = sfb; s3c_fb_probe_win()
1211 win->windata = windata; s3c_fb_probe_win()
1212 win->index = win_no; s3c_fb_probe_win()
1213 win->palette_buffer = (u32 *)(win + 1); s3c_fb_probe_win()
1215 ret = s3c_fb_alloc_memory(sfb, win); s3c_fb_probe_win()
1222 if (win->variant.palette_16bpp) { s3c_fb_probe_win()
1224 win->palette.r.offset = 11; s3c_fb_probe_win()
1225 win->palette.r.length = 5; s3c_fb_probe_win()
1226 win->palette.g.offset = 5; s3c_fb_probe_win()
1227 win->palette.g.length = 6; s3c_fb_probe_win()
1228 win->palette.b.offset = 0; s3c_fb_probe_win()
1229 win->palette.b.length = 5; s3c_fb_probe_win()
1233 win->palette.r.offset = 16; s3c_fb_probe_win()
1234 win->palette.r.length = 8; s3c_fb_probe_win()
1235 win->palette.g.offset = 8; s3c_fb_probe_win()
1236 win->palette.g.length = 8; s3c_fb_probe_win()
1237 win->palette.b.offset = 0; s3c_fb_probe_win()
1238 win->palette.b.length = 8; s3c_fb_probe_win()
1253 fbinfo->pseudo_palette = &win->pseudo_palette; s3c_fb_probe_win()
1265 ret = fb_alloc_cmap(&fbinfo->cmap, win->variant.palette_sz, 1); s3c_fb_probe_win()
1338 * @win: The window to process.
1342 static void s3c_fb_clear_win(struct s3c_fb *sfb, int win) s3c_fb_clear_win() argument
1347 writel(0, regs + sfb->variant.wincon + (win * 4)); s3c_fb_clear_win()
1348 writel(0, regs + VIDOSD_A(win, sfb->variant)); s3c_fb_clear_win()
1349 writel(0, regs + VIDOSD_B(win, sfb->variant)); s3c_fb_clear_win()
1350 writel(0, regs + VIDOSD_C(win, sfb->variant)); s3c_fb_clear_win()
1354 reg &= ~(SHADOWCON_WINx_PROTECT(win) | s3c_fb_clear_win()
1355 SHADOWCON_CHx_ENABLE(win) | s3c_fb_clear_win()
1356 SHADOWCON_CHx_LOCAL_ENABLE(win)); s3c_fb_clear_win()
1369 int win; s3c_fb_probe() local
1464 for (win = 0; win < fbdrv->variant.nr_windows; win++) s3c_fb_probe()
1465 s3c_fb_clear_win(sfb, win); s3c_fb_probe()
1468 for (win = 0; win < (fbdrv->variant.nr_windows - 1); win++) { s3c_fb_probe()
1471 regs += (win * 8); s3c_fb_probe()
1480 for (win = 0; win < fbdrv->variant.nr_windows; win++) { s3c_fb_probe()
1481 if (!pd->win[win]) s3c_fb_probe()
1484 ret = s3c_fb_probe_win(sfb, win, fbdrv->win[win], s3c_fb_probe()
1485 &sfb->windows[win]); s3c_fb_probe()
1487 dev_err(dev, "failed to create window %d\n", win); s3c_fb_probe()
1488 for (; win >= 0; win--) s3c_fb_probe()
1489 s3c_fb_release_win(sfb, sfb->windows[win]); s3c_fb_probe()
1524 int win; s3c_fb_remove() local
1528 for (win = 0; win < S3C_FB_MAX_WIN; win++) s3c_fb_remove()
1529 if (sfb->windows[win]) s3c_fb_remove()
1530 s3c_fb_release_win(sfb, sfb->windows[win]); s3c_fb_remove()
1547 struct s3c_fb_win *win; s3c_fb_suspend() local
1553 win = sfb->windows[win_no]; s3c_fb_suspend()
1554 if (!win) s3c_fb_suspend()
1558 s3c_fb_blank(FB_BLANK_POWERDOWN, win->fbinfo); s3c_fb_suspend()
1575 struct s3c_fb_win *win; s3c_fb_resume() local
1604 win = sfb->windows[win_no]; s3c_fb_resume()
1605 if (!win) s3c_fb_resume()
1608 shadow_protect_win(win, 1); s3c_fb_resume()
1612 shadow_protect_win(win, 0); s3c_fb_resume()
1619 win = sfb->windows[win_no]; s3c_fb_resume()
1620 if (!win) s3c_fb_resume()
1624 s3c_fb_set_par(win->fbinfo); s3c_fb_resume()
1801 .win[0] = &s3c_fb_data_64xx_wins[0],
1802 .win[1] = &s3c_fb_data_64xx_wins[1],
1803 .win[2] = &s3c_fb_data_64xx_wins[2],
1804 .win[3] = &s3c_fb_data_64xx_wins[3],
1805 .win[4] = &s3c_fb_data_64xx_wins[4],
1834 .win[0] = &s3c_fb_data_s5p_wins[0],
1835 .win[1] = &s3c_fb_data_s5p_wins[1],
1836 .win[2] = &s3c_fb_data_s5p_wins[2],
1837 .win[3] = &s3c_fb_data_s5p_wins[3],
1838 .win[4] = &s3c_fb_data_s5p_wins[4],
1866 .win[0] = &s3c_fb_data_s5p_wins[0],
1867 .win[1] = &s3c_fb_data_s5p_wins[1],
1868 .win[2] = &s3c_fb_data_s5p_wins[2],
1869 .win[3] = &s3c_fb_data_s5p_wins[3],
1870 .win[4] = &s3c_fb_data_s5p_wins[4],
1897 .win[0] = &s3c_fb_data_s5p_wins[0],
1898 .win[1] = &s3c_fb_data_s5p_wins[1],
1899 .win[2] = &s3c_fb_data_s5p_wins[2],
1900 .win[3] = &s3c_fb_data_s5p_wins[3],
1901 .win[4] = &s3c_fb_data_s5p_wins[4],
1926 .win[0] = &(struct s3c_fb_win_variant) {
1930 .win[1] = &(struct s3c_fb_win_variant) {
699 s3c_fb_update_palette(struct s3c_fb *sfb, struct s3c_fb_win *win, unsigned int reg, u32 value) s3c_fb_update_palette() argument
H A Dau1200fb.c181 static struct window_settings *win; variable in typeref:struct:window_settings
714 xsz = win->w[plane].xres; au1200_setlocation()
715 ysz = win->w[plane].yres; au1200_setlocation()
716 if ((xpos + win->w[plane].xres) > panel->Xres) { au1200_setlocation()
722 if ((ypos + win->w[plane].yres) > panel->Yres) { au1200_setlocation()
730 xsz = win->w[plane].xres + xpos; au1200_setlocation()
738 ysz = win->w[plane].yres + ypos; au1200_setlocation()
745 win->w[plane].xpos = xpos; au1200_setlocation()
746 win->w[plane].ypos = ypos; au1200_setlocation()
850 au1200_setlocation(fbdev, 0, win->w[0].xpos, win->w[0].ypos); au1200_setpanel()
851 au1200_setlocation(fbdev, 1, win->w[1].xpos, win->w[1].ypos); au1200_setpanel()
852 au1200_setlocation(fbdev, 2, win->w[2].xpos, win->w[2].ypos); au1200_setpanel()
853 au1200_setlocation(fbdev, 3, win->w[3].xpos, win->w[3].ypos); au1200_setpanel()
870 lcd->backcolor = win->mode_backcolor; au1200_setpanel()
873 lcd->colorkey = win->mode_colorkey; au1200_setpanel()
874 lcd->colorkeymsk = win->mode_colorkeymsk; au1200_setpanel()
941 | win->w[plane].mode_winctrl1 /* FRM,CCO,PO,PIPE */ au1200_setmode()
944 au1200_setlocation(fbdev, plane, win->w[plane].xpos, win->w[plane].ypos); au1200_setmode()
953 lcd->winenable |= win->w[plane].mode_winenable; au1200_setmode()
1045 var->xres = win->w[plane].xres; au1200fb_fb_check_var()
1046 var->yres = win->w[plane].yres; au1200fb_fb_check_var()
1052 var->bits_per_pixel = winbpp(win->w[plane].mode_winctrl1); au1200fb_fb_check_var()
1095 idx = (win->w[0].mode_winctrl1 & LCD_WINCTRL1_FRM) >> 25; au1200fb_fb_check_var()
1108 idx = (win->w[0].mode_winctrl1 & LCD_WINCTRL1_FRM) >> 25; au1200fb_fb_check_var()
1524 bpp = winbpp(win->w[fbdev->plane].mode_winctrl1); au1200fb_init_fbinfo()
1665 win = &windows[window_index]; au1200fb_drv_probe()
1668 printk(DRIVER_NAME ": Win %d %s\n", window_index, win->name); au1200fb_drv_probe()
1675 bpp = winbpp(win->w[plane].mode_winctrl1); au1200fb_drv_probe()
1676 if (win->w[plane].xres == 0) au1200fb_drv_probe()
1677 win->w[plane].xres = panel->Xres; au1200fb_drv_probe()
1678 if (win->w[plane].yres == 0) au1200fb_drv_probe()
1679 win->w[plane].yres = panel->Yres; au1200fb_drv_probe()
1694 fbdev->fb_len = (win->w[plane].xres * win->w[plane].yres * bpp) / 8; au1200fb_drv_probe()
/linux-4.1.27/scripts/kconfig/lxdialog/
H A Dmenubox.c66 static void do_print_item(WINDOW * win, const char *item, int line_y, do_print_item() argument
77 wattrset(win, dlg.menubox.atr); do_print_item()
78 wmove(win, line_y, 0); do_print_item()
83 waddch(win, ' '); do_print_item()
86 wclrtoeol(win); do_print_item()
88 wattrset(win, selected ? dlg.item_selected.atr : dlg.item.atr); do_print_item()
89 mvwaddstr(win, line_y, item_x, menu_item); do_print_item()
91 wattrset(win, selected ? dlg.tag_key_selected.atr do_print_item()
93 mvwaddch(win, line_y, item_x + j, menu_item[j]); do_print_item()
96 wmove(win, line_y, item_x + 1); do_print_item()
99 wrefresh(win); do_print_item()
111 static void print_arrows(WINDOW * win, int item_no, int scroll, int y, int x, print_arrows() argument
116 getyx(win, cur_y, cur_x); print_arrows()
118 wmove(win, y, x); print_arrows()
121 wattrset(win, dlg.uarrow.atr); print_arrows()
122 waddch(win, ACS_UARROW); print_arrows()
123 waddstr(win, "(-)"); print_arrows()
125 wattrset(win, dlg.menubox.atr); print_arrows()
126 waddch(win, ACS_HLINE); print_arrows()
127 waddch(win, ACS_HLINE); print_arrows()
128 waddch(win, ACS_HLINE); print_arrows()
129 waddch(win, ACS_HLINE); print_arrows()
133 wmove(win, y, x); print_arrows()
134 wrefresh(win); print_arrows()
137 wattrset(win, dlg.darrow.atr); print_arrows()
138 waddch(win, ACS_DARROW); print_arrows()
139 waddstr(win, "(+)"); print_arrows()
141 wattrset(win, dlg.menubox_border.atr); print_arrows()
142 waddch(win, ACS_HLINE); print_arrows()
143 waddch(win, ACS_HLINE); print_arrows()
144 waddch(win, ACS_HLINE); print_arrows()
145 waddch(win, ACS_HLINE); print_arrows()
148 wmove(win, cur_y, cur_x); print_arrows()
149 wrefresh(win); print_arrows()
155 static void print_buttons(WINDOW * win, int height, int width, int selected) print_buttons() argument
160 print_button(win, gettext("Select"), y, x, selected == 0); print_buttons()
161 print_button(win, gettext(" Exit "), y, x + 12, selected == 1); print_buttons()
162 print_button(win, gettext(" Help "), y, x + 24, selected == 2); print_buttons()
163 print_button(win, gettext(" Save "), y, x + 36, selected == 3); print_buttons()
164 print_button(win, gettext(" Load "), y, x + 48, selected == 4); print_buttons()
166 wmove(win, y, x + 1 + 12 * selected); print_buttons()
167 wrefresh(win); print_buttons()
171 static void do_scroll(WINDOW *win, int *scroll, int n) do_scroll() argument
174 scrollok(win, TRUE); do_scroll()
175 wscrl(win, n); do_scroll()
176 scrollok(win, FALSE); do_scroll()
178 wrefresh(win); do_scroll()
H A Dchecklist.c31 static void print_item(WINDOW * win, int choice, int selected) print_item() argument
40 wattrset(win, dlg.menubox.atr); print_item()
41 wmove(win, choice, 0); print_item()
43 waddch(win, ' '); print_item()
45 wmove(win, choice, check_x); print_item()
46 wattrset(win, selected ? dlg.check_selected.atr print_item()
49 wprintw(win, "(%c)", item_is_tag('X') ? 'X' : ' '); print_item()
51 wattrset(win, selected ? dlg.tag_selected.atr : dlg.tag.atr); print_item()
52 mvwaddch(win, choice, item_x, list_item[0]); print_item()
53 wattrset(win, selected ? dlg.item_selected.atr : dlg.item.atr); print_item()
54 waddstr(win, list_item + 1); print_item()
56 wmove(win, choice, check_x + 1); print_item()
57 wrefresh(win); print_item()
65 static void print_arrows(WINDOW * win, int choice, int item_no, int scroll, print_arrows() argument
68 wmove(win, y, x); print_arrows()
71 wattrset(win, dlg.uarrow.atr); print_arrows()
72 waddch(win, ACS_UARROW); print_arrows()
73 waddstr(win, "(-)"); print_arrows()
75 wattrset(win, dlg.menubox.atr); print_arrows()
76 waddch(win, ACS_HLINE); print_arrows()
77 waddch(win, ACS_HLINE); print_arrows()
78 waddch(win, ACS_HLINE); print_arrows()
79 waddch(win, ACS_HLINE); print_arrows()
83 wmove(win, y, x); print_arrows()
86 wattrset(win, dlg.darrow.atr); print_arrows()
87 waddch(win, ACS_DARROW); print_arrows()
88 waddstr(win, "(+)"); print_arrows()
90 wattrset(win, dlg.menubox_border.atr); print_arrows()
91 waddch(win, ACS_HLINE); print_arrows()
92 waddch(win, ACS_HLINE); print_arrows()
93 waddch(win, ACS_HLINE); print_arrows()
94 waddch(win, ACS_HLINE); print_arrows()
H A Dutil.c242 void attr_clear(WINDOW * win, int height, int width, chtype attr) attr_clear() argument
246 wattrset(win, attr); attr_clear()
248 wmove(win, i, 0); attr_clear()
250 waddch(win, ' '); attr_clear()
252 touchwin(win); attr_clear()
382 void print_autowrap(WINDOW * win, const char *prompt, int width, int y, int x) print_autowrap() argument
393 wmove(win, y, (width - prompt_len) / 2); print_autowrap()
394 waddstr(win, tempstr); print_autowrap()
421 wmove(win, cur_y, cur_x); print_autowrap()
422 waddstr(win, word); print_autowrap()
423 getyx(win, cur_y, cur_x); print_autowrap()
447 void print_button(WINDOW * win, const char *label, int y, int x, int selected) print_button() argument
451 wmove(win, y, x); print_button()
452 wattrset(win, selected ? dlg.button_active.atr print_button()
454 waddstr(win, "<"); print_button()
457 wattrset(win, selected ? dlg.button_label_active.atr print_button()
460 waddch(win, ' '); print_button()
461 wattrset(win, selected ? dlg.button_key_active.atr print_button()
463 waddch(win, label[0]); print_button()
464 wattrset(win, selected ? dlg.button_label_active.atr print_button()
466 waddstr(win, (char *)label + 1); print_button()
467 wattrset(win, selected ? dlg.button_active.atr print_button()
469 waddstr(win, ">"); print_button()
470 wmove(win, y, x + temp + 1); print_button()
477 draw_box(WINDOW * win, int y, int x, int height, int width, draw_box() argument
482 wattrset(win, 0); draw_box()
484 wmove(win, y + i, x); draw_box()
487 waddch(win, border | ACS_ULCORNER); draw_box()
489 waddch(win, border | ACS_LLCORNER); draw_box()
491 waddch(win, box | ACS_URCORNER); draw_box()
493 waddch(win, box | ACS_LRCORNER); draw_box()
495 waddch(win, border | ACS_HLINE); draw_box()
497 waddch(win, box | ACS_HLINE); draw_box()
499 waddch(win, border | ACS_VLINE); draw_box()
501 waddch(win, box | ACS_VLINE); draw_box()
503 waddch(win, box | ' '); draw_box()
511 void draw_shadow(WINDOW * win, int y, int x, int height, int width) draw_shadow() argument
516 wattrset(win, dlg.shadow.atr); draw_shadow()
517 wmove(win, y + height, x + 2); draw_shadow()
519 waddch(win, winch(win) & A_CHARTEXT); draw_shadow()
521 wmove(win, i, x + width); draw_shadow()
522 waddch(win, winch(win) & A_CHARTEXT); draw_shadow()
523 waddch(win, winch(win) & A_CHARTEXT); draw_shadow()
525 wnoutrefresh(win); draw_shadow()
560 int on_key_esc(WINDOW *win) on_key_esc() argument
566 nodelay(win, TRUE); on_key_esc()
567 keypad(win, FALSE); on_key_esc()
568 key = wgetch(win); on_key_esc()
569 key2 = wgetch(win); on_key_esc()
571 key3 = wgetch(win); on_key_esc()
573 nodelay(win, FALSE); on_key_esc()
574 keypad(win, TRUE); on_key_esc()
H A Dtextbox.c25 static void print_page(WINDOW *win, int height, int width, update_text_fn
27 static void print_line(WINDOW *win, int row, int width);
29 static void print_position(WINDOW * win);
312 static void print_page(WINDOW *win, int height, int width, update_text_fn print_page() argument
329 print_line(win, i, width); print_page()
335 wnoutrefresh(win); print_page()
341 static void print_line(WINDOW * win, int row, int width) print_line() argument
347 wmove(win, row, 0); /* move cursor to correct line */ print_line()
348 waddch(win, ' '); print_line()
349 waddnstr(win, line, MIN(strlen(line), width - 2)); print_line()
354 int x = getcurx(win); print_line()
357 waddch(win, ' '); print_line()
360 wclrtoeol(win); print_line()
399 static void print_position(WINDOW * win) print_position() argument
403 wattrset(win, dlg.position_indicator.atr); print_position()
404 wbkgdset(win, dlg.position_indicator.atr & A_COLOR); print_position()
406 wmove(win, getmaxy(win) - 3, getmaxx(win) - 9); print_position()
407 wprintw(win, "(%3d%%)", percent); print_position()
H A Ddialog.h200 int on_key_esc(WINDOW *win);
221 void attr_clear(WINDOW * win, int height, int width, chtype attr);
223 void print_autowrap(WINDOW * win, const char *prompt, int width, int y, int x);
224 void print_button(WINDOW * win, const char *label, int y, int x, int selected);
226 void draw_box(WINDOW * win, int y, int x, int height, int width, chtype box,
228 void draw_shadow(WINDOW * win, int y, int x, int height, int width);
/linux-4.1.27/drivers/media/pci/bt8xx/
H A Dbtcx-risc.c88 btcx_screen_clips(int swidth, int sheight, struct v4l2_rect *win, btcx_screen_clips() argument
91 if (win->left < 0) { btcx_screen_clips()
95 clips[n].c.width = -win->left; btcx_screen_clips()
96 clips[n].c.height = win->height; btcx_screen_clips()
99 if (win->left + win->width > swidth) { btcx_screen_clips()
101 clips[n].c.left = swidth - win->left; btcx_screen_clips()
103 clips[n].c.width = win->width - clips[n].c.left; btcx_screen_clips()
104 clips[n].c.height = win->height; btcx_screen_clips()
107 if (win->top < 0) { btcx_screen_clips()
111 clips[n].c.width = win->width; btcx_screen_clips()
112 clips[n].c.height = -win->top; btcx_screen_clips()
115 if (win->top + win->height > sheight) { btcx_screen_clips()
118 clips[n].c.top = sheight - win->top; btcx_screen_clips()
119 clips[n].c.width = win->width; btcx_screen_clips()
120 clips[n].c.height = win->height - clips[n].c.top; btcx_screen_clips()
127 btcx_align(struct v4l2_rect *win, struct v4l2_clip *clips, unsigned int n, int mask) btcx_align() argument
133 nx = (win->left + mask) & ~mask; btcx_align()
134 nw = (win->width) & ~mask; btcx_align()
135 if (nx + nw > win->left + win->width) btcx_align()
137 dx = nx - win->left; btcx_align()
138 win->left = nx; btcx_align()
139 win->width = nw; btcx_align()
142 win->width, win->height, win->left, win->top, dx); btcx_align()
H A Dbtcx-risc.h19 int btcx_screen_clips(int swidth, int sheight, struct v4l2_rect *win,
21 int btcx_align(struct v4l2_rect *win, struct v4l2_clip *clips,
H A Dbttv-driver.c2101 verify_window_lock(struct bttv_fh *fh, struct v4l2_window *win, verify_window_lock() argument
2108 if (win->w.width < 48) verify_window_lock()
2109 win->w.width = 48; verify_window_lock()
2110 if (win->w.height < 32) verify_window_lock()
2111 win->w.height = 32; verify_window_lock()
2112 if (win->clipcount > 2048) verify_window_lock()
2113 win->clipcount = 2048; verify_window_lock()
2115 win->chromakey = 0; verify_window_lock()
2116 win->global_alpha = 0; verify_window_lock()
2117 field = win->field; verify_window_lock()
2132 field = (win->w.height > height2) verify_window_lock()
2136 win->field = field; verify_window_lock()
2156 win->w.width -= win->w.left & ~width_mask; verify_window_lock()
2157 win->w.left = (win->w.left - width_mask - 1) & width_mask; verify_window_lock()
2159 rc = limit_scaled_size_lock(fh, &win->w.width, &win->w.height, verify_window_lock()
2169 struct v4l2_window *win, int fixup) setup_window_lock()
2178 retval = verify_window_lock(fh, win, setup_window_lock()
2186 n = win->clipcount; setup_window_lock()
2192 if (copy_from_user(clips,win->clips,sizeof(struct v4l2_clip)*n)) { setup_window_lock()
2201 &win->w, clips, n); setup_window_lock()
2208 btcx_align(&win->w, clips, n, 3); setup_window_lock()
2211 btcx_align(&win->w, clips, n, 1); setup_window_lock()
2224 fh->ov.w = win->w; setup_window_lock()
2225 fh->ov.field = win->field; setup_window_lock()
2228 btv->init.ov.w.width = win->w.width; setup_window_lock()
2229 btv->init.ov.w.height = win->w.height; setup_window_lock()
2230 btv->init.ov.field = win->field; setup_window_lock()
2331 f->fmt.win.w = fh->ov.w; bttv_g_fmt_vid_overlay()
2332 f->fmt.win.field = fh->ov.field; bttv_g_fmt_vid_overlay()
2413 verify_window_lock(fh, &f->fmt.win, bttv_try_fmt_vid_overlay()
2477 return setup_window_lock(fh, btv, &f->fmt.win, 1); bttv_s_fmt_vid_overlay()
2168 setup_window_lock(struct bttv_fh *fh, struct bttv *btv, struct v4l2_window *win, int fixup) setup_window_lock() argument
/linux-4.1.27/arch/sparc/kernel/
H A Dkgdb_32.c19 struct reg_window32 *win; pt_regs_to_gdb_regs() local
26 win = (struct reg_window32 *) regs->u_regs[UREG_FP]; pt_regs_to_gdb_regs()
28 gdb_regs[GDB_L0 + i] = win->locals[i]; pt_regs_to_gdb_regs()
30 gdb_regs[GDB_I0 + i] = win->ins[i]; pt_regs_to_gdb_regs()
48 struct reg_window32 *win; sleeping_thread_to_gdb_regs() local
60 win = (struct reg_window32 *) t->ksp; sleeping_thread_to_gdb_regs()
62 gdb_regs[GDB_L0 + i] = win->locals[i]; sleeping_thread_to_gdb_regs()
64 gdb_regs[GDB_I0 + i] = win->ins[i]; sleeping_thread_to_gdb_regs()
82 struct reg_window32 *win; gdb_regs_to_pt_regs() local
101 win = (struct reg_window32 *) regs->u_regs[UREG_FP]; gdb_regs_to_pt_regs()
103 win->locals[i] = gdb_regs[GDB_L0 + i]; gdb_regs_to_pt_regs()
105 win->ins[i] = gdb_regs[GDB_I0 + i]; gdb_regs_to_pt_regs()
H A Dkgdb_64.c20 struct reg_window *win; pt_regs_to_gdb_regs() local
27 win = (struct reg_window *) (regs->u_regs[UREG_FP] + STACK_BIAS); pt_regs_to_gdb_regs()
29 gdb_regs[GDB_L0 + i] = win->locals[i]; pt_regs_to_gdb_regs()
31 gdb_regs[GDB_I0 + i] = win->ins[i]; pt_regs_to_gdb_regs()
49 struct reg_window *win; sleeping_thread_to_gdb_regs() local
62 win = (struct reg_window *) (t->ksp + STACK_BIAS); sleeping_thread_to_gdb_regs()
64 gdb_regs[GDB_L0 + i] = win->locals[i]; sleeping_thread_to_gdb_regs()
66 gdb_regs[GDB_I0 + i] = win->ins[i]; sleeping_thread_to_gdb_regs()
89 struct reg_window *win; gdb_regs_to_pt_regs() local
108 win = (struct reg_window *) (regs->u_regs[UREG_FP] + STACK_BIAS); gdb_regs_to_pt_regs()
110 win->locals[i] = gdb_regs[GDB_L0 + i]; gdb_regs_to_pt_regs()
112 win->ins[i] = gdb_regs[GDB_I0 + i]; gdb_regs_to_pt_regs()
H A Dunaligned_32.c94 struct reg_window32 *win; fetch_reg() local
100 win = (struct reg_window32 *) regs->u_regs[UREG_FP]; fetch_reg()
101 return win->locals[reg - 16]; /* yes, I know what this does... */ fetch_reg()
106 struct reg_window32 __user *win; safe_fetch_reg() local
113 win = (struct reg_window32 __user *) regs->u_regs[UREG_FP]; safe_fetch_reg()
115 if ((unsigned long)win & 3) safe_fetch_reg()
118 if (get_user(ret, &win->locals[reg - 16])) safe_fetch_reg()
126 struct reg_window32 *win; fetch_reg_addr() local
130 win = (struct reg_window32 *) regs->u_regs[UREG_FP]; fetch_reg_addr()
131 return &win->locals[reg - 16]; fetch_reg_addr()
H A Dunaligned_64.c129 struct reg_window *win; fetch_reg() local
130 win = (struct reg_window *)(fp + STACK_BIAS); fetch_reg()
131 value = win->locals[reg - 16]; fetch_reg()
137 struct reg_window __user *win; fetch_reg() local
138 win = (struct reg_window __user *)(fp + STACK_BIAS); fetch_reg()
139 get_user(value, &win->locals[reg - 16]); fetch_reg()
154 struct reg_window *win; fetch_reg_addr() local
155 win = (struct reg_window *)(fp + STACK_BIAS); fetch_reg_addr()
156 return &win->locals[reg - 16]; fetch_reg_addr()
162 struct reg_window *win; fetch_reg_addr() local
163 win = (struct reg_window *)(fp + STACK_BIAS); fetch_reg_addr()
164 return &win->locals[reg - 16]; fetch_reg_addr()
421 struct reg_window __user *win; handle_popc() local
422 win = (struct reg_window __user *)(fp + STACK_BIAS); handle_popc()
423 put_user(ret, &win->locals[rd - 16]); handle_popc()
H A Detrap_32.S163 orn %g0, %t_twinmask, %g1 ! negate trap win mask into %g1
188 and %g2, 0xff, %g2 ! patched on 7win Sparcs
202 and %g1, 0xff, %g1 ! patched on 7win Sparcs, mask
205 sll %t_wim, 0x7, %t_wim ! patched on 7win Sparcs
208 and %g2, 0xff, %g2 ! patched on 7win Sparcs
H A Dvisemul.c160 struct reg_window *win; fetch_reg() local
161 win = (struct reg_window *)(fp + STACK_BIAS); fetch_reg()
162 value = win->locals[reg - 16]; fetch_reg()
168 struct reg_window __user *win; fetch_reg() local
169 win = (struct reg_window __user *)(fp + STACK_BIAS); fetch_reg()
170 get_user(value, &win->locals[reg - 16]); fetch_reg()
188 struct reg_window __user *win; __fetch_reg_addr_user() local
189 win = (struct reg_window __user *)(fp + STACK_BIAS); __fetch_reg_addr_user()
190 return &win->locals[reg - 16]; __fetch_reg_addr_user()
H A Dspiterrs.S168 cmp %g3, 0x80 ! first win spill/fill trap
170 cmp %g3, 0xff ! last win spill/fill trap
H A Dwof.S99 ld [%curptr + TI_UWINMASK], %twin_tmp ! grab win mask
233 spnwin_patch3: and %twin_tmp, 0xff, %twin_tmp ! patched on 7win Sparcs
H A Dsmp_64.c1049 * questionable (in theory the big win for threads is the massive sharing of
/linux-4.1.27/drivers/bus/
H A Dmvebu-mbus.c115 unsigned int (*win_cfg_offset)(const int win);
116 unsigned int (*win_remap_offset)(const int win);
164 const int win) mvebu_mbus_window_is_remappable()
166 return mbus->soc->win_remap_offset(win) != MVEBU_MBUS_NO_REMAP; mvebu_mbus_window_is_remappable()
174 int win, int *enabled, u64 *base, mvebu_mbus_read_window()
179 mbus->soc->win_cfg_offset(win); mvebu_mbus_read_window()
200 if (mvebu_mbus_window_is_remappable(mbus, win)) { mvebu_mbus_read_window()
203 mbus->soc->win_remap_offset(win); mvebu_mbus_read_window()
213 int win) mvebu_mbus_disable_window()
217 addr = mbus->mbuswins_base + mbus->soc->win_cfg_offset(win); mvebu_mbus_disable_window()
221 if (mvebu_mbus_window_is_remappable(mbus, win)) { mvebu_mbus_disable_window()
222 addr = mbus->mbuswins_base + mbus->soc->win_remap_offset(win); mvebu_mbus_disable_window()
231 const int win) mvebu_mbus_window_is_free()
234 mbus->soc->win_cfg_offset(win); mvebu_mbus_window_is_free()
249 int win; mvebu_mbus_window_conflicts() local
251 for (win = 0; win < mbus->soc->num_wins; win++) { mvebu_mbus_window_conflicts()
257 mvebu_mbus_read_window(mbus, win, mvebu_mbus_window_conflicts()
280 int win; mvebu_mbus_find_window() local
282 for (win = 0; win < mbus->soc->num_wins; win++) { mvebu_mbus_find_window()
287 mvebu_mbus_read_window(mbus, win, mvebu_mbus_find_window()
295 return win; mvebu_mbus_find_window()
302 int win, phys_addr_t base, size_t size, mvebu_mbus_setup_window()
307 mbus->soc->win_cfg_offset(win); mvebu_mbus_setup_window()
331 if (mvebu_mbus_window_is_remappable(mbus, win)) { mvebu_mbus_setup_window()
333 mbus->soc->win_remap_offset(win); mvebu_mbus_setup_window()
351 int win; mvebu_mbus_alloc_window() local
354 for (win = 0; win < mbus->soc->num_wins; win++) { mvebu_mbus_alloc_window()
355 if (mvebu_mbus_window_is_remappable(mbus, win)) mvebu_mbus_alloc_window()
358 if (mvebu_mbus_window_is_free(mbus, win)) mvebu_mbus_alloc_window()
359 return mvebu_mbus_setup_window(mbus, win, base, mvebu_mbus_alloc_window()
365 for (win = 0; win < mbus->soc->num_wins; win++) { mvebu_mbus_alloc_window()
368 !mvebu_mbus_window_is_remappable(mbus, win)) mvebu_mbus_alloc_window()
371 if (mvebu_mbus_window_is_free(mbus, win)) mvebu_mbus_alloc_window()
372 return mvebu_mbus_setup_window(mbus, win, base, size, mvebu_mbus_alloc_window()
461 int win; mvebu_devs_debug_show() local
463 for (win = 0; win < mbus->soc->num_wins; win++) { mvebu_devs_debug_show()
469 mvebu_mbus_read_window(mbus, win, mvebu_devs_debug_show()
474 seq_printf(seq, "[%02d] disabled\n", win); mvebu_devs_debug_show()
479 win, (unsigned long long)wbase, mvebu_devs_debug_show()
486 if (mvebu_mbus_window_is_remappable(mbus, win)) { mvebu_devs_debug_show()
512 static unsigned int generic_mbus_win_cfg_offset(int win) generic_mbus_win_cfg_offset() argument
514 return win << 4; generic_mbus_win_cfg_offset()
517 static unsigned int armada_370_xp_mbus_win_cfg_offset(int win) armada_370_xp_mbus_win_cfg_offset() argument
531 if (win < 8) armada_370_xp_mbus_win_cfg_offset()
532 return win << 4; armada_370_xp_mbus_win_cfg_offset()
534 return 0x90 + ((win - 8) << 3); armada_370_xp_mbus_win_cfg_offset()
537 static unsigned int mv78xx0_mbus_win_cfg_offset(int win) mv78xx0_mbus_win_cfg_offset() argument
539 if (win < 8) mv78xx0_mbus_win_cfg_offset()
540 return win << 4; mv78xx0_mbus_win_cfg_offset()
542 return 0x900 + ((win - 8) << 4); mv78xx0_mbus_win_cfg_offset()
545 static unsigned int generic_mbus_win_remap_2_offset(int win) generic_mbus_win_remap_2_offset() argument
547 if (win < 2) generic_mbus_win_remap_2_offset()
548 return generic_mbus_win_cfg_offset(win); generic_mbus_win_remap_2_offset()
553 static unsigned int generic_mbus_win_remap_4_offset(int win) generic_mbus_win_remap_4_offset() argument
555 if (win < 4) generic_mbus_win_remap_4_offset()
556 return generic_mbus_win_cfg_offset(win); generic_mbus_win_remap_4_offset()
561 static unsigned int generic_mbus_win_remap_8_offset(int win) generic_mbus_win_remap_8_offset() argument
563 if (win < 8) generic_mbus_win_remap_8_offset()
564 return generic_mbus_win_cfg_offset(win); generic_mbus_win_remap_8_offset()
569 static unsigned int armada_xp_mbus_win_remap_offset(int win) armada_xp_mbus_win_remap_offset() argument
571 if (win < 8) armada_xp_mbus_win_remap_offset()
572 return generic_mbus_win_cfg_offset(win); armada_xp_mbus_win_remap_offset()
573 else if (win == 13) armada_xp_mbus_win_remap_offset()
811 int win; mvebu_mbus_del_window() local
813 win = mvebu_mbus_find_window(&mbus_state, base, size); mvebu_mbus_del_window()
814 if (win < 0) mvebu_mbus_del_window()
815 return win; mvebu_mbus_del_window()
817 mvebu_mbus_disable_window(&mbus_state, win); mvebu_mbus_del_window()
864 int win; mvebu_mbus_suspend() local
869 for (win = 0; win < s->soc->num_wins; win++) { mvebu_mbus_suspend()
871 s->soc->win_cfg_offset(win); mvebu_mbus_suspend()
874 s->wins[win].base = readl(addr + WIN_BASE_OFF); mvebu_mbus_suspend()
875 s->wins[win].ctrl = readl(addr + WIN_CTRL_OFF); mvebu_mbus_suspend()
877 if (!mvebu_mbus_window_is_remappable(s, win)) mvebu_mbus_suspend()
881 s->soc->win_remap_offset(win); mvebu_mbus_suspend()
883 s->wins[win].remap_lo = readl(addr_rmp + WIN_REMAP_LO_OFF); mvebu_mbus_suspend()
884 s->wins[win].remap_hi = readl(addr_rmp + WIN_REMAP_HI_OFF); mvebu_mbus_suspend()
898 int win; mvebu_mbus_resume() local
905 for (win = 0; win < s->soc->num_wins; win++) { mvebu_mbus_resume()
907 s->soc->win_cfg_offset(win); mvebu_mbus_resume()
910 writel(s->wins[win].base, addr + WIN_BASE_OFF); mvebu_mbus_resume()
911 writel(s->wins[win].ctrl, addr + WIN_CTRL_OFF); mvebu_mbus_resume()
913 if (!mvebu_mbus_window_is_remappable(s, win)) mvebu_mbus_resume()
917 s->soc->win_remap_offset(win); mvebu_mbus_resume()
919 writel(s->wins[win].remap_lo, addr_rmp + WIN_REMAP_LO_OFF); mvebu_mbus_resume()
920 writel(s->wins[win].remap_hi, addr_rmp + WIN_REMAP_HI_OFF); mvebu_mbus_resume()
938 int win; mvebu_mbus_common_init() local
963 for (win = 0; win < mbus->soc->num_wins; win++) mvebu_mbus_common_init()
964 mvebu_mbus_disable_window(mbus, win); mvebu_mbus_common_init()
163 mvebu_mbus_window_is_remappable(struct mvebu_mbus_state *mbus, const int win) mvebu_mbus_window_is_remappable() argument
173 mvebu_mbus_read_window(struct mvebu_mbus_state *mbus, int win, int *enabled, u64 *base, u32 *size, u8 *target, u8 *attr, u64 *remap) mvebu_mbus_read_window() argument
212 mvebu_mbus_disable_window(struct mvebu_mbus_state *mbus, int win) mvebu_mbus_disable_window() argument
230 mvebu_mbus_window_is_free(struct mvebu_mbus_state *mbus, const int win) mvebu_mbus_window_is_free() argument
301 mvebu_mbus_setup_window(struct mvebu_mbus_state *mbus, int win, phys_addr_t base, size_t size, phys_addr_t remap, u8 target, u8 attr) mvebu_mbus_setup_window() argument
/linux-4.1.27/scripts/kconfig/
H A Dnconf.gui.c147 void print_in_middle(WINDOW *win, print_in_middle() argument
157 if (win == NULL) print_in_middle()
158 win = stdscr; print_in_middle()
159 getyx(win, y, x); print_in_middle()
170 (void) wattrset(win, color); print_in_middle()
171 mvwprintw(win, y, x, "%s", string); print_in_middle()
214 void fill_window(WINDOW *win, const char *text) fill_window() argument
220 getmaxyx(win, y, x); fill_window()
229 mvwprintw(win, i, 0, "%s", tmp); fill_window()
250 WINDOW *win; btn_dialog() local
289 win = newwin(win_rows, total_width+4, y, x); btn_dialog()
290 keypad(win, TRUE); btn_dialog()
291 menu_win = derwin(win, 1, btns_width, win_rows-2, btn_dialog()
294 msg_win = derwin(win, win_rows-2, msg_width, 1, btn_dialog()
300 (void) wattrset(win, attributes[DIALOG_BOX]); btn_dialog()
301 box(win, 0, 0); btn_dialog()
307 set_menu_win(menu, win); btn_dialog()
318 touchwin(win); btn_dialog()
320 while ((res = wgetch(win))) { btn_dialog()
335 touchwin(win); btn_dialog()
353 delwin(win); btn_dialog()
363 WINDOW *win; dialog_inputbox() local
396 win = newwin(prompt_lines+6, prompt_width+7, y, x); dialog_inputbox()
397 prompt_win = derwin(win, prompt_lines+1, prompt_width, 2, 2); dialog_inputbox()
398 form_win = derwin(win, 1, prompt_width, prompt_lines+3, 2); dialog_inputbox()
403 (void) wattrset(win, attributes[INPUT_BOX]); dialog_inputbox()
404 box(win, 0, 0); dialog_inputbox()
405 (void) wattrset(win, attributes[INPUT_HEADING]); dialog_inputbox()
407 mvwprintw(win, 0, 3, "%s", title); dialog_inputbox()
419 panel = new_panel(win); dialog_inputbox()
424 touchwin(win); dialog_inputbox()
508 touchwin(win); dialog_inputbox()
529 delwin(win); dialog_inputbox()
555 WINDOW *win; show_scroll_win() local
583 win = newwin(win_lines, win_cols, y, x); show_scroll_win()
584 keypad(win, TRUE); show_scroll_win()
586 (void) wattrset(win, attributes[SCROLLWIN_BOX]); show_scroll_win()
587 box(win, 0, 0); show_scroll_win()
588 (void) wattrset(win, attributes[SCROLLWIN_HEADING]); show_scroll_win()
589 mvwprintw(win, 0, 3, " %s ", title); show_scroll_win()
590 panel = new_panel(win); show_scroll_win()
595 copywin(pad, win, start_y, start_x, 2, 2, text_lines, show_scroll_win()
597 print_in_middle(win, show_scroll_win()
603 wrefresh(win); show_scroll_win()
605 res = wgetch(win); show_scroll_win()
654 delwin(win); show_scroll_win()
H A Dnconf.h79 void print_in_middle(WINDOW *win,
88 void fill_window(WINDOW *win, const char *text);
/linux-4.1.27/drivers/net/wireless/iwlegacy/
H A D3945-rs.c132 il3945_clear_win(struct il3945_rate_scale_data *win) il3945_clear_win() argument
134 win->data = 0; il3945_clear_win()
135 win->success_counter = 0; il3945_clear_win()
136 win->success_ratio = -1; il3945_clear_win()
137 win->counter = 0; il3945_clear_win()
138 win->average_tpt = IL_INVALID_VALUE; il3945_clear_win()
139 win->stamp = 0; il3945_clear_win()
163 if (!rs_sta->win[i].counter) il3945_rate_scale_flush_wins()
167 if (time_after(jiffies, rs_sta->win[i].stamp + RATE_WIN_FLUSH)) { il3945_rate_scale_flush_wins()
169 rs_sta->win[i].counter, i); il3945_rate_scale_flush_wins()
170 il3945_clear_win(&rs_sta->win[i]); il3945_rate_scale_flush_wins()
248 * il3945_collect_tx_data - Update the success/failure sliding win
250 * We keep a sliding win of the last 64 packets transmitted
251 * at this rate. win->data contains the bitmask of successful
256 struct il3945_rate_scale_data *win, int success, il3945_collect_tx_data()
272 * history win; anything older isn't really relevant any more. il3945_collect_tx_data()
273 * If we have filled up the sliding win, drop the oldest attempt; il3945_collect_tx_data()
279 if (win->counter >= RATE_MAX_WINDOW) { il3945_collect_tx_data()
282 win->counter = RATE_MAX_WINDOW - 1; il3945_collect_tx_data()
284 if (win->data & (1ULL << (RATE_MAX_WINDOW - 1))) { il3945_collect_tx_data()
285 win->data &= ~(1ULL << (RATE_MAX_WINDOW - 1)); il3945_collect_tx_data()
286 win->success_counter--; il3945_collect_tx_data()
291 win->counter++; il3945_collect_tx_data()
296 win->data <<= 1; il3945_collect_tx_data()
298 win->success_counter++; il3945_collect_tx_data()
299 win->data |= 0x1; il3945_collect_tx_data()
307 if (win->counter > 0) il3945_collect_tx_data()
308 win->success_ratio = il3945_collect_tx_data()
309 128 * (100 * win->success_counter) / win->counter; il3945_collect_tx_data()
311 win->success_ratio = IL_INVALID_VALUE; il3945_collect_tx_data()
313 fail_count = win->counter - win->success_counter; il3945_collect_tx_data()
317 win->success_counter >= RATE_MIN_SUCCESS_TH) il3945_collect_tx_data()
318 win->average_tpt = il3945_collect_tx_data()
319 ((win->success_ratio * rs_sta->expected_tpt[idx] + il3945_collect_tx_data()
322 win->average_tpt = IL_INVALID_VALUE; il3945_collect_tx_data()
324 /* Tag this win as having been updated */ il3945_collect_tx_data()
325 win->stamp = jiffies; il3945_collect_tx_data()
367 il3945_clear_win(&rs_sta->win[i]); il3945_rs_rate_init()
486 * Update the win for each rate. We determine which rates il3945_rs_tx_status()
506 il3945_collect_tx_data(rs_sta, &rs_sta->win[scale_rate_idx], 0, il3945_rs_tx_status()
516 /* Update the last idx win with success/failure based on ACK */ il3945_rs_tx_status()
519 il3945_collect_tx_data(rs_sta, &rs_sta->win[last_idx], il3945_rs_tx_status()
523 /* We updated the rate scale win -- if its been more than il3945_rs_tx_status()
633 struct il3945_rate_scale_data *win = NULL; il3945_rs_get_rate() local
688 win = &(rs_sta->win[idx]); il3945_rs_get_rate()
690 fail_count = win->counter - win->success_counter; il3945_rs_get_rate()
693 win->success_counter < RATE_MIN_SUCCESS_TH) { il3945_rs_get_rate()
698 "expected_tpt is %sNULL\n", idx, win->counter, il3945_rs_get_rate()
699 win->success_counter, il3945_rs_get_rate()
703 win->average_tpt = IL_INVALID_VALUE; il3945_rs_get_rate()
708 current_tpt = win->average_tpt; il3945_rs_get_rate()
721 low_tpt = rs_sta->win[low].average_tpt; il3945_rs_get_rate()
724 high_tpt = rs_sta->win[high].average_tpt; il3945_rs_get_rate()
731 if (win->success_ratio < RATE_DECREASE_TH || !current_tpt) { il3945_rs_get_rate()
739 win->success_ratio >= RATE_INCREASE_TH) il3945_rs_get_rate()
761 win->success_ratio >= RATE_INCREASE_TH) il3945_rs_get_rate()
771 } else if (win->success_ratio >= RATE_INCREASE_TH) { il3945_rs_get_rate()
782 (win->success_ratio > RATE_HIGH_TH || il3945_rs_get_rate()
848 lq_sta->win[j].counter, il3945_sta_dbgfs_stats_table_read()
849 lq_sta->win[j].success_counter, il3945_sta_dbgfs_stats_table_read()
850 lq_sta->win[j].success_ratio); il3945_sta_dbgfs_stats_table_read()
255 il3945_collect_tx_data(struct il3945_rs_sta *rs_sta, struct il3945_rate_scale_data *win, int success, int retries, int idx) il3945_collect_tx_data() argument
H A D4965-rs.c46 #define RATE_MAX_WINDOW 62 /* # tx in history win */
229 il4965_rs_rate_scale_clear_win(struct il_rate_scale_data *win) il4965_rs_rate_scale_clear_win() argument
231 win->data = 0; il4965_rs_rate_scale_clear_win()
232 win->success_counter = 0; il4965_rs_rate_scale_clear_win()
233 win->success_ratio = IL_INVALID_VALUE; il4965_rs_rate_scale_clear_win()
234 win->counter = 0; il4965_rs_rate_scale_clear_win()
235 win->average_tpt = IL_INVALID_VALUE; il4965_rs_rate_scale_clear_win()
236 win->stamp = 0; il4965_rs_rate_scale_clear_win()
412 * il4965_rs_collect_tx_data - Update the success/failure sliding win
414 * We keep a sliding win of the last 62 packets transmitted
415 * at this rate. win->data contains the bitmask of successful
422 struct il_rate_scale_data *win = NULL; il4965_rs_collect_tx_data() local
429 /* Select win for current tx bit rate */ il4965_rs_collect_tx_data()
430 win = &(tbl->win[scale_idx]); il4965_rs_collect_tx_data()
437 * history win; anything older isn't really relevant any more. il4965_rs_collect_tx_data()
438 * If we have filled up the sliding win, drop the oldest attempt; il4965_rs_collect_tx_data()
444 if (win->counter >= RATE_MAX_WINDOW) { il4965_rs_collect_tx_data()
447 win->counter = RATE_MAX_WINDOW - 1; il4965_rs_collect_tx_data()
449 if (win->data & mask) { il4965_rs_collect_tx_data()
450 win->data &= ~mask; il4965_rs_collect_tx_data()
451 win->success_counter--; il4965_rs_collect_tx_data()
456 win->counter++; il4965_rs_collect_tx_data()
459 win->data <<= 1; il4965_rs_collect_tx_data()
463 win->success_counter++; il4965_rs_collect_tx_data()
464 win->data |= 0x1; il4965_rs_collect_tx_data()
472 if (win->counter > 0) il4965_rs_collect_tx_data()
473 win->success_ratio = il4965_rs_collect_tx_data()
474 128 * (100 * win->success_counter) / win->counter; il4965_rs_collect_tx_data()
476 win->success_ratio = IL_INVALID_VALUE; il4965_rs_collect_tx_data()
478 fail_count = win->counter - win->success_counter; il4965_rs_collect_tx_data()
482 win->success_counter >= RATE_MIN_SUCCESS_TH) il4965_rs_collect_tx_data()
483 win->average_tpt = (win->success_ratio * tpt + 64) / 128; il4965_rs_collect_tx_data()
485 win->average_tpt = IL_INVALID_VALUE; il4965_rs_collect_tx_data()
487 /* Tag this win as having been updated */ il4965_rs_collect_tx_data()
488 win->stamp = jiffies; il4965_rs_collect_tx_data()
823 D_RATE("get frame ack response, update rate scale win\n"); il4965_rs_tx_status()
1086 s32 active_sr = active_tbl->win[idx].success_ratio; il4965_rs_get_best_rate()
1281 struct il_rate_scale_data *win = &(tbl->win[idx]); il4965_rs_move_legacy_other() local
1308 if (win->success_ratio >= IL_RS_GOOD_RATIO) il4965_rs_move_legacy_other()
1401 struct il_rate_scale_data *win = &(tbl->win[idx]); il4965_rs_move_siso_to_other() local
1426 if (win->success_ratio >= IL_RS_GOOD_RATIO) il4965_rs_move_siso_to_other()
1524 struct il_rate_scale_data *win = &(tbl->win[idx]); il4965_rs_move_mimo2_to_other() local
1546 if (win->success_ratio >= IL_RS_GOOD_RATIO) il4965_rs_move_mimo2_to_other()
1702 D_RATE("LQ: stay in table clear win\n"); il4965_rs_stay_in_table()
1706 win il4965_rs_stay_in_table()
1716 il4965_rs_rate_scale_clear_win(&(tbl->win[i])); il4965_rs_stay_in_table()
1752 struct il_rate_scale_data *win = NULL; il4965_rs_rate_scale_perform() local
1849 /* Get expected throughput table and history win for current rate */ il4965_rs_rate_scale_perform()
1859 win = &(tbl->win[idx]); il4965_rs_rate_scale_perform()
1863 win = &(tbl->win[idx]); il4965_rs_rate_scale_perform()
1872 fail_count = win->counter - win->success_counter; il4965_rs_rate_scale_perform()
1874 win->success_counter < RATE_MIN_SUCCESS_TH) { il4965_rs_rate_scale_perform()
1876 win->success_counter, win->counter, idx); il4965_rs_rate_scale_perform()
1879 win->average_tpt = IL_INVALID_VALUE; il4965_rs_rate_scale_perform()
1889 if (win->average_tpt != il4965_rs_rate_scale_perform()
1890 ((win->success_ratio * tbl->expected_tpt[idx] + 64) / 128)) { il4965_rs_rate_scale_perform()
1892 win->average_tpt = il4965_rs_rate_scale_perform()
1893 ((win->success_ratio * tbl->expected_tpt[idx] + 64) / 128); il4965_rs_rate_scale_perform()
1901 if (win->average_tpt > lq_sta->last_tpt) { il4965_rs_rate_scale_perform()
1905 win->success_ratio, win->average_tpt, il4965_rs_rate_scale_perform()
1913 current_tpt = win->average_tpt; il4965_rs_rate_scale_perform()
1920 win->success_ratio, win->average_tpt, il4965_rs_rate_scale_perform()
1957 sr = win->success_ratio; il4965_rs_rate_scale_perform()
1960 current_tpt = win->average_tpt; il4965_rs_rate_scale_perform()
1962 low_tpt = tbl->win[low].average_tpt; il4965_rs_rate_scale_perform()
1964 high_tpt = tbl->win[high].average_tpt; il4965_rs_rate_scale_perform()
2058 if (!update_lq && !done_search && !lq_sta->stay_in_tbl && win->counter) { il4965_rs_rate_scale_perform()
2078 il4965_rs_rate_scale_clear_win(&(tbl->win[i])); il4965_rs_rate_scale_perform()
2281 D_RATE("create station rate scale win\n"); il4965_rs_alloc_sta()
2309 win[i]); il4965_rs_rate_init()
2316 win[i]); il4965_rs_rate_init()
2724 lq_sta->lq_info[i].win[j].counter, il4965_rs_sta_dbgfs_stats_table_read()
2725 lq_sta->lq_info[i].win[j].success_counter, il4965_rs_sta_dbgfs_stats_table_read()
2726 lq_sta->lq_info[i].win[j].success_ratio); il4965_rs_sta_dbgfs_stats_table_read()
H A Dprph.h276 * block-ack (BA) win of up to 64 TFDs. In this mode, each queue
282 * each frame within the BA win, including whether it's been transmitted,
318 * Max Tx win size is the max number of contiguous TFDs that the scheduler
379 * For Scheduler-ACK mode, idx indicates first frame in Tx win.
416 * another TFD, based on win size, etc. Driver should init
462 * 0-06: Max Tx win size for Scheduler-ACK. Driver should init to 64.
H A Dcommon.h138 int n_win; /* safe queue win */
635 * @start_idx: Index of 1st Transmit Frame Descriptor (TFD) in Tx win
636 * @bitmap0: Low order bitmap, one bit for each frame pending ACK in Tx win
637 * @bitmap1: High order, one bit for each frame pending ACK in Tx win
2778 struct il_rate_scale_data win[RATE_COUNT]; /* rate histories */ member in struct:il_scale_tbl_info
H A D3945.h89 struct il3945_rate_scale_data win[RATE_COUNT_3945]; member in struct:il3945_rs_sta
H A D4965-mac.c2208 /* Set up Tx win size and frame limit for this queue */ il4965_txq_agg_enable()
2534 /* Calculate shift to align block-ack bits with our Tx win bits */ il4965_tx_status_reply_compressed_ba()
2709 /* Construct bit-map of pending frames within Tx win */ il4965_tx_status_reply_tx()
2937 /* "ssn" is start of block-ack Tx win, corresponds to idx il4965_hdl_compressed_ba()
2938 * (in Tx queue's circular buffer) of first TFD/frame in win */ il4965_hdl_compressed_ba()
2962 /* Find idx just before block-ack win */ il4965_hdl_compressed_ba()
2977 /* Update driver's record of ACK vs. not for each frame in win */ il4965_hdl_compressed_ba()
2981 * block-ack win (we assume that they've been successfully il4965_hdl_compressed_ba()
H A D4965.h897 * duplicate the first 64 entries (to avoid wrap-around within a Tx win;
898 * max Tx win is 64 TFDs).
H A Dcommands.h797 * @cw_min: Contention win, start value in numbers of slots.
799 * @cw_max: Contention win, max value in numbers of slots.
805 * Device will automatically increase contention win by (2*CW) + 1 for each
1926 * sliding win of the 62 most recent tx attempts at that rate. The data
1930 * (attempted - success), and control the size of the win (attempted).
1932 * the oldest tx attempts fall out of the win.
/linux-4.1.27/drivers/gpu/drm/exynos/
H A Dexynos_drm_fimd.c48 #define VIDOSD_A(win) (VIDOSD_BASE + 0x00 + (win) * 16)
49 #define VIDOSD_B(win) (VIDOSD_BASE + 0x04 + (win) * 16)
54 #define VIDOSD_C(win) (VIDOSD_BASE + 0x08 + (win) * 16)
56 #define VIDOSD_D(win) (VIDOSD_BASE + 0x0C + (win) * 16)
58 #define VIDWnALPHA0(win) (VIDW_ALPHA + 0x00 + (win) * 8)
59 #define VIDWnALPHA1(win) (VIDW_ALPHA + 0x04 + (win) * 8)
61 #define VIDWx_BUF_START(win, buf) (VIDW_BUF_START(buf) + (win) * 8)
62 #define VIDWx_BUF_END(win, buf) (VIDW_BUF_END(buf) + (win) * 8)
63 #define VIDWx_BUF_SIZE(win, buf) (VIDW_BUF_SIZE(buf) + (win) * 4)
218 static void fimd_enable_video_output(struct fimd_context *ctx, unsigned int win, fimd_enable_video_output() argument
221 u32 val = readl(ctx->regs + WINCON(win)); fimd_enable_video_output()
228 writel(val, ctx->regs + WINCON(win)); fimd_enable_video_output()
232 unsigned int win, fimd_enable_shadow_channel_path()
238 val |= SHADOWCON_CHx_ENABLE(win); fimd_enable_shadow_channel_path()
240 val &= ~SHADOWCON_CHx_ENABLE(win); fimd_enable_shadow_channel_path()
247 unsigned int win, ch_enabled = 0; fimd_clear_channel() local
252 for (win = 0; win < WINDOWS_NR; win++) { fimd_clear_channel()
253 u32 val = readl(ctx->regs + WINCON(win)); fimd_clear_channel()
256 fimd_enable_video_output(ctx, win, false); fimd_clear_channel()
259 fimd_enable_shadow_channel_path(ctx, win, fimd_clear_channel()
493 static void fimd_win_set_pixfmt(struct fimd_context *ctx, unsigned int win) fimd_win_set_pixfmt() argument
495 struct exynos_drm_plane *plane = &ctx->planes[win]; fimd_win_set_pixfmt()
504 if (ctx->driver_data->has_limited_fmt && !win) { fimd_win_set_pixfmt()
560 writel(val, ctx->regs + WINCON(win)); fimd_win_set_pixfmt()
563 if (win != 0) { fimd_win_set_pixfmt()
572 writel(val, ctx->regs + VIDOSD_C(win)); fimd_win_set_pixfmt()
576 writel(val, ctx->regs + VIDWnALPHA0(win)); fimd_win_set_pixfmt()
577 writel(val, ctx->regs + VIDWnALPHA1(win)); fimd_win_set_pixfmt()
581 static void fimd_win_set_colkey(struct fimd_context *ctx, unsigned int win) fimd_win_set_colkey() argument
590 writel(keycon0, ctx->regs + WKEYCON0_BASE(win)); fimd_win_set_colkey()
591 writel(keycon1, ctx->regs + WKEYCON1_BASE(win)); fimd_win_set_colkey()
597 * @win: window to protect registers for
601 unsigned int win, bool protect) fimd_shadow_protect_win()
607 bits = SHADOWCON_WINx_PROTECT(win); fimd_shadow_protect_win()
621 static void fimd_win_commit(struct exynos_drm_crtc *crtc, unsigned int win) fimd_win_commit() argument
632 if (win < 0 || win >= WINDOWS_NR) fimd_win_commit()
635 plane = &ctx->planes[win]; fimd_win_commit()
654 fimd_shadow_protect_win(ctx, win, true); fimd_win_commit()
663 writel(val, ctx->regs + VIDWx_BUF_START(win, 0)); fimd_win_commit()
668 writel(val, ctx->regs + VIDWx_BUF_END(win, 0)); fimd_win_commit()
682 writel(val, ctx->regs + VIDWx_BUF_SIZE(win, 0)); fimd_win_commit()
689 writel(val, ctx->regs + VIDOSD_A(win)); fimd_win_commit()
701 writel(val, ctx->regs + VIDOSD_B(win)); fimd_win_commit()
707 if (win != 3 && win != 4) { fimd_win_commit()
708 u32 offset = VIDOSD_D(win); fimd_win_commit()
709 if (win == 0) fimd_win_commit()
710 offset = VIDOSD_C(win); fimd_win_commit()
717 fimd_win_set_pixfmt(ctx, win); fimd_win_commit()
720 if (win != 0) fimd_win_commit()
721 fimd_win_set_colkey(ctx, win); fimd_win_commit()
723 fimd_enable_video_output(ctx, win, true); fimd_win_commit()
726 fimd_enable_shadow_channel_path(ctx, win, true); fimd_win_commit()
729 fimd_shadow_protect_win(ctx, win, false); fimd_win_commit()
737 static void fimd_win_disable(struct exynos_drm_crtc *crtc, unsigned int win) fimd_win_disable() argument
742 if (win < 0 || win >= WINDOWS_NR) fimd_win_disable()
745 plane = &ctx->planes[win]; fimd_win_disable()
754 fimd_shadow_protect_win(ctx, win, true); fimd_win_disable()
756 fimd_enable_video_output(ctx, win, false); fimd_win_disable()
759 fimd_enable_shadow_channel_path(ctx, win, false); fimd_win_disable()
762 fimd_shadow_protect_win(ctx, win, false); fimd_win_disable()
231 fimd_enable_shadow_channel_path(struct fimd_context *ctx, unsigned int win, bool enable) fimd_enable_shadow_channel_path() argument
600 fimd_shadow_protect_win(struct fimd_context *ctx, unsigned int win, bool protect) fimd_shadow_protect_win() argument
H A Dexynos7_drm_decon.c94 unsigned int win, ch_enabled = 0; decon_clear_channel() local
99 for (win = 0; win < WINDOWS_NR; win++) { decon_clear_channel()
100 u32 val = readl(ctx->regs + WINCON(win)); decon_clear_channel()
104 writel(val, ctx->regs + WINCON(win)); decon_clear_channel()
284 static void decon_win_set_pixfmt(struct decon_context *ctx, unsigned int win) decon_win_set_pixfmt() argument
286 struct exynos_drm_plane *plane = &ctx->planes[win]; decon_win_set_pixfmt()
290 val = readl(ctx->regs + WINCON(win)); decon_win_set_pixfmt()
358 writel(val, ctx->regs + WINCON(win)); decon_win_set_pixfmt()
361 static void decon_win_set_colkey(struct decon_context *ctx, unsigned int win) decon_win_set_colkey() argument
370 writel(keycon0, ctx->regs + WKEYCON0_BASE(win)); decon_win_set_colkey()
371 writel(keycon1, ctx->regs + WKEYCON1_BASE(win)); decon_win_set_colkey()
377 * @win: window to protect registers for
381 unsigned int win, bool protect) decon_shadow_protect_win()
385 bits = SHADOWCON_WINx_PROTECT(win); decon_shadow_protect_win()
395 static void decon_win_commit(struct exynos_drm_crtc *crtc, unsigned int win) decon_win_commit() argument
408 if (win < 0 || win >= WINDOWS_NR) decon_win_commit()
411 plane = &ctx->planes[win]; decon_win_commit()
430 decon_shadow_protect_win(ctx, win, true); decon_win_commit()
434 writel(val, ctx->regs + VIDW_BUF_START(win)); decon_win_commit()
439 writel(plane->fb_width + padding, ctx->regs + VIDW_WHOLE_X(win)); decon_win_commit()
440 writel(plane->fb_height, ctx->regs + VIDW_WHOLE_Y(win)); decon_win_commit()
443 writel(plane->src_x, ctx->regs + VIDW_OFFSET_X(win)); decon_win_commit()
444 writel(plane->src_y, ctx->regs + VIDW_OFFSET_Y(win)); decon_win_commit()
462 writel(val, ctx->regs + VIDOSD_A(win)); decon_win_commit()
473 writel(val, ctx->regs + VIDOSD_B(win)); decon_win_commit()
483 writel(alpha, ctx->regs + VIDOSD_C(win)); decon_win_commit()
489 writel(alpha, ctx->regs + VIDOSD_D(win)); decon_win_commit()
491 decon_win_set_pixfmt(ctx, win); decon_win_commit()
494 if (win != 0) decon_win_commit()
495 decon_win_set_colkey(ctx, win); decon_win_commit()
498 val = readl(ctx->regs + WINCON(win)); decon_win_commit()
501 writel(val, ctx->regs + WINCON(win)); decon_win_commit()
504 decon_shadow_protect_win(ctx, win, false); decon_win_commit()
513 static void decon_win_disable(struct exynos_drm_crtc *crtc, unsigned int win) decon_win_disable() argument
519 if (win < 0 || win >= WINDOWS_NR) decon_win_disable()
522 plane = &ctx->planes[win]; decon_win_disable()
531 decon_shadow_protect_win(ctx, win, true); decon_win_disable()
534 val = readl(ctx->regs + WINCON(win)); decon_win_disable()
536 writel(val, ctx->regs + WINCON(win)); decon_win_disable()
539 decon_shadow_protect_win(ctx, win, false); decon_win_disable()
380 decon_shadow_protect_win(struct decon_context *ctx, unsigned int win, bool protect) decon_shadow_protect_win() argument
H A Dexynos_mixer.c336 static void mixer_cfg_layer(struct mixer_context *ctx, unsigned int win, mixer_cfg_layer() argument
342 switch (win) { mixer_cfg_layer()
383 static void vp_video_buffer(struct mixer_context *ctx, unsigned int win) vp_video_buffer() argument
393 plane = &ctx->planes[win]; vp_video_buffer()
474 mixer_cfg_layer(ctx, win, true); vp_video_buffer()
515 static void mixer_graph_buffer(struct mixer_context *ctx, unsigned int win) mixer_graph_buffer() argument
526 plane = &ctx->planes[win]; mixer_graph_buffer()
574 mixer_reg_writemask(res, MXR_GRAPHIC_CFG(win), mixer_graph_buffer()
578 mixer_reg_write(res, MXR_GRAPHIC_SPAN(win), mixer_graph_buffer()
583 win == MIXER_DEFAULT_WIN) { mixer_graph_buffer()
593 mixer_reg_write(res, MXR_GRAPHIC_WH(win), val); mixer_graph_buffer()
598 mixer_reg_write(res, MXR_GRAPHIC_SXY(win), val); mixer_graph_buffer()
603 mixer_reg_write(res, MXR_GRAPHIC_DXY(win), val); mixer_graph_buffer()
606 mixer_reg_write(res, MXR_GRAPHIC_BASE(win), dma_addr); mixer_graph_buffer()
610 mixer_cfg_layer(ctx, win, true); mixer_graph_buffer()
923 static void mixer_win_commit(struct exynos_drm_crtc *crtc, unsigned int win) mixer_win_commit() argument
927 DRM_DEBUG_KMS("win: %d\n", win); mixer_win_commit()
936 if (win > 1 && mixer_ctx->vp_enabled) mixer_win_commit()
937 vp_video_buffer(mixer_ctx, win); mixer_win_commit()
939 mixer_graph_buffer(mixer_ctx, win); mixer_win_commit()
941 mixer_ctx->planes[win].enabled = true; mixer_win_commit()
944 static void mixer_win_disable(struct exynos_drm_crtc *crtc, unsigned int win) mixer_win_disable() argument
950 DRM_DEBUG_KMS("win: %d\n", win); mixer_win_disable()
955 mixer_ctx->planes[win].resume = false; mixer_win_disable()
963 mixer_cfg_layer(mixer_ctx, win, false); mixer_win_disable()
968 mixer_ctx->planes[win].enabled = false; mixer_win_disable()
H A Dexynos_drm_vidi.c120 static void vidi_win_commit(struct exynos_drm_crtc *crtc, unsigned int win) vidi_win_commit() argument
128 if (win < 0 || win >= WINDOWS_NR) vidi_win_commit()
131 plane = &ctx->planes[win]; vidi_win_commit()
141 static void vidi_win_disable(struct exynos_drm_crtc *crtc, unsigned int win) vidi_win_disable() argument
146 if (win < 0 || win >= WINDOWS_NR) vidi_win_disable()
149 plane = &ctx->planes[win]; vidi_win_disable()
/linux-4.1.27/drivers/media/common/
H A 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,
/linux-4.1.27/arch/arm/plat-orion/include/plat/
H A Daddr-map.h25 const int win);
29 const int win);
36 const int win; member in struct:orion_addr_map_info
48 const int win, const u32 base,
/linux-4.1.27/drivers/media/platform/davinci/
H A Dvpbe_osd.c481 struct osd_window_state *win = &osd->win[layer]; osd_disable_layer() local
486 if (!win->is_enabled) { osd_disable_layer()
490 win->is_enabled = 0; osd_disable_layer()
527 struct osd_window_state *win = &osd->win[layer]; osd_enable_layer() local
528 struct osd_layer_config *cfg = &win->lconfig; osd_enable_layer()
537 if (!otherwin && (!win->is_allocated || osd_enable_layer()
538 !win->fb_base_phys || osd_enable_layer()
546 if (win->is_enabled) { osd_enable_layer()
550 win->is_enabled = 1; osd_enable_layer()
631 struct osd_window_state *win = &sd->win[layer]; _osd_start_layer() local
638 cbcr_offset_32 = win->lconfig.line_length * _osd_start_layer()
639 win->lconfig.ysize; _osd_start_layer()
647 if (win->lconfig.pixfmt == PIXFMT_NV12) { _osd_start_layer()
700 if (win->lconfig.pixfmt != PIXFMT_NV12) { _osd_start_layer()
730 if (win->lconfig.pixfmt != PIXFMT_NV12) { _osd_start_layer()
754 struct osd_window_state *win = &osd->win[layer]; osd_start_layer() local
755 struct osd_layer_config *cfg = &win->lconfig; osd_start_layer()
760 win->fb_base_phys = fb_base_phys & ~0x1F; osd_start_layer()
766 win->fb_base_phys, osd_start_layer()
777 struct osd_window_state *win = &osd->win[layer]; osd_get_layer_config() local
782 *lconfig = win->lconfig; osd_get_layer_config()
803 struct osd_window_state *win = &osd->win[layer]; try_layer_config() local
845 *lconfig = win->lconfig; try_layer_config()
855 pixfmt = osd->win[WIN_OSD1].lconfig.pixfmt; try_layer_config()
857 pixfmt = osd->win[WIN_OSD0].lconfig.pixfmt; try_layer_config()
864 *lconfig = win->lconfig; try_layer_config()
875 pixfmt = osd->win[WIN_VID1].lconfig.pixfmt; try_layer_config()
877 pixfmt = osd->win[WIN_VID0].lconfig.pixfmt; try_layer_config()
884 *lconfig = win->lconfig; try_layer_config()
891 *lconfig = win->lconfig; try_layer_config()
1238 struct osd_window_state *win = &osd->win[layer]; osd_set_layer_config() local
1239 struct osd_layer_config *cfg = &win->lconfig; osd_set_layer_config()
1264 win->is_enabled = 0; osd_set_layer_config()
1355 if (osd->win[WIN_VID0].lconfig.pixfmt == PIXFMT_RGB888) osd_set_layer_config()
1357 else if (osd->win[WIN_VID1].lconfig.pixfmt == PIXFMT_RGB888) osd_set_layer_config()
1365 win->fb_base_phys, osd_set_layer_config()
1377 struct osd_window_state *win = &osd->win[layer]; osd_init_layer() local
1380 struct osd_layer_config *cfg = &win->lconfig; osd_init_layer()
1385 win->is_enabled = 0; osd_init_layer()
1388 win->h_zoom = ZOOM_X1; osd_init_layer()
1389 win->v_zoom = ZOOM_X1; osd_init_layer()
1390 _osd_set_zoom(sd, layer, win->h_zoom, win->v_zoom); osd_init_layer()
1392 win->fb_base_phys = 0; osd_init_layer()
1393 _osd_start_layer(sd, layer, win->fb_base_phys, 0); osd_init_layer()
1441 struct osd_window_state *win = &osd->win[layer]; osd_release_layer() local
1446 if (!win->is_allocated) { osd_release_layer()
1455 win->is_allocated = 0; osd_release_layer()
1463 struct osd_window_state *win = &osd->win[layer]; osd_request_layer() local
1468 if (win->is_allocated) { osd_request_layer()
1472 win->is_allocated = 1; osd_request_layer()
H A Disif.c100 .win = ISIF_WIN_NTSC,
110 .win = ISIF_WIN_VGA,
636 val |= ((params->win.width + 31) >> 5); isif_config_raw()
638 val |= (((params->win.width + isif_config_raw()
639 (params->win.width >> 2)) + 31) >> 5); isif_config_raw()
641 val |= (((params->win.width * 2) + 31) >> 5); isif_config_raw()
668 isif_setwin(&params->win, params->frm_fmt, 1); isif_config_raw()
696 frame_size.hlpfr = isif_cfg.bayer.win.width; isif_config_raw()
697 frame_size.pplen = isif_cfg.bayer.win.height; isif_config_raw()
794 static int isif_set_image_window(struct v4l2_rect *win) isif_set_image_window() argument
797 isif_cfg.bayer.win.top = win->top; isif_set_image_window()
798 isif_cfg.bayer.win.left = win->left; isif_set_image_window()
799 isif_cfg.bayer.win.width = win->width; isif_set_image_window()
800 isif_cfg.bayer.win.height = win->height; isif_set_image_window()
802 isif_cfg.ycbcr.win.top = win->top; isif_set_image_window()
803 isif_cfg.ycbcr.win.left = win->left; isif_set_image_window()
804 isif_cfg.ycbcr.win.width = win->width; isif_set_image_window()
805 isif_cfg.ycbcr.win.height = win->height; isif_set_image_window()
810 static void isif_get_image_window(struct v4l2_rect *win) isif_get_image_window() argument
813 *win = isif_cfg.bayer.win; isif_get_image_window()
815 *win = isif_cfg.ycbcr.win; isif_get_image_window()
824 len = ((isif_cfg.bayer.win.width)); isif_get_line_length()
826 len = (((isif_cfg.bayer.win.width * 2) + isif_get_line_length()
827 (isif_cfg.bayer.win.width >> 2))); isif_get_line_length()
829 len = (((isif_cfg.bayer.win.width * 2))); isif_get_line_length()
831 len = (((isif_cfg.ycbcr.win.width * 2))); isif_get_line_length()
966 isif_setwin(&params->win, params->frm_fmt, 1); isif_config_ycbcr()
968 isif_setwin(&params->win, params->frm_fmt, 2); isif_config_ycbcr()
975 regw(((((params->win.width * 2) + 31) & 0xffffffe0) >> 5), HSIZE); isif_config_ycbcr()
H A Ddm644x_ccdc.c69 .win = CCDC_WIN_VGA,
80 .win = CCDC_WIN_PAL,
422 ccdc_setwin(&params->win, params->frm_fmt, 2); ccdc_config_ycbcr()
440 regw(((params->win.width * 2 + 31) & ~0x1f), CCDC_HSIZE_OFF); ccdc_config_ycbcr()
568 ccdc_setwin(&params->win, params->frm_fmt, CCDC_PPC_RAW); ccdc_config_raw()
605 val = ((params->win.left & CCDC_FMT_HORZ_FMTSPH_MASK) << ccdc_config_raw()
607 (params->win.width & CCDC_FMT_HORZ_FMTLNH_MASK); ccdc_config_raw()
611 val = (params->win.top & CCDC_FMT_VERT_FMTSLV_MASK) ccdc_config_raw()
614 val |= (params->win.height) & CCDC_FMT_VERT_FMTLNV_MASK; ccdc_config_raw()
616 val |= (params->win.height >> 1) & CCDC_FMT_VERT_FMTLNV_MASK; ccdc_config_raw()
618 dev_dbg(ccdc_cfg.dev, "\nparams->win.height 0x%x ...\n", ccdc_config_raw()
619 params->win.height); ccdc_config_raw()
632 regw((params->win.width + CCDC_32BYTE_ALIGN_VAL) & ccdc_config_raw()
636 regw(((params->win.width * CCDC_TWO_BYTES_PER_PIXEL) + ccdc_config_raw()
663 val = (((params->win.height - 1) & CCDC_VP_OUT_VERT_NUM_MASK)) ccdc_config_raw()
667 ((((params->win.height >> CCDC_INTERLACED_HEIGHT_SHIFT) - ccdc_config_raw()
671 val |= ((((params->win.width))) & CCDC_VP_OUT_HORZ_NUM_MASK) ccdc_config_raw()
673 val |= (params->win.left) & CCDC_VP_OUT_HORZ_ST_MASK; ccdc_config_raw()
765 static int ccdc_set_image_window(struct v4l2_rect *win) ccdc_set_image_window() argument
768 ccdc_cfg.bayer.win = *win; ccdc_set_image_window()
770 ccdc_cfg.ycbcr.win = *win; ccdc_set_image_window()
774 static void ccdc_get_image_window(struct v4l2_rect *win) ccdc_get_image_window() argument
777 *win = ccdc_cfg.bayer.win; ccdc_get_image_window()
779 *win = ccdc_cfg.ycbcr.win; ccdc_get_image_window()
791 len = ccdc_cfg.bayer.win.width; ccdc_get_line_length()
793 len = ccdc_cfg.bayer.win.width * 2; ccdc_get_line_length()
795 len = ccdc_cfg.ycbcr.win.width * 2; ccdc_get_line_length()
H A Ddm355_ccdc.c68 .win = CCDC_WIN_VGA,
105 .win = CCDC_WIN_PAL,
390 ccdc_setwin(&params->win, params->frm_fmt, 2); ccdc_config_ycbcr()
402 regw(((params->win.width * 2 + 31) >> 5), HSIZE); ccdc_config_ycbcr()
691 ccdc_setwin(&params->win, params->frm_fmt, 1); ccdc_config_raw()
729 val |= (((params->win.width) + 31) >> 5) & ccdc_config_raw()
734 (((params->win.width) + 31) >> 5) & ccdc_config_raw()
738 val |= (((params->win.width * 2) + 31) >> 5) & ccdc_config_raw()
742 (((params->win.width * 2) + 31) >> 5) & ccdc_config_raw()
856 static int ccdc_set_image_window(struct v4l2_rect *win) ccdc_set_image_window() argument
859 ccdc_cfg.bayer.win = *win; ccdc_set_image_window()
861 ccdc_cfg.ycbcr.win = *win; ccdc_set_image_window()
865 static void ccdc_get_image_window(struct v4l2_rect *win) ccdc_get_image_window() argument
868 *win = ccdc_cfg.bayer.win; ccdc_get_image_window()
870 *win = ccdc_cfg.ycbcr.win; ccdc_get_image_window()
882 len = ccdc_cfg.bayer.win.width; ccdc_get_line_length()
884 len = ccdc_cfg.bayer.win.width * 2; ccdc_get_line_length()
886 len = ccdc_cfg.ycbcr.win.width * 2; ccdc_get_line_length()
H A Dccdc_hw_device.h77 int (*set_image_window) (struct v4l2_rect *win);
79 void (*get_image_window) (struct v4l2_rect *win);
/linux-4.1.27/drivers/gpu/drm/omapdrm/
H A Domap_fb.c149 struct omap_drm_window *win, struct omap_overlay_info *info) omap_framebuffer_update_scanout()
158 info->pos_x = win->crtc_x; omap_framebuffer_update_scanout()
159 info->pos_y = win->crtc_y; omap_framebuffer_update_scanout()
160 info->out_width = win->crtc_w; omap_framebuffer_update_scanout()
161 info->out_height = win->crtc_h; omap_framebuffer_update_scanout()
162 info->width = win->src_w; omap_framebuffer_update_scanout()
163 info->height = win->src_h; omap_framebuffer_update_scanout()
165 x = win->src_x; omap_framebuffer_update_scanout()
166 y = win->src_y; omap_framebuffer_update_scanout()
169 uint32_t w = win->src_w; omap_framebuffer_update_scanout()
170 uint32_t h = win->src_h; omap_framebuffer_update_scanout()
172 switch (win->rotation & 0xf) { omap_framebuffer_update_scanout()
175 (uint32_t)win->rotation); omap_framebuffer_update_scanout()
192 if (win->rotation & BIT(DRM_REFLECT_X)) omap_framebuffer_update_scanout()
195 if (win->rotation & BIT(DRM_REFLECT_Y)) omap_framebuffer_update_scanout()
210 switch (win->rotation & 0xf) { omap_framebuffer_update_scanout()
219 win->rotation); omap_framebuffer_update_scanout()
220 win->rotation = 0; omap_framebuffer_update_scanout()
148 omap_framebuffer_update_scanout(struct drm_framebuffer *fb, struct omap_drm_window *win, struct omap_overlay_info *info) omap_framebuffer_update_scanout() argument
H A Domap_plane.c50 struct omap_drm_window win; member in struct:omap_plane
122 struct omap_drm_window *win = &omap_plane->win; omap_plane_pre_apply() local
144 omap_framebuffer_update_scanout(plane->fb, win, info); omap_plane_pre_apply()
200 struct omap_drm_window *win = &omap_plane->win; omap_plane_mode_set() local
202 win->crtc_x = crtc_x; omap_plane_mode_set()
203 win->crtc_y = crtc_y; omap_plane_mode_set()
204 win->crtc_w = crtc_w; omap_plane_mode_set()
205 win->crtc_h = crtc_h; omap_plane_mode_set()
207 win->src_x = src_x; omap_plane_mode_set()
208 win->src_y = src_y; omap_plane_mode_set()
209 win->src_w = src_w; omap_plane_mode_set()
210 win->src_h = src_h; omap_plane_mode_set()
236 switch (omap_plane->win.rotation & 0xf) { omap_plane_update()
261 omap_plane->win.rotation = BIT(DRM_ROTATE_0); omap_plane_disable()
338 omap_plane->win.rotation = val; omap_plane_set_property()
H A Domap_drv.h209 struct omap_drm_window *win, struct omap_overlay_info *info);
/linux-4.1.27/drivers/ata/
H A Dahci_mvebu.c27 #define AHCI_WINDOW_CTRL(win) (0x60 + ((win) << 4))
28 #define AHCI_WINDOW_BASE(win) (0x64 + ((win) << 4))
29 #define AHCI_WINDOW_SIZE(win) (0x68 + ((win) << 4))
H A Dpata_it821x.c65 * It seems the smart mode is a win for RAID1/RAID10 but otherwise not.
/linux-4.1.27/include/linux/netfilter/
H A Dnf_conntrack_tcp.h9 u_int32_t td_maxend; /* max of ack + max(win, 1) */
10 u_int32_t td_maxwin; /* max(win) */
/linux-4.1.27/sound/soc/kirkwood/
H A Dkirkwood.h19 #define KIRKWOOD_AUDIO_WIN_BASE_REG(win) (0xA00 + ((win)<<3))
20 #define KIRKWOOD_AUDIO_WIN_CTRL_REG(win) (0xA04 + ((win)<<3))
H A Dkirkwood-dma.c81 kirkwood_dma_conf_mbus_windows(void __iomem *base, int win, kirkwood_dma_conf_mbus_windows() argument
88 writel(0, base + KIRKWOOD_AUDIO_WIN_CTRL_REG(win)); kirkwood_dma_conf_mbus_windows()
89 writel(0, base + KIRKWOOD_AUDIO_WIN_BASE_REG(win)); kirkwood_dma_conf_mbus_windows()
96 base + KIRKWOOD_AUDIO_WIN_BASE_REG(win)); kirkwood_dma_conf_mbus_windows()
100 base + KIRKWOOD_AUDIO_WIN_CTRL_REG(win)); kirkwood_dma_conf_mbus_windows()
/linux-4.1.27/drivers/media/platform/vivid/
H A Dvivid-vid-out.c823 struct v4l2_window *win = &f->fmt.win; vidioc_g_fmt_vid_out_overlay() local
824 unsigned clipcount = win->clipcount; vidioc_g_fmt_vid_out_overlay()
828 win->w.top = dev->overlay_out_top; vidioc_g_fmt_vid_out_overlay()
829 win->w.left = dev->overlay_out_left; vidioc_g_fmt_vid_out_overlay()
830 win->w.width = compose->width; vidioc_g_fmt_vid_out_overlay()
831 win->w.height = compose->height; vidioc_g_fmt_vid_out_overlay()
832 win->clipcount = dev->clipcount_out; vidioc_g_fmt_vid_out_overlay()
833 win->field = V4L2_FIELD_ANY; vidioc_g_fmt_vid_out_overlay()
834 win->chromakey = dev->chromakey_out; vidioc_g_fmt_vid_out_overlay()
835 win->global_alpha = dev->global_alpha_out; vidioc_g_fmt_vid_out_overlay()
839 win->bitmap = NULL; vidioc_g_fmt_vid_out_overlay()
840 else if (win->bitmap) { vidioc_g_fmt_vid_out_overlay()
841 if (copy_to_user(win->bitmap, dev->bitmap_out, vidioc_g_fmt_vid_out_overlay()
845 if (clipcount && win->clips) { vidioc_g_fmt_vid_out_overlay()
846 if (copy_to_user(win->clips, dev->clips_out, vidioc_g_fmt_vid_out_overlay()
858 struct v4l2_window *win = &f->fmt.win; vidioc_try_fmt_vid_out_overlay() local
863 win->w.left = clamp_t(int, win->w.left, vidioc_try_fmt_vid_out_overlay()
865 win->w.top = clamp_t(int, win->w.top, vidioc_try_fmt_vid_out_overlay()
867 win->w.width = compose->width; vidioc_try_fmt_vid_out_overlay()
868 win->w.height = compose->height; vidioc_try_fmt_vid_out_overlay()
873 win->field = V4L2_FIELD_ANY; vidioc_try_fmt_vid_out_overlay()
874 if (win->clipcount && !win->clips) vidioc_try_fmt_vid_out_overlay()
875 win->clipcount = 0; vidioc_try_fmt_vid_out_overlay()
876 if (win->clipcount > MAX_CLIPS) vidioc_try_fmt_vid_out_overlay()
877 win->clipcount = MAX_CLIPS; vidioc_try_fmt_vid_out_overlay()
878 if (win->clipcount) { vidioc_try_fmt_vid_out_overlay()
879 if (copy_from_user(dev->try_clips_out, win->clips, vidioc_try_fmt_vid_out_overlay()
880 win->clipcount * sizeof(dev->clips_out[0]))) vidioc_try_fmt_vid_out_overlay()
882 for (i = 0; i < win->clipcount; i++) { vidioc_try_fmt_vid_out_overlay()
894 for (i = 0; i < win->clipcount - 1; i++) { vidioc_try_fmt_vid_out_overlay()
897 for (j = i + 1; j < win->clipcount; j++) { vidioc_try_fmt_vid_out_overlay()
904 if (copy_to_user(win->clips, dev->try_clips_out, vidioc_try_fmt_vid_out_overlay()
905 win->clipcount * sizeof(dev->clips_out[0]))) vidioc_try_fmt_vid_out_overlay()
916 struct v4l2_window *win = &f->fmt.win; vidioc_s_fmt_vid_out_overlay() local
919 unsigned clips_size = win->clipcount * sizeof(dev->clips_out[0]); vidioc_s_fmt_vid_out_overlay()
925 if (win->bitmap) { vidioc_s_fmt_vid_out_overlay()
926 new_bitmap = memdup_user(win->bitmap, bitmap_size); vidioc_s_fmt_vid_out_overlay()
932 dev->overlay_out_top = win->w.top; vidioc_s_fmt_vid_out_overlay()
933 dev->overlay_out_left = win->w.left; vidioc_s_fmt_vid_out_overlay()
936 dev->clipcount_out = win->clipcount; vidioc_s_fmt_vid_out_overlay()
939 dev->chromakey_out = win->chromakey; vidioc_s_fmt_vid_out_overlay()
940 dev->global_alpha_out = win->global_alpha; vidioc_s_fmt_vid_out_overlay()
H A Dvivid-vid-cap.c1043 struct v4l2_window *win = &f->fmt.win; vidioc_g_fmt_vid_overlay() local
1044 unsigned clipcount = win->clipcount; vidioc_g_fmt_vid_overlay()
1049 win->w.top = dev->overlay_cap_top; vidioc_g_fmt_vid_overlay()
1050 win->w.left = dev->overlay_cap_left; vidioc_g_fmt_vid_overlay()
1051 win->w.width = compose->width; vidioc_g_fmt_vid_overlay()
1052 win->w.height = compose->height; vidioc_g_fmt_vid_overlay()
1053 win->field = dev->overlay_cap_field; vidioc_g_fmt_vid_overlay()
1054 win->clipcount = dev->clipcount_cap; vidioc_g_fmt_vid_overlay()
1058 win->bitmap = NULL; vidioc_g_fmt_vid_overlay()
1059 else if (win->bitmap) { vidioc_g_fmt_vid_overlay()
1060 if (copy_to_user(win->bitmap, dev->bitmap_cap, vidioc_g_fmt_vid_overlay()
1064 if (clipcount && win->clips) { vidioc_g_fmt_vid_overlay()
1065 if (copy_to_user(win->clips, dev->clips_cap, vidioc_g_fmt_vid_overlay()
1077 struct v4l2_window *win = &f->fmt.win; vidioc_try_fmt_vid_overlay() local
1083 win->w.left = clamp_t(int, win->w.left, vidioc_try_fmt_vid_overlay()
1085 win->w.top = clamp_t(int, win->w.top, vidioc_try_fmt_vid_overlay()
1087 win->w.width = compose->width; vidioc_try_fmt_vid_overlay()
1088 win->w.height = compose->height; vidioc_try_fmt_vid_overlay()
1089 if (win->field != V4L2_FIELD_BOTTOM && win->field != V4L2_FIELD_TOP) vidioc_try_fmt_vid_overlay()
1090 win->field = V4L2_FIELD_ANY; vidioc_try_fmt_vid_overlay()
1091 win->chromakey = 0; vidioc_try_fmt_vid_overlay()
1092 win->global_alpha = 0; vidioc_try_fmt_vid_overlay()
1093 if (win->clipcount && !win->clips) vidioc_try_fmt_vid_overlay()
1094 win->clipcount = 0; vidioc_try_fmt_vid_overlay()
1095 if (win->clipcount > MAX_CLIPS) vidioc_try_fmt_vid_overlay()
1096 win->clipcount = MAX_CLIPS; vidioc_try_fmt_vid_overlay()
1097 if (win->clipcount) { vidioc_try_fmt_vid_overlay()
1098 if (copy_from_user(dev->try_clips_cap, win->clips, vidioc_try_fmt_vid_overlay()
1099 win->clipcount * sizeof(dev->clips_cap[0]))) vidioc_try_fmt_vid_overlay()
1101 for (i = 0; i < win->clipcount; i++) { vidioc_try_fmt_vid_overlay()
1113 for (i = 0; i < win->clipcount - 1; i++) { vidioc_try_fmt_vid_overlay()
1116 for (j = i + 1; j < win->clipcount; j++) { vidioc_try_fmt_vid_overlay()
1123 if (copy_to_user(win->clips, dev->try_clips_cap, vidioc_try_fmt_vid_overlay()
1124 win->clipcount * sizeof(dev->clips_cap[0]))) vidioc_try_fmt_vid_overlay()
1135 struct v4l2_window *win = &f->fmt.win; vidioc_s_fmt_vid_overlay() local
1138 unsigned clips_size = win->clipcount * sizeof(dev->clips_cap[0]); vidioc_s_fmt_vid_overlay()
1144 if (win->bitmap) { vidioc_s_fmt_vid_overlay()
1149 if (copy_from_user(new_bitmap, win->bitmap, bitmap_size)) { vidioc_s_fmt_vid_overlay()
1155 dev->overlay_cap_top = win->w.top; vidioc_s_fmt_vid_overlay()
1156 dev->overlay_cap_left = win->w.left; vidioc_s_fmt_vid_overlay()
1157 dev->overlay_cap_field = win->field; vidioc_s_fmt_vid_overlay()
1160 dev->clipcount_cap = win->clipcount; vidioc_s_fmt_vid_overlay()
/linux-4.1.27/drivers/video/fbdev/mmp/hw/
H A Dmmp_ctrl.c138 tmp |= fmt_to_reg(overlay, overlay->win.pix_fmt); dmafetch_set_fmt()
142 static void overlay_set_win(struct mmp_overlay *overlay, struct mmp_win *win) overlay_set_win() argument
146 /* assert win supported */ overlay_set_win()
147 memcpy(&overlay->win, win, sizeof(struct mmp_win)); overlay_set_win()
152 writel_relaxed(win->pitch[0], &regs->v_pitch_yc); overlay_set_win()
153 writel_relaxed(win->pitch[2] << 16 | overlay_set_win()
154 win->pitch[1], &regs->v_pitch_uv); overlay_set_win()
156 writel_relaxed((win->ysrc << 16) | win->xsrc, &regs->v_size); overlay_set_win()
157 writel_relaxed((win->ydst << 16) | win->xdst, &regs->v_size_z); overlay_set_win()
158 writel_relaxed(win->ypos << 16 | win->xpos, &regs->v_start); overlay_set_win()
160 writel_relaxed(win->pitch[0], &regs->g_pitch); overlay_set_win()
162 writel_relaxed((win->ysrc << 16) | win->xsrc, &regs->g_size); overlay_set_win()
163 writel_relaxed((win->ydst << 16) | win->xdst, &regs->g_size_z); overlay_set_win()
164 writel_relaxed(win->ypos << 16 | win->xpos, &regs->g_start); overlay_set_win()
/linux-4.1.27/drivers/acpi/
H A Dresource.c189 static bool acpi_decode_space(struct resource_win *win, acpi_decode_space() argument
197 struct resource *res = &win->res; acpi_decode_space()
223 win->offset = offset; acpi_decode_space()
227 (offset != win->offset || start != res->start || end != res->end)) { acpi_decode_space()
259 * @win: Output generic resource object.
263 * resource object pointed to by @win.
266 * 1) false with win->res.flags setting to zero: not the expected resource type
267 * 2) false with IORESOURCE_DISABLED in win->res.flags: valid unassigned
272 struct resource_win *win) acpi_dev_resource_address_space()
276 win->res.flags = 0; acpi_dev_resource_address_space()
280 return acpi_decode_space(win, (struct acpi_resource_address *)&addr, acpi_dev_resource_address_space()
288 * @win: Output generic resource object.
292 * generic resource object pointed to by @win.
295 * 1) false with win->res.flags setting to zero: not the expected resource type
296 * 2) false with IORESOURCE_DISABLED in win->res.flags: valid unassigned
301 struct resource_win *win) acpi_dev_resource_ext_address_space()
305 win->res.flags = 0; acpi_dev_resource_ext_address_space()
311 return acpi_decode_space(win, (struct acpi_resource_address *)ext_addr, acpi_dev_resource_ext_address_space()
467 static acpi_status acpi_dev_new_resource_entry(struct resource_win *win, acpi_dev_new_resource_entry() argument
477 *rentry->res = win->res; acpi_dev_new_resource_entry()
478 rentry->offset = win->offset; acpi_dev_new_resource_entry()
488 struct resource_win win; acpi_dev_process_resource() local
489 struct resource *res = &win.res; acpi_dev_process_resource()
504 memset(&win, 0, sizeof(win)); acpi_dev_process_resource()
508 || acpi_dev_resource_address_space(ares, &win) acpi_dev_process_resource()
509 || acpi_dev_resource_ext_address_space(ares, &win)) acpi_dev_process_resource()
510 return acpi_dev_new_resource_entry(&win, c); acpi_dev_process_resource()
515 status = acpi_dev_new_resource_entry(&win, c); acpi_dev_process_resource()
271 acpi_dev_resource_address_space(struct acpi_resource *ares, struct resource_win *win) acpi_dev_resource_address_space() argument
300 acpi_dev_resource_ext_address_space(struct acpi_resource *ares, struct resource_win *win) acpi_dev_resource_ext_address_space() argument
H A Dioapic.c46 struct resource_win win; setup_res() local
53 if (acpi_dev_resource_address_space(acpi_res, &win) || setup_res()
54 acpi_dev_resource_ext_address_space(acpi_res, &win)) setup_res()
55 *res = win.res; setup_res()
/linux-4.1.27/drivers/pci/host/
H A Dpci-host-generic.c36 void __iomem **win; member in struct:gen_pci_cfg_windows
55 return pci->cfg.win[idx] + ((devfn << 8) | where); gen_pci_map_cfg_bus_cam()
71 return pci->cfg.win[idx] + ((devfn << 12) | where); gen_pci_map_cfg_bus_ecam()
106 struct resource_entry *win; gen_pci_parse_request_of_pci_ranges() local
113 resource_list_for_each_entry(win, &pci->resources) { gen_pci_parse_request_of_pci_ranges()
114 struct resource *parent, *res = win->res; gen_pci_parse_request_of_pci_ranges()
175 pci->cfg.win = devm_kcalloc(dev, resource_size(pci->cfg.bus_range), gen_pci_parse_map_cfg_windows()
176 sizeof(*pci->cfg.win), GFP_KERNEL); gen_pci_parse_map_cfg_windows()
177 if (!pci->cfg.win) gen_pci_parse_map_cfg_windows()
191 pci->cfg.win[idx] = devm_ioremap(dev, gen_pci_parse_map_cfg_windows()
194 if (!pci->cfg.win[idx]) gen_pci_parse_map_cfg_windows()
H A Dpci-versatile.c77 struct resource_entry *win; versatile_pci_parse_request_of_pci_ranges() local
83 resource_list_for_each_entry(win, res) { resource_list_for_each_entry()
84 struct resource *parent, *res = win->res; resource_list_for_each_entry()
H A Dpcie-rcar.c320 static void rcar_pcie_setup_window(int win, struct rcar_pcie *pcie) rcar_pcie_setup_window() argument
322 struct resource *res = &pcie->res[win]; rcar_pcie_setup_window()
329 rcar_pci_write_reg(pcie, 0x00000000, PCIEPTCTLR(win)); rcar_pcie_setup_window()
337 rcar_pci_write_reg(pcie, mask << 7, PCIEPAMR(win)); rcar_pcie_setup_window()
344 rcar_pci_write_reg(pcie, upper_32_bits(res_start), PCIEPAUR(win)); rcar_pcie_setup_window()
346 PCIEPALR(win)); rcar_pcie_setup_window()
353 rcar_pci_write_reg(pcie, mask, PCIEPTCTLR(win)); rcar_pcie_setup_window()
910 int err, win = 0; rcar_pcie_probe() local
939 &pcie->res[win++]); rcar_pcie_probe()
943 if (win > RCAR_PCI_MAX_RESOURCES) rcar_pcie_probe()
H A Dpcie-xilinx.c670 struct resource_entry *win; xilinx_pcie_parse_and_add_res() local
740 resource_list_for_each_entry(win, &port->resources) xilinx_pcie_parse_and_add_res()
741 devm_kfree(dev, win->res); xilinx_pcie_parse_and_add_res()
/linux-4.1.27/drivers/media/i2c/soc_camera/
H A Dov772x.c399 const struct ov772x_win_size *win; member in struct:ov772x_priv
568 dev_dbg(&client->dev, "format %d, win %s\n", ov772x_s_stream()
569 priv->cfmt->code, priv->win->name); ov772x_s_stream()
664 const struct ov772x_win_size *win = &ov772x_win_sizes[0]; ov772x_select_win() local
673 win = &ov772x_win_sizes[i]; ov772x_select_win()
677 return win; ov772x_select_win()
682 const struct ov772x_win_size **win) ov772x_select_params()
697 *win = ov772x_select_win(mf->width, mf->height); ov772x_select_params()
702 const struct ov772x_win_size *win) ov772x_set_params()
761 ret = ov772x_write(client, HSTART, win->rect.left >> 2); ov772x_set_params()
764 ret = ov772x_write(client, HSIZE, win->rect.width >> 2); ov772x_set_params()
767 ret = ov772x_write(client, VSTART, win->rect.top >> 1); ov772x_set_params()
770 ret = ov772x_write(client, VSIZE, win->rect.height >> 1); ov772x_set_params()
773 ret = ov772x_write(client, HOUTSIZE, win->rect.width >> 2); ov772x_set_params()
776 ret = ov772x_write(client, VOUTSIZE, win->rect.height >> 1); ov772x_set_params()
780 ((win->rect.top & 1) << HREF_VSTART_SHIFT) | ov772x_set_params()
781 ((win->rect.left & 3) << HREF_HSTART_SHIFT) | ov772x_set_params()
782 ((win->rect.height & 1) << HREF_VSIZE_SHIFT) | ov772x_set_params()
783 ((win->rect.width & 3) << HREF_HSIZE_SHIFT)); ov772x_set_params()
787 ((win->rect.height & 1) << EXHCH_VSIZE_SHIFT) | ov772x_set_params()
788 ((win->rect.width & 3) << EXHCH_HSIZE_SHIFT)); ov772x_set_params()
829 ret = ov772x_write(client, COM7, win->com7_bit | cfmt->com7); ov772x_set_params()
884 mf->width = priv->win->rect.width; ov772x_g_fmt()
885 mf->height = priv->win->rect.height; ov772x_g_fmt()
897 const struct ov772x_win_size *win; ov772x_s_fmt() local
900 ov772x_select_params(mf, &cfmt, &win); ov772x_s_fmt()
902 ret = ov772x_set_params(priv, cfmt, win); ov772x_s_fmt()
906 priv->win = win; ov772x_s_fmt()
910 mf->width = win->rect.width; ov772x_s_fmt()
911 mf->height = win->rect.height; ov772x_s_fmt()
922 const struct ov772x_win_size *win; ov772x_try_fmt() local
924 ov772x_select_params(mf, &cfmt, &win); ov772x_try_fmt()
927 mf->width = win->rect.width; ov772x_try_fmt()
928 mf->height = win->rect.height; ov772x_try_fmt()
1088 priv->win = &ov772x_win_sizes[0]; ov772x_probe()
680 ov772x_select_params(const struct v4l2_mbus_framefmt *mf, const struct ov772x_color_format **cfmt, const struct ov772x_win_size **win) ov772x_select_params() argument
700 ov772x_set_params(struct ov772x_priv *priv, const struct ov772x_color_format *cfmt, const struct ov772x_win_size *win) ov772x_set_params() argument
H A Dov2640.c288 const struct ov2640_win_size *win; member in struct:ov2640_priv
779 /* select win */ ov2640_set_params()
780 priv->win = ov2640_select_win(width, height); ov2640_set_params()
813 dev_dbg(&client->dev, "%s: Set size to %s", __func__, priv->win->name); ov2640_set_params()
818 /* set size win */ ov2640_set_params()
819 ret = ov2640_write_array(client, priv->win->regs); ov2640_set_params()
835 *width = priv->win->width; ov2640_set_params()
836 *height = priv->win->height; ov2640_set_params()
843 priv->win = NULL; ov2640_set_params()
854 if (!priv->win) { ov2640_g_fmt()
856 priv->win = ov2640_select_win(&width, &height); ov2640_g_fmt()
860 mf->width = priv->win->width; ov2640_g_fmt()
861 mf->height = priv->win->height; ov2640_g_fmt()
907 * select suitable win, but don't store it ov2640_try_fmt()
/linux-4.1.27/drivers/video/fbdev/omap/
H A Domapfb_main.c712 struct omapfb_update_window *win, omapfb_update_window_async()
736 if (win->x >= xres || win->y >= yres || omapfb_update_window_async()
737 win->out_x > xres || win->out_y > yres) omapfb_update_window_async()
744 if (win->x + win->width > xres) omapfb_update_window_async()
745 win->width = xres - win->x; omapfb_update_window_async()
746 if (win->y + win->height > yres) omapfb_update_window_async()
747 win->height = yres - win->y; omapfb_update_window_async()
748 if (win->out_x + win->out_width > xres) omapfb_update_window_async()
749 win->out_width = xres - win->out_x; omapfb_update_window_async()
750 if (win->out_y + win->out_height > yres) omapfb_update_window_async()
751 win->out_height = yres - win->out_y; omapfb_update_window_async()
752 if (!win->width || !win->height || !win->out_width || !win->out_height) omapfb_update_window_async()
755 return fbdev->ctrl->update_window(fbi, win, callback, callback_data); omapfb_update_window_async()
760 struct omapfb_update_window *win) omapfb_update_win()
766 ret = omapfb_update_window_async(fbi, win, NULL, NULL); omapfb_update_win()
776 struct omapfb_update_window win; omapfb_update_full_screen() local
783 win.x = 0; omapfb_update_full_screen()
784 win.y = 0; omapfb_update_full_screen()
785 win.width = fbi->var.xres; omapfb_update_full_screen()
786 win.height = fbi->var.yres; omapfb_update_full_screen()
787 win.out_x = 0; omapfb_update_full_screen()
788 win.out_y = 0; omapfb_update_full_screen()
789 win.out_width = fbi->var.xres; omapfb_update_full_screen()
790 win.out_height = fbi->var.yres; omapfb_update_full_screen()
791 win.format = 0; omapfb_update_full_screen()
794 r = fbdev->ctrl->update_window(fbi, &win, NULL, NULL); omapfb_update_full_screen()
1068 struct omapfb_update_window win; omapfb_write_first_pixel() local
1070 memset(&win, 0, sizeof(win)); omapfb_write_first_pixel()
1071 win.width = 2; omapfb_write_first_pixel()
1072 win.height = 2; omapfb_write_first_pixel()
1073 win.out_width = 2; omapfb_write_first_pixel()
1074 win.out_height = 2; omapfb_write_first_pixel()
1075 fbdev->ctrl->update_window(fbdev->fb_info[0], &win, NULL, NULL); omapfb_write_first_pixel()
711 omapfb_update_window_async(struct fb_info *fbi, struct omapfb_update_window *win, void (*callback)(void *), void *callback_data) omapfb_update_window_async() argument
759 omapfb_update_win(struct fb_info *fbi, struct omapfb_update_window *win) omapfb_update_win() argument
H A Dhwa742.c428 static void create_req_list(struct omapfb_update_window *win, create_req_list() argument
432 int x = win->x; create_req_list()
433 int y = win->y; create_req_list()
434 int width = win->width; create_req_list()
435 int height = win->height; create_req_list()
439 flags = win->format & ~OMAPFB_FORMAT_MASK; create_req_list()
440 color_mode = win->format & OMAPFB_FORMAT_MASK; create_req_list()
492 struct omapfb_update_window *win, hwa742_update_window_async()
505 if (unlikely(win->format & hwa742_update_window_async()
513 create_req_list(win, &req_list); hwa742_update_window_async()
491 hwa742_update_window_async(struct fb_info *fbi, struct omapfb_update_window *win, void (*complete_callback)(void *arg), void *complete_callback_data) hwa742_update_window_async() argument
H A Domapfb.h181 struct omapfb_update_window *win,
242 struct omapfb_update_window *win,
/linux-4.1.27/drivers/gpu/drm/rockchip/
H A Drockchip_drm_vop.c50 #define VOP_WIN_SET(x, win, name, v) \
51 REG_SET(x, win->base, win->phy->name, v, RELAXED)
55 #define VOP_WIN_GET(x, win, name) \
56 vop_read_reg(x, win->base, &win->phy->name)
58 #define VOP_WIN_GET_YRGBADDR(vop, win) \
59 vop_readl(vop, win->base + win->phy->yrgb_mst.offset)
121 struct vop_win win[]; member in struct:vop
194 const struct vop_win_data *win; member in struct:vop_data
298 .win = rk3288_vop_win_data,
576 const struct vop_win_data *win = vop_win->data; vop_update_plane_event() local
681 VOP_WIN_SET(vop, win, format, format); vop_update_plane_event()
682 VOP_WIN_SET(vop, win, yrgb_vir, y_vir_stride); vop_update_plane_event()
683 VOP_WIN_SET(vop, win, yrgb_mst, yrgb_mst); vop_update_plane_event()
686 VOP_WIN_SET(vop, win, act_info, val); vop_update_plane_event()
687 VOP_WIN_SET(vop, win, dsp_info, val); vop_update_plane_event()
690 VOP_WIN_SET(vop, win, dsp_st, val); vop_update_plane_event()
693 VOP_WIN_SET(vop, win, dst_alpha_ctl, vop_update_plane_event()
700 VOP_WIN_SET(vop, win, src_alpha_ctl, val); vop_update_plane_event()
702 VOP_WIN_SET(vop, win, src_alpha_ctl, SRC_ALPHA_EN(0)); vop_update_plane_event()
705 VOP_WIN_SET(vop, win, enable, 1); vop_update_plane_event()
741 const struct vop_win_data *win = vop_win->data; vop_disable_plane() local
769 VOP_WIN_SET(vop, win, enable, 0); vop_disable_plane()
1121 struct vop_win *vop_win = &vop->win[i]; vop_isr_thread()
1194 struct vop_win *vop_win = &vop->win[i]; vop_create_crtc()
1230 struct vop_win *vop_win = &vop->win[i]; vop_create_crtc()
1348 const struct vop_win_data *win = &vop_data->win[i]; vop_initial() local
1350 VOP_WIN_SET(vop, win, enable, 0); vop_initial()
1386 * Initialize the vop->win array elements.
1394 struct vop_win *vop_win = &vop->win[i]; vop_win_init()
1395 const struct vop_win_data *win_data = &vop_data->win[i]; vop_win_init()
1420 alloc_size = sizeof(*vop) + sizeof(*vop->win) * vop_data->win_size; vop_bind()
/linux-4.1.27/include/linux/platform_data/
H A Dvideo_s3c.h35 * @win: The setup data for each hardware window, or NULL for unused.
47 struct s3c_fb_pd_win *win[S3C_FB_MAX_WIN]; member in struct:s3c_fb_platdata
/linux-4.1.27/drivers/media/common/saa7146/
H A Dsaa7146_video.c143 fmt.fmt.win = vv->ov.win; saa7146_start_preview()
149 vv->ov.win = fmt.fmt.win; saa7146_start_preview()
152 vv->ov.win.w.width, vv->ov.win.w.height, saa7146_start_preview()
153 vv->ov.win.w.left, vv->ov.win.w.top, saa7146_start_preview()
154 vv->ov_fmt->name, v4l2_field_names[vv->ov.win.field]); saa7146_start_preview()
617 f->fmt.win = vv->ov.win; vidioc_g_fmt_vid_overlay()
700 struct v4l2_window *win = &f->fmt.win; vidioc_try_fmt_vid_overlay() local
714 if (win->w.width < 48 || win->w.height < 32) { vidioc_try_fmt_vid_overlay()
716 win->w.width, win->w.height); vidioc_try_fmt_vid_overlay()
719 if (win->clipcount > 16) { vidioc_try_fmt_vid_overlay()
724 field = win->field; vidioc_try_fmt_vid_overlay()
729 field = (win->w.height > maxh / 2) vidioc_try_fmt_vid_overlay()
746 win->field = field; vidioc_try_fmt_vid_overlay()
747 if (win->w.width > maxw) vidioc_try_fmt_vid_overlay()
748 win->w.width = maxw; vidioc_try_fmt_vid_overlay()
749 if (win->w.height > maxh) vidioc_try_fmt_vid_overlay()
750 win->w.height = maxh; vidioc_try_fmt_vid_overlay()
787 vv->ov.win = f->fmt.win; vidioc_s_fmt_vid_overlay()
788 vv->ov.nclips = f->fmt.win.clipcount; vidioc_s_fmt_vid_overlay()
791 if (copy_from_user(vv->ov.clips, f->fmt.win.clips, vidioc_s_fmt_vid_overlay()
H A Dsaa7146_hlp.c346 int width = vv->ov.win.w.width; calculate_clipping_registers_rect()
347 int height = vv->ov.win.w.height; calculate_clipping_registers_rect()
489 enum v4l2_field field = vv->ov.win.field; saa7146_set_clipping_rect()
655 saa7146_set_window(dev, vv->ov.win.w.width, vv->ov.win.w.height, vv->ov.win.field); saa7146_enable_overlay()
656 saa7146_set_position(dev, vv->ov.win.w.left, vv->ov.win.w.top, vv->ov.win.w.height, vv->ov.win.field, vv->ov_fmt->pixelformat); saa7146_enable_overlay()
/linux-4.1.27/drivers/pcmcia/
H A Dpcmcia_resource.c239 s->win[w].card_start = offset; pcmcia_map_mem_page()
240 ret = s->ops->set_mem_map(s, &s->win[w]); pcmcia_map_mem_page()
435 pccard_mem_map *win; pcmcia_release_window() local
445 win = &s->win[w]; pcmcia_release_window()
454 win->flags &= ~MAP_ACTIVE; pcmcia_release_window()
455 s->ops->set_mem_map(s, win); pcmcia_release_window()
459 if (win->res) { pcmcia_release_window()
461 release_resource(win->res); pcmcia_release_window()
462 kfree(win->res); pcmcia_release_window()
463 win->res = NULL; pcmcia_release_window()
882 pccard_mem_map *win; pcmcia_request_window() local
920 win = &s->win[w]; pcmcia_request_window()
923 win->res = pcmcia_find_mem_region(res->start, res->end, align, pcmcia_request_window()
925 if (!win->res) { pcmcia_request_window()
934 win->map = w+1; pcmcia_request_window()
935 win->flags = res->flags & WIN_FLAGS_MAP; pcmcia_request_window()
936 win->speed = speed; pcmcia_request_window()
937 win->card_start = 0; pcmcia_request_window()
939 if (s->ops->set_mem_map(s, win) != 0) { pcmcia_request_window()
948 res->start = win->static_start; pcmcia_request_window()
950 res->start = win->res->start; pcmcia_request_window()
955 res->flags |= (win->map << 2) | IORESOURCE_MEM; pcmcia_request_window()
956 res->parent = win->res; pcmcia_request_window()
957 if (win->res) pcmcia_request_window()
H A Dpcmcia_cis.c216 i = (io->win[1].len > io->win[0].len); pcmcia_do_loop_config()
218 p_dev->resource[1]->start = io->win[1-i].base; pcmcia_do_loop_config()
219 p_dev->resource[1]->end = io->win[1-i].len; pcmcia_do_loop_config()
221 p_dev->resource[0]->start = io->win[i].base; pcmcia_do_loop_config()
222 p_dev->resource[0]->end = io->win[i].len; pcmcia_do_loop_config()
235 p_dev->resource[2]->start = mem->win[0].host_addr; pcmcia_do_loop_config()
236 p_dev->resource[2]->end = mem->win[0].len; pcmcia_do_loop_config()
239 p_dev->card_addr = mem->win[0].card_addr; pcmcia_do_loop_config()
H A Dcistpl.c991 io->win[0].base = 0; parse_io()
992 io->win[0].len = (1 << (io->flags & CISTPL_IO_LINES_MASK)); parse_io()
1008 io->win[i].base = 0; parse_io()
1009 io->win[i].len = 1; parse_io()
1013 io->win[i].base += *p << (j*8); parse_io()
1018 io->win[i].len += *p << (j*8); parse_io()
1058 mem->win[i].len = len << 8; parse_mem()
1059 mem->win[i].card_addr = ca << 8; parse_mem()
1060 mem->win[i].host_addr = ha << 8; parse_mem()
1165 entry->mem.win[0].len = get_unaligned_le16(p) << 8; parse_cftable_entry()
1166 entry->mem.win[0].card_addr = 0; parse_cftable_entry()
1167 entry->mem.win[0].host_addr = 0; parse_cftable_entry()
1174 entry->mem.win[0].len = get_unaligned_le16(p) << 8; parse_cftable_entry()
1175 entry->mem.win[0].card_addr = get_unaligned_le16(p + 2) << 8; parse_cftable_entry()
1176 entry->mem.win[0].host_addr = 0; parse_cftable_entry()
/linux-4.1.27/drivers/media/pci/saa7134/
H A Dsaa7134-video.c680 static int verify_preview(struct saa7134_dev *dev, struct v4l2_window *win, bool try) verify_preview() argument
687 if (win->w.width < 48) verify_preview()
688 win->w.width = 48; verify_preview()
689 if (win->w.height < 32) verify_preview()
690 win->w.height = 32; verify_preview()
691 if (win->clipcount > 8) verify_preview()
692 win->clipcount = 8; verify_preview()
694 win->chromakey = 0; verify_preview()
695 win->global_alpha = 0; verify_preview()
696 field = win->field; verify_preview()
701 field = (win->w.height > maxh/2) verify_preview()
715 win->field = field; verify_preview()
716 if (win->w.width > maxw) verify_preview()
717 win->w.width = maxw; verify_preview()
718 if (win->w.height > maxh) verify_preview()
719 win->w.height = maxh; verify_preview()
728 err = verify_preview(dev, &dev->win, false); start_preview()
732 dev->ovfield = dev->win.field; start_preview()
734 dev->win.w.width, dev->win.w.height, start_preview()
735 dev->win.w.left, dev->win.w.top, start_preview()
739 set_size(dev, TASK_B, dev->win.w.width, dev->win.w.height, start_preview()
751 base += dev->ovbuf.fmt.bytesperline * dev->win.w.top; start_preview()
752 base += dev->ovfmt->depth/8 * dev->win.w.left; start_preview()
1229 struct v4l2_clip __user *clips = f->fmt.win.clips; saa7134_g_fmt_vid_overlay()
1230 u32 clipcount = f->fmt.win.clipcount; saa7134_g_fmt_vid_overlay()
1238 f->fmt.win = dev->win; saa7134_g_fmt_vid_overlay()
1239 f->fmt.win.clips = clips; saa7134_g_fmt_vid_overlay()
1244 f->fmt.win.clipcount = clipcount; saa7134_g_fmt_vid_overlay()
1247 if (copy_to_user(&f->fmt.win.clips[i].c, &dev->clips[i].c, saa7134_g_fmt_vid_overlay()
1318 if (f->fmt.win.clips == NULL) saa7134_try_fmt_vid_overlay()
1319 f->fmt.win.clipcount = 0; saa7134_try_fmt_vid_overlay()
1320 return verify_preview(dev, &f->fmt.win, true); saa7134_try_fmt_vid_overlay()
1351 if (f->fmt.win.clips == NULL) saa7134_s_fmt_vid_overlay()
1352 f->fmt.win.clipcount = 0; saa7134_s_fmt_vid_overlay()
1353 err = verify_preview(dev, &f->fmt.win, true); saa7134_s_fmt_vid_overlay()
1357 dev->win = f->fmt.win; saa7134_s_fmt_vid_overlay()
1358 dev->nclips = f->fmt.win.clipcount; saa7134_s_fmt_vid_overlay()
1360 if (copy_from_user(dev->clips, f->fmt.win.clips, saa7134_s_fmt_vid_overlay()
2070 dev->win.w.width = dev->width; saa7134_video_init1()
2071 dev->win.w.height = dev->height; saa7134_video_init1()
2072 dev->win.field = V4L2_FIELD_INTERLACED; saa7134_video_init1()
H A Dsaa7134.h584 struct v4l2_window win; member in struct:saa7134_dev
/linux-4.1.27/arch/arm/mach-s3c64xx/
H A Dmach-real6410.c150 .win[0] = &real6410_lcd_type0_fb_win,
156 .win[0] = &real6410_lcd_type1_fb_win,
299 real6410_lcd_pdata[features.lcd_index].win[0]->xres, real6410_machine_init()
300 real6410_lcd_pdata[features.lcd_index].win[0]->yres); real6410_machine_init()
H A Dmach-mini6410.c188 .win[0] = &mini6410_lcd_type0_fb_win,
194 .win[0] = &mini6410_lcd_type1_fb_win,
329 mini6410_lcd_pdata[features.lcd_index].win[0]->xres, mini6410_machine_init()
330 mini6410_lcd_pdata[features.lcd_index].win[0]->yres); mini6410_machine_init()
H A Dmach-smartq5.c133 .win[0] = &smartq5_fb_win0,
H A Dmach-smartq7.c149 .win[0] = &smartq7_fb_win0,
H A Dmach-anw6410.c158 .win[0] = &anw6410_fb_win0,
H A Dmach-hmt.c154 .win[0] = &hmt_fb_win0,
H A Dmach-smdk6410.c172 .win[0] = &smdk6410_fb_win0,
H A Dmach-crag6410.c176 .win[0] = &crag6410_fb_win0,
/linux-4.1.27/tools/thermal/tmon/
H A Dtui.c58 static void draw_hbar(WINDOW *win, int y, int start, int len,
79 static void close_window(WINDOW *win) close_window() argument
81 if (win) { close_window()
82 delwin(win); close_window()
83 win = NULL; close_window()
146 * dialogue window is a pop-up, when needed it lays on top of cdev win setup_windows()
184 syslog(LOG_INFO, "no dialogue win, term too small\n"); setup_windows()
533 static void draw_hbar(WINDOW *win, int y, int start, int len, unsigned long ptn, draw_hbar() argument
536 mvwaddch(win, y, start, ptn); draw_hbar()
537 whline(win, ptn, len); draw_hbar()
539 mvwaddch(win, y, MAX_DISP_TEMP+TDATA_LEFT, ']'); draw_hbar()
/linux-4.1.27/arch/mips/txx9/generic/
H A Dsetup_tx4939.c101 u64 win; tx4939_add_memory_regions() local
106 win = ____raw_readq(&tx4939_ddrcptr->win[i]); tx4939_add_memory_regions()
107 start = (unsigned long)(win >> 48); tx4939_add_memory_regions()
108 size = (((unsigned long)(win >> 32) & 0xffff) + 1) - start; tx4939_add_memory_regions()
230 __u64 win = ____raw_readq(&tx4939_ddrcptr->win[i]); tx4939_setup() local
233 printk(KERN_CONT " #%d:%016llx", i, (unsigned long long)win); tx4939_setup()
236 (unsigned long)(win >> 48) << 20; tx4939_setup()
238 ((((unsigned long)(win >> 32) & 0xffff) + 1) << tx4939_setup()
/linux-4.1.27/arch/mips/include/asm/mach-loongson/
H A Dloongson.h340 * win: 0, 1, 2, 3
351 #define LOONGSON_ADDRWIN_CPUTOPCI(win, src, dst, size) \
352 LOONGSON_ADDRWIN_CFG(CPU, PCI, win, src, dst, size)
353 #define LOONGSON_ADDRWIN_CPUTODDR(win, src, dst, size) \
354 LOONGSON_ADDRWIN_CFG(CPU, DDR, win, src, dst, size)
355 #define LOONGSON_ADDRWIN_PCITODDR(win, src, dst, size) \
356 LOONGSON_ADDRWIN_CFG(PCIDMA, DDR, win, src, dst, size)
/linux-4.1.27/drivers/video/fbdev/mmp/fb/
H A Dmmpfb.c399 struct mmp_win win; mmpfb_set_win() local
402 memset(&win, 0, sizeof(win)); mmpfb_set_win()
403 win.xsrc = win.xdst = fbi->mode.xres; mmpfb_set_win()
404 win.ysrc = win.ydst = fbi->mode.yres; mmpfb_set_win()
405 win.pix_fmt = fbi->pix_fmt; mmpfb_set_win()
406 stride = pixfmt_to_stride(win.pix_fmt); mmpfb_set_win()
407 win.pitch[0] = var->xres_virtual * stride; mmpfb_set_win()
408 win.pitch[1] = win.pitch[2] = mmpfb_set_win()
410 mmp_overlay_set_win(fbi->overlay, &win); mmpfb_set_win()
/linux-4.1.27/include/video/
H A Dmmp_disp.h80 /* overlay related para: win/addr */
152 void (*set_win)(struct mmp_overlay *overlay, struct mmp_win *win);
165 struct mmp_win win; member in struct:mmp_overlay
289 struct mmp_win *win) mmp_overlay_set_win()
292 overlay->ops->set_win(overlay, win); mmp_overlay_set_win()
288 mmp_overlay_set_win(struct mmp_overlay *overlay, struct mmp_win *win) mmp_overlay_set_win() argument
H A Dexynos7_decon.h103 #define VIDW_BLKSIZE(win) (0x0200 + ((_win) * 4))
/linux-4.1.27/drivers/scsi/csiostor/
H A Dcsio_hw_t5.c38 csio_t5_set_mem_win(struct csio_hw *hw, uint32_t win) csio_t5_set_mem_win() argument
61 PCIE_MEM_ACCESS_REG(PCIE_MEM_ACCESS_BASE_WIN_A, win)); csio_t5_set_mem_win()
63 PCIE_MEM_ACCESS_REG(PCIE_MEM_ACCESS_BASE_WIN_A, win)); csio_t5_set_mem_win()
267 * @win: PCI-E memory Window to use
282 csio_t5_memory_rw(struct csio_hw *hw, u32 win, int mtype, u32 addr, csio_t5_memory_rw() argument
323 PCIE_MEM_ACCESS_REG(PCIE_MEM_ACCESS_BASE_WIN_A, win)); csio_t5_memory_rw()
347 PCIE_MEM_ACCESS_REG(PCIE_MEM_ACCESS_OFFSET_A, win)); csio_t5_memory_rw()
349 PCIE_MEM_ACCESS_REG(PCIE_MEM_ACCESS_OFFSET_A, win)); csio_t5_memory_rw()
/linux-4.1.27/arch/tile/lib/
H A Dmemset_32.c28 /* Experimentation shows that a trivial tight loop is a win up until memset()
29 * around a size of 20, where writing a word at a time starts to win. memset()
H A Dmemset_64.c28 /* Experimentation shows that a trivial tight loop is a win up until memset()
29 * around a size of 20, where writing a word at a time starts to win. memset()
/linux-4.1.27/arch/sh/drivers/pci/
H A Dpcie-sh7786.c306 int ret, i, win; pcie_init() local
431 for (i = win = 0; i < chan->nr_resources; i++) { pcie_init()
443 pci_write_reg(chan, 0x00000000, SH4A_PCIEPTCTLR(win)); pcie_init()
451 pci_write_reg(chan, mask << 18, SH4A_PCIEPAMR(win)); pcie_init()
454 SH4A_PCIEPARH(win)); pcie_init()
456 SH4A_PCIEPARL(win)); pcie_init()
462 pci_write_reg(chan, mask, SH4A_PCIEPTCTLR(win)); pcie_init()
464 win++; pcie_init()
/linux-4.1.27/drivers/media/platform/
H A Dfsl-viu.c205 struct v4l2_window win; member in struct:viu_fh
710 f->fmt.win = fh->win; vidioc_g_fmt_overlay()
714 static int verify_preview(struct viu_dev *dev, struct v4l2_window *win) verify_preview() argument
723 if (win->w.width < 48 || win->w.height < 32) verify_preview()
726 field = win->field; verify_preview()
731 field = (win->w.height > maxh/2) verify_preview()
746 win->field = field; verify_preview()
747 if (win->w.width > maxw) verify_preview()
748 win->w.width = maxw; verify_preview()
749 if (win->w.height > maxh) verify_preview()
750 win->w.height = maxh; verify_preview()
768 fh->win.w.width, fh->win.w.height, dev->ovfmt->name); viu_setup_preview()
773 reg_val.picture_count = (fh->win.w.height / 2) << 16 | viu_setup_preview()
774 fh->win.w.width; viu_setup_preview()
781 reg_val.dma_inc = fh->win.w.width * 2; viu_setup_preview()
785 reg_val.dma_inc = fh->win.w.width * 4; viu_setup_preview()
793 dev->ovfield = fh->win.field; viu_setup_preview()
813 err = verify_preview(dev, &f->fmt.win); vidioc_s_fmt_overlay()
817 fh->win = f->fmt.win; vidioc_s_fmt_overlay()
/linux-4.1.27/arch/openrisc/include/asm/
H A Dunaligned.h30 * not sure if it would be much of a performance win without further
/linux-4.1.27/drivers/staging/media/davinci_vpfe/
H A Ddm365_isif.c197 struct v4l2_rect *win = &isif->crop; isif_set_image_window() local
200 isif->isif_cfg.bayer.win.top = win->top; isif_set_image_window()
201 isif->isif_cfg.bayer.win.left = win->left; isif_set_image_window()
202 isif->isif_cfg.bayer.win.width = win->width; isif_set_image_window()
203 isif->isif_cfg.bayer.win.height = win->height; isif_set_image_window()
206 isif->isif_cfg.ycbcr.win.top = win->top; isif_set_image_window()
207 isif->isif_cfg.ycbcr.win.left = win->left; isif_set_image_window()
208 isif->isif_cfg.ycbcr.win.width = win->width; isif_set_image_window()
209 isif->isif_cfg.ycbcr.win.height = win->height; isif_set_image_window()
1171 val |= ((params->win.width + 31) >> 5) & ISIF_LINEOFST_MASK; isif_config_raw()
1173 val |= ((((params->win.width + (params->win.width >> 2)) + isif_config_raw()
1176 val |= (((params->win.width * 2) + 31) >> 5) & isif_config_raw()
1199 isif_setwin(isif, &params->win, params->frm_fmt, 1, mode); isif_config_raw()
1318 isif_setwin(isif, &params->win, params->frm_fmt, 1, mode); isif_config_ycbcr()
1320 isif_setwin(isif, &params->win, params->frm_fmt, 2, mode); isif_config_ycbcr()
1328 ((((params->win.width * 2) + 31) & isif_config_ycbcr()
H A Ddm365_isif.h75 struct v4l2_rect win; member in struct:isif_ycbcr_config
122 struct v4l2_rect win; member in struct:isif_params_raw
/linux-4.1.27/drivers/media/usb/gspca/stv06xx/
H A Dstv06xx_hdcs.c292 u8 win[4]; hdcs_set_size() local
321 win[0] = y / 4; hdcs_set_size()
322 win[1] = x / 4; hdcs_set_size()
323 win[2] = (y + height) / 4 - 1; hdcs_set_size()
324 win[3] = (x + width) / 4 - 1; hdcs_set_size()
326 err = hdcs_reg_write_seq(sd, HDCS_FWROW, win, 4); hdcs_set_size()
/linux-4.1.27/drivers/infiniband/hw/cxgb3/
H A Diwch_cm.h206 static inline int compute_wscale(int win) compute_wscale() argument
210 while (wscale < 14 && (65535<<wscale) < win) compute_wscale()
/linux-4.1.27/include/media/davinci/
H A Ddm644x_ccdc.h157 struct v4l2_rect win; member in struct:ccdc_params_raw
181 struct v4l2_rect win; member in struct:ccdc_params_ycbcr
H A Ddm355_ccdc.h266 struct v4l2_rect win; member in struct:ccdc_params_ycbcr
296 struct v4l2_rect win; member in struct:ccdc_params_raw
H A Disif.h460 struct v4l2_rect win; member in struct:isif_ycbcr_config
497 struct v4l2_rect win; member in struct:isif_params_raw
H A Dvpbe_osd.h384 struct osd_window_state win[4]; member in struct:osd_state
/linux-4.1.27/drivers/media/rc/keymaps/
H A Drc-encore-enltv.c44 { 0x14, KEY_HOME }, /* win start menu */
/linux-4.1.27/drivers/media/usb/gspca/
H A Dmars.c285 /*jfm: from win trace*/ sd_start()
307 /*jfm: from win trace*/ sd_start()
319 /*jfm: from win trace*/ sd_start()
333 /*jfm: win trace - many writes here to reg 0x64*/ sd_start()
H A Dspca561.c174 /* from ms-win */
179 /* from ms-win */
217 {0x833c, 0x0001}, /*fixme: win:07*/
488 /* try to emulate MS-win as possible */ setwhite()
617 Clck = 0x27; /* ms-win 0x87 */ sd_start_72a()
H A Dspca1528.c203 /*fixme: 256 in ms-win traces*/ sd_config()
H A Dt613.c21 * * Focus to light do not balance well as in win.
22 * Quality in win is not good, but its kinda better.
25 * * 7~8 Fps, its ok, max on win its 10.
H A Dov534.c141 /* comments from the ms-win file apollo7670.set */
1341 /* (from ms-win trace) */ sd_start()
H A Dzc3xx.c1356 {0xaa, 0x84, 0x0038}, /* 00,84,38,aa */ /* win: 00,84,ec */
1360 /* win: 01,92,10 */
1364 /* win: 01,97,ec */
5047 /* win: 01,8d,80 */
5669 /*ms-win*/ setmatrix()
5909 /* win: 0x80, 0x018d */ setlightfreq()
6727 reg_w(gspca_dev, 0x09, 0x01ad); /* (from win traces) */ sd_start()
6780 reg_r(gspca_dev, 0x0180); /* from win */ sd_start()
6792 reg_w(gspca_dev, 0x09, 0x01ad); /* (from win traces) */ sd_start()
6795 /* ms-win + */ sd_start()
6804 reg_w(gspca_dev, 0x09, 0x01ad); /* (from win traces) */ sd_start()
6809 /* reg_w(gspca_dev, 0x40, ZC3XX_R117_GGAIN); in win traces */ sd_start()
H A Dsonixj.c704 /* win: i2c_r from 00 to 80 */
865 /* not in all ms-win traces*/
881 /****** (some exchanges in the win trace) ******/
888 /****** (some exchanges in the win trace) ******/
937 /* from ms-win traces - these values change with auto gain/expo/wb.. */
/linux-4.1.27/drivers/net/wireless/ti/wl18xx/
H A Devent.h80 /* rx BA win size indicated by RX_BA_WIN_SIZE_CHANGE_EVENT_ID */
/linux-4.1.27/drivers/hid/
H A Dhid-holtekff.c48 * (the difference between 04 and 06 isn't known; win driver
75 * bytes 5-6: unknown (win driver seems to use at least 10e0 with effect 1
170 /* initialize the same way as win driver does */ holtekff_init()
/linux-4.1.27/tools/perf/util/
H A Dhelp.c78 struct winsize win; pretty_print_string_list() local
82 get_term_dimensions(&win); pretty_print_string_list()
83 max_cols = win.ws_col - 1; /* don't print *on* the edge */ pretty_print_string_list()
/linux-4.1.27/net/netfilter/
H A Dnf_conntrack_proto_tcp.c345 td_maxend = max(sack + max(win,1)) seen in reply packets
346 td_maxwin = max(max(win, 1)) + (sack - ack) seen in sent packets
514 __u32 seq, ack, sack, end, win, swin; tcp_in_window() local
523 win = ntohs(tcph->window); tcp_in_window()
537 pr_debug("seq=%u ack=%u+(%d) sack=%u+(%d) win=%u end=%u\n", tcp_in_window()
538 seq, ack, receiver_offset, sack, receiver_offset, win, end); tcp_in_window()
557 sender->td_maxwin = (win == 0 ? 1 : win); tcp_in_window()
579 swin = win << sender->td_scale; tcp_in_window()
602 sender->td_maxwin = (win == 0 ? 1 : win); tcp_in_window()
630 pr_debug("seq=%u ack=%u+(%d) sack=%u+(%d) win=%u end=%u\n", tcp_in_window()
631 seq, ack, receiver_offset, sack, receiver_offset, win, end); tcp_in_window()
657 win <<= sender->td_scale; tcp_in_window()
662 swin = win + (sack - ack); tcp_in_window()
682 if (after(sack + win, receiver->td_maxend - 1)) { tcp_in_window()
683 receiver->td_maxend = sack + win; tcp_in_window()
684 if (win == 0) tcp_in_window()
698 && state->last_win == win) tcp_in_window()
705 state->last_win = win; tcp_in_window()
/linux-4.1.27/arch/x86/pci/
H A Dmmconfig-shared.c130 u32 win; pci_mmcfg_e7520() local
131 raw_pci_ops->read(0, 0, PCI_DEVFN(0, 0), 0xce, 2, &win); pci_mmcfg_e7520()
133 win = win & 0xf000; pci_mmcfg_e7520()
134 if (win == 0x0000 || win == 0xf000) pci_mmcfg_e7520()
137 if (pci_mmconfig_add(0, 0, 255, win << 16) == NULL) pci_mmcfg_e7520()
/linux-4.1.27/drivers/media/pci/zoran/
H A Dzoran_driver.c1641 fmt->fmt.win.w.left = fh->overlay_settings.x; zoran_g_fmt_vid_overlay()
1642 fmt->fmt.win.w.top = fh->overlay_settings.y; zoran_g_fmt_vid_overlay()
1643 fmt->fmt.win.w.width = fh->overlay_settings.width; zoran_g_fmt_vid_overlay()
1644 fmt->fmt.win.w.height = fh->overlay_settings.height; zoran_g_fmt_vid_overlay()
1646 fmt->fmt.win.field = V4L2_FIELD_INTERLACED; zoran_g_fmt_vid_overlay()
1648 fmt->fmt.win.field = V4L2_FIELD_TOP; zoran_g_fmt_vid_overlay()
1662 if (fmt->fmt.win.w.width > BUZ_MAX_WIDTH) zoran_try_fmt_vid_overlay()
1663 fmt->fmt.win.w.width = BUZ_MAX_WIDTH; zoran_try_fmt_vid_overlay()
1664 if (fmt->fmt.win.w.width < BUZ_MIN_WIDTH) zoran_try_fmt_vid_overlay()
1665 fmt->fmt.win.w.width = BUZ_MIN_WIDTH; zoran_try_fmt_vid_overlay()
1666 if (fmt->fmt.win.w.height > BUZ_MAX_HEIGHT) zoran_try_fmt_vid_overlay()
1667 fmt->fmt.win.w.height = BUZ_MAX_HEIGHT; zoran_try_fmt_vid_overlay()
1668 if (fmt->fmt.win.w.height < BUZ_MIN_HEIGHT) zoran_try_fmt_vid_overlay()
1669 fmt->fmt.win.w.height = BUZ_MIN_HEIGHT; zoran_try_fmt_vid_overlay()
1781 fmt->fmt.win.w.left, fmt->fmt.win.w.top, zoran_s_fmt_vid_overlay()
1782 fmt->fmt.win.w.width, zoran_s_fmt_vid_overlay()
1783 fmt->fmt.win.w.height, zoran_s_fmt_vid_overlay()
1784 fmt->fmt.win.clipcount, zoran_s_fmt_vid_overlay()
1785 fmt->fmt.win.bitmap); zoran_s_fmt_vid_overlay()
1787 res = setup_window(fh, fmt->fmt.win.w.left, fmt->fmt.win.w.top, zoran_s_fmt_vid_overlay()
1788 fmt->fmt.win.w.width, fmt->fmt.win.w.height, zoran_s_fmt_vid_overlay()
1789 (struct v4l2_clip __user *)fmt->fmt.win.clips, zoran_s_fmt_vid_overlay()
1790 fmt->fmt.win.clipcount, fmt->fmt.win.bitmap); zoran_s_fmt_vid_overlay()
/linux-4.1.27/drivers/media/v4l2-core/
H A Dv4l2-ioctl.c248 const struct v4l2_window *win; v4l_print_format() local
293 win = &p->fmt.win; v4l_print_format()
298 win->w.width, win->w.height, win->w.left, win->w.top, v4l_print_format()
299 prt_names(win->field, v4l2_field_names), v4l_print_format()
300 win->chromakey, win->clipcount, win->clips, v4l_print_format()
301 win->bitmap, win->global_alpha); v4l_print_format()
1165 struct v4l2_clip __user *clips = p->fmt.win.clips; v4l_g_fmt()
1166 u32 clipcount = p->fmt.win.clipcount; v4l_g_fmt()
1167 void __user *bitmap = p->fmt.win.bitmap; v4l_g_fmt()
1170 p->fmt.win.clips = clips; v4l_g_fmt()
1171 p->fmt.win.clipcount = clipcount; v4l_g_fmt()
1172 p->fmt.win.bitmap = bitmap; v4l_g_fmt()
1267 CLEAR_AFTER_FIELD(p, fmt.win); v4l_s_fmt()
1295 CLEAR_AFTER_FIELD(p, fmt.win); v4l_s_fmt()
1346 CLEAR_AFTER_FIELD(p, fmt.win); v4l_try_fmt()
1374 CLEAR_AFTER_FIELD(p, fmt.win); v4l_try_fmt()
H A Dv4l2-compat-ioctl32.c155 struct v4l2_window32 win; member in union:v4l2_format32::__anon5904
194 return get_v4l2_window32(&kp->fmt.win, &up->fmt.win); __get_v4l2_format32()
238 return put_v4l2_window32(&kp->fmt.win, &up->fmt.win); __put_v4l2_format32()
/linux-4.1.27/drivers/media/platform/am437x/
H A Dam437x-vpfe.c573 vpfe_ccdc_setwin(ccdc, &params->win, vpfe_ccdc_config_ycbcr()
695 vpfe_ccdc_setwin(ccdc, &params->win, params->frm_fmt, vpfe_ccdc_config_raw()
826 struct v4l2_rect *win, unsigned int bpp) vpfe_ccdc_set_image_window()
829 ccdc->ccdc_cfg.bayer.win = *win; vpfe_ccdc_set_image_window()
831 ccdc->ccdc_cfg.bayer.bytesperline = ALIGN(win->width * bpp, 32); vpfe_ccdc_set_image_window()
833 ccdc->ccdc_cfg.ycbcr.win = *win; vpfe_ccdc_set_image_window()
835 ccdc->ccdc_cfg.ycbcr.bytesperline = ALIGN(win->width * bpp, 32); vpfe_ccdc_set_image_window()
843 struct v4l2_rect *win) vpfe_ccdc_get_image_window()
846 *win = ccdc->ccdc_cfg.bayer.win; vpfe_ccdc_get_image_window()
848 *win = ccdc->ccdc_cfg.ycbcr.win; vpfe_ccdc_get_image_window()
984 ccdc->ccdc_cfg.ycbcr.win.left = 0; vpfe_ccdc_config_defaults()
985 ccdc->ccdc_cfg.ycbcr.win.top = 0; vpfe_ccdc_config_defaults()
986 ccdc->ccdc_cfg.ycbcr.win.width = 720; vpfe_ccdc_config_defaults()
987 ccdc->ccdc_cfg.ycbcr.win.height = 576; vpfe_ccdc_config_defaults()
996 ccdc->ccdc_cfg.bayer.win.left = 0; vpfe_ccdc_config_defaults()
997 ccdc->ccdc_cfg.bayer.win.top = 0; vpfe_ccdc_config_defaults()
998 ccdc->ccdc_cfg.bayer.win.width = 800; vpfe_ccdc_config_defaults()
999 ccdc->ccdc_cfg.bayer.win.height = 600; vpfe_ccdc_config_defaults()
825 vpfe_ccdc_set_image_window(struct vpfe_ccdc *ccdc, struct v4l2_rect *win, unsigned int bpp) vpfe_ccdc_set_image_window() argument
842 vpfe_ccdc_get_image_window(struct vpfe_ccdc *ccdc, struct v4l2_rect *win) vpfe_ccdc_get_image_window() argument
H A Dam437x-vpfe.h153 struct v4l2_rect win; member in struct:ccdc_params_raw
182 struct v4l2_rect win; member in struct:ccdc_params_ycbcr
/linux-4.1.27/arch/x86/lib/
H A Dmmx_32.c5 * We can use MMX just for prefetch in IRQ's. This may be a win.
12 * Add *user handling. Checksums are not a win with MMX on any CPU
/linux-4.1.27/include/pcmcia/
H A Dds.h122 /* Flags whether io, irq, win configurations were
251 #define WIN_FLAGS_REQ 0x1c /* mapping to socket->win[i]:
H A Dcistpl.h429 } win[CISTPL_IO_MAX_WIN]; member in struct:cistpl_io_t
446 } win[CISTPL_MEM_MAX_WIN]; member in struct:cistpl_mem_t
H A Dss.h143 pccard_mem_map win[MAX_WIN]; member in struct:pcmcia_socket
/linux-4.1.27/drivers/thermal/
H A Dintel_powerclamp.c307 static void adjust_compensation(int target_ratio, unsigned int win) adjust_compensation() argument
319 win * num_online_cpus()) adjust_compensation()
335 unsigned int guard, unsigned int win) powerclamp_adjust_controls()
358 adjust_compensation(target_ratio, win); powerclamp_adjust_controls()
364 2 * win * num_online_cpus(); powerclamp_adjust_controls()
334 powerclamp_adjust_controls(unsigned int target_ratio, unsigned int guard, unsigned int win) powerclamp_adjust_controls() argument
/linux-4.1.27/drivers/pnp/pnpacpi/
H A Drsparser.c183 struct resource_win win = {{0}, 0}; pnpacpi_allocated_resource() local
184 struct resource *r = &win.res; pnpacpi_allocated_resource()
187 if (acpi_dev_resource_address_space(res, &win) pnpacpi_allocated_resource()
188 || acpi_dev_resource_ext_address_space(res, &win)) { pnpacpi_allocated_resource()
189 pnp_add_resource(dev, &win.res); pnpacpi_allocated_resource()
/linux-4.1.27/net/tipc/
H A Dlink.c1749 void tipc_link_set_queue_limits(struct tipc_link *l, u32 win) tipc_link_set_queue_limits() argument
1753 l->window = win; tipc_link_set_queue_limits()
1754 l->backlog[TIPC_LOW_IMPORTANCE].limit = win / 2; tipc_link_set_queue_limits()
1755 l->backlog[TIPC_MEDIUM_IMPORTANCE].limit = win; tipc_link_set_queue_limits()
1756 l->backlog[TIPC_HIGH_IMPORTANCE].limit = win / 2 * 3; tipc_link_set_queue_limits()
1757 l->backlog[TIPC_CRITICAL_IMPORTANCE].limit = win * 2; tipc_link_set_queue_limits()
1861 u32 win; tipc_nl_parse_link_prop() local
1863 win = nla_get_u32(props[TIPC_NLA_PROP_WIN]); tipc_nl_parse_link_prop()
1864 if ((win < TIPC_MIN_LINK_WIN) || (win > TIPC_MAX_LINK_WIN)) tipc_nl_parse_link_prop()
1933 u32 win; tipc_nl_link_set() local
1935 win = nla_get_u32(props[TIPC_NLA_PROP_WIN]); tipc_nl_link_set()
1936 tipc_link_set_queue_limits(link, win); tipc_nl_link_set()
/linux-4.1.27/drivers/net/wireless/iwlwifi/dvm/
H A Drs.c478 window = &(tbl->win[scale_index]); rs_collect_tx_data()
1174 s32 active_sr = active_tbl->win[index].success_ratio; rs_get_best_rate()
1428 struct iwl_rate_scale_data *window = &(tbl->win[index]); rs_move_legacy_other()
1603 struct iwl_rate_scale_data *window = &(tbl->win[index]); rs_move_siso_to_other()
1775 struct iwl_rate_scale_data *window = &(tbl->win[index]); rs_move_mimo2_to_other()
1945 struct iwl_rate_scale_data *window = &(tbl->win[index]); rs_move_mimo3_to_other()
2175 IWL_DEBUG_RATE(priv, "LQ: stay in table clear win\n"); rs_stay_in_table()
2178 &(tbl->win[i])); rs_stay_in_table()
2187 rs_rate_scale_clear_window(&(tbl->win[i])); rs_stay_in_table()
2336 window = &(tbl->win[index]); rs_rate_scale_perform()
2340 window = &(tbl->win[index]); rs_rate_scale_perform()
2443 low_tpt = tbl->win[low].average_tpt; rs_rate_scale_perform()
2445 high_tpt = tbl->win[high].average_tpt; rs_rate_scale_perform()
2594 rs_rate_scale_clear_window(&(tbl->win[i])); rs_rate_scale_perform()
2823 rs_rate_scale_clear_window(&lq_sta->lq_info[j].win[i]); iwl_rs_rate_init()
3241 lq_sta->lq_info[i].win[j].counter, rs_sta_dbgfs_stats_table_read()
3242 lq_sta->lq_info[i].win[j].success_counter, rs_sta_dbgfs_stats_table_read()
3243 lq_sta->lq_info[i].win[j].success_ratio); rs_sta_dbgfs_stats_table_read()
H A Drs.h320 struct iwl_rate_scale_data win[IWL_RATE_COUNT]; /* rate histories */ member in struct:iwl_scale_tbl_info
/linux-4.1.27/arch/sparc/math-emu/
H A Dmath_64.c329 struct reg_window __user *win; do_mathemu() local
331 win = (struct reg_window __user *)(regs->u_regs[UREG_FP] + STACK_BIAS); do_mathemu()
332 get_user(XR, &win->locals[freg - 16]); do_mathemu()
/linux-4.1.27/arch/arm64/lib/
H A Dstrlen.S71 * slightly higher start-up cost, but we should win quite quickly,
H A Dstrnlen.S79 * slightly higher start-up cost, but we should win quite quickly,
/linux-4.1.27/arch/arm/mach-s3c24xx/
H A Dmach-smdk2416.c191 .win[0] = &smdk2416_fb_win[0],
/linux-4.1.27/tools/perf/scripts/python/
H A Dsched-migration.py260 def set_root_win(self, win):
261 self.root_win = win
/linux-4.1.27/drivers/media/pci/ivtv/
H A Divtv-ioctl.c452 struct v4l2_window *winfmt = &fmt->fmt.win; ivtv_g_fmt_vid_out_overlay()
562 u32 chromakey = fmt->fmt.win.chromakey; ivtv_try_fmt_vid_out_overlay()
563 u8 global_alpha = fmt->fmt.win.global_alpha; ivtv_try_fmt_vid_out_overlay()
570 fmt->fmt.win.chromakey = chromakey; ivtv_try_fmt_vid_out_overlay()
571 fmt->fmt.win.global_alpha = global_alpha; ivtv_try_fmt_vid_out_overlay()
691 itv->osd_chroma_key = fmt->fmt.win.chromakey; ivtv_s_fmt_vid_out_overlay()
692 itv->osd_global_alpha = fmt->fmt.win.global_alpha; ivtv_s_fmt_vid_out_overlay()
/linux-4.1.27/drivers/net/ethernet/3com/
H A D3c515.c1217 int win, reg; corkscrew_interrupt() local
1220 for (win = 0; win < 8; win++) { corkscrew_interrupt()
1221 EL3WINDOW(win); corkscrew_interrupt()
1222 pr_notice("Vortex window %d:", win); corkscrew_interrupt()
/linux-4.1.27/drivers/net/wireless/iwlwifi/mvm/
H A Drs.c553 rs_rate_scale_clear_window(&tbl->win[i]); rs_rate_scale_clear_tbl_windows()
707 window = &(tbl->win[scale_index]); rs_collect_tx_data()
1481 s32 success_ratio = active_tbl->win[index].success_ratio; rs_get_best_rate()
1599 "LQ: stay in table clear win\n"); rs_stay_in_table()
2163 window = &(tbl->win[index]); rs_rate_scale_perform()
2257 low_tpt = tbl->win[low].average_tpt; rs_rate_scale_perform()
2259 high_tpt = tbl->win[high].average_tpt; rs_rate_scale_perform()
2334 "Start Search: update_lq %d done_search %d rs_state %d win->counter %d\n", rs_rate_scale_perform()
3509 tbl->win[j].counter, rs_sta_dbgfs_stats_table_read()
3510 tbl->win[j].success_counter, rs_sta_dbgfs_stats_table_read()
3511 tbl->win[j].success_ratio); rs_sta_dbgfs_stats_table_read()
H A Drs.h267 struct iwl_rate_scale_data win[IWL_RATE_COUNT]; /* rate histories */ member in struct:iwl_scale_tbl_info
/linux-4.1.27/drivers/isdn/act2000/
H A Dcapi.h90 __u8 win; /* Window size */ member in struct:actcapi_dlpd
H A Dcapi.c329 m->msg.select_b2_protocol_req.dlpd.win = 7; actcapi_select_b2_protocol_req()
989 printk(KERN_DEBUG " dlpd.win = %d\n", dlpd->win); actcapi_debug_dlpd()
/linux-4.1.27/include/media/
H A Dsaa7146_vv.h81 struct v4l2_window win; member in struct:saa7146_overlay
/linux-4.1.27/arch/cris/arch-v10/lib/
H A Dmemset.c39 <= 24+24*(n/48-1) so n >= 45.7; n >= 0.9; we win on the first full
/linux-4.1.27/arch/cris/arch-v32/lib/
H A Dmemset.c39 <= 24+24*(n/48-1) so n >= 45.7; n >= 0.9; we win on the first full
/linux-4.1.27/mm/
H A Dballoon_compaction.c140 * In case we 'win' a race for a balloon page being freed under us and balloon_page_isolate()
/linux-4.1.27/net/decnet/
H A Daf_decnet.c1353 unsigned long win; __dn_setsockopt() member in union:__anon14103
1459 if (u.win > NSP_MAX_WINDOW) __dn_setsockopt()
1460 u.win = NSP_MAX_WINDOW; __dn_setsockopt()
1461 if (u.win == 0) __dn_setsockopt()
1463 scp->max_window = u.win; __dn_setsockopt()
1464 if (scp->snd_window > u.win) __dn_setsockopt()
1465 scp->snd_window = u.win; __dn_setsockopt()
/linux-4.1.27/drivers/media/i2c/
H A Dov7670.c1106 struct ov7670_win_size *win = &info->devtype->win_sizes[i]; ov7670_enum_frame_size() local
1107 if (info->min_width && win->width < info->min_width) ov7670_enum_frame_size()
1109 if (info->min_height && win->height < info->min_height) ov7670_enum_frame_size()
1112 fse->min_width = fse->max_width = win->width; ov7670_enum_frame_size()
1113 fse->min_height = fse->max_height = win->height; ov7670_enum_frame_size()
/linux-4.1.27/drivers/infiniband/hw/cxgb4/
H A Dcm.c642 int win; send_connect() local
667 win = ep->rcv_win >> 10; send_connect()
668 if (win > RCV_BUFSIZ_M) send_connect()
669 win = RCV_BUFSIZ_M; send_connect()
681 RCV_BUFSIZ_V(win); send_connect()
1765 int win; send_fw_act_open_req() local
1797 win = ep->rcv_win >> 10; send_fw_act_open_req()
1798 if (win > RCV_BUFSIZ_M) send_fw_act_open_req()
1799 win = RCV_BUFSIZ_M; send_fw_act_open_req()
1812 RCV_BUFSIZ_V(win)); send_fw_act_open_req()
2173 int win; accept_cr() local
2200 win = ep->rcv_win >> 10; accept_cr()
2201 if (win > RCV_BUFSIZ_M) accept_cr()
2202 win = RCV_BUFSIZ_M; accept_cr()
2213 RCV_BUFSIZ_V(win); accept_cr()
H A Diw_cxgb4.h907 static inline int compute_wscale(int win) compute_wscale() argument
911 while (wscale < 14 && (65535<<wscale) < win) compute_wscale()
/linux-4.1.27/drivers/mtd/maps/
H A Dpcmciamtd.c86 struct resource *win = (struct resource *) map->map_priv_2; remap_window() local
99 ret = pcmcia_map_mem_page(dev->p_dev, win, offset); remap_window()
/linux-4.1.27/drivers/scsi/cxgbi/
H A Dlibcxgbi.h409 static inline unsigned int cxgbi_sock_compute_wscale(unsigned int win) cxgbi_sock_compute_wscale() argument
413 while (wscale < 14 && (65535 << wscale) < win) cxgbi_sock_compute_wscale()
/linux-4.1.27/include/linux/
H A Dacpi.h308 struct resource_win *win);
310 struct resource_win *win);
/linux-4.1.27/drivers/net/ethernet/sfc/
H A Dio.h75 /* PIO is a win only if write-combining is possible */
H A Dmcdi.c324 /* Wait until the interface becomes QUIESCENT and we win the race efx_mcdi_acquire_sync()
/linux-4.1.27/net/ipv6/
H A Dtcp_ipv6.c734 u32 ack, u32 win, u32 tsval, u32 tsecr, tcp_v6_send_response()
774 t1->window = htons(win); tcp_v6_send_response()
904 u32 ack, u32 win, u32 tsval, u32 tsecr, int oif, tcp_v6_send_ack()
908 tcp_v6_send_response(sk, skb, seq, ack, win, tsval, tsecr, oif, key, 0, tcp_v6_send_ack()
733 tcp_v6_send_response(struct sock *sk, struct sk_buff *skb, u32 seq, u32 ack, u32 win, u32 tsval, u32 tsecr, int oif, struct tcp_md5sig_key *key, int rst, u8 tclass, u32 label) tcp_v6_send_response() argument
903 tcp_v6_send_ack(struct sock *sk, struct sk_buff *skb, u32 seq, u32 ack, u32 win, u32 tsval, u32 tsecr, int oif, struct tcp_md5sig_key *key, u8 tclass, u32 label) tcp_v6_send_ack() argument
/linux-4.1.27/drivers/isdn/hisax/
H A Dsedlbauer.c54 {"None", "speed card/win", "speed star", "speed fax+",
55 "speed win II / ISDN PC/104", "speed star II", "speed pci",
523 (unsigned long) "Speed win" },
/linux-4.1.27/drivers/scsi/pm8001/
H A Dpm8001_hwi.h955 /* PCIE registers - BAR2(0x18), BAR1(win) 0x010000 */
964 /* SPC Reset register - BAR4(0x20), BAR2(win) (need dynamic mapping) */
990 /* registers for BAR Shifting - BAR2(0x18), BAR1(win) */
H A Dpm80xx_hwi.h1437 /* PCIE registers - BAR2(0x18), BAR1(win) 0x010000 */
1457 /* SPC Reset register - BAR4(0x20), BAR2(win) (need dynamic mapping) */
1483 /* registers for BAR Shifting - BAR2(0x18), BAR1(win) */
H A Dpm8001_hwi.c831 /* map 0x60000 to BAR4(0x20), BAR2(win) */ pm8001_chip_soft_rst()
844 /* map 0x70000 to BAR4(0x20), BAR2(win) */ pm8001_chip_soft_rst()
887 /* map 0x0700000 to BAR4(0x20), BAR2(win) */ pm8001_chip_soft_rst()
971 /* map 0x00000 to BAR4(0x20), BAR2(win) */ pm8001_chip_soft_rst()
1009 /* map 0x0700000 to BAR4(0x20), BAR2(win) */ pm8001_chip_soft_rst()
1063 /* map 0x00000 to BAR4(0x20), BAR2(win) */ pm8001_chip_soft_rst()
/linux-4.1.27/net/irda/
H A Dirlap.c1125 seq_printf(seq, " win size: %d, ", irlap_seq_show()
1127 seq_printf(seq, "win: %d, ", self->window); irlap_seq_show()
1135 seq_printf(seq, "win queue len: %d ", irlap_seq_show()
/linux-4.1.27/net/rxrpc/
H A Dar-ack.c429 int win = CIRC_CNT(call->acks_head, tail, call->acks_winsz); rxrpc_rotate_tx_window() local
431 _enter("{%u,%u},%u", call->acks_hard, win, hard); rxrpc_rotate_tx_window()
433 ASSERTCMP(hard - call->acks_hard, <=, win); rxrpc_rotate_tx_window()
/linux-4.1.27/arch/powerpc/platforms/powernv/
H A Dpci-ioda.c1184 unsigned int win; pnv_pci_vf_assign_m64() local
1224 win = find_next_zero_bit(&phb->ioda.m64_bar_alloc, pnv_pci_vf_assign_m64()
1227 if (win >= phb->ioda.m64_bar_idx + 1) pnv_pci_vf_assign_m64()
1229 } while (test_and_set_bit(win, &phb->ioda.m64_bar_alloc)); pnv_pci_vf_assign_m64()
1231 pdn->m64_wins[i][j] = win; pnv_pci_vf_assign_m64()
1261 win, rc); pnv_pci_vf_assign_m64()
1274 win, rc); pnv_pci_vf_assign_m64()
/linux-4.1.27/fs/notify/
H A Dmark.c190 * is just a lazy update (and could be a perf win...) fsnotify_destroy_mark_locked()
/linux-4.1.27/include/net/
H A Dtcp.h655 s32 win = tp->rcv_wup + tp->rcv_wnd - tp->rcv_nxt; tcp_receive_window() local
657 if (win < 0) tcp_receive_window()
658 win = 0; tcp_receive_window()
659 return (u32) win; tcp_receive_window()
/linux-4.1.27/arch/mips/include/asm/txx9/
H A Dtx4939.h59 __u64 win[4]; member in struct:tx4939_ddrc_reg
/linux-4.1.27/drivers/media/pci/ttpci/
H A Dav7110_hw.c759 static int WriteText(struct av7110 *av7110, u8 win, u16 x, u16 y, char *buf) WriteText() argument
764 u16 cbuf[5] = { (COMTYPE_OSD << 8) + DText, 3, win, x, y }; WriteText()
/linux-4.1.27/drivers/net/wireless/ipw2x00/
H A Dipw2100.h292 u8 encrypted; // BOOLEAN in win! TRUE if frame is enc by driver
293 u8 needs_encryption; // BOOLEAN in win! TRUE if frma need to be enc in NIC
/linux-4.1.27/net/llc/
H A Dllc_conn.c919 llc->k = 2; /* tx win size, will adjust dynam */ llc_sk_init()
920 llc->rw = 128; /* rx win size (opt and equal to llc_sk_init()
/linux-4.1.27/drivers/md/bcache/
H A Dbset.h122 * happen a bit less than 1% of the time), we win - even on failures, that key
/linux-4.1.27/drivers/ide/
H A Dit821x.c54 * It seems the smart mode is a win for RAID1/RAID10 but otherwise not.
/linux-4.1.27/drivers/scsi/qla2xxx/
H A Dqla_nx.h573 #define PCIE_SEM7_LOCK (0x1c038) /* crb win lock */
/linux-4.1.27/drivers/scsi/qla4xxx/
H A Dql4_nx.h643 #define PCIE_SEM7_LOCK (0x1c038) /* crb win lock */
/linux-4.1.27/drivers/net/wireless/mwifiex/
H A D11n_rxreorder.c588 * If seq_num is less then starting win then ignore and drop mwifiex_11n_rx_reorder_pkt()
/linux-4.1.27/arch/alpha/lib/
H A Dev6-memset.S24 * a win in the kernel would depend upon the contextual usage.
/linux-4.1.27/net/core/
H A Ddatagram.c187 * * 8) Great win.)
/linux-4.1.27/sound/usb/
H A Dmixer_scarlett.c36 * NB. Neither the OSX nor the win driver provided by Focusrite performs
H A Dquirks.c851 #define MAUDIO_SET_COMPATIBLE 0x80 /* use only "win-compatible" interfaces */
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb4/
H A Dt4_hw.c448 * @win: PCI-E Memory Window to use
462 int t4_memory_rw(struct adapter *adap, int win, int mtype, u32 addr, t4_memory_rw() argument
512 win)); t4_memory_rw()
530 PCIE_MEM_ACCESS_REG(PCIE_MEM_ACCESS_OFFSET_A, win), t4_memory_rw()
533 PCIE_MEM_ACCESS_REG(PCIE_MEM_ACCESS_OFFSET_A, win)); t4_memory_rw()
590 win), pos | win_pf); t4_memory_rw()
593 win)); t4_memory_rw()
H A Dcxgb4.h1156 int t4_memory_rw(struct adapter *adap, int win, int mtype, u32 addr, u32 len,
/linux-4.1.27/fs/ext4/
H A Dmballoc.c3582 int win; ext4_mb_new_inode_pa() local
3600 win = min(winl, wins); ext4_mb_new_inode_pa()
3604 if (offs && offs < win) ext4_mb_new_inode_pa()
3605 win = offs; ext4_mb_new_inode_pa()
3608 EXT4_NUM_B2C(sbi, win); ext4_mb_new_inode_pa()
/linux-4.1.27/include/uapi/linux/
H A Dvideodev2.h1900 * @win: definition of an overlaid image
1910 struct v4l2_window win; /* V4L2_BUF_TYPE_VIDEO_OVERLAY */ member in union:v4l2_format::__anon13768
/linux-4.1.27/net/ipv4/
H A Dtcp_ipv4.c710 u32 win, u32 tsval, u32 tsecr, int oif, tcp_v4_send_ack()
746 rep.th.window = htons(win); tcp_v4_send_ack()
708 tcp_v4_send_ack(struct net *net, struct sk_buff *skb, u32 seq, u32 ack, u32 win, u32 tsval, u32 tsecr, int oif, struct tcp_md5sig_key *key, int reply_flags, u8 tos) tcp_v4_send_ack() argument
/linux-4.1.27/drivers/iommu/
H A Dfsl_pamu.c320 * @win-size: size of DSA window
/linux-4.1.27/drivers/i2c/busses/
H A Di2c-pxa.c693 * 2. Wait until win arbitration.
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/
H A Den_rx.c82 /* Not doing get_page() for each frag is a big win mlx4_alloc_pages()
/linux-4.1.27/drivers/net/ethernet/qlogic/netxen/
H A Dnetxen_nic_hdr.h923 #define PCIE_SEM7_LOCK (0x1c038) /* crb win lock */
/linux-4.1.27/drivers/scsi/
H A Datari_scsi.c59 /* then the lock is released. The other one waiting will probably win */
/linux-4.1.27/drivers/tty/serial/
H A Detraxfs-uart.c901 * larger amounts at the DMA wouldn't win much so let's just play nice. cris_serial_port_init()
/linux-4.1.27/drivers/usb/musb/
H A Dmusb_gadget_ep0.c576 * win in waiting till this last packet gets acked. (other than ep0_txstate()
/linux-4.1.27/fs/xfs/
H A Dxfs_trans.c803 * call. This saves a lot of needless list walking and is a net win, even
/linux-4.1.27/fs/btrfs/
H A Dreada.c47 * be triggered in sequential order, thus giving a big win over a naive
/linux-4.1.27/lib/zlib_deflate/
H A Ddeflate.c650 * again later. (This heuristic is not always a win.) longest_match()
/linux-4.1.27/fs/reiserfs/
H A Dfix_node.c1477 * Answer: we can win 1 node in some cases above. Moreover we ip_check_balance()
1638 /* we can win TWO or ONE nodes by shifting in both directions */ ip_check_balance()
/linux-4.1.27/kernel/rcu/
H A Dtree_plugin.h2845 * cmpxchg failure means race with non-idle, let them win. rcu_sysidle()
2856 * cmpxchg failure means race with non-idle, let them win. rcu_sysidle()
/linux-4.1.27/drivers/net/fddi/skfp/
H A Dfplustm.c436 small value to make sure your station will win the claim
/linux-4.1.27/drivers/scsi/sym53c8xx_2/
H A Dsym_fw1.h862 * This will give us better chance to win arbitration
H A Dsym_fw2.h825 * This will give us better chance to win arbitration
/linux-4.1.27/drivers/infiniband/hw/ipath/
H A Dipath_intr.c829 * interrupt; we want the STATUSCHANGE to "win", so we do our handle_errors()

Completed in 5810 milliseconds

12