Home
last modified time | relevance | path

Searched refs:pps (Results 1 – 25 of 246) sorted by relevance

12345678910

/OK3568_Linux_fs/external/mpp/mpp/codec/enc/h264/
H A Dh264e_pps.c45 MPP_RET h264e_pps_update(H264ePps *pps, MppEncCfgSet *cfg) in h264e_pps_update() argument
49 pps->pps_id = 0; in h264e_pps_update()
50 pps->sps_id = 0; in h264e_pps_update()
52 pps->entropy_coding_mode = codec->entropy_coding_mode; in h264e_pps_update()
53 pps->bottom_field_pic_order_in_frame_present = 0; in h264e_pps_update()
54 pps->num_slice_groups = 1; in h264e_pps_update()
56 pps->num_ref_idx_l0_default_active = 1; in h264e_pps_update()
57 pps->num_ref_idx_l1_default_active = 1; in h264e_pps_update()
59 pps->weighted_pred = 0; in h264e_pps_update()
60 pps->weighted_bipred_idc = 0; in h264e_pps_update()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/dcn20/
H A Ddcn20_dsc.c30 static void dsc_log_pps(struct display_stream_compressor *dsc, struct drm_dsc_config *pps);
203 dsc_log_pps(dsc, &dsc20->reg_vals.pps); in dsc2_set_config()
222 …drm_dsc_pps_payload_pack((struct drm_dsc_picture_parameter_set *)dsc_packed_pps, &dsc_reg_vals.pps in dsc2_get_packed_pps()
223 dsc_log_pps(dsc, &dsc_reg_vals.pps); in dsc2_get_packed_pps()
279 static void dsc_log_pps(struct display_stream_compressor *dsc, struct drm_dsc_config *pps) in dsc_log_pps() argument
282 int bits_per_pixel = pps->bits_per_pixel; in dsc_log_pps()
284 DC_LOG_DSC("\tdsc_version_major %d", pps->dsc_version_major); in dsc_log_pps()
285 DC_LOG_DSC("\tdsc_version_minor %d", pps->dsc_version_minor); in dsc_log_pps()
286 DC_LOG_DSC("\tbits_per_component %d", pps->bits_per_component); in dsc_log_pps()
287 DC_LOG_DSC("\tline_buf_depth %d", pps->line_buf_depth); in dsc_log_pps()
[all …]
/OK3568_Linux_fs/kernel/drivers/pps/
H A Dpps.c40 struct pps_device *pps = file->private_data; in pps_cdev_poll() local
42 poll_wait(file, &pps->queue, wait); in pps_cdev_poll()
49 struct pps_device *pps = file->private_data; in pps_cdev_fasync() local
50 return fasync_helper(fd, file, on, &pps->async_queue); in pps_cdev_fasync()
53 static int pps_cdev_pps_fetch(struct pps_device *pps, struct pps_fdata *fdata) in pps_cdev_pps_fetch() argument
55 unsigned int ev = pps->last_ev; in pps_cdev_pps_fetch()
60 err = wait_event_interruptible(pps->queue, in pps_cdev_pps_fetch()
61 ev != pps->last_ev); in pps_cdev_pps_fetch()
65 dev_dbg(pps->dev, "timeout %lld.%09d\n", in pps_cdev_pps_fetch()
73 pps->queue, in pps_cdev_pps_fetch()
[all …]
H A Dkapi.c41 static void pps_echo_client_default(struct pps_device *pps, int event, in pps_echo_client_default() argument
44 dev_info(pps->dev, "echo %s %s\n", in pps_echo_client_default()
68 struct pps_device *pps; in pps_register_source() local
86 pps = kzalloc(sizeof(struct pps_device), GFP_KERNEL); in pps_register_source()
87 if (pps == NULL) { in pps_register_source()
95 pps->params.api_version = PPS_API_VERS; in pps_register_source()
96 pps->params.mode = default_params; in pps_register_source()
97 pps->info = *info; in pps_register_source()
100 if ((pps->info.mode & (PPS_ECHOASSERT | PPS_ECHOCLEAR)) && in pps_register_source()
101 pps->info.echo == NULL) in pps_register_source()
[all …]
H A Dsysfs.c21 struct pps_device *pps = dev_get_drvdata(dev); in assert_show() local
23 if (!(pps->info.mode & PPS_CAPTUREASSERT)) in assert_show()
27 (long long) pps->assert_tu.sec, pps->assert_tu.nsec, in assert_show()
28 pps->assert_sequence); in assert_show()
35 struct pps_device *pps = dev_get_drvdata(dev); in clear_show() local
37 if (!(pps->info.mode & PPS_CAPTURECLEAR)) in clear_show()
41 (long long) pps->clear_tu.sec, pps->clear_tu.nsec, in clear_show()
42 pps->clear_sequence); in clear_show()
49 struct pps_device *pps = dev_get_drvdata(dev); in mode_show() local
51 return sprintf(buf, "%4x\n", pps->info.mode); in mode_show()
[all …]
H A Dkc.c36 int pps_kc_bind(struct pps_device *pps, struct pps_bind_args *bind_args) in pps_kc_bind() argument
42 if (pps_kc_hardpps_dev == pps) { in pps_kc_bind()
46 dev_info(pps->dev, "unbound kernel" in pps_kc_bind()
50 dev_err(pps->dev, "selected kernel consumer" in pps_kc_bind()
56 pps_kc_hardpps_dev == pps) { in pps_kc_bind()
58 pps_kc_hardpps_dev = pps; in pps_kc_bind()
60 dev_info(pps->dev, "bound kernel consumer: " in pps_kc_bind()
64 dev_err(pps->dev, "another kernel consumer" in pps_kc_bind()
79 void pps_kc_remove(struct pps_device *pps) in pps_kc_remove() argument
82 if (pps == pps_kc_hardpps_dev) { in pps_kc_remove()
[all …]
H A Dkc.h16 extern int pps_kc_bind(struct pps_device *pps,
18 extern void pps_kc_remove(struct pps_device *pps);
19 extern void pps_kc_event(struct pps_device *pps,
25 static inline int pps_kc_bind(struct pps_device *pps, in pps_kc_bind() argument
27 static inline void pps_kc_remove(struct pps_device *pps) {} in pps_kc_remove() argument
28 static inline void pps_kc_event(struct pps_device *pps, in pps_kc_event() argument
/OK3568_Linux_fs/external/mpp/mpp/codec/enc/h265/
H A Dh265e_ps.c375 MPP_RET h265e_set_pps(H265eCtx *ctx, H265ePps *pps, H265eSps *sps) in h265e_set_pps() argument
379 pps->m_bConstrainedIntraPred = 0; in h265e_set_pps()
380 pps->m_PPSId = 0; in h265e_set_pps()
381 pps->m_SPSId = 0; in h265e_set_pps()
382 pps->m_picInitQPMinus26 = 0; in h265e_set_pps()
383 pps->m_useDQP = 0; in h265e_set_pps()
385 pps->m_useDQP = 1; in h265e_set_pps()
386 pps->m_maxCuDQPDepth = 0; in h265e_set_pps()
387 pps->m_minCuDQPSize = (sps->m_maxCUSize >> pps->m_maxCuDQPDepth); in h265e_set_pps()
390 pps->m_sps = sps; in h265e_set_pps()
[all …]
H A Dh265e_syntax.c28 const H265ePps *pps = (H265ePps *)&h->pps; in fill_picture_parameters() local
38 pp->sps_id = pps->m_SPSId; in fill_picture_parameters()
67 pp->num_ref_idx_l0_default_active_minus1 = pps->m_numRefIdxL0DefaultActive - 1; in fill_picture_parameters()
68 pp->num_ref_idx_l1_default_active_minus1 = pps->m_numRefIdxL1DefaultActive - 1; in fill_picture_parameters()
69 pp->init_qp_minus26 = pps->m_picInitQPMinus26; in fill_picture_parameters()
85 (pps->m_outputFlagPresentFlag << 21) | in fill_picture_parameters()
86 (pps->m_numExtraSliceHeaderBits << 22) | in fill_picture_parameters()
87 (pps->m_signHideFlag << 25) | in fill_picture_parameters()
88 (pps->m_cabacInitPresentFlag << 26) | in fill_picture_parameters()
91 …pp->CodingSettingPicturePropertyFlags = (pps->m_bConstrainedIntraPred << … in fill_picture_parameters()
[all …]
H A Dh265e_header_gen.c539 H265ePps *pps, RK_S32 idx )
545 static MPP_RET h265e_pps_write(H265ePps *pps, H265eSps *sps, H265eStream *s) in h265e_pps_write() argument
554 …h265e_stream_write_ue_with_log(s, pps->m_PPSId, "pps_pic_parameter_set_… in h265e_pps_write()
555 …h265e_stream_write_ue_with_log(s, pps->m_SPSId, "pps_seq_parameter_set_… in h265e_pps_write()
557 …h265e_stream_write1_with_log(s, pps->m_outputFlagPresentFlag ? 1 : 0, "output_flag_present_flag… in h265e_pps_write()
558 …h265e_stream_write_with_log(s, pps->m_numExtraSliceHeaderBits, 3, "num_extra_slice_header_bi… in h265e_pps_write()
559 … h265e_stream_write1_with_log(s, pps->m_signHideFlag, "sign_data_hiding_flag"); in h265e_pps_write()
560 …h265e_stream_write1_with_log(s, pps->m_cabacInitPresentFlag ? 1 : 0, "cabac_init_present_flag"… in h265e_pps_write()
561 …h265e_stream_write_ue_with_log(s, pps->m_numRefIdxL0DefaultActive - 1, "num_ref_idx_l0_default… in h265e_pps_write()
562 …h265e_stream_write_ue_with_log(s, pps->m_numRefIdxL1DefaultActive - 1, "num_ref_idx_l1_default… in h265e_pps_write()
[all …]
/OK3568_Linux_fs/external/mpp/mpp/codec/dec/h265/
H A Dh265d_ps.c833 static RK_S32 compare_pps(HEVCPPS *openhevc_pps, HEVCPPS *pps) in compare_pps() argument
836 if (openhevc_pps->sps_id != pps->sps_id) { in compare_pps()
841 if (openhevc_pps->pps_id != pps->pps_id) { in compare_pps()
846 if (openhevc_pps->sign_data_hiding_flag != pps->sign_data_hiding_flag) { in compare_pps()
851 if (openhevc_pps->cabac_init_present_flag != pps->cabac_init_present_flag) { in compare_pps()
856 if (openhevc_pps->num_ref_idx_l0_default_active != pps->num_ref_idx_l0_default_active) { in compare_pps()
860 if (openhevc_pps->num_ref_idx_l1_default_active != pps->num_ref_idx_l1_default_active) { in compare_pps()
864 if (openhevc_pps->pic_init_qp_minus26 != pps->pic_init_qp_minus26) { in compare_pps()
869 if (openhevc_pps->constrained_intra_pred_flag != pps->constrained_intra_pred_flag) { in compare_pps()
873 if (openhevc_pps->transform_skip_enabled_flag != pps->transform_skip_enabled_flag) { in compare_pps()
[all …]
H A Dh265d_parser2_syntax.c57 const HEVCPPS *pps = (HEVCPPS *)h->pps_list[h->sh.pps_id]; in fill_picture_parameters() local
58 const HEVCSPS *sps = (HEVCSPS *)h->sps_list[pps->sps_id]; in fill_picture_parameters()
71 pp->sps_id = pps->sps_id; in fill_picture_parameters()
95 pp->num_ref_idx_l0_default_active_minus1 = pps->num_ref_idx_l0_default_active - 1; in fill_picture_parameters()
96 pp->num_ref_idx_l1_default_active_minus1 = pps->num_ref_idx_l1_default_active - 1; in fill_picture_parameters()
97 pp->init_qp_minus26 = pps->pic_init_qp_minus26; in fill_picture_parameters()
116 (pps->dependent_slice_segments_enabled_flag << 20) | in fill_picture_parameters()
117 (pps->output_flag_present_flag << 21) | in fill_picture_parameters()
118 (pps->num_extra_slice_header_bits << 22) | in fill_picture_parameters()
119 (pps->sign_data_hiding_flag << 25) | in fill_picture_parameters()
[all …]
/OK3568_Linux_fs/kernel/samples/bpf/
H A Dxdp_monitor_user.c272 double pps = 0; in calc_pps() local
276 pps = packets / period; in calc_pps()
278 return pps; in calc_pps()
284 double pps = 0; in calc_pps_u64() local
288 pps = packets / period; in calc_pps_u64()
290 return pps; in calc_pps_u64()
296 double pps = 0; in calc_drop() local
300 pps = packets / period; in calc_drop()
302 return pps; in calc_drop()
308 double pps = 0; in calc_info() local
[all …]
H A Dxdp_redirect_cpu_user.c306 __u64 pps = 0; in calc_pps() local
310 pps = packets / period_; in calc_pps()
312 return pps; in calc_pps()
318 __u64 pps = 0; in calc_drop_pps() local
322 pps = packets / period_; in calc_drop_pps()
324 return pps; in calc_drop_pps()
331 __u64 pps = 0; in calc_errs_pps() local
335 pps = packets / period_; in calc_errs_pps()
337 return pps; in calc_errs_pps()
357 double pps = 0, drop = 0, err = 0; in stats_print() local
[all …]
/OK3568_Linux_fs/kernel/drivers/pps/clients/
H A Dpps-ldisc.c20 struct pps_device *pps; in pps_tty_dcd_change() local
25 pps = pps_lookup_dev(tty); in pps_tty_dcd_change()
30 if (WARN_ON_ONCE(pps == NULL)) in pps_tty_dcd_change()
34 pps_event(pps, &ts, status ? PPS_CAPTUREASSERT : in pps_tty_dcd_change()
37 dev_dbg(pps->dev, "PPS %s at %lu\n", in pps_tty_dcd_change()
48 struct pps_device *pps; in pps_tty_open() local
59 pps = pps_register_source(&info, PPS_CAPTUREBOTH | \ in pps_tty_open()
61 if (IS_ERR(pps)) { in pps_tty_open()
63 return PTR_ERR(pps); in pps_tty_open()
65 pps->lookup_cookie = tty; in pps_tty_open()
[all …]
H A Dpps-ktimer.c21 static struct pps_device *pps; variable
35 pps_event(pps, &ts, PPS_CAPTUREASSERT, NULL); in pps_ktimer_event()
59 dev_info(pps->dev, "ktimer PPS source unregistered\n"); in pps_ktimer_exit()
62 pps_unregister_source(pps); in pps_ktimer_exit()
67 pps = pps_register_source(&pps_ktimer_info, in pps_ktimer_init()
69 if (IS_ERR(pps)) { in pps_ktimer_init()
71 return PTR_ERR(pps); in pps_ktimer_init()
77 dev_info(pps->dev, "ktimer PPS source registered\n"); in pps_ktimer_init()
H A Dpps-gpio.c30 struct pps_device *pps; /* PPS source device */ member
59 pps_event(info->pps, &ts, PPS_CAPTUREASSERT, data); in pps_gpio_irq_handler()
63 pps_event(info->pps, &ts, PPS_CAPTURECLEAR, data); in pps_gpio_irq_handler()
69 static void pps_gpio_echo(struct pps_device *pps, int event, void *data) in pps_gpio_echo() argument
76 if (pps->params.mode & PPS_ECHOASSERT) in pps_gpio_echo()
81 if (pps->params.mode & PPS_ECHOCLEAR) in pps_gpio_echo()
87 if (info->pps->params.mode & (PPS_ECHOASSERT | PPS_ECHOCLEAR)) { in pps_gpio_echo()
219 data->pps = pps_register_source(&data->info, pps_default_params); in pps_gpio_probe()
220 if (IS_ERR(data->pps)) { in pps_gpio_probe()
223 return PTR_ERR(data->pps); in pps_gpio_probe()
[all …]
/OK3568_Linux_fs/kernel/Documentation/ABI/testing/
H A Dsysfs-pps1 What: /sys/class/pps/
5 The /sys/class/pps/ directory will contain files and
9 What: /sys/class/pps/ppsX/
13 The /sys/class/pps/ppsX/ directory is related to X-th
17 What: /sys/class/pps/ppsX/assert
21 The /sys/class/pps/ppsX/assert file reports the assert events
29 What: /sys/class/pps/ppsX/clear
33 The /sys/class/pps/ppsX/clear file reports the clear events
41 What: /sys/class/pps/ppsX/mode
45 The /sys/class/pps/ppsX/mode file reports the functioning
[all …]
/OK3568_Linux_fs/kernel/drivers/staging/media/allegro-dvt/
H A Dnal-h264.c679 static void nal_h264_rbsp_pps(struct rbsp *rbsp, struct nal_h264_pps *pps) in nal_h264_rbsp_pps() argument
683 rbsp_uev(rbsp, &pps->pic_parameter_set_id); in nal_h264_rbsp_pps()
684 rbsp_uev(rbsp, &pps->seq_parameter_set_id); in nal_h264_rbsp_pps()
685 rbsp_bit(rbsp, &pps->entropy_coding_mode_flag); in nal_h264_rbsp_pps()
686 rbsp_bit(rbsp, &pps->bottom_field_pic_order_in_frame_present_flag); in nal_h264_rbsp_pps()
687 rbsp_uev(rbsp, &pps->num_slice_groups_minus1); in nal_h264_rbsp_pps()
688 if (pps->num_slice_groups_minus1 > 0) { in nal_h264_rbsp_pps()
689 rbsp_uev(rbsp, &pps->slice_group_map_type); in nal_h264_rbsp_pps()
690 switch (pps->slice_group_map_type) { in nal_h264_rbsp_pps()
692 for (i = 0; i < pps->num_slice_groups_minus1; i++) in nal_h264_rbsp_pps()
[all …]
/OK3568_Linux_fs/external/mpp/mpp/codec/dec/h264/
H A Dh264d_pps.c35 static MPP_RET parse_pps_calingLists(BitReadCtx_t *p_bitctx, H264_SPS_t *sps, H264_PPS_t *pps) in parse_pps_calingLists() argument
41 READ_ONEBIT(p_bitctx, &pps->pic_scaling_list_present_flag[i]); in parse_pps_calingLists()
43 if (pps->pic_scaling_list_present_flag[i]) { in parse_pps_calingLists()
45pps->ScalingList4x4[i], &pps->UseDefaultScalingMatrix4x4Flag[i])); in parse_pps_calingLists()
48 if (pps->transform_8x8_mode_flag) { in parse_pps_calingLists()
50 READ_ONEBIT(p_bitctx, &pps->pic_scaling_list_present_flag[i + 6]); in parse_pps_calingLists()
51 if (pps->pic_scaling_list_present_flag[i + 6]) { in parse_pps_calingLists()
53pps->ScalingList8x8[i], &pps->UseDefaultScalingMatrix8x8Flag[i])); in parse_pps_calingLists()
136 H264_PPS_t *cur_pps = &p_Cur->pps; in process_pps()
162 MPP_RET activate_pps(H264dVideoCtx_t *p_Vid, H264_PPS_t *pps) in activate_pps() argument
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/i915/display/
H A Dintel_lvds.c154 struct intel_lvds_pps *pps) in intel_lvds_pps_get_hw_state() argument
158 pps->powerdown_on_reset = intel_de_read(dev_priv, PP_CONTROL(0)) & PANEL_POWER_RESET; in intel_lvds_pps_get_hw_state()
161 pps->port = REG_FIELD_GET(PANEL_PORT_SELECT_MASK, val); in intel_lvds_pps_get_hw_state()
162 pps->t1_t2 = REG_FIELD_GET(PANEL_POWER_UP_DELAY_MASK, val); in intel_lvds_pps_get_hw_state()
163 pps->t5 = REG_FIELD_GET(PANEL_LIGHT_ON_DELAY_MASK, val); in intel_lvds_pps_get_hw_state()
166 pps->t3 = REG_FIELD_GET(PANEL_POWER_DOWN_DELAY_MASK, val); in intel_lvds_pps_get_hw_state()
167 pps->tx = REG_FIELD_GET(PANEL_LIGHT_OFF_DELAY_MASK, val); in intel_lvds_pps_get_hw_state()
170 pps->divider = REG_FIELD_GET(PP_REFERENCE_DIVIDER_MASK, val); in intel_lvds_pps_get_hw_state()
180 pps->t4 = val * 1000; in intel_lvds_pps_get_hw_state()
183 pps->t1_t2 == 0 && pps->t5 == 0 && pps->t3 == 0 && pps->tx == 0) { in intel_lvds_pps_get_hw_state()
[all …]
/OK3568_Linux_fs/kernel/drivers/staging/media/hantro/
H A Dhantro_g1_h264_dec.c27 const struct v4l2_ctrl_h264_pps *pps = ctrls->pps; in set_params() local
59 reg = G1_REG_DEC_CTRL2_CH_QP_OFFSET(pps->chroma_qp_index_offset) | in set_params()
60 G1_REG_DEC_CTRL2_CH_QP_OFFSET2(pps->second_chroma_qp_index_offset); in set_params()
62 if (pps->flags & V4L2_H264_PPS_FLAG_SCALING_MATRIX_PRESENT) in set_params()
70 G1_REG_DEC_CTRL3_INIT_QP(pps->pic_init_qp_minus26 + 26) | in set_params()
77 G1_REG_DEC_CTRL4_WEIGHT_BIPR_IDC(pps->weighted_bipred_idc); in set_params()
78 if (pps->flags & V4L2_H264_PPS_FLAG_ENTROPY_CODING_MODE) in set_params()
84 if (pps->flags & V4L2_H264_PPS_FLAG_WEIGHTED_PRED) in set_params()
91 if (pps->flags & V4L2_H264_PPS_FLAG_CONSTRAINED_INTRA_PRED) in set_params()
93 if (pps->flags & V4L2_H264_PPS_FLAG_DEBLOCKING_FILTER_CONTROL_PRESENT) in set_params()
[all …]
/OK3568_Linux_fs/external/xserver/hw/xwin/
H A DwinSetAppUserModelID.c86 IPropertyStore *pps = NULL; in winSetAppUserModelID() local
96 (void **) &pps); in winSetAppUserModelID()
97 if (SUCCEEDED(hr) && pps) { in winSetAppUserModelID()
105 pps->lpVtbl->SetValue(pps, &PKEY_AppUserModel_ID, &pv); in winSetAppUserModelID()
108 pps->lpVtbl->Release(pps); in winSetAppUserModelID()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/dsc/
H A Drc_calc.c319 void calc_rc_params(struct rc_params *rc, const struct drm_dsc_config *pps) in calc_rc_params() argument
324 u16 drm_bpp = pps->bits_per_pixel; in calc_rc_params()
325 int slice_width = pps->slice_width; in calc_rc_params()
326 int slice_height = pps->slice_height; in calc_rc_params()
328 mode = pps->convert_rgb ? CM_RGB : (pps->simple_422 ? CM_444 : in calc_rc_params()
329 (pps->native_422 ? CM_422 : in calc_rc_params()
330 pps->native_420 ? CM_420 : CM_444)); in calc_rc_params()
331 bpc = (pps->bits_per_component == 8) ? BPC_8 : (pps->bits_per_component == 10) in calc_rc_params()
334 is_navite_422_or_420 = pps->native_422 || pps->native_420; in calc_rc_params()
339 pps->dsc_version_minor); in calc_rc_params()
[all …]
/OK3568_Linux_fs/kernel/drivers/staging/media/sunxi/cedrus/
H A Dcedrus_h265.c249 const struct v4l2_ctrl_hevc_pps *pps; in cedrus_h265_setup() local
260 pps = run->h265.pps; in cedrus_h265_setup()
397 reg = VE_DEC_H265_DEC_PPS_CTRL0_PPS_CR_QP_OFFSET(pps->pps_cr_qp_offset) | in cedrus_h265_setup()
398 VE_DEC_H265_DEC_PPS_CTRL0_PPS_CB_QP_OFFSET(pps->pps_cb_qp_offset) | in cedrus_h265_setup()
399 VE_DEC_H265_DEC_PPS_CTRL0_INIT_QP_MINUS26(pps->init_qp_minus26) | in cedrus_h265_setup()
400 VE_DEC_H265_DEC_PPS_CTRL0_DIFF_CU_QP_DELTA_DEPTH(pps->diff_cu_qp_delta_depth); in cedrus_h265_setup()
404 pps->flags); in cedrus_h265_setup()
408 pps->flags); in cedrus_h265_setup()
412 pps->flags); in cedrus_h265_setup()
416 pps->flags); in cedrus_h265_setup()
[all …]

12345678910