Home
last modified time | relevance | path

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

123

/linux/drivers/media/pci/cx88/
H A Dcx88-core.c619 static inline unsigned int norm_swidth(v4l2_std_id norm) in norm_swidth() argument
621 if (norm & (V4L2_STD_NTSC | V4L2_STD_PAL_M)) in norm_swidth()
624 if (norm & V4L2_STD_PAL_Nc) in norm_swidth()
630 static inline unsigned int norm_hdelay(v4l2_std_id norm) in norm_hdelay() argument
632 if (norm & (V4L2_STD_NTSC | V4L2_STD_PAL_M)) in norm_hdelay()
635 if (norm & V4L2_STD_PAL_Nc) in norm_hdelay()
641 static inline unsigned int norm_vdelay(v4l2_std_id norm) in norm_vdelay() argument
643 return (norm & V4L2_STD_625_50) ? 0x24 : 0x18; in norm_vdelay()
646 static inline unsigned int norm_fsc8(v4l2_std_id norm) in norm_fsc8() argument
648 if (norm & V4L2_STD_PAL_M) in norm_fsc8()
[all …]
/linux/arch/m68k/fpsp040/
H A 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 …]
H A 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/drivers/media/pci/saa7134/
H A Dsaa7134-vbi.c42 struct saa7134_tvnorm *norm = dev->tvnorm; in task_init() local
45 saa_writeb(SAA7134_VBI_H_START1(task), norm->h_start & 0xff); in task_init()
46 saa_writeb(SAA7134_VBI_H_START2(task), norm->h_start >> 8); in task_init()
47 saa_writeb(SAA7134_VBI_H_STOP1(task), norm->h_stop & 0xff); in task_init()
48 saa_writeb(SAA7134_VBI_H_STOP2(task), norm->h_stop >> 8); in task_init()
49 saa_writeb(SAA7134_VBI_V_START1(task), norm->vbi_v_start_0 & 0xff); in task_init()
50 saa_writeb(SAA7134_VBI_V_START2(task), norm->vbi_v_start_0 >> 8); in task_init()
51 saa_writeb(SAA7134_VBI_V_STOP1(task), norm->vbi_v_stop_0 & 0xff); in task_init()
52 saa_writeb(SAA7134_VBI_V_STOP2(task), norm->vbi_v_stop_0 >> 8); in task_init()
/linux/drivers/media/i2c/
H A Dtw9910.c230 v4l2_std_id norm; member
423 static const struct tw9910_scale_ctrl *tw9910_select_norm(v4l2_std_id norm, in tw9910_select_norm() argument
431 if (norm & V4L2_STD_NTSC) { in tw9910_select_norm()
434 } else if (norm & V4L2_STD_PAL) { in tw9910_select_norm()
479 dev_err(&client->dev, "norm select error\n"); in tw9910_s_stream()
496 static int tw9910_g_std(struct v4l2_subdev *sd, v4l2_std_id *norm) in tw9910_g_std() argument
501 *norm = priv->norm; in tw9910_g_std()
506 static int tw9910_s_std(struct v4l2_subdev *sd, v4l2_std_id norm) in tw9910_s_std() argument
516 if (!(norm in tw9910_s_std()
893 tw9910_g_tvnorms(struct v4l2_subdev * sd,v4l2_std_id * norm) tw9910_g_tvnorms() argument
[all...]
H A Disl7998x.c478 const v4l2_std_id norm; member
520 v4l2_std_id norm; member
525 /* protect fmt, norm, enabled */
550 static unsigned int isl7998x_norm_to_val(v4l2_std_id norm) in isl7998x_norm_to_val() argument
555 if (isl7998x_std_res[i].norm & norm) in isl7998x_norm_to_val()
563 static const struct isl7998x_mode *isl7998x_norm_to_mode(v4l2_std_id norm) in isl7998x_norm_to_mode() argument
568 if (isl7998x_std_res[i].norm & norm) in isl7998x_norm_to_mode()
633 static int isl7998x_set_standard(struct isl7998x *isl7998x, v4l2_std_id norm) in isl7998x_set_standard() argument
771 isl7998x_g_std(struct v4l2_subdev * sd,v4l2_std_id * norm) isl7998x_g_std() argument
782 isl7998x_s_std(struct v4l2_subdev * sd,v4l2_std_id norm) isl7998x_s_std() argument
[all...]
H A Dbt856.c45 v4l2_std_id norm; member
96 if (encoder->norm & V4L2_STD_NTSC) in bt856_init()
113 v4l2_dbg(1, debug, sd, "set norm %llx\n", (unsigned long long)std); in bt856_s_std_output()
124 encoder->norm = std; in bt856_s_std_output()
201 encoder->norm = V4L2_STD_NTSC; in bt856_probe()
211 if (encoder->norm & V4L2_STD_NTSC) in bt856_probe()
H A Dtw2804.c32 int norm; member
145 state->norm & V4L2_STD_525_60 ? "60 Hz" : "50 Hz"); in tw2804_log_status()
250 static int tw2804_s_std(struct v4l2_subdev *sd, v4l2_std_id norm) in tw2804_s_std() argument
254 bool is_60hz = norm & V4L2_STD_525_60; in tw2804_s_std()
270 dec->norm = norm; in tw2804_s_std()
363 state->norm = V4L2_STD_NTSC; in tw2804_probe()
H A Dadv7175.c39 v4l2_std_id norm; member
221 v4l2_dbg(1, debug, sd, "illegal norm: %llx\n", in adv7175_s_std_output()
226 encoder->norm = std; in adv7175_s_std_output()
243 if (encoder->norm & V4L2_STD_NTSC) in adv7175_s_routing()
247 if (encoder->norm & V4L2_STD_SECAM) in adv7175_s_routing()
259 if (encoder->norm & V4L2_STD_NTSC) in adv7175_s_routing()
272 if (encoder->norm & V4L2_STD_NTSC) in adv7175_s_routing()
410 encoder->norm = V4L2_STD_NTSC; in adv7175_probe()
H A Dsaa7185.c38 v4l2_std_id norm; member
146 /* 0x61 - 0x66 set according to norm */
212 if (encoder->norm & V4L2_STD_NTSC) in saa7185_init()
229 encoder->norm = std; in saa7185_s_std_output()
309 encoder->norm = V4L2_STD_NTSC; in saa7185_probe()
H A Dvpx3220.c37 v4l2_std_id norm; member
271 if (decoder->norm & V4L2_STD_NTSC) in vpx3220_init()
273 else if (decoder->norm & V4L2_STD_PAL) in vpx3220_init()
275 else if (decoder->norm & V4L2_STD_SECAM) in vpx3220_init()
344 chosen video norm */ in vpx3220_s_std()
350 v4l2_dbg(1, debug, sd, "norm switched to NTSC\n"); in vpx3220_s_std()
353 v4l2_dbg(1, debug, sd, "norm switched to PAL\n"); in vpx3220_s_std()
356 v4l2_dbg(1, debug, sd, "norm switched to SECAM\n"); in vpx3220_s_std()
361 decoder->norm = std; in vpx3220_s_std()
477 decoder->norm in vpx3220_probe()
[all...]
H A Dsaa7110.c46 v4l2_std_id norm; member
241 v4l2_dbg(1, debug, sd, "status=0x%02x norm=%llx\n", in saa7110_g_input_status()
242 status, (unsigned long long)decoder->norm); in saa7110_g_input_status()
262 if (decoder->norm != std) { in saa7110_s_std()
263 decoder->norm = std; in saa7110_s_std()
380 decoder->norm = V4L2_STD_PAL; in saa7110_probe()
H A Dbt819.c45 v4l2_std_id norm; member
175 struct timing *timing = &timing_data[(decoder->norm & V4L2_STD_525_60) ? 1 : 0]; in bt819_init()
189 init[0x15 * 2 - 1] = (decoder->norm & V4L2_STD_625_50) ? 115 : 93; /* Chroma burst delay */ in bt819_init()
240 v4l2_dbg(1, debug, sd, "set norm %llx\n", (unsigned long long)std); in bt819_s_std()
264 v4l2_dbg(1, debug, sd, "unsupported norm %llx\n", in bt819_s_std()
279 decoder->norm = std; in bt819_s_std()
420 decoder->norm = V4L2_STD_NTSC; in bt819_probe()
H A Dtvp5150.c84 v4l2_std_id norm; /* Current set standard */ member
683 v4l2_std_id std = decoder->norm; in tvp5150_set_vbi()
726 v4l2_std_id std = decoder->norm; in tvp5150_get_vbi()
791 *std = decoder->norm; in tvp5150_g_std()
802 if (decoder->norm == std) in tvp5150_s_std()
825 decoder->norm = supported_stds & std; in tvp5150_s_std()
957 if (decoder->norm == V4L2_STD_ALL) in tvp5150_enable()
960 std = decoder->norm; in tvp5150_enable()
1077 if (decoder->norm == V4L2_STD_ALL) in tvp5150_get_hmax()
1080 std = decoder->norm; in tvp5150_get_hmax()
[all...]
/linux/lib/zstd/compress/
H A Dzstd_compress_sequences.c75 S16 norm[MaxSeq + 1]; in ZSTD_NCountCost() local
77 …FORWARD_IF_ERROR(FSE_normalizeCount(norm, tableLog, count, nbSeq, max, ZSTD_useLowProbCount(nbSeq)… in ZSTD_NCountCost()
78 return FSE_writeNCount(wksp, sizeof(wksp), norm, max, tableLog); in ZSTD_NCountCost()
92 unsigned norm = (unsigned)((256 * count[s]) / total); in ZSTD_entropyCost() local
93 if (count[s] != 0 && norm == 0) in ZSTD_entropyCost()
94 norm = 1; in ZSTD_entropyCost()
96 cost += count[s] * kInverseProbabilityLog256[norm]; in ZSTD_entropyCost()
140 size_t ZSTD_crossEntropyCost(short const* norm, unsigned accuracyLog, in ZSTD_crossEntropyCost() argument
148 unsigned const normAcc = (norm[s] != -1) ? (unsigned)norm[s] : 1; in ZSTD_crossEntropyCost()
239 S16 norm[MaxSeq + 1]; member
[all …]
H A Dfse_compress.c380 static size_t FSE_normalizeM2(short* norm, U32 tableLog, const unsigned* count, size_t total, U32 m… in FSE_normalizeM2() argument
393 norm[s]=0; in FSE_normalizeM2()
397 norm[s] = lowProbCount; in FSE_normalizeM2()
403 norm[s] = 1; in FSE_normalizeM2()
409 norm[s]=NOT_YET_ASSIGNED; in FSE_normalizeM2()
420 if ((norm[s] == NOT_YET_ASSIGNED) && (count[s] <= lowOne)) { in FSE_normalizeM2()
421 norm[s] = 1; in FSE_normalizeM2()
436 norm[maxV] += (short)ToDistribute; in FSE_normalizeM2()
443 if (norm[s] > 0) { ToDistribute--; norm[s]++; } in FSE_normalizeM2()
452 if (norm[s]==NOT_YET_ASSIGNED) { in FSE_normalizeM2()
[all …]
/linux/drivers/powercap/
H A Darm_scmi_powercap.c100 u64 power_limit_uw, u32 *norm) in scmi_powercap_normalize_cap() argument
111 *norm = clamp_t(u32, val, spz->info->min_power_cap, in scmi_powercap_normalize_cap()
113 *norm = rounddown(*norm, spz->info->power_cap_step); in scmi_powercap_normalize_cap()
115 val = (scale_mw) ? *norm * 1000 : *norm; in scmi_powercap_normalize_cap()
155 u64 time_us, u32 *norm) in scmi_powercap_normalize_time() argument
162 *norm = clamp_t(u32, time_us, spz->info->min_pai, spz->info->max_pai); in scmi_powercap_normalize_time()
163 *norm = rounddown(*norm, spz->info->pai_step); in scmi_powercap_normalize_time()
165 if (time_us != *norm) in scmi_powercap_normalize_time()
168 spz->info->name, time_us, *norm); in scmi_powercap_normalize_time()
/linux/drivers/media/usb/stk1160/
H A Dstk1160-v4l.c110 if (dev->norm & V4L2_STD_525_60) { in stk1160_set_std()
378 base_height = (dev->norm & V4L2_STD_525_60) ? 480 : 576; in stk1160_try_fmt()
500 static int vidioc_querystd(struct file *file, void *priv, v4l2_std_id *norm) in vidioc_querystd() argument
503 v4l2_device_call_all(&dev->v4l2_dev, 0, video, querystd, norm); in vidioc_querystd()
507 static int vidioc_g_std(struct file *file, void *priv, v4l2_std_id *norm) in vidioc_g_std() argument
511 *norm = dev->norm; in vidioc_g_std()
515 static int vidioc_s_std(struct file *file, void *priv, v4l2_std_id norm) in vidioc_s_std() argument
520 if (dev->norm == norm) in vidioc_s_std()
532 dev->height = (norm & V4L2_STD_525_60) ? 480 : 576; in vidioc_s_std()
533 dev->norm = norm; in vidioc_s_std()
[all …]
/linux/drivers/media/tuners/
H A Dtda9887.c404 struct tvnorm *norm = NULL; in tda9887_set_tvnorm() local
410 norm = &radio_mono; in tda9887_set_tvnorm()
412 norm = &radio_stereo; in tda9887_set_tvnorm()
416 norm = tvnorms+i; in tda9887_set_tvnorm()
421 if (NULL == norm) { in tda9887_set_tvnorm()
426 tuner_dbg("configure for: %s\n", norm->name); in tda9887_set_tvnorm()
427 buf[1] = norm->b; in tda9887_set_tvnorm()
428 buf[2] = norm->c; in tda9887_set_tvnorm()
429 buf[3] = norm->e; in tda9887_set_tvnorm()
/linux/drivers/media/pci/zoran/
H A Dzr36060.c483 static int zr36060_set_video(struct videocodec *codec, const struct tvnorm *norm, in zr36060_set_video() argument
550 reg = norm->ht - 1; /* Vtotal */ in zr36060_set_video()
554 reg = norm->wt - 1; /* Htotal */ in zr36060_set_video()
564 reg = norm->v_start - 1; /* BVstart */ in zr36060_set_video()
567 reg += norm->ha / 2; /* BVend */ in zr36060_set_video()
571 reg = norm->h_start - 1; /* BHstart */ in zr36060_set_video()
574 reg += norm->wa; /* BHend */ in zr36060_set_video()
579 reg = cap->y + norm->v_start; /* Vstart */ in zr36060_set_video()
587 reg = cap->x + norm->h_start; /* Hstart */ in zr36060_set_video()
596 reg = norm->v_start - 4; /* SVstart */ in zr36060_set_video()
[all …]
H A Dzr36016.c213 static int zr36016_set_video(struct videocodec *codec, const struct tvnorm *norm, in zr36016_set_video() argument
220 ptr->name, norm->h_start, norm->v_start, in zr36016_set_video()
239 ptr->xoff = (norm->h_start ? norm->h_start : 1) + cap->x; in zr36016_set_video()
246 ptr->yoff = norm->v_start + cap->y; in zr36016_set_video()
/linux/drivers/gpu/drm/nouveau/dispnv04/i2c/
H A Dch7006_drv.c125 const struct ch7006_tv_norm_info *norm = &ch7006_tv_norms[priv->norm]; in ch7006_encoder_mode_set() local
130 regs[CH7006_DISPMODE] = norm->dispmode | mode->dispmode; in ch7006_encoder_mode_set()
236 ~mode->valid_norms & 1<<priv->norm) in ch7006_encoder_get_modes()
270 priv->norm); in ch7006_encoder_create_resources()
324 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/arch/arc/lib/
H A Dstrchr-700.S76 norm r2,r3
92 norm r3,r3
105 norm r2,r2
121 norm r3,r3
H A Dmemcmp.S63 norm r1,r1
70 norm r1,r1
85 norm r1,r1
/linux/drivers/media/usb/usbtv/
H A Dusbtv.h76 v4l2_std_id norm; member
112 v4l2_std_id norm; member

123