/openbmc/linux/drivers/media/pci/cx88/ |
H A D | cx88-core.c | 624 if (norm & V4L2_STD_PAL_Nc) in norm_swidth() 635 if (norm & V4L2_STD_PAL_Nc) in norm_hdelay() 648 if (norm & V4L2_STD_PAL_M) in norm_fsc8() 651 if (norm & V4L2_STD_PAL_Nc) in norm_fsc8() 831 v4l2_std_id norm = core->tvnorm; in set_tvaudio() local 837 if (V4L2_STD_PAL_BG & norm) { in set_tvaudio() 850 norm) { in set_tvaudio() 857 norm) { in set_tvaudio() 892 if (norm == core->tvnorm) in cx88_set_tvnorm() 899 core->tvnorm = norm; in cx88_set_tvnorm() [all …]
|
/openbmc/linux/drivers/media/usb/usbtv/ |
H A D | usbtv-video.c | 52 .norm = V4L2_STD_525_60, 57 .norm = V4L2_STD_625_50, 69 if (norm_params[i].norm & norm) { in usbtv_configure_for_norm() 80 usbtv->norm = norm; in usbtv_configure_for_norm() 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() 139 if (norm & V4L2_STD_PAL_Nc) in usbtv_norm_to_16f_reg() 249 if (norm & ntsc_mask) in usbtv_select_norm() 662 *norm = usbtv->norm; in usbtv_g_std() [all …]
|
/openbmc/linux/drivers/media/i2c/ |
H A D | tw9906.c | 21 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 D | tw9903.c | 30 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 D | tw9910.c | 235 v4l2_std_id norm; member 436 if (norm & V4L2_STD_NTSC) { in tw9910_select_norm() 439 } else if (norm & V4L2_STD_PAL) { in tw9910_select_norm() 506 *norm = priv->norm; in tw9910_g_std() 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() 737 if (priv->norm & V4L2_STD_NTSC) { in tw9910_get_selection() 760 priv->scale = tw9910_select_norm(priv->norm, 640, 480); in tw9910_get_fmt() 871 priv->norm = V4L2_STD_NTSC; in tw9910_video_probe() [all …]
|
H A D | bt856.c | 45 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 D | isl7998x.c | 478 const v4l2_std_id norm; member 520 v4l2_std_id norm; member 555 if (isl7998x_std_res[i].norm & norm) in isl7998x_norm_to_val() 568 if (isl7998x_std_res[i].norm & norm) in isl7998x_norm_to_mode() 683 v4l2_norm_to_name(isl7998x->norm)); in isl7998x_init() 776 *norm = isl7998x->norm; in isl7998x_g_std() 795 isl7998x->norm = norm; in isl7998x_s_std() 801 ret = isl7998x_set_standard(isl7998x, norm); in isl7998x_s_std() 867 *std = isl7998x_std_res[std_id[0]].norm; in isl7998x_querystd() 1015 mode = isl7998x_norm_to_mode(isl7998x->norm); in isl7998x_get_fmt() [all …]
|
H A D | adv7175.c | 39 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 D | tw2804.c | 32 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()
|
/openbmc/linux/drivers/media/pci/saa7134/ |
H A D | saa7134-vbi.c | 42 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()
|
H A D | saa7134-video.c | 364 dev->tvnorm = norm; in set_tvnorm() 367 dev->crop_bounds.left = norm->h_start; in set_tvnorm() 368 dev->crop_defrect.left = norm->h_start; in set_tvnorm() 369 dev->crop_bounds.width = norm->h_stop - norm->h_start +1; in set_tvnorm() 370 dev->crop_defrect.width = norm->h_stop - norm->h_start +1; in set_tvnorm() 376 dev->crop_defrect.height = (norm->video_v_stop - norm->video_v_start +1)*2; in set_tvnorm() 397 struct saa7134_tvnorm *norm = dev->tvnorm; in saa7134_set_decoder() local 400 luma_control = norm->luma_control; in saa7134_set_decoder() 401 sync_control = norm->sync_control; in saa7134_set_decoder() 402 chroma_ctrl1 = norm->chroma_ctrl1; in saa7134_set_decoder() [all …]
|
/openbmc/linux/arch/m68k/fpsp040/ |
H A D | tbldo.S | 58 .long sint |$01-0 fint norm 67 .long ssinh |$02-0 fsinh norm 76 .long sintrz |$03-0 fintrz norm 130 .long stanh |$09-0 ftanh norm 139 .long satan |$0a-0 fatan norm 157 .long sasin |$0c-0 fasin norm 175 .long ssin |$0e-0 fsin norm 184 .long stan |$0f-0 ftan norm 193 .long setox |$10-0 fetox norm 274 .long scosh |$19-0 fcosh norm [all …]
|
H A D | do_func.S | 255 .long smod | 00,00 norm,norm = normal 257 .long smod_fpn | 00,10 norm,inf = fpn 258 .long smod_snan | 00,11 norm,nan = nan 287 | ;00 = norm or denorm 415 .long sscale | 00,00 norm,norm = result 416 .long sscale | 00,01 norm,zero = fpn 418 .long scl_snan | 00,11 norm,nan = nan 427 .long scl_dnan | 11,00 nan,norm = nan 436 bclrl #2,%d0 |alias denorm into norm 437 bclrl #2,%d1 |alias denorm into norm [all …]
|
/openbmc/linux/lib/zstd/compress/ |
H A D | zstd_compress_sequences.c | 74 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 D | fse_compress.c | 387 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 …]
|
/openbmc/linux/drivers/media/usb/dvb-usb/ |
H A D | cxusb-analog.c | 746 v4l2_std_id norm; in cxusb_medion_field_order() local 1130 v4l2_std_id norm) in cxusb_medion_set_norm() argument 1182 cxdev->norm = norm; in cxusb_medion_set_norm() 1193 v4l2_std_id norm; in cxusb_medion_s_input() local 1206 norm = cxdev->norm & cxusb_medion_inputs[i].input.std; in cxusb_medion_s_input() 1207 if (norm == 0) in cxusb_medion_s_input() 1347 v4l2_std_id *norm) in cxusb_medion_g_std() argument 1352 *norm = cxdev->norm; in cxusb_medion_g_std() 1361 v4l2_std_id norm) in cxusb_medion_s_std() argument 1370 v4l2_std_id *norm) in cxusb_medion_querystd() argument [all …]
|
/openbmc/linux/drivers/powercap/ |
H A D | arm_scmi_powercap.c | 100 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()
|
/openbmc/linux/drivers/gpu/drm/i2c/ |
H A D | ch7006_mode.c | 181 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() 352 * priv->hmargin * mode->vtotal) / norm->vtotal / 100 / 4; in ch7006_setup_properties() 357 vpos = max(0, norm->vdisplay - round_fixed(mode->vdisplay*scale) in ch7006_setup_properties() [all …]
|
/openbmc/linux/drivers/media/usb/stk1160/ |
H A D | stk1160-v4l.c | 110 if (dev->norm & V4L2_STD_525_60) { in stk1160_set_std() 382 base_height = (dev->norm & V4L2_STD_525_60) ? 480 : 576; in stk1160_try_fmt() 507 v4l2_device_call_all(&dev->v4l2_dev, 0, video, querystd, norm); in vidioc_querystd() 515 *norm = dev->norm; in vidioc_g_std() 519 static int vidioc_s_std(struct file *file, void *priv, v4l2_std_id norm) in vidioc_s_std() argument 524 if (dev->norm == norm) in vidioc_s_std() 536 dev->height = (norm & V4L2_STD_525_60) ? 480 : 576; in vidioc_s_std() 537 dev->norm = norm; in vidioc_s_std() 545 dev->norm); in vidioc_s_std() 825 dev->norm = V4L2_STD_NTSC_M; in stk1160_video_register() [all …]
|
/openbmc/linux/drivers/media/pci/tw68/ |
H A D | tw68-video.c | 213 if (norm != dev->tvnorm) { in set_tvnorm() 216 dev->tvnorm = norm; in set_tvnorm() 265 norm->h_delay, norm->h_start, norm->h_stop, in tw68_set_scale() 266 norm->v_delay, norm->video_v_start, in tw68_set_scale() 267 norm->video_v_stop); in tw68_set_scale() 271 hdelay = norm->h_delay0; in tw68_set_scale() 274 hdelay = norm->h_delay; in tw68_set_scale() 278 hdelay += norm->h_start; in tw68_set_scale() 279 hactive = norm->h_stop - norm->h_start + 1; in tw68_set_scale() 283 vdelay = norm->v_delay; in tw68_set_scale() [all …]
|
/openbmc/linux/lib/xz/ |
H A D | xz_dec_bcj.c | 220 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()
|
/openbmc/linux/drivers/media/usb/cx231xx/ |
H A D | cx231xx-cards.c | 98 .norm = V4L2_STD_PAL, 138 .norm = V4L2_STD_NTSC, 178 .norm = V4L2_STD_PAL, 219 .norm = V4L2_STD_PAL, 249 .norm = V4L2_STD_PAL, 290 .norm = V4L2_STD_PAL, 318 .norm = V4L2_STD_NTSC, 346 .norm = V4L2_STD_NTSC, 575 .norm = V4L2_STD_PAL, 707 .norm = V4L2_STD_PAL, [all …]
|
/openbmc/linux/drivers/media/tuners/ |
H A D | tda9887.c | 404 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()
|
/openbmc/linux/drivers/media/pci/zoran/ |
H A D | zr36060.c | 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() 600 reg += norm->ha / 2 + 8; /* SVend */ in zr36060_set_video() [all …]
|
H A D | zr36016.c | 213 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()
|