Home
last modified time | relevance | path

Searched refs:norm (Results 1 – 25 of 109) sorted by relevance

12345

/Linux-v4.19/drivers/media/pci/cx88/
Dcx88-core.c626 static inline unsigned int norm_swidth(v4l2_std_id norm) in norm_swidth() argument
628 return (norm & (V4L2_STD_MN & ~V4L2_STD_PAL_Nc)) ? 754 : 922; in norm_swidth()
631 static inline unsigned int norm_hdelay(v4l2_std_id norm) in norm_hdelay() argument
633 return (norm & (V4L2_STD_MN & ~V4L2_STD_PAL_Nc)) ? 135 : 186; in norm_hdelay()
636 static inline unsigned int norm_vdelay(v4l2_std_id norm) in norm_vdelay() argument
638 return (norm & V4L2_STD_625_50) ? 0x24 : 0x18; in norm_vdelay()
641 static inline unsigned int norm_fsc8(v4l2_std_id norm) in norm_fsc8() argument
643 if (norm & V4L2_STD_PAL_M) in norm_fsc8()
646 if (norm & (V4L2_STD_PAL_Nc)) in norm_fsc8()
649 if (norm & V4L2_STD_NTSC) // All NTSC/M and variants in norm_fsc8()
[all …]
/Linux-v4.19/drivers/media/usb/usbtv/
Dusbtv-video.c52 .norm = V4L2_STD_525_60,
57 .norm = V4L2_STD_625_50,
63 static int usbtv_configure_for_norm(struct usbtv *usbtv, v4l2_std_id norm) in usbtv_configure_for_norm() argument
69 if (norm_params[i].norm & norm) { in usbtv_configure_for_norm()
80 usbtv->norm = norm; in usbtv_configure_for_norm()
124 static uint16_t usbtv_norm_to_16f_reg(v4l2_std_id norm) in usbtv_norm_to_16f_reg() argument
127 if (norm & V4L2_STD_NTSC) in usbtv_norm_to_16f_reg()
130 if (norm & V4L2_STD_PAL) in usbtv_norm_to_16f_reg()
133 if (norm & V4L2_STD_SECAM) in usbtv_norm_to_16f_reg()
135 if (norm & V4L2_STD_NTSC_443) in usbtv_norm_to_16f_reg()
[all …]
/Linux-v4.19/drivers/media/pci/saa7134/
Dsaa7134-vbi.c51 struct saa7134_tvnorm *norm = dev->tvnorm; in task_init() local
54 saa_writeb(SAA7134_VBI_H_START1(task), norm->h_start & 0xff); in task_init()
55 saa_writeb(SAA7134_VBI_H_START2(task), norm->h_start >> 8); in task_init()
56 saa_writeb(SAA7134_VBI_H_STOP1(task), norm->h_stop & 0xff); in task_init()
57 saa_writeb(SAA7134_VBI_H_STOP2(task), norm->h_stop >> 8); in task_init()
58 saa_writeb(SAA7134_VBI_V_START1(task), norm->vbi_v_start_0 & 0xff); in task_init()
59 saa_writeb(SAA7134_VBI_V_START2(task), norm->vbi_v_start_0 >> 8); in task_init()
60 saa_writeb(SAA7134_VBI_V_STOP1(task), norm->vbi_v_stop_0 & 0xff); in task_init()
61 saa_writeb(SAA7134_VBI_V_STOP2(task), norm->vbi_v_stop_0 >> 8); in task_init()
/Linux-v4.19/drivers/media/i2c/
Dtw9903.c38 v4l2_std_id norm; member
122 static int tw9903_s_std(struct v4l2_subdev *sd, v4l2_std_id norm) in tw9903_s_std() argument
125 bool is_60hz = norm & V4L2_STD_525_60; in tw9903_s_std()
142 dec->norm = norm; in tw9903_s_std()
171 bool is_60hz = dec->norm & V4L2_STD_525_60; in tw9903_log_status()
236 dec->norm = V4L2_STD_NTSC; in tw9903_probe()
Dtw9906.c29 v4l2_std_id norm; member
93 static int tw9906_s_std(struct v4l2_subdev *sd, v4l2_std_id norm) in tw9906_s_std() argument
96 bool is_60hz = norm & V4L2_STD_525_60; in tw9906_s_std()
113 dec->norm = norm; in tw9906_s_std()
141 bool is_60hz = dec->norm & V4L2_STD_525_60; in tw9906_log_status()
204 dec->norm = V4L2_STD_NTSC; in tw9906_probe()
Dtw9910.c235 v4l2_std_id norm; member
428 static const struct tw9910_scale_ctrl *tw9910_select_norm(v4l2_std_id norm, in tw9910_select_norm() argument
436 if (norm & V4L2_STD_NTSC) { in tw9910_select_norm()
439 } else if (norm & V4L2_STD_PAL) { in tw9910_select_norm()
501 static int tw9910_g_std(struct v4l2_subdev *sd, v4l2_std_id *norm) in tw9910_g_std() argument
506 *norm = priv->norm; in tw9910_g_std()
511 static int tw9910_s_std(struct v4l2_subdev *sd, v4l2_std_id norm) in tw9910_s_std() argument
521 if (!(norm & (V4L2_STD_NTSC | V4L2_STD_PAL))) in tw9910_s_std()
524 priv->norm = norm; in tw9910_s_std()
525 if (norm & V4L2_STD_525_60) { in tw9910_s_std()
[all …]
Dbt856.c54 v4l2_std_id norm; member
105 if (encoder->norm & V4L2_STD_NTSC) in bt856_init()
133 encoder->norm = std; in bt856_s_std_output()
211 encoder->norm = V4L2_STD_NTSC; in bt856_probe()
221 if (encoder->norm & V4L2_STD_NTSC) in bt856_probe()
Dadv7175.c48 v4l2_std_id norm; member
235 encoder->norm = std; in adv7175_s_std_output()
252 if (encoder->norm & V4L2_STD_NTSC) in adv7175_s_routing()
256 if (encoder->norm & V4L2_STD_SECAM) in adv7175_s_routing()
268 if (encoder->norm & V4L2_STD_NTSC) in adv7175_s_routing()
281 if (encoder->norm & V4L2_STD_NTSC) in adv7175_s_routing()
420 encoder->norm = V4L2_STD_NTSC; in adv7175_probe()
Dtw2804.c40 int norm; member
153 state->norm & V4L2_STD_525_60 ? "60 Hz" : "50 Hz"); in tw2804_log_status()
258 static int tw2804_s_std(struct v4l2_subdev *sd, v4l2_std_id norm) in tw2804_s_std() argument
262 bool is_60hz = norm & V4L2_STD_525_60; in tw2804_s_std()
278 dec->norm = norm; in tw2804_s_std()
372 state->norm = V4L2_STD_NTSC; in tw2804_probe()
Dsaa7185.c47 v4l2_std_id norm; member
221 if (encoder->norm & V4L2_STD_NTSC) in saa7185_init()
238 encoder->norm = std; in saa7185_s_std_output()
319 encoder->norm = V4L2_STD_NTSC; in saa7185_probe()
Dvpx3220.c46 v4l2_std_id norm; member
280 if (decoder->norm & V4L2_STD_NTSC) in vpx3220_init()
282 else if (decoder->norm & V4L2_STD_PAL) in vpx3220_init()
284 else if (decoder->norm & V4L2_STD_SECAM) in vpx3220_init()
370 decoder->norm = std; in vpx3220_s_std()
487 decoder->norm = V4L2_STD_PAL; in vpx3220_probe()
/Linux-v4.19/arch/m68k/fpsp040/
Dtbldo.S58 .long sint |$01-0 fint norm
67 .long ssinh |$02-0 fsinh norm
76 .long sintrz |$03-0 fintrz norm
103 .long sslognp1 |$06-0 flognp1 norm
121 .long setoxm1 |$08-0 fetoxm1 norm
130 .long stanh |$09-0 ftanh norm
139 .long satan |$0a-0 fatan norm
157 .long sasin |$0c-0 fasin norm
166 .long satanh |$0d-0 fatanh norm
175 .long ssin |$0e-0 fsin norm
[all …]
Ddo_func.S255 .long smod | 00,00 norm,norm = normal
256 .long smod_oper | 00,01 norm,zero = nan with operr
257 .long smod_fpn | 00,10 norm,inf = fpn
258 .long smod_snan | 00,11 norm,nan = nan
259 .long smod_zro | 01,00 zero,norm = +-zero
263 .long smod_oper | 10,00 inf,norm = nan with operr
267 .long smod_dnan | 11,00 nan,norm = nan
287 | ;00 = norm or denorm
415 .long sscale | 00,00 norm,norm = result
416 .long sscale | 00,01 norm,zero = fpn
[all …]
/Linux-v4.19/drivers/media/i2c/soc_camera/
Dtw9910.c234 v4l2_std_id norm; member
426 static const struct tw9910_scale_ctrl *tw9910_select_norm(v4l2_std_id norm, in tw9910_select_norm() argument
434 if (norm & V4L2_STD_NTSC) { in tw9910_select_norm()
437 } else if (norm & V4L2_STD_PAL) { in tw9910_select_norm()
499 static int tw9910_g_std(struct v4l2_subdev *sd, v4l2_std_id *norm) in tw9910_g_std() argument
504 *norm = priv->norm; in tw9910_g_std()
509 static int tw9910_s_std(struct v4l2_subdev *sd, v4l2_std_id norm) in tw9910_s_std() argument
519 if (!(norm & (V4L2_STD_NTSC | V4L2_STD_PAL))) in tw9910_s_std()
522 priv->norm = norm; in tw9910_s_std()
523 if (norm & V4L2_STD_525_60) { in tw9910_s_std()
[all …]
/Linux-v4.19/drivers/media/usb/tm6000/
Dtm6000-stds.c353 if ((dev->norm & V4L2_STD_NTSC) == V4L2_STD_NTSC_M_KR) { in tm6000_set_audio_std()
355 } else if ((dev->norm & V4L2_STD_NTSC) == V4L2_STD_NTSC_M_JP) { in tm6000_set_audio_std()
357 } else if (dev->norm & V4L2_STD_MN) { in tm6000_set_audio_std()
362 if ((dev->norm & V4L2_STD_SECAM) == V4L2_STD_SECAM_L) in tm6000_set_audio_std()
369 if (dev->norm & V4L2_STD_DK) in tm6000_set_audio_std()
376 if (dev->norm & V4L2_STD_DK) { in tm6000_set_audio_std()
378 } else if (dev->norm & V4L2_STD_PAL_I) { in tm6000_set_audio_std()
380 } else if (dev->norm & V4L2_STD_SECAM_L) { in tm6000_set_audio_std()
389 if (dev->norm & V4L2_STD_DK) { in tm6000_set_audio_std()
437 if (dev->norm & V4L2_STD_525_60) in tm6000_get_std_res()
[all …]
/Linux-v4.19/drivers/gpu/drm/i2c/
Dch7006_mode.c182 if (~mode->valid_norms & 1<<priv->norm) in ch7006_lookup_mode()
205 const struct ch7006_tv_norm_info *norm = &ch7006_tv_norms[priv->norm]; in ch7006_setup_levels() local
211 if (norm->black_level < 339*fixed1/1000) { in ch7006_setup_levels()
221 black_level = round_fixed(norm->black_level*26625)/gain; in ch7006_setup_levels()
236 const struct ch7006_tv_norm_info *norm = &ch7006_tv_norms[priv->norm]; in ch7006_setup_subcarrier() local
241 * (norm->subc_freq >> 24)); in ch7006_setup_subcarrier()
331 const struct ch7006_tv_norm_info *norm = &ch7006_tv_norms[priv->norm]; in ch7006_setup_properties() local
346 scale = norm->vtotal*fixed1; in ch7006_setup_properties()
352 hpos = round_fixed((norm->hvirtual * aspect - mode->hdisplay * scale) in ch7006_setup_properties()
353 * priv->hmargin * mode->vtotal) / norm->vtotal / 100 / 4; in ch7006_setup_properties()
[all …]
Dch7006_drv.c123 const struct ch7006_tv_norm_info *norm = &ch7006_tv_norms[priv->norm]; in ch7006_encoder_mode_set() local
128 regs[CH7006_DISPMODE] = norm->dispmode | mode->dispmode; in ch7006_encoder_mode_set()
234 ~mode->valid_norms & 1<<priv->norm) in ch7006_encoder_get_modes()
268 priv->norm); in ch7006_encoder_create_resources()
322 priv->norm = val; in ch7006_encoder_set_property()
454 priv->norm = TV_NORM_PAL; in ch7006_encoder_init()
469 priv->norm = i; in ch7006_encoder_init()
/Linux-v4.19/drivers/media/usb/stk1160/
Dstk1160-v4l.c121 if (dev->norm & V4L2_STD_525_60) { in stk1160_set_std()
395 base_height = (dev->norm & V4L2_STD_525_60) ? 480 : 576; in stk1160_try_fmt()
517 static int vidioc_querystd(struct file *file, void *priv, v4l2_std_id *norm) in vidioc_querystd() argument
520 v4l2_device_call_all(&dev->v4l2_dev, 0, video, querystd, norm); in vidioc_querystd()
524 static int vidioc_g_std(struct file *file, void *priv, v4l2_std_id *norm) in vidioc_g_std() argument
528 *norm = dev->norm; in vidioc_g_std()
532 static int vidioc_s_std(struct file *file, void *priv, v4l2_std_id norm) in vidioc_s_std() argument
537 if (dev->norm == norm) in vidioc_s_std()
549 dev->height = (norm & V4L2_STD_525_60) ? 480 : 576; in vidioc_s_std()
550 dev->norm = norm; in vidioc_s_std()
[all …]
/Linux-v4.19/drivers/media/pci/tw68/
Dtw68-video.c230 static void set_tvnorm(struct tw68_dev *dev, const struct tw68_tvnorm *norm) in set_tvnorm() argument
232 if (norm != dev->tvnorm) { in set_tvnorm()
234 dev->height = (norm->id & V4L2_STD_525_60) ? 480 : 576; in set_tvnorm()
235 dev->tvnorm = norm; in set_tvnorm()
272 const struct tw68_tvnorm *norm = dev->tvnorm; in tw68_set_scale() local
284 norm->h_delay, norm->h_start, norm->h_stop, in tw68_set_scale()
285 norm->v_delay, norm->video_v_start, in tw68_set_scale()
286 norm->video_v_stop); in tw68_set_scale()
290 hdelay = norm->h_delay0; in tw68_set_scale()
293 hdelay = norm->h_delay; in tw68_set_scale()
[all …]
/Linux-v4.19/drivers/staging/media/zoran/
Dzr36060.c591 struct tvnorm *norm, in zr36060_set_video() argument
657 reg = norm->Ht - 1; /* Vtotal */ in zr36060_set_video()
661 reg = norm->Wt - 1; /* Htotal */ in zr36060_set_video()
673 reg = norm->VStart - 1; /* BVstart */ in zr36060_set_video()
676 reg += norm->Ha / 2; /* BVend */ in zr36060_set_video()
680 reg = norm->HStart - 1; /* BHstart */ in zr36060_set_video()
683 reg += norm->Wa; /* BHend */ in zr36060_set_video()
688 reg = cap->y + norm->VStart; /* Vstart */ in zr36060_set_video()
696 reg = cap->x + norm->HStart; /* Hstart */ in zr36060_set_video()
705 reg = norm->VStart - 4; /* SVstart */ in zr36060_set_video()
[all …]
Dzr36016.c306 struct tvnorm *norm, in zr36016_set_video() argument
313 ptr->name, norm->HStart, norm->VStart, in zr36016_set_video()
328 ptr->xoff = (norm->HStart ? norm->HStart : 1) + cap->x; in zr36016_set_video()
333 ptr->yoff = norm->VStart + cap->y; in zr36016_set_video()
/Linux-v4.19/drivers/media/usb/cx231xx/
Dcx231xx-cards.c110 .norm = V4L2_STD_PAL,
150 .norm = V4L2_STD_NTSC,
190 .norm = V4L2_STD_PAL,
231 .norm = V4L2_STD_PAL,
261 .norm = V4L2_STD_PAL,
302 .norm = V4L2_STD_PAL,
330 .norm = V4L2_STD_NTSC,
358 .norm = V4L2_STD_NTSC,
388 .norm = V4L2_STD_NTSC,
423 .norm = V4L2_STD_PAL_M,
[all …]
/Linux-v4.19/lib/xz/
Dxz_dec_bcj.c220 uint64_t norm; in bcj_ia64() local
235 norm = instr >> bit_res; in bcj_ia64()
237 if (((norm >> 37) & 0x0F) == 0x05 in bcj_ia64()
238 && ((norm >> 9) & 0x07) == 0) { in bcj_ia64()
239 addr = (norm >> 13) & 0x0FFFFF; in bcj_ia64()
240 addr |= ((uint32_t)(norm >> 36) & 1) << 20; in bcj_ia64()
245 norm &= ~((uint64_t)0x8FFFFF << 13); in bcj_ia64()
246 norm |= (uint64_t)(addr & 0x0FFFFF) << 13; in bcj_ia64()
247 norm |= (uint64_t)(addr & 0x100000) in bcj_ia64()
251 instr |= norm << bit_res; in bcj_ia64()
/Linux-v4.19/drivers/media/tuners/
Dtda9887.c403 struct tvnorm *norm = NULL; in tda9887_set_tvnorm() local
409 norm = &radio_mono; in tda9887_set_tvnorm()
411 norm = &radio_stereo; in tda9887_set_tvnorm()
415 norm = tvnorms+i; in tda9887_set_tvnorm()
420 if (NULL == norm) { in tda9887_set_tvnorm()
425 tuner_dbg("configure for: %s\n", norm->name); in tda9887_set_tvnorm()
426 buf[1] = norm->b; in tda9887_set_tvnorm()
427 buf[2] = norm->c; in tda9887_set_tvnorm()
428 buf[3] = norm->e; in tda9887_set_tvnorm()
/Linux-v4.19/lib/zstd/
Dfse_compress.c519 static size_t FSE_normalizeM2(short *norm, U32 tableLog, const unsigned *count, size_t total, U32 m… in FSE_normalizeM2() argument
532 norm[s] = 0; in FSE_normalizeM2()
536 norm[s] = -1; in FSE_normalizeM2()
542 norm[s] = 1; in FSE_normalizeM2()
548 norm[s] = NOT_YET_ASSIGNED; in FSE_normalizeM2()
556 if ((norm[s] == NOT_YET_ASSIGNED) && (count[s] <= lowOne)) { in FSE_normalizeM2()
557 norm[s] = 1; in FSE_normalizeM2()
574 norm[maxV] += (short)ToDistribute; in FSE_normalizeM2()
581 if (norm[s] > 0) in FSE_normalizeM2()
582 ToDistribute--, norm[s]++; in FSE_normalizeM2()
[all …]

12345