Home
last modified time | relevance | path

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

1234

/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/i2c/
H A Dtw9906.c21 v4l2_std_id norm; member
85 static int tw9906_s_std(struct v4l2_subdev *sd, v4l2_std_id norm) in tw9906_s_std() argument
88 bool is_60hz = norm & V4L2_STD_525_60; in tw9906_s_std()
105 dec->norm = norm; in tw9906_s_std()
133 bool is_60hz = dec->norm & V4L2_STD_525_60; in tw9906_log_status()
195 dec->norm = V4L2_STD_NTSC; in tw9906_probe()
H A Dtw9903.c30 v4l2_std_id norm; member
114 static int tw9903_s_std(struct v4l2_subdev *sd, v4l2_std_id norm) in tw9903_s_std() argument
117 bool is_60hz = norm & V4L2_STD_525_60; in tw9903_s_std()
134 dec->norm = norm; in tw9903_s_std()
163 bool is_60hz = dec->norm & V4L2_STD_525_60; in tw9903_log_status()
227 dec->norm = V4L2_STD_NTSC; in tw9903_probe()
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()
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 & (V4L2_STD_NTSC | V4L2_STD_PAL))) in tw9910_s_std()
519 priv->norm = norm; in tw9910_s_std()
520 if (norm & V4L2_STD_525_60) { in tw9910_s_std()
[all …]
H A Disl7998x.c478 const v4l2_std_id norm; member
520 v4l2_std_id norm; member
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
635 const struct isl7998x_mode *mode = isl7998x_norm_to_mode(norm); in isl7998x_set_standard()
636 unsigned int val = isl7998x_norm_to_val(norm); in isl7998x_set_standard()
683 v4l2_norm_to_name(isl7998x->norm)); in isl7998x_init()
[all …]
H A Dbt856.c45 v4l2_std_id norm; member
96 if (encoder->norm & V4L2_STD_NTSC) in bt856_init()
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
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
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()
361 decoder->norm = std; in vpx3220_s_std()
477 decoder->norm = V4L2_STD_PAL; in vpx3220_probe()
H A Dsaa7110.c46 v4l2_std_id norm; member
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()
279 decoder->norm = std; in bt819_s_std()
420 decoder->norm = V4L2_STD_NTSC; in bt819_probe()
/linux/lib/zstd/compress/
H A Dzstd_compress_sequences.c74 S16 norm[MaxSeq + 1]; in ZSTD_NCountCost() local
76 …FORWARD_IF_ERROR(FSE_normalizeCount(norm, tableLog, count, nbSeq, max, ZSTD_useLowProbCount(nbSeq)… in ZSTD_NCountCost()
77 return FSE_writeNCount(wksp, sizeof(wksp), norm, max, tableLog); in ZSTD_NCountCost()
91 unsigned norm = (unsigned)((256 * count[s]) / total); in ZSTD_entropyCost() local
92 if (count[s] != 0 && norm == 0) in ZSTD_entropyCost()
93 norm = 1; in ZSTD_entropyCost()
95 cost += count[s] * kInverseProbabilityLog256[norm]; in ZSTD_entropyCost()
139 size_t ZSTD_crossEntropyCost(short const* norm, unsigned accuracyLog, in ZSTD_crossEntropyCost() argument
147 unsigned const normAcc = (norm[s] != -1) ? (unsigned)norm[s] : 1; in ZSTD_crossEntropyCost()
238 S16 norm[MaxSeq + 1]; member
[all …]
H A Dfse_compress.c387 static size_t FSE_normalizeM2(short* norm, U32 tableLog, const unsigned* count, size_t total, U32 m… in FSE_normalizeM2() argument
400 norm[s]=0; in FSE_normalizeM2()
404 norm[s] = lowProbCount; in FSE_normalizeM2()
410 norm[s] = 1; in FSE_normalizeM2()
416 norm[s]=NOT_YET_ASSIGNED; in FSE_normalizeM2()
427 if ((norm[s] == NOT_YET_ASSIGNED) && (count[s] <= lowOne)) { in FSE_normalizeM2()
428 norm[s] = 1; in FSE_normalizeM2()
443 norm[maxV] += (short)ToDistribute; in FSE_normalizeM2()
450 if (norm[s] > 0) { ToDistribute--; norm[s]++; } in FSE_normalizeM2()
459 if (norm[s]==NOT_YET_ASSIGNED) { in FSE_normalizeM2()
[all …]
/linux/drivers/gpu/drm/i2c/
H A Dch7006_mode.c181 if (~mode->valid_norms & 1<<priv->norm) in ch7006_lookup_mode()
204 const struct ch7006_tv_norm_info *norm = &ch7006_tv_norms[priv->norm]; in ch7006_setup_levels() local
210 if (norm->black_level < 339*fixed1/1000) { in ch7006_setup_levels()
220 black_level = round_fixed(norm->black_level*26625)/gain; in ch7006_setup_levels()
235 const struct ch7006_tv_norm_info *norm = &ch7006_tv_norms[priv->norm]; in ch7006_setup_subcarrier() local
240 * (norm->subc_freq >> 24)); in ch7006_setup_subcarrier()
330 const struct ch7006_tv_norm_info *norm = &ch7006_tv_norms[priv->norm]; in ch7006_setup_properties() local
345 scale = norm->vtotal*fixed1; in ch7006_setup_properties()
351 hpos = round_fixed((norm->hvirtual * aspect - mode->hdisplay * scale) in ch7006_setup_properties()
352 * priv->hmargin * mode->vtotal) / norm->vtotal / 100 / 4; in ch7006_setup_properties()
[all …]
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/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/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/lib/xz/
H A Dxz_dec_bcj.c223 uint64_t norm; in bcj_ia64() local
240 norm = instr >> bit_res; in bcj_ia64()
242 if (((norm >> 37) & 0x0F) == 0x05 in bcj_ia64()
243 && ((norm >> 9) & 0x07) == 0) { in bcj_ia64()
244 addr = (norm >> 13) & 0x0FFFFF; in bcj_ia64()
245 addr |= ((uint32_t)(norm >> 36) & 1) << 20; in bcj_ia64()
250 norm &= ~((uint64_t)0x8FFFFF << 13); in bcj_ia64()
251 norm |= (uint64_t)(addr & 0x0FFFFF) << 13; in bcj_ia64()
252 norm |= (uint64_t)(addr & 0x100000) in bcj_ia64()
256 instr |= norm << bit_res; in bcj_ia64()
/linux/arch/arc/lib/
H A Dstrchr-700.S76 norm r2,r3
92 norm r3,r3
105 norm r2,r2
121 norm r3,r3
/linux/drivers/media/usb/usbtv/
H A Dusbtv.h76 v4l2_std_id norm; member
112 v4l2_std_id norm; member

1234