/linux-4.1.27/drivers/media/pci/bt8xx/ |
D | bttv-vbi.c | 110 const struct bttv_tvnorm *tvnorm; in vbi_buffer_prepare() local 119 tvnorm = fh->vbi_fmt.tvnorm; in vbi_buffer_prepare() 133 - tvnorm->vbistart[0])); in vbi_buffer_prepare() 136 - tvnorm->vbistart[1])); in vbi_buffer_prepare() 192 if (fh->vbi_fmt.end >= tvnorm->cropcap.bounds.top) in vbi_buffer_prepare() 193 min_vdelay += fh->vbi_fmt.end - tvnorm->cropcap.bounds.top; in vbi_buffer_prepare() 245 static int try_fmt(struct v4l2_vbi_format *f, const struct bttv_tvnorm *tvnorm, in try_fmt() argument 257 min_start = tvnorm->vbistart[0]; in try_fmt() 259 max_end = (tvnorm->cropcap.bounds.top in try_fmt() 260 + tvnorm->cropcap.bounds.height) >> 1; in try_fmt() [all …]
|
D | bttv-risc.c | 338 const struct bttv_tvnorm *tvnorm) in bttv_calc_geo_old() argument 343 int swidth = tvnorm->swidth; in bttv_calc_geo_old() 344 int totalwidth = tvnorm->totalwidth; in bttv_calc_geo_old() 345 int scaledtwidth = tvnorm->scaledtwidth; in bttv_calc_geo_old() 353 vdelay = tvnorm->vdelay; in bttv_calc_geo_old() 357 geo->hdelay = tvnorm->hdelayx1; in bttv_calc_geo_old() 360 sr = ((tvnorm->sheight >> (interleaved?0:1))*512)/height - 512; in bttv_calc_geo_old() 363 ((tvnorm->sheight>>4)&0x30) | ((vdelay>>2)&0xc0); 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() [all …]
|
D | bttvp.h | 162 unsigned int tvnorm; member 181 unsigned int tvnorm; member 193 const struct bttv_tvnorm *tvnorm; member 432 unsigned int tvnorm; member
|
D | bttv-driver.c | 754 const struct bttv_tvnorm *tvnorm; in disclaim_video_lines() local 757 tvnorm = &bttv_tvnorms[btv->tvnorm]; in disclaim_video_lines() 758 btv->crop_start = tvnorm->cropcap.bounds.top in disclaim_video_lines() 759 + tvnorm->cropcap.bounds.height; in disclaim_video_lines() 881 int table_idx = bttv_tvnorms[btv->tvnorm].sram; in bt848A_set_timing() 882 int fsc = bttv_tvnorms[btv->tvnorm].Fsc; in bt848A_set_timing() 1149 const struct bttv_tvnorm *tvnorm; in set_tvnorm() local 1153 BUG_ON(btv->tvnorm >= BTTV_TVNORMS); in set_tvnorm() 1155 tvnorm = &bttv_tvnorms[norm]; in set_tvnorm() 1157 if (memcmp(&bttv_tvnorms[btv->tvnorm].cropcap, &tvnorm->cropcap, in set_tvnorm() [all …]
|
D | bttv-cards.c | 4104 if (bttv_tvnorms[btv->tvnorm].v4l2_id & V4L2_STD_MN) in bttv_tda9880_setnorm()
|
/linux-4.1.27/drivers/media/pci/cx88/ |
D | cx88-core.c | 660 unsigned int swidth = norm_swidth(core->tvnorm); in cx88_set_scale() 661 unsigned int sheight = norm_maxh(core->tvnorm); in cx88_set_scale() 667 v4l2_norm_to_name(core->tvnorm)); in cx88_set_scale() 672 value = (width * norm_hdelay(core->tvnorm)) / swidth; in cx88_set_scale() 688 cx_write(MO_VDELAY_EVEN, norm_vdelay(core->tvnorm)); in cx88_set_scale() 689 cx_write(MO_VDELAY_ODD, norm_vdelay(core->tvnorm)); in cx88_set_scale() 690 dprintk(1,"set_scale: vdelay 0x%04x\n", norm_vdelay(core->tvnorm)); in cx88_set_scale() 704 if (core->tvnorm & V4L2_STD_SECAM) { in cx88_set_scale() 805 v4l2_std_id norm = core->tvnorm; in set_tvaudio() 838 core->name, v4l2_norm_to_name(core->tvnorm)); in set_tvaudio() [all …]
|
D | cx88-vbi.c | 27 if (dev->core->tvnorm & V4L2_STD_525_60) { in cx8800_vbi_fmt() 35 } else if (dev->core->tvnorm & V4L2_STD_625_50) { in cx8800_vbi_fmt() 119 if (dev->core->tvnorm & V4L2_STD_525_60) in queue_setup() 136 if (dev->core->tvnorm & V4L2_STD_525_60) in buffer_prepare()
|
D | cx88-blackbird.c | 526 cx2341x_handler_set_50hz(&dev->cxhdl, dev->core->tvnorm & V4L2_STD_625_50); in blackbird_codec_settings() 823 maxw = norm_maxw(core->tvnorm); in vidioc_try_fmt_vid_cap() 824 maxh = norm_maxh(core->tvnorm); in vidioc_try_fmt_vid_cap() 994 static int vidioc_g_std(struct file *file, void *priv, v4l2_std_id *tvnorm) in vidioc_g_std() argument 999 *tvnorm = core->tvnorm; in vidioc_g_std() 1167 cx88_set_tvnorm(core,core->tvnorm); in cx8802_blackbird_probe()
|
D | cx88-video.c | 633 if (core->tvnorm & V4L2_STD_SECAM) { in cx8800_s_vid_ctrl() 746 maxw = norm_maxw(core->tvnorm); in vidioc_try_fmt_vid_cap() 747 maxh = norm_maxh(core->tvnorm); in vidioc_try_fmt_vid_cap() 849 static int vidioc_g_std(struct file *file, void *priv, v4l2_std_id *tvnorm) in vidioc_g_std() argument 854 *tvnorm = core->tvnorm; in vidioc_g_std() 1432 cx88_set_tvnorm(core, core->tvnorm); in cx8800_initdev()
|
D | cx88.h | 385 v4l2_std_id tvnorm; member
|
D | cx88-cards.c | 3694 core->tvnorm = V4L2_STD_NTSC_M; in cx88_core_create()
|
/linux-4.1.27/drivers/media/pci/saa7134/ |
D | saa7134-tvaudio.c | 259 if (dev->tvnorm->id == V4L2_STD_NTSC) { in tvaudio_setmode() 335 if (!(dev->tvnorm->id & scan->std)) { in tvaudio_checkcarrier() 513 if (!(dev->tvnorm->id & mainscan[i].std)) in tvaudio_thread() 548 dev->tvnorm->name, carrier/1000, carrier%1000, in tvaudio_thread() 574 if (dev->tvnorm->id != UNSET && in tvaudio_thread() 575 !(dev->tvnorm->id & tvaudio[i].std)) in tvaudio_thread() 807 if (dev->tvnorm->id & (V4L2_STD_B | V4L2_STD_GH)) in tvaudio_thread_ddep() 809 if (dev->tvnorm->id & V4L2_STD_PAL_I) in tvaudio_thread_ddep() 811 if (dev->tvnorm->id & V4L2_STD_DK) in tvaudio_thread_ddep() 813 if (dev->tvnorm->id & V4L2_STD_MN) in tvaudio_thread_ddep() [all …]
|
D | saa7134-vbi.c | 53 struct saa7134_tvnorm *norm = dev->tvnorm; in task_init() 146 dev->vbi_vlen = dev->tvnorm->vbi_v_stop_0 - dev->tvnorm->vbi_v_start_0 + 1; in queue_setup()
|
D | saa7134-video.c | 389 dev->tvnorm = norm; in set_tvnorm() 412 set_tvnorm(dev, dev->tvnorm); in video_mux() 421 struct saa7134_tvnorm *norm = dev->tvnorm; in saa7134_set_decoder() 480 saa_call_all(dev, video, s_std, dev->tvnorm->id); in saa7134_set_tvnorm_hw() 483 saa_call_empress(dev, video, s_std, dev->tvnorm->id); in saa7134_set_tvnorm_hw() 1189 struct saa7134_tvnorm *norm = dev->tvnorm; in saa7134_try_get_set_fmt_vbi_cap() 1547 *id = dev->tvnorm->id; in saa7134_g_std() 1593 if (dev->tvnorm->id & V4L2_STD_525_60) { in saa7134_cropcap() 1597 if (dev->tvnorm->id & V4L2_STD_625_50) { in saa7134_cropcap()
|
D | saa7134.h | 618 struct saa7134_tvnorm *tvnorm; /* video */ member
|
/linux-4.1.27/drivers/media/pci/cx23885/ |
D | cx23885-vbi.c | 55 if (dev->tvnorm & V4L2_STD_525_60) { in cx23885_vbi_fmt() 61 } else if (dev->tvnorm & V4L2_STD_625_50) { in cx23885_vbi_fmt() 131 if (dev->tvnorm & V4L2_STD_525_60) in queue_setup() 147 if (dev->tvnorm & V4L2_STD_525_60) in buffer_prepare()
|
D | cx23885-video.c | 122 if (dev->tvnorm != norm) { in cx23885_set_tvnorm() 128 dev->tvnorm = norm; in cx23885_set_tvnorm() 357 if (dev->tvnorm & V4L2_STD_525_60) in buffer_prepare() 545 maxw = norm_maxw(dev->tvnorm); in vidioc_try_fmt_vid_cap() 546 maxh = norm_maxh(dev->tvnorm); in vidioc_try_fmt_vid_cap() 651 *id = dev->tvnorm; in vidioc_g_std() 926 .std = dev->tvnorm, in cx23885_set_freq_via_ops() 957 call_all(dev, video, s_std, dev->tvnorm); in cx23885_set_freq_via_ops() 1145 dev->tvnorm = V4L2_STD_NTSC_M; in cx23885_video_register() 1149 dev->height = norm_maxh(dev->tvnorm); in cx23885_video_register() [all …]
|
D | cx23885.h | 397 v4l2_std_id tvnorm; member
|
D | cx23885-417.c | 1241 *id = dev->tvnorm; in vidioc_g_std()
|
/linux-4.1.27/drivers/media/pci/zoran/ |
D | videocodec.h | 242 struct tvnorm { struct 283 struct tvnorm * norm,
|
D | zoran_card.c | 335 static struct tvnorm f50sqpixel = { 944, 768, 83, 880, 625, 576, 16 }; 336 static struct tvnorm f60sqpixel = { 780, 640, 51, 716, 525, 480, 12 }; 337 static struct tvnorm f50ccir601 = { 864, 720, 75, 804, 625, 576, 18 }; 338 static struct tvnorm f60ccir601 = { 858, 720, 57, 788, 525, 480, 16 }; 340 static struct tvnorm f50ccir601_lml33 = { 864, 720, 75+34, 804, 625, 576, 18 }; 341 static struct tvnorm f60ccir601_lml33 = { 858, 720, 57+34, 788, 525, 480, 16 }; 344 static struct tvnorm f50sqpixel_dc10 = { 944, 768, 0, 880, 625, 576, 0 }; 345 static struct tvnorm f60sqpixel_dc10 = { 780, 640, 0, 716, 525, 480, 12 }; 350 static struct tvnorm f50ccir601_lm33r10 = { 864, 720, 74+54, 804, 625, 576, 18 }; 351 static struct tvnorm f60ccir601_lm33r10 = { 858, 720, 56+54, 788, 525, 480, 16 }; [all …]
|
D | zoran.h | 250 struct tvnorm *tvn[3]; /* supported TV norms */ 289 struct tvnorm *timing;
|
D | zr36016.c | 314 struct tvnorm *norm, in zr36016_set_video()
|
D | zr36050.c | 604 struct tvnorm *norm, in zr36050_set_video()
|
D | zr36060.c | 595 struct tvnorm *norm, in zr36060_set_video()
|
D | zoran_device.c | 339 struct tvnorm *tvn; in zr36057_set_vfe() 725 struct tvnorm *tvn; in zr36057_set_jpg()
|
/linux-4.1.27/drivers/media/tuners/ |
D | tda9887.c | 47 struct tvnorm { struct 136 static struct tvnorm tvnorms[] = { 244 static struct tvnorm radio_stereo = { 256 static struct tvnorm radio_mono = { 403 struct tvnorm *norm = NULL; in tda9887_set_tvnorm()
|
/linux-4.1.27/drivers/media/pci/cx25821/ |
D | cx25821-video.c | 187 if (dev->tvnorm & V4L2_STD_625_50) in cx25821_buffer_prepare() 362 maxh = (dev->tvnorm & V4L2_STD_625_50) ? 576 : 480; in cx25821_vidioc_try_fmt_vid_cap() 461 *tvnorms = chan->dev->tvnorm; in cx25821_vidioc_g_std() 471 if (dev->tvnorm == tvnorms) in cx25821_vidioc_s_std() 474 dev->tvnorm = tvnorms; in cx25821_vidioc_s_std() 476 chan->height = (dev->tvnorm & V4L2_STD_625_50) ? 576 : 480; in cx25821_vidioc_s_std() 565 f->fmt.pix.height = (dev->tvnorm & V4L2_STD_625_50) ? 576 : 480; in cx25821_vidioc_try_fmt_vid_out() 691 dev->tvnorm = V4L2_STD_NTSC_M; in cx25821_video_register() 730 if (dev->tvnorm & V4L2_STD_625_50) in cx25821_video_register()
|
D | cx25821-medusa-video.c | 402 if (dev->tvnorm & V4L2_STD_PAL_BG || dev->tvnorm & V4L2_STD_PAL_DK) in medusa_set_videostandard()
|
D | cx25821.h | 269 v4l2_std_id tvnorm; member
|
D | cx25821-video-upstream.c | 623 out->is_60hz = dev->tvnorm & V4L2_STD_525_60; in cx25821_vidupstream_init()
|
/linux-4.1.27/drivers/media/pci/tw68/ |
D | tw68-video.c | 232 if (norm != dev->tvnorm) { in set_tvnorm() 235 dev->tvnorm = norm; in set_tvnorm() 272 const struct tw68_tvnorm *norm = dev->tvnorm; in tw68_set_scale() 311 v4l2_norm_to_name(dev->tvnorm->id)); in tw68_set_scale() 620 maxh = (dev->tvnorm->id & V4L2_STD_525_60) ? 480 : 576; in tw68_try_fmt_vid_cap() 781 *id = dev->tvnorm->id; in tw68_g_std() 930 tw_andorb(TW68_SDT, 0x07, dev->tvnorm->format); in tw68_set_tvnorm_hw()
|
D | tw68.h | 186 const struct tw68_tvnorm *tvnorm; /* video */ member
|
/linux-4.1.27/drivers/media/pci/ngene/ |
D | ngene.h | 599 int tvnorm; member 706 int tvnorm; member 882 int tvnorm; member
|
/linux-4.1.27/drivers/media/pci/cx18/ |
D | cx18-streams.c | 140 buf->tvnorm != cx->std) { in cx18_prepare_buffer() 145 buf->tvnorm = cx->std; in cx18_prepare_buffer() 167 buf->tvnorm = cx->std; in cx18_prepare_buffer()
|
D | cx18-driver.h | 425 v4l2_std_id tvnorm; /* selected tv norm */ member
|
/linux-4.1.27/drivers/staging/media/davinci_vpfe/ |
D | vpfe_video.c | 959 static int vpfe_g_std(struct file *file, void *priv, v4l2_std_id *tvnorm) in vpfe_g_std() argument 965 *tvnorm = video->stdid; in vpfe_g_std()
|