Lines Matching refs:geo

336 bttv_calc_geo_old(struct bttv *btv, struct bttv_geometry *geo,  in bttv_calc_geo_old()  argument
356 geo->hscale = ((totalwidth*4096UL)/xsf-4096); in bttv_calc_geo_old()
357 geo->hdelay = tvnorm->hdelayx1; in bttv_calc_geo_old()
358 geo->hdelay = (geo->hdelay*width)/swidth; in bttv_calc_geo_old()
359 geo->hdelay &= 0x3fe; in bttv_calc_geo_old()
361 geo->vscale = (0x10000UL-sr) & 0x1fff; in bttv_calc_geo_old()
362 geo->crop = ((width>>8)&0x03) | ((geo->hdelay>>6)&0x0c) | in bttv_calc_geo_old()
364 geo->vscale |= interleaved ? (BT848_VSCALE_INT<<8) : 0; in bttv_calc_geo_old()
365 geo->vdelay = vdelay; in bttv_calc_geo_old()
366 geo->width = width; in bttv_calc_geo_old()
367 geo->sheight = tvnorm->sheight; in bttv_calc_geo_old()
368 geo->vtotal = tvnorm->vtotal; in bttv_calc_geo_old()
371 geo->vtc = (width < 193) ? 2 : ((width < 385) ? 1 : 0); in bttv_calc_geo_old()
372 geo->comb = (width < 769) ? 1 : 0; in bttv_calc_geo_old()
374 geo->vtc = 0; in bttv_calc_geo_old()
375 geo->comb = 0; in bttv_calc_geo_old()
381 struct bttv_geometry * geo, in bttv_calc_geo() argument
398 bttv_calc_geo_old(btv, geo, width, height, in bttv_calc_geo()
408 geo->width = width; in bttv_calc_geo()
409 geo->hscale = (c_width * 4096U + (width >> 1)) / width - 4096; in bttv_calc_geo()
411 geo->hdelay = ((crop->left * width + c_width) / c_width) & ~1; in bttv_calc_geo()
413 geo->sheight = c_height; in bttv_calc_geo()
414 geo->vdelay = crop->top - tvnorm->cropcap.bounds.top + MIN_VDELAY; in bttv_calc_geo()
417 geo->vscale = (0x10000UL - sr) & 0x1fff; in bttv_calc_geo()
418 geo->vscale |= both_fields ? (BT848_VSCALE_INT << 8) : 0; in bttv_calc_geo()
419 geo->vtotal = tvnorm->vtotal; in bttv_calc_geo()
421 geo->crop = (((geo->width >> 8) & 0x03) | in bttv_calc_geo()
422 ((geo->hdelay >> 6) & 0x0c) | in bttv_calc_geo()
423 ((geo->sheight >> 4) & 0x30) | in bttv_calc_geo()
424 ((geo->vdelay >> 2) & 0xc0)); in bttv_calc_geo()
427 geo->vtc = (width < 193) ? 2 : ((width < 385) ? 1 : 0); in bttv_calc_geo()
428 geo->comb = (width < 769) ? 1 : 0; in bttv_calc_geo()
430 geo->vtc = 0; in bttv_calc_geo()
431 geo->comb = 0; in bttv_calc_geo()
436 bttv_apply_geo(struct bttv *btv, struct bttv_geometry *geo, int odd) in bttv_apply_geo() argument
440 if (geo->comb) in bttv_apply_geo()
445 btwrite(geo->vtc, BT848_E_VTC+off); in bttv_apply_geo()
446 btwrite(geo->hscale >> 8, BT848_E_HSCALE_HI+off); in bttv_apply_geo()
447 btwrite(geo->hscale & 0xff, BT848_E_HSCALE_LO+off); in bttv_apply_geo()
448 btaor((geo->vscale>>8), 0xe0, BT848_E_VSCALE_HI+off); in bttv_apply_geo()
449 btwrite(geo->vscale & 0xff, BT848_E_VSCALE_LO+off); in bttv_apply_geo()
450 btwrite(geo->width & 0xff, BT848_E_HACTIVE_LO+off); in bttv_apply_geo()
451 btwrite(geo->hdelay & 0xff, BT848_E_HDELAY_LO+off); in bttv_apply_geo()
452 btwrite(geo->sheight & 0xff, BT848_E_VACTIVE_LO+off); in bttv_apply_geo()
453 btwrite(geo->vdelay & 0xff, BT848_E_VDELAY_LO+off); in bttv_apply_geo()
454 btwrite(geo->crop, BT848_E_CROP+off); in bttv_apply_geo()
455 btwrite(geo->vtotal>>8, BT848_VTOTAL_HI); in bttv_apply_geo()
456 btwrite(geo->vtotal & 0xff, BT848_VTOTAL_LO); in bttv_apply_geo()
618 if (vbi->geo.vdelay > vdelay) { in bttv_buffer_activate_vbi()
619 vdelay = vbi->geo.vdelay & 0xfe; in bttv_buffer_activate_vbi()
620 crop = (crop & 0x3f) | ((vbi->geo.vdelay >> 2) & 0xc0); in bttv_buffer_activate_vbi()
664 bttv_apply_geo(btv, &set->top->geo, 1); in bttv_buffer_activate_video()
665 bttv_apply_geo(btv, &set->bottom->geo,0); in bttv_buffer_activate_video()
678 bttv_apply_geo(btv, &set->top->geo,1); in bttv_buffer_activate_video()
679 bttv_apply_geo(btv, &set->top->geo,0); in bttv_buffer_activate_video()
689 bttv_apply_geo(btv, &set->bottom->geo,1); in bttv_buffer_activate_video()
690 bttv_apply_geo(btv, &set->bottom->geo,0); in bttv_buffer_activate_video()
721 bttv_calc_geo(btv,&buf->geo,buf->vb.width,buf->vb.height, in bttv_buffer_risc()
775 bttv_calc_geo(btv,&buf->geo,buf->vb.width, in bttv_buffer_risc()
784 bttv_calc_geo(btv,&buf->geo,buf->vb.width, in bttv_buffer_risc()
793 bttv_calc_geo(btv,&buf->geo,buf->vb.width, in bttv_buffer_risc()
816 bttv_calc_geo(btv,&buf->geo,buf->vb.width, in bttv_buffer_risc()
848 bttv_calc_geo(btv,&buf->geo,tvnorm->swidth,tvnorm->sheight, in bttv_buffer_risc()
878 bttv_calc_geo(btv,&buf->geo,ov->w.width,ov->w.height, in bttv_overlay_risc()