Home
last modified time | relevance | path

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

123

/linux/include/linux/
H A Drcutiny.h28 return rgosp1->norm == rgosp2->norm; in same_state_synchronize_rcu_full()
35 gsp->norm = get_state_synchronize_rcu(); in get_state_synchronize_rcu_full()
42 gsp->norm = start_poll_synchronize_rcu(); in start_poll_synchronize_rcu_full()
49 return poll_state_synchronize_rcu(gsp->norm); in poll_state_synchronize_rcu_full()
59 cond_synchronize_rcu(gsp->norm); in cond_synchronize_rcu_full()
69 gsp->norm = start_poll_synchronize_rcu_expedited(); in start_poll_synchronize_rcu_expedited_full()
79 cond_synchronize_rcu_expedited(gsp->norm); in cond_synchronize_rcu_expedited_full()
H A Drcutree.h66 return rgosp1->norm == rgosp2->norm && rgosp1->exp == rgosp2->exp; in same_state_synchronize_rcu_full()
/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 …]
H A Dcx88.h88 static inline unsigned int norm_maxw(v4l2_std_id norm) in norm_maxw() argument
93 static inline unsigned int norm_maxh(v4l2_std_id norm) in norm_maxh() argument
95 return (norm & V4L2_STD_525_60) ? 480 : 576; in norm_maxh()
641 int cx88_set_tvnorm(struct cx88_core *core, v4l2_std_id norm);
/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/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/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 …]
H A Dzstd_compress_sequences.h54 size_t ZSTD_crossEntropyCost(short const* norm, unsigned accuracyLog,
/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()
H A Dzoran_device.c206 if ((zr->norm & V4L2_STD_NTSC) || in zr36057_adjust_vfe()
208 (zr->norm & V4L2_STD_PAL))) in zr36057_adjust_vfe()
309 if (!(zr->norm & V4L2_STD_NTSC)) in zr36057_set_vfe()
918 decoder_call(zr, video, s_std, zr->norm); in zoran_init_hardware()
923 encoder_call(zr, video, s_std_output, zr->norm); in zoran_init_hardware()
/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
H A Dstrlen.S61 norm r1,r2
71 norm r1,r1
/linux/drivers/media/usb/usbtv/
H A Dusbtv.h76 v4l2_std_id norm; member
112 v4l2_std_id norm; member
/linux/kernel/rcu/
H A Dtree_nocb.h805 if (!needwait_gp || ULONG_CMP_LT(cur_gp_seq.norm, wait_gp_seq.norm)) in nocb_gp_wait()
806 wait_gp_seq.norm = cur_gp_seq.norm; in nocb_gp_wait()
866 trace_rcu_this_gp(rnp, wait_gp_seq.norm, TPS("StartWait")); in nocb_gp_wait()
868 rnp->nocb_gp_wq[rcu_seq_ctr(wait_gp_seq.norm) & 0x1], in nocb_gp_wait()
871 trace_rcu_this_gp(rnp, wait_gp_seq.norm, TPS("EndWait")); in nocb_gp_wait()
905 my_rdp->nocb_gp_seq.norm = -1; in nocb_gp_wait()
1602 (long)rdp->nocb_gp_seq.norm, in show_rcu_nocb_gp_state()
1636 rsclp->gp_seq[RCU_WAIT_TAIL].norm, in show_rcu_nocb_state()
1639 rsclp->gp_seq[RCU_NEXT_READY_TAIL].norm, in show_rcu_nocb_state()
H A Drcu_segcblist.c562 ULONG_CMP_LT(rsclp->gp_seq[i].norm, gsp->norm)) in rcu_segcblist_accelerate()
655 if (ULONG_CMP_LT(seq, rsclp->gp_seq[i].norm)) in srcu_segcblist_advance()
676 struct rcu_gp_seq gs = { .norm = seq, .exp = RCU_GET_STATE_NOT_TRACKED }; in srcu_segcblist_accelerate()
H A Dtree_plugin.h301 if (this_cpu_read(rcu_data.cpu_no_qs.b.norm)) { in rcu_qs()
305 this_cpu_write(rcu_data.cpu_no_qs.b.norm, false); in rcu_qs()
506 rdp->cpu_no_qs.b.norm = false; in rcu_preempt_deferred_qs_irqrestore()
857 __this_cpu_read(rcu_data.cpu_no_qs.b.norm) && in rcu_flavor_sched_clock_irq()
955 WRITE_ONCE(rdp->cpu_no_qs.b.norm, false); in rcu_read_unlock_strict()
983 this_cpu_write(rcu_data.cpu_no_qs.b.norm, false); in rcu_qs()
/linux/drivers/media/usb/gspca/
H A Dpac7302.c429 unsigned int norm; in rgbbalance_ctrl_to_reg_value() local
432 norm = k * (rgb_ctrl_val - PAC7302_RGB_BALANCE_MIN) in rgbbalance_ctrl_to_reg_value()
435 return 64 * norm * norm / (k*k) + 32 * norm / k + 32; in rgbbalance_ctrl_to_reg_value()

123