Home
last modified time | relevance | path

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

1234

/drivers/media/video/
Dbtcx-risc.c92 btcx_screen_clips(int swidth, int sheight, struct v4l2_rect *win, in btcx_screen_clips() argument
95 if (win->left < 0) { in btcx_screen_clips()
99 clips[n].c.width = -win->left; in btcx_screen_clips()
100 clips[n].c.height = win->height; in btcx_screen_clips()
103 if (win->left + win->width > swidth) { in btcx_screen_clips()
105 clips[n].c.left = swidth - win->left; in btcx_screen_clips()
107 clips[n].c.width = win->width - clips[n].c.left; in btcx_screen_clips()
108 clips[n].c.height = win->height; in btcx_screen_clips()
111 if (win->top < 0) { in btcx_screen_clips()
115 clips[n].c.width = win->width; in btcx_screen_clips()
[all …]
Dstradis.c1166 saa->win.color_fmt = format = in saa7146_set_winsize()
1167 (saa->win.depth == 15) ? palette2fmt[VIDEO_PALETTE_RGB555] : in saa7146_set_winsize()
1168 palette2fmt[bpp2fmt[(saa->win.bpp - 1) & 3]]; in saa7146_set_winsize()
1169 offset = saa->win.x * saa->win.bpp + saa->win.y * saa->win.bpl; in saa7146_set_winsize()
1170 saawrite(saa->win.vidadr + offset, SAA7146_BASE_EVEN1); in saa7146_set_winsize()
1171 saawrite(saa->win.vidadr + offset + saa->win.bpl, SAA7146_BASE_ODD1); in saa7146_set_winsize()
1172 saawrite(saa->win.bpl * 2, SAA7146_PITCH1); in saa7146_set_winsize()
1173 saawrite(saa->win.vidadr + saa->win.bpl * saa->win.sheight, in saa7146_set_winsize()
1177 offset = (704 / (saa->win.width - 1)) & 0x3f; in saa7146_set_winsize()
1179 offset = (720896 / saa->win.width) / (offset + 1); in saa7146_set_winsize()
[all …]
Dv4l1-compat.c416 struct video_window *win, in v4l1_compat_get_win_cap_dimensions() argument
428 memset(win, 0, sizeof(*win)); in v4l1_compat_get_win_cap_dimensions()
435 win->x = fmt->fmt.win.w.left; in v4l1_compat_get_win_cap_dimensions()
436 win->y = fmt->fmt.win.w.top; in v4l1_compat_get_win_cap_dimensions()
437 win->width = fmt->fmt.win.w.width; in v4l1_compat_get_win_cap_dimensions()
438 win->height = fmt->fmt.win.w.height; in v4l1_compat_get_win_cap_dimensions()
439 win->chromakey = fmt->fmt.win.chromakey; in v4l1_compat_get_win_cap_dimensions()
440 win->clips = NULL; in v4l1_compat_get_win_cap_dimensions()
441 win->clipcount = 0; in v4l1_compat_get_win_cap_dimensions()
451 win->x = 0; in v4l1_compat_get_win_cap_dimensions()
[all …]
Dov772x.c400 const struct ov772x_win_size *win; member
640 if (!priv->win) in ov772x_start_capture()
641 priv->win = &ov772x_win_vga; in ov772x_start_capture()
660 ret = ov772x_write_array(priv->client, priv->win->regs); in ov772x_start_capture()
668 COM7, SLCT_MASK, priv->win->com7_bit); in ov772x_start_capture()
693 "format %s, win %s\n", priv->fmt->name, priv->win->name); in ov772x_start_capture()
697 priv->win = NULL; in ov772x_start_capture()
774 const struct ov772x_win_size *win; in ov772x_select_win() local
779 win = &ov772x_win_qvga; in ov772x_select_win()
785 win = &ov772x_win_vga; in ov772x_select_win()
[all …]
Dw9968cf.c1811 w9968cf_set_window(struct w9968cf_device* cam, struct video_window win) in w9968cf_set_window() argument
1823 if ((err = w9968cf_adjust_window_size(cam, (u16*)&win.width, in w9968cf_set_window()
1824 (u16*)&win.height))) in w9968cf_set_window()
1828 fw = SC(win.width) / cam->maxwidth; in w9968cf_set_window()
1829 fh = SC(win.height) / cam->maxheight; in w9968cf_set_window()
1832 if ((win.width > cam->maxwidth) || (win.height > cam->maxheight)) { in w9968cf_set_window()
1835 w = (fw >= fh) ? cam->maxwidth : SC(win.width)/fh; in w9968cf_set_window()
1836 h = (fw >= fh) ? SC(win.height)/fw : cam->maxheight; in w9968cf_set_window()
1843 w = win.width; in w9968cf_set_window()
1844 h = win.height; in w9968cf_set_window()
[all …]
/drivers/pcmcia/
Dpcmcia_resource.c204 window_t *win; in pcmcia_get_window() local
214 win = &s->win[w]; in pcmcia_get_window()
215 req->Base = win->ctl.res->start; in pcmcia_get_window()
216 req->Size = win->ctl.res->end - win->ctl.res->start + 1; in pcmcia_get_window()
217 req->AccessSpeed = win->ctl.speed; in pcmcia_get_window()
219 if (win->ctl.flags & MAP_ATTRIB) in pcmcia_get_window()
221 if (win->ctl.flags & MAP_ACTIVE) in pcmcia_get_window()
223 if (win->ctl.flags & MAP_16BIT) in pcmcia_get_window()
225 if (win->ctl.flags & MAP_USE_WAIT) in pcmcia_get_window()
227 *handle = win; in pcmcia_get_window()
[all …]
/drivers/media/video/ovcamchip/
Dov76be.c227 static int ov76be_mode_init(struct i2c_client *c, struct ovcamchip_window *win) in ov76be_mode_init() argument
229 int qvga = win->quarter; in ov76be_mode_init()
237 if (win->format == VIDEO_PALETTE_GREY) { in ov76be_mode_init()
247 ov_write(c, 0x11, win->clockdiv); in ov76be_mode_init()
251 if (win->width == 640 && win->height == 480) in ov76be_mode_init()
259 static int ov76be_set_window(struct i2c_client *c, struct ovcamchip_window *win) in ov76be_set_window() argument
263 ret = ov76be_mode_init(c, win); in ov76be_set_window()
267 if (win->quarter) { in ov76be_set_window()
275 ov_write(c, 0x17, HWSBASE + (win->x >> hwscale)); in ov76be_set_window()
276 ov_write(c, 0x18, HWEBASE + ((win->x + win->width) >> hwscale)); in ov76be_set_window()
[all …]
Dov7x10.c259 static int ov7x10_mode_init(struct i2c_client *c, struct ovcamchip_window *win) in ov7x10_mode_init() argument
261 int qvga = win->quarter; in ov7x10_mode_init()
269 if (win->format == VIDEO_PALETTE_GREY) { in ov7x10_mode_init()
279 ov_write(c, 0x11, win->clockdiv); in ov7x10_mode_init()
283 if (win->width == 640 && win->height == 480) in ov7x10_mode_init()
291 static int ov7x10_set_window(struct i2c_client *c, struct ovcamchip_window *win) in ov7x10_set_window() argument
295 ret = ov7x10_mode_init(c, win); in ov7x10_set_window()
299 if (win->quarter) { in ov7x10_set_window()
307 ov_write(c, 0x17, HWSBASE + (win->x >> hwscale)); in ov7x10_set_window()
308 ov_write(c, 0x18, HWEBASE + ((win->x + win->width) >> hwscale)); in ov7x10_set_window()
[all …]
Dov6x20.c331 static int ov6x20_mode_init(struct i2c_client *c, struct ovcamchip_window *win) in ov6x20_mode_init() argument
335 ov_write(c, 0x14, win->quarter?0x24:0x04); in ov6x20_mode_init()
341 if (win->format == VIDEO_PALETTE_GREY) in ov6x20_mode_init()
346 if (win->format == VIDEO_PALETTE_GREY) in ov6x20_mode_init()
360 ov_write(c, 0x11, win->clockdiv); in ov6x20_mode_init()
371 static int ov6x20_set_window(struct i2c_client *c, struct ovcamchip_window *win) in ov6x20_set_window() argument
375 ret = ov6x20_mode_init(c, win); in ov6x20_set_window()
379 if (win->quarter) { in ov6x20_set_window()
387 ov_write(c, 0x17, HWSBASE + (win->x >> hwscale)); in ov6x20_set_window()
388 ov_write(c, 0x18, HWEBASE + ((win->x + win->width) >> hwscale)); in ov6x20_set_window()
[all …]
Dov6x30.c294 static int ov6x30_mode_init(struct i2c_client *c, struct ovcamchip_window *win) in ov6x30_mode_init() argument
298 ov_write_mask(c, 0x14, win->quarter?0x20:0x00, 0x20); in ov6x30_mode_init()
302 if (win->format == VIDEO_PALETTE_GREY) { in ov6x30_mode_init()
325 ov_write(c, 0x11, win->clockdiv); in ov6x30_mode_init()
330 static int ov6x30_set_window(struct i2c_client *c, struct ovcamchip_window *win) in ov6x30_set_window() argument
334 ret = ov6x30_mode_init(c, win); in ov6x30_set_window()
338 if (win->quarter) { in ov6x30_set_window()
346 ov_write(c, 0x17, HWSBASE + (win->x >> hwscale)); in ov6x30_set_window()
347 ov_write(c, 0x18, HWEBASE + ((win->x + win->width) >> hwscale)); in ov6x30_set_window()
348 ov_write(c, 0x19, VWSBASE + (win->y >> vwscale)); in ov6x30_set_window()
[all …]
Dov7x20.c389 static int ov7x20_mode_init(struct i2c_client *c, struct ovcamchip_window *win) in ov7x20_mode_init() argument
392 int qvga = win->quarter; in ov7x20_mode_init()
406 ov_write(c, 0x11, win->clockdiv); in ov7x20_mode_init()
411 static int ov7x20_set_window(struct i2c_client *c, struct ovcamchip_window *win) in ov7x20_set_window() argument
415 ret = ov7x20_mode_init(c, win); in ov7x20_set_window()
419 if (win->quarter) { in ov7x20_set_window()
427 ov_write(c, 0x17, HWSBASE + (win->x >> hwscale)); in ov7x20_set_window()
428 ov_write(c, 0x18, HWEBASE + ((win->x + win->width) >> hwscale)); in ov7x20_set_window()
429 ov_write(c, 0x19, VWSBASE + (win->y >> vwscale)); in ov7x20_set_window()
430 ov_write(c, 0x1a, VWEBASE + ((win->y + win->height) >> vwscale)); in ov7x20_set_window()
/drivers/net/wireless/b43/
Dpcmcia.c65 win_req_t win; in b43_pcmcia_probe() local
103 win.Attributes = WIN_ADDR_SPACE_MEM | WIN_MEMORY_TYPE_CM | in b43_pcmcia_probe()
106 win.Base = 0; in b43_pcmcia_probe()
107 win.Size = SSB_CORE_SIZE; in b43_pcmcia_probe()
108 win.AccessSpeed = 250; in b43_pcmcia_probe()
109 res = pcmcia_request_window(&dev, &win, &dev->win); in b43_pcmcia_probe()
115 res = pcmcia_map_mem_page(dev->win, &mem); in b43_pcmcia_probe()
131 err = ssb_bus_pcmciabus_register(ssb, dev, win.Base); in b43_pcmcia_probe()
/drivers/video/omap/
Domapfb_main.c704 struct omapfb_update_window *win, in omapfb_update_window_async() argument
713 if (win->x >= var->xres || win->y >= var->yres || in omapfb_update_window_async()
714 win->out_x > var->xres || win->out_y >= var->yres) in omapfb_update_window_async()
721 if (win->x + win->width >= var->xres) in omapfb_update_window_async()
722 win->width = var->xres - win->x; in omapfb_update_window_async()
723 if (win->y + win->height >= var->yres) in omapfb_update_window_async()
724 win->height = var->yres - win->y; in omapfb_update_window_async()
726 if (win->out_x + win->out_width > fbdev->panel->x_res) in omapfb_update_window_async()
727 win->out_width = fbdev->panel->x_res - win->out_x; in omapfb_update_window_async()
728 if (win->out_y + win->out_height > fbdev->panel->y_res) in omapfb_update_window_async()
[all …]
/drivers/video/
Dau1200fb.c178 static struct window_settings *win; variable
736 xsz = win->w[plane].xres; in au1200_setlocation()
737 ysz = win->w[plane].yres; in au1200_setlocation()
738 if ((xpos + win->w[plane].xres) > panel->Xres) { in au1200_setlocation()
744 if ((ypos + win->w[plane].yres) > panel->Yres) { in au1200_setlocation()
752 xsz = win->w[plane].xres + xpos; in au1200_setlocation()
760 ysz = win->w[plane].yres + ypos; in au1200_setlocation()
767 win->w[plane].xpos = xpos; in au1200_setlocation()
768 win->w[plane].ypos = ypos; in au1200_setlocation()
866 au1200_setlocation(fbdev, 0, win->w[0].xpos, win->w[0].ypos); in au1200_setpanel()
[all …]
/drivers/net/wireless/
Dairo_cs.c246 p_dev->io.BasePort1 = io->win[0].base; in airo_cs_config_check()
247 p_dev->io.NumPorts1 = io->win[0].len; in airo_cs_config_check()
250 p_dev->io.BasePort2 = io->win[1].base; in airo_cs_config_check()
251 p_dev->io.NumPorts2 = io->win[1].len; in airo_cs_config_check()
274 req->Base = mem->win[0].host_addr; in airo_cs_config_check()
275 req->Size = mem->win[0].len; in airo_cs_config_check()
277 if (pcmcia_request_window(&p_dev, req, &p_dev->win) != 0) in airo_cs_config_check()
280 map.CardOffset = mem->win[0].card_addr; in airo_cs_config_check()
281 if (pcmcia_map_mem_page(p_dev->win, &map) != 0) in airo_cs_config_check()
361 if (link->win) in airo_config()
/drivers/isdn/hisax/
Dsedlbauer_cs.c265 p_dev->io.BasePort1 = io->win[0].base; in sedlbauer_config_check()
266 p_dev->io.NumPorts1 = io->win[0].len; in sedlbauer_config_check()
269 p_dev->io.BasePort2 = io->win[1].base; in sedlbauer_config_check()
270 p_dev->io.NumPorts2 = io->win[1].len; in sedlbauer_config_check()
293 req->Base = mem->win[0].host_addr; in sedlbauer_config_check()
294 req->Size = mem->win[0].len; in sedlbauer_config_check()
296 if (pcmcia_request_window(&p_dev, req, &p_dev->win) != 0) in sedlbauer_config_check()
299 map.CardOffset = mem->win[0].card_addr; in sedlbauer_config_check()
300 if (pcmcia_map_mem_page(p_dev->win, &map) != 0) in sedlbauer_config_check()
373 if (link->win) in sedlbauer_config()
/drivers/net/wireless/iwlwifi/
Diwl-3945-rs.c65 struct iwl3945_rate_scale_data win[IWL_RATE_COUNT]; member
191 if (!rs_sta->win[i].counter) in iwl3945_rate_scale_flush_windows()
195 if (time_after(jiffies, rs_sta->win[i].stamp + in iwl3945_rate_scale_flush_windows()
199 rs_sta->win[i].counter, i); in iwl3945_rate_scale_flush_windows()
200 iwl3945_clear_window(&rs_sta->win[i]); in iwl3945_rate_scale_flush_windows()
421 iwl3945_clear_window(&rs_sta->win[i]); in rs_alloc_sta()
503 &rs_sta->win[scale_rate_index], in rs_tx_status()
520 &rs_sta->win[last_index], in rs_tx_status()
698 window = &(rs_sta->win[index]); in rs_get_rate()
725 low_tpt = rs_sta->win[low].average_tpt; in rs_get_rate()
[all …]
/drivers/media/common/
Dsaa7146_video.c110 f->fmt.win = fh->ov.win; in g_fmt()
123 static int try_win(struct saa7146_dev *dev, struct v4l2_window *win) in try_win() argument
139 if (win->w.width < 48 || win->w.height < 32) { in try_win()
140 DEB_D(("min width/height. (%d,%d)\n",win->w.width,win->w.height)); in try_win()
143 if (win->clipcount > 16) { in try_win()
148 field = win->field; in try_win()
153 field = (win->w.height > maxh/2) in try_win()
171 win->field = field; in try_win()
172 if (win->w.width > maxw) in try_win()
173 win->w.width = maxw; in try_win()
[all …]
/drivers/serial/
Dserial_cs.c457 if ((cf->io.nwin > 0) && (cf->io.win[0].len == size_table[(*try >> 1)]) in simple_config_check()
458 && (cf->io.win[0].base != 0)) { in simple_config_check()
459 p_dev->io.BasePort1 = cf->io.win[0].base; in simple_config_check()
561 if ((cf->io.nwin == 1) && (cf->io.win[0].len > 8)) { in multi_config_check()
562 p_dev->io.BasePort1 = cf->io.win[0].base; in multi_config_check()
581 p_dev->io.BasePort1 = cf->io.win[0].base; in multi_config_check_notpicky()
582 p_dev->io.BasePort2 = cf->io.win[1].base; in multi_config_check_notpicky()
730 if ((cf->io.nwin == 1) && (cf->io.win[0].len % 8 == 0)) in serial_config()
731 info->multi = cf->io.win[0].len >> 3; in serial_config()
732 if ((cf->io.nwin == 2) && (cf->io.win[0].len == 8) && in serial_config()
[all …]
/drivers/telephony/
Dixj_pcmcia.c135 p_dev->io.BasePort1 = io->win[0].base; in ixj_config_check()
136 p_dev->io.NumPorts1 = io->win[0].len; in ixj_config_check()
138 p_dev->io.BasePort2 = io->win[1].base; in ixj_config_check()
139 p_dev->io.NumPorts2 = io->win[1].len; in ixj_config_check()
/drivers/scsi/pcmcia/
Daha152x_stub.c150 if (cfg->io.win[0].len >= 0x20) in aha152x_config_check()
151 p_dev->io.BasePort1 = cfg->io.win[0].base; in aha152x_config_check()
153 (cfg->io.win[1].len >= 0x20)) in aha152x_config_check()
154 p_dev->io.BasePort1 = cfg->io.win[1].base; in aha152x_config_check()
/drivers/parport/
Dparport_cs.c162 p_dev->io.BasePort1 = io->win[0].base; in parport_config_check()
163 p_dev->io.NumPorts1 = io->win[0].len; in parport_config_check()
166 p_dev->io.BasePort2 = io->win[1].base; in parport_config_check()
167 p_dev->io.NumPorts2 = io->win[1].len; in parport_config_check()
/drivers/media/video/saa7134/
Dsaa7134-video.c830 static int verify_preview(struct saa7134_dev *dev, struct v4l2_window *win) in verify_preview() argument
839 if (win->w.width < 48 || win->w.height < 32) in verify_preview()
841 if (win->clipcount > 2048) in verify_preview()
844 field = win->field; in verify_preview()
849 field = (win->w.height > maxh/2) in verify_preview()
864 win->field = field; in verify_preview()
865 if (win->w.width > maxw) in verify_preview()
866 win->w.width = maxw; in verify_preview()
867 if (win->w.height > maxh) in verify_preview()
868 win->w.height = maxh; in verify_preview()
[all …]
/drivers/char/pcmcia/ipwireless/
Dmain.c138 link->io.BasePort1 = parse.cftable_entry.io.win[0].base; in config_ipwireless()
139 link->io.NumPorts1 = parse.cftable_entry.io.win[0].len; in config_ipwireless()
220 parse.cftable_entry.mem.win[0].host_addr; in config_ipwireless()
221 ipw->request_common_memory.Size = parse.cftable_entry.mem.win[0].len; in config_ipwireless()
235 parse.cftable_entry.mem.win[0].card_addr; in config_ipwireless()
247 parse.cftable_entry.mem.win[0].len == 0x100; in config_ipwireless()
/drivers/char/
Depca.c109 static void memwinon(struct board_info *b, unsigned int win);
110 static void memwinoff(struct board_info *b, unsigned int win);
120 static void pcxem_memwinon(struct board_info *b, unsigned int win);
121 static void pcxem_memwinoff(struct board_info *b, unsigned int win);
129 static void pcxe_memwinon(struct board_info *b, unsigned int win);
130 static void pcxe_memwinoff(struct board_info *b, unsigned int win);
139 static void pcxi_memwinon(struct board_info *b, unsigned int win);
140 static void pcxi_memwinoff(struct board_info *b, unsigned int win);
148 static void dummy_memwinon(struct board_info *b, unsigned int win);
149 static void dummy_memwinoff(struct board_info *b, unsigned int win);
[all …]

1234