/kernel/linux/linux-6.6/drivers/media/pci/cx88/ |
H A D | cx88-core.c | 619 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 in norm_fsc8() 667 norm_htotal(v4l2_std_id norm) norm_htotal() argument 677 norm_vbipack(v4l2_std_id norm) norm_vbipack() argument 831 v4l2_std_id norm = core->tvnorm; set_tvaudio() local 882 cx88_set_tvnorm(struct cx88_core *core, v4l2_std_id norm) cx88_set_tvnorm() argument [all...] |
/kernel/linux/linux-5.10/drivers/media/pci/cx88/ |
H A D | cx88-core.c | 617 static inline unsigned int norm_swidth(v4l2_std_id norm) in norm_swidth() argument 619 return (norm & (V4L2_STD_MN & ~V4L2_STD_PAL_Nc)) ? 754 : 922; in norm_swidth() 622 static inline unsigned int norm_hdelay(v4l2_std_id norm) in norm_hdelay() argument 624 return (norm & (V4L2_STD_MN & ~V4L2_STD_PAL_Nc)) ? 135 : 186; in norm_hdelay() 627 static inline unsigned int norm_vdelay(v4l2_std_id norm) in norm_vdelay() argument 629 return (norm & V4L2_STD_625_50) ? 0x24 : 0x18; in norm_vdelay() 632 static inline unsigned int norm_fsc8(v4l2_std_id norm) in norm_fsc8() argument 634 if (norm & V4L2_STD_PAL_M) in norm_fsc8() 637 if (norm & (V4L2_STD_PAL_Nc)) in norm_fsc8() 640 if (norm in norm_fsc8() 653 norm_htotal(v4l2_std_id norm) norm_htotal() argument 663 norm_vbipack(v4l2_std_id norm) norm_vbipack() argument 817 v4l2_std_id norm = core->tvnorm; set_tvaudio() local 868 cx88_set_tvnorm(struct cx88_core *core, v4l2_std_id norm) cx88_set_tvnorm() argument [all...] |
/kernel/linux/linux-6.6/drivers/media/usb/usbtv/ |
H A D | usbtv-video.c | 52 .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 in usbtv_norm_to_16f_reg() 145 usbtv_select_norm(struct usbtv *usbtv, v4l2_std_id norm) usbtv_select_norm() argument 659 usbtv_g_std(struct file *file, void *priv, v4l2_std_id *norm) usbtv_g_std() argument 666 usbtv_s_std(struct file *file, void *priv, v4l2_std_id norm) usbtv_s_std() argument [all...] |
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-5.10/drivers/media/usb/usbtv/ |
H A D | usbtv-video.c | 52 .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 in usbtv_norm_to_16f_reg() 143 usbtv_select_norm(struct usbtv *usbtv, v4l2_std_id norm) usbtv_select_norm() argument 656 usbtv_g_std(struct file *file, void *priv, v4l2_std_id *norm) usbtv_g_std() argument 663 usbtv_s_std(struct file *file, void *priv, v4l2_std_id norm) usbtv_s_std() argument [all...] |
/kernel/linux/linux-6.6/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() 136 * table described by norm. The max symbol support by norm is assumed >= max. 137 * norm mus 139 ZSTD_crossEntropyCost(short const* norm, unsigned accuracyLog, unsigned const* count, unsigned const max) ZSTD_crossEntropyCost() argument 238 S16 norm[MaxSeq + 1]; global() member [all...] |
/kernel/linux/linux-5.10/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 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 D | do_func.S | 255 .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 336 .long srem | 00,00 norm,nor [all...] |
/kernel/linux/linux-6.6/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 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 D | do_func.S | 255 .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 336 .long srem | 00,00 norm,nor [all...] |
/kernel/linux/linux-5.10/drivers/media/usb/stk1160/ |
H A D | stk1160-v4l.c | 110 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() [all...] |
/kernel/linux/linux-6.6/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() 504 static int vidioc_querystd(struct file *file, void *priv, v4l2_std_id *norm) in vidioc_querystd() argument 507 v4l2_device_call_all(&dev->v4l2_dev, 0, video, querystd, norm); in vidioc_querystd() 511 static int vidioc_g_std(struct file *file, void *priv, v4l2_std_id *norm) in vidioc_g_std() argument 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() [all...] |
/kernel/linux/linux-5.10/drivers/media/i2c/ |
H A D | tw9903.c | 30 v4l2_std_id norm; member 63 0x1c, 0x0f, /* video norm */ 64 0x1d, 0x7f, /* video norm */ 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() 228 dec->norm = V4L2_STD_NTSC; in tw9903_probe()
|
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() 196 dec->norm = V4L2_STD_NTSC; in tw9906_probe()
|
H A D | tw9910.c | 235 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() 484 dev_err(&client->dev, "norm select error\n"); in tw9910_s_stream() 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 in tw9910_s_std() 900 tw9910_g_tvnorms(struct v4l2_subdev *sd, v4l2_std_id *norm) tw9910_g_tvnorms() argument [all...] |
/kernel/linux/linux-6.6/drivers/media/i2c/ |
H A D | tw9903.c | 30 v4l2_std_id norm; member 63 0x1c, 0x0f, /* video norm */ 64 0x1d, 0x7f, /* video norm */ 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 | 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 | tw9910.c | 235 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() 484 dev_err(&client->dev, "norm select error\n"); in tw9910_s_stream() 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 in tw9910_s_std() 900 tw9910_g_tvnorms(struct v4l2_subdev *sd, v4l2_std_id *norm) tw9910_g_tvnorms() argument [all...] |
/kernel/linux/linux-5.10/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 [all...] |
/kernel/linux/linux-6.6/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 [all...] |
/kernel/linux/linux-6.6/drivers/powercap/ |
H A D | arm_scmi_powercap.c | 100 u64 power_limit_uw, u32 *norm) in scmi_powercap_normalize_cap() 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() 162 *norm = clamp_t(u32, time_us, spz->info->min_pai, spz->info->max_pai); in scmi_powercap_normalize_time() 163 *norm = rounddown(*norm, sp in scmi_powercap_normalize_time() 99 scmi_powercap_normalize_cap(const struct scmi_powercap_zone *spz, u64 power_limit_uw, u32 *norm) scmi_powercap_normalize_cap() argument 154 scmi_powercap_normalize_time(const struct scmi_powercap_zone *spz, u64 time_us, u32 *norm) scmi_powercap_normalize_time() argument [all...] |
/kernel/linux/linux-5.10/drivers/media/pci/tw68/ |
H A D | tw68-video.c | 211 static void set_tvnorm(struct tw68_dev *dev, const struct tw68_tvnorm *norm) in set_tvnorm() argument 213 if (norm != dev->tvnorm) { in set_tvnorm() 215 dev->height = (norm->id & V4L2_STD_525_60) ? 480 : 576; in set_tvnorm() 216 dev->tvnorm = norm; in set_tvnorm() 245 * getting current norm (as well as debug print) 253 const struct tw68_tvnorm *norm = dev->tvnorm; in tw68_set_scale() local 265 norm->h_delay, norm->h_start, norm->h_stop, in tw68_set_scale() 266 norm in tw68_set_scale() [all...] |
/kernel/linux/linux-6.6/drivers/media/pci/tw68/ |
H A D | tw68-video.c | 211 static void set_tvnorm(struct tw68_dev *dev, const struct tw68_tvnorm *norm) in set_tvnorm() argument 213 if (norm != dev->tvnorm) { in set_tvnorm() 215 dev->height = (norm->id & V4L2_STD_525_60) ? 480 : 576; in set_tvnorm() 216 dev->tvnorm = norm; in set_tvnorm() 245 * getting current norm (as well as debug print) 253 const struct tw68_tvnorm *norm = dev->tvnorm; in tw68_set_scale() local 265 norm->h_delay, norm->h_start, norm->h_stop, in tw68_set_scale() 266 norm in tw68_set_scale() [all...] |
/kernel/linux/linux-5.10/drivers/media/usb/dvb-usb/ |
H A D | cxusb-analog.c | 724 static u32 cxusb_medion_norm2field_order(v4l2_std_id norm) in cxusb_medion_norm2field_order() argument 726 bool is625 = norm & V4L2_STD_625_50; in cxusb_medion_norm2field_order() 727 bool is525 = norm & V4L2_STD_525_60; in cxusb_medion_norm2field_order() 746 v4l2_std_id norm; in cxusb_medion_field_order() local 752 field = cxusb_medion_norm2field_order(cxdev->norm); in cxusb_medion_field_order() 756 ret = v4l2_subdev_call(cxdev->cx25840, video, g_std, &norm); in cxusb_medion_field_order() 762 field = cxusb_medion_norm2field_order(norm); in cxusb_medion_field_order() 1130 v4l2_std_id norm) in cxusb_medion_set_norm() 1138 (unsigned long)norm); in cxusb_medion_set_norm() 1141 if (norm in cxusb_medion_set_norm() 1129 cxusb_medion_set_norm(struct cxusb_medion_dev *cxdev, v4l2_std_id norm) cxusb_medion_set_norm() argument 1193 v4l2_std_id norm; cxusb_medion_s_input() local 1346 cxusb_medion_g_std(struct file *file, void *fh, v4l2_std_id *norm) cxusb_medion_g_std() argument 1360 cxusb_medion_s_std(struct file *file, void *fh, v4l2_std_id norm) cxusb_medion_s_std() argument 1369 cxusb_medion_querystd(struct file *file, void *fh, v4l2_std_id *norm) cxusb_medion_querystd() argument [all...] |