Home
last modified time | relevance | path

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

12345678910>>...12

/linux/drivers/gpu/drm/amd/display/dc/dcn20/
A Ddcn20_dsc.c203 dsc_log_pps(dsc, &dsc20->reg_vals.pps); in dsc2_set_config()
223 dsc_log_pps(dsc, &dsc_reg_vals.pps); in dsc2_get_packed_pps()
282 int bits_per_pixel = pps->bits_per_pixel; in dsc_log_pps()
533 reg_vals->pps = dsc_params->pps; in dsc_update_from_dsc_parameters()
537 reg_vals->pps.rc_buf_thresh[i] = reg_vals->pps.rc_buf_thresh[i] >> 6; in dsc_update_from_dsc_parameters()
559 PIC_WIDTH, reg_vals->pps.pic_width, in dsc_write_to_registers()
560 PIC_HEIGHT, reg_vals->pps.pic_height); in dsc_write_to_registers()
601 PIC_WIDTH, reg_vals->pps.pic_width, in dsc_write_to_registers()
602 PIC_HEIGHT, reg_vals->pps.pic_height); in dsc_write_to_registers()
605 SLICE_WIDTH, reg_vals->pps.slice_width, in dsc_write_to_registers()
[all …]
/linux/drivers/pps/
A Dpps.c61 ev != pps->last_ev); in pps_cdev_pps_fetch()
73 pps->queue, in pps_cdev_pps_fetch()
74 ev != pps->last_ev, in pps_cdev_pps_fetch()
106 params = pps->params; in pps_cdev_ioctl()
142 pps->params = params; in pps_cdev_ioctl()
344 kfree(pps); in pps_device_destruct()
366 pps->id = err; in pps_register_cdev()
372 pps->cdev.owner = pps->info.owner; in pps_register_cdev()
377 pps->info.name, MAJOR(pps_devt), pps->id); in pps_register_cdev()
380 pps->dev = device_create(pps_class, pps->info.dev, devt, pps, in pps_register_cdev()
[all …]
A Dkapi.c68 struct pps_device *pps; in pps_register_source() local
87 if (pps == NULL) { in pps_register_source()
97 pps->info = *info; in pps_register_source()
117 return pps; in pps_register_source()
120 kfree(pps); in pps_register_source()
138 pps_kc_remove(pps); in pps_unregister_source()
178 pps->info.echo(pps, event, data); in pps_event()
181 pps->current_mode = pps->params.mode; in pps_event()
204 pps->clear_sequence++; in pps_event()
206 pps->clear_sequence); in pps_event()
[all …]
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()
51 return sprintf(buf, "%4x\n", pps->info.mode); in mode_show()
69 return sprintf(buf, "%s\n", pps->info.name); in name_show()
[all …]
A Dkc.c42 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()
86 dev_info(pps->dev, "unbound kernel consumer" in pps_kc_remove()
[all …]
A D.built-in.a.cmd1pps/built-in.a := echo >/dev/null; rm -f drivers/pps/built-in.a; /usr/bin/ccache /home/test/worksp…
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
/linux/drivers/gpu/drm/amd/display/dc/dsc/
A Drc_calc.c45 u16 drm_bpp = pps->bits_per_pixel; in calc_rc_params()
46 int slice_width = pps->slice_width; in calc_rc_params()
47 int slice_height = pps->slice_height; in calc_rc_params()
49 mode = pps->convert_rgb ? CM_RGB : (pps->simple_422 ? CM_444 : in calc_rc_params()
50 (pps->native_422 ? CM_422 : in calc_rc_params()
52 bpc = (pps->bits_per_component == 8) ? BPC_8 : (pps->bits_per_component == 10) in calc_rc_params()
55 is_navite_422_or_420 = pps->native_422 || pps->native_420; in calc_rc_params()
60 pps->dsc_version_minor); in calc_rc_params()
81 u16 drm_bpp = pps->bits_per_pixel; in calc_dsc_bytes_per_pixel()
82 int slice_width = pps->slice_width; in calc_dsc_bytes_per_pixel()
[all …]
A Drc_calc_dpi.c98 int dscc_compute_dsc_parameters(const struct drm_dsc_config *pps, struct dsc_parameters *dsc_params) in dscc_compute_dsc_parameters() argument
104 dsc_params->bytes_per_pixel = calc_dsc_bytes_per_pixel(pps); in dscc_compute_dsc_parameters()
106 calc_rc_params(&rc, pps); in dscc_compute_dsc_parameters()
107 dsc_params->pps = *pps; in dscc_compute_dsc_parameters()
108 …dsc_params->pps.initial_scale_value = 8 * rc.rc_model_size / (rc.rc_model_size - rc.initial_fullne… in dscc_compute_dsc_parameters()
110 copy_pps_fields(&dsc_cfg, &dsc_params->pps); in dscc_compute_dsc_parameters()
113 dsc_cfg.mux_word_size = dsc_params->pps.bits_per_component <= 10 ? 48 : 64; in dscc_compute_dsc_parameters()
117 copy_pps_fields(&dsc_params->pps, &dsc_cfg); in dscc_compute_dsc_parameters()
/linux/drivers/gpu/drm/i915/display/
A Dintel_pps.c138 intel_dp->pps.active_pipe != in vlv_find_free_pps()
139 intel_dp->pps.pps_pipe); in vlv_find_free_pps()
171 intel_dp->pps.active_pipe != intel_dp->pps.pps_pipe); in vlv_power_sequencer_pipe()
174 return intel_dp->pps.pps_pipe; in vlv_power_sequencer_pipe()
186 intel_dp->pps.pps_pipe = pipe; in vlv_power_sequencer_pipe()
204 return intel_dp->pps.pps_pipe; in vlv_power_sequencer_pipe()
218 if (!intel_dp->pps.pps_reset) in bxt_power_sequencer_idx()
221 intel_dp->pps.pps_reset = false; in bxt_power_sequencer_idx()
344 intel_dp->pps.pps_reset = true; in intel_pps_reset_all()
711 struct intel_dp *intel_dp = container_of(pps, struct intel_dp, pps); in edp_panel_vdd_work()
[all …]
A Dintel_lvds.c158 struct intel_lvds_pps *pps) in intel_lvds_pps_get_hw_state() argument
184 pps->t4 = val * 1000; in intel_lvds_pps_get_hw_state()
187 pps->t1_t2 == 0 && pps->t5 == 0 && pps->t3 == 0 && pps->tx == 0) { in intel_lvds_pps_get_hw_state()
192 pps->t1_t2 = 40 * 10; in intel_lvds_pps_get_hw_state()
193 pps->t5 = 200 * 10; in intel_lvds_pps_get_hw_state()
195 pps->t3 = 35 * 10; in intel_lvds_pps_get_hw_state()
196 pps->tx = 200 * 10; in intel_lvds_pps_get_hw_state()
201 pps->t1_t2, pps->t3, pps->t4, pps->t5, pps->tx, in intel_lvds_pps_get_hw_state()
202 pps->divider, pps->port, pps->powerdown_on_reset); in intel_lvds_pps_get_hw_state()
206 struct intel_lvds_pps *pps) in intel_lvds_pps_init_hw() argument
[all …]
/linux/drivers/pps/clients/
A Dpps-ldisc.c18 struct pps_device *pps; in pps_tty_dcd_change() local
23 pps = pps_lookup_dev(tty); in pps_tty_dcd_change()
28 if (WARN_ON_ONCE(pps == NULL)) in pps_tty_dcd_change()
46 struct pps_device *pps; in pps_tty_open() local
59 if (IS_ERR(pps)) { in pps_tty_open()
61 return PTR_ERR(pps); in pps_tty_open()
63 pps->lookup_cookie = tty; in pps_tty_open()
77 pps_unregister_source(pps); in pps_tty_open()
89 if (WARN_ON(!pps)) in pps_tty_close()
92 dev_info(pps->dev, "removed\n"); in pps_tty_close()
[all …]
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()
A Dpps-gpio.c29 struct pps_device *pps; /* PPS source device */ member
58 pps_event(info->pps, &ts, PPS_CAPTUREASSERT, data); in pps_gpio_irq_handler()
62 pps_event(info->pps, &ts, PPS_CAPTURECLEAR, data); in pps_gpio_irq_handler()
75 if (pps->params.mode & PPS_ECHOASSERT) in pps_gpio_echo()
80 if (pps->params.mode & PPS_ECHOCLEAR) in pps_gpio_echo()
86 if (info->pps->params.mode & (PPS_ECHOASSERT | PPS_ECHOCLEAR)) { in pps_gpio_echo()
202 if (IS_ERR(data->pps)) { in pps_gpio_probe()
205 return PTR_ERR(data->pps); in pps_gpio_probe()
212 pps_unregister_source(data->pps); in pps_gpio_probe()
217 dev_info(data->pps->dev, "Registered IRQ %d as PPS source\n", in pps_gpio_probe()
[all …]
A Dpps_parport.c41 struct pps_device *pps; /* PPS device */ member
84 dev_err(dev->pps->dev, "lost the signal\n"); in parport_irq()
101 dev_err(dev->pps->dev, "disabled clear edge capture after %d" in parport_irq()
109 pps_event(dev->pps, &ts_assert, in parport_irq()
115 pps_event(dev->pps, &ts_assert, in parport_irq()
118 pps_event(dev->pps, &ts_clear, in parport_irq()
170 device->pps = pps_register_source(&info, in parport_attach()
172 if (IS_ERR(device->pps)) { in parport_attach()
208 pps_unregister_source(device->pps); in parport_detach()
/linux/drivers/media/platform/allegro-dvt/
A Dnal-hevc.c443 rbsp_sev(rbsp, &pps->init_qp_minus26); in nal_hevc_rbsp_pps()
447 if (pps->cu_qp_delta_enabled_flag) in nal_hevc_rbsp_pps()
457 if (pps->tiles_enabled_flag) { in nal_hevc_rbsp_pps()
461 if (!pps->uniform_spacing_flag) { in nal_hevc_rbsp_pps()
486 if (pps->pps_extension_present_flag) { in nal_hevc_rbsp_pps()
493 if (pps->pps_range_extension_flag) in nal_hevc_rbsp_pps()
497 if (pps->pps_3d_extension_flag) in nal_hevc_rbsp_pps()
499 if (pps->pps_scc_extension_flag) in nal_hevc_rbsp_pps()
501 if (pps->pps_extension_4bits) in nal_hevc_rbsp_pps()
731 nal_hevc_rbsp_pps(&rbsp, pps); in nal_hevc_write_pps()
[all …]
A Dnal-h264.c292 if (pps->num_slice_groups_minus1 > 0) { in nal_h264_rbsp_pps()
294 switch (pps->slice_group_map_type) { in nal_h264_rbsp_pps()
301 rbsp_uev(rbsp, &pps->top_left[i]); in nal_h264_rbsp_pps()
302 rbsp_uev(rbsp, &pps->bottom_right[i]); in nal_h264_rbsp_pps()
314 &pps->slice_group_id[i]); in nal_h264_rbsp_pps()
322 rbsp_bit(rbsp, &pps->weighted_pred_flag); in nal_h264_rbsp_pps()
324 rbsp_sev(rbsp, &pps->pic_init_qp_minus26); in nal_h264_rbsp_pps()
325 rbsp_sev(rbsp, &pps->pic_init_qs_minus26); in nal_h264_rbsp_pps()
333 if (pps->pic_scaling_matrix_present_flag) in nal_h264_rbsp_pps()
464 nal_h264_rbsp_pps(&rbsp, pps); in nal_h264_write_pps()
[all …]
/linux/drivers/staging/media/hantro/
A Dhantro_g2_hevc_dec.c29 const struct v4l2_ctrl_hevc_pps *pps = ctrls->pps; in prepare_tile_info_buffer() local
32 unsigned int num_tile_rows = pps->num_tile_rows_minus1 + 1; in prepare_tile_info_buffer()
71 h = pps->row_height_minus1[i] + 1; in prepare_tile_info_buffer()
76 tmp_w += pps->column_width_minus1[j] + 1; in prepare_tile_info_buffer()
77 *p++ = pps->column_width_minus1[j + 1]; in prepare_tile_info_buffer()
100 (pps->column_width_minus1[0] + 1) == 1 && in prepare_tile_info_buffer()
124 const struct v4l2_ctrl_hevc_pps *pps = ctrls->pps; in set_params() local
225 pps->log2_parallel_merge_level_minus2 + 2); in set_params()
266 pps->num_ref_idx_l0_default_active_minus1 + 1); in set_params()
268 pps->num_ref_idx_l1_default_active_minus1 + 1); in set_params()
[all …]
A Dhantro_g1_h264_dec.c27 const struct v4l2_ctrl_h264_pps *pps = ctrls->pps; in set_params() local
58 reg = G1_REG_DEC_CTRL2_CH_QP_OFFSET(pps->chroma_qp_index_offset) | in set_params()
61 if (pps->flags & V4L2_H264_PPS_FLAG_SCALING_MATRIX_PRESENT) in set_params()
69 G1_REG_DEC_CTRL3_INIT_QP(pps->pic_init_qp_minus26 + 26) | in set_params()
76 G1_REG_DEC_CTRL4_WEIGHT_BIPR_IDC(pps->weighted_bipred_idc); in set_params()
77 if (pps->flags & V4L2_H264_PPS_FLAG_ENTROPY_CODING_MODE) in set_params()
83 if (pps->flags & V4L2_H264_PPS_FLAG_WEIGHTED_PRED) in set_params()
90 if (pps->flags & V4L2_H264_PPS_FLAG_CONSTRAINED_INTRA_PRED) in set_params()
94 if (pps->flags & V4L2_H264_PPS_FLAG_REDUNDANT_PIC_CNT_PRESENT) in set_params()
96 if (pps->flags & V4L2_H264_PPS_FLAG_TRANSFORM_8X8_MODE) in set_params()
[all …]
/linux/Documentation/ABI/testing/
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
29 What: /sys/class/pps/ppsX/clear
41 What: /sys/class/pps/ppsX/mode
48 Please, refer to linux/include/linux/pps.h for further
51 What: /sys/class/pps/ppsX/echo
58 What: /sys/class/pps/ppsX/name
[all …]
/linux/samples/bpf/
A Dxdp_sample_user.c61 #define PPS(pps) pps, "pkt/s" argument
124 __u64 pps; member
138 __u64 pps; member
593 __u64 pps = 0; in calc_pps() local
599 return pps; in calc_pps()
611 return pps; in calc_drop_pps()
623 return pps; in calc_errs_pps()
635 return pps; in calc_info_pps()
683 out->rx_cnt.pps = pps; in stats_get_rx_cnt()
841 if (!pps) in stats_get_redirect_cnt()
[all …]
A Dxdp_rxq_info_user.c312 __u64 pps = 0; in calc_pps() local
316 pps = packets / period_; in calc_pps()
318 return pps; in calc_pps()
325 __u64 pps = 0; in calc_errs_pps() local
329 pps = packets / period_; in calc_errs_pps()
331 return pps; in calc_errs_pps()
340 double pps = 0, err = 0; in stats_print() local
370 if (pps > 0) in stats_print()
372 i, pps, err, errstr); in stats_print()
408 if (pps > 0) in stats_print()
[all …]
/linux/drivers/staging/media/sunxi/cedrus/
A Dcedrus_h265.c309 const struct v4l2_ctrl_hevc_pps *pps; in cedrus_h265_setup() local
323 pps = run->h265.pps; in cedrus_h265_setup()
473 pps->flags); in cedrus_h265_setup()
477 pps->flags); in cedrus_h265_setup()
481 pps->flags); in cedrus_h265_setup()
485 pps->flags); in cedrus_h265_setup()
493 pps->flags); in cedrus_h265_setup()
497 pps->flags); in cedrus_h265_setup()
501 pps->flags); in cedrus_h265_setup()
507 pps->flags); in cedrus_h265_setup()
[all …]
/linux/include/linux/
A Dpps_kernel.h28 void (*echo)(struct pps_device *pps,
78 extern int pps_register_cdev(struct pps_device *pps);
79 extern void pps_unregister_cdev(struct pps_device *pps);
87 extern void pps_unregister_source(struct pps_device *pps);
88 extern void pps_event(struct pps_device *pps,
/linux/drivers/staging/media/rkvdec/
A Drkvdec-h264.c113 const struct v4l2_ctrl_h264_pps *pps; member
640 const struct v4l2_ctrl_h264_pps *pps = run->pps; in assemble_hw_pps() local
655 hw_ps = &priv_tbl->param_set[pps->pic_parameter_set_id]; in assemble_hw_pps()
690 WRITE_PPS(pps->num_ref_idx_l0_default_active_minus1, in assemble_hw_pps()
692 WRITE_PPS(pps->num_ref_idx_l1_default_active_minus1, in assemble_hw_pps()
696 WRITE_PPS(pps->weighted_bipred_idc, WEIGHTED_BIPRED_IDC); in assemble_hw_pps()
697 WRITE_PPS(pps->pic_init_qp_minus26, PIC_INIT_QP_MINUS26); in assemble_hw_pps()
698 WRITE_PPS(pps->pic_init_qs_minus26, PIC_INIT_QS_MINUS26); in assemble_hw_pps()
708 WRITE_PPS(pps->second_chroma_qp_index_offset, in assemble_hw_pps()
795 const struct v4l2_ctrl_h264_pps *pps = run->pps; in assemble_hw_scaling_list() local
[all …]

Completed in 53 milliseconds

12345678910>>...12