Home
last modified time | relevance | path

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

12345678

/linux-6.3-rc2/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 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-6.3-rc2/drivers/gpu/drm/amd/display/dc/dcn20/
A Ddcn20_dsc.c209 dsc_log_pps(dsc, &dsc20->reg_vals.pps); in dsc2_set_config()
229 dsc_log_pps(dsc, &dsc_reg_vals.pps); in dsc2_get_packed_pps()
297 int bits_per_pixel = pps->bits_per_pixel; in dsc_log_pps()
444 calc_rc_params(&rc, &dsc_reg_vals->pps); in dsc_prepare_config()
581 reg_vals->pps = dsc_params->pps; in dsc_update_from_dsc_parameters()
585 reg_vals->pps.rc_buf_thresh[i] = reg_vals->pps.rc_buf_thresh[i] >> 6; in dsc_update_from_dsc_parameters()
607 PIC_WIDTH, reg_vals->pps.pic_width, in dsc_write_to_registers()
608 PIC_HEIGHT, reg_vals->pps.pic_height); in dsc_write_to_registers()
656 PIC_WIDTH, reg_vals->pps.pic_width, in dsc_write_to_registers()
657 PIC_HEIGHT, reg_vals->pps.pic_height); in dsc_write_to_registers()
[all …]
/linux-6.3-rc2/drivers/gpu/drm/i915/display/
A Dintel_pps.c26 struct intel_pps *pps) in pps_name() argument
29 switch (pps->pps_pipe) { in pps_name()
41 MISSING_CASE(pps->pps_pipe); in pps_name()
45 switch (pps->pps_idx) { in pps_name()
51 MISSING_CASE(pps->pps_idx); in pps_name()
209 intel_dp->pps.active_pipe != intel_dp->pps.pps_pipe); in vlv_power_sequencer_pipe()
255 if (!intel_dp->pps.pps_reset) in bxt_power_sequencer_idx()
404 intel_dp->pps.pps_idx = 0; in pps_initial_setup()
407 intel_dp->pps.pps_idx = -1; in pps_initial_setup()
857 struct intel_dp *intel_dp = container_of(pps, struct intel_dp, pps); in edp_panel_vdd_work()
[all …]
A Dintel_lvds.c159 struct intel_lvds_pps *pps) in intel_lvds_pps_get_hw_state() argument
185 pps->t4 = val * 1000; in intel_lvds_pps_get_hw_state()
188 pps->t1_t2 == 0 && pps->t5 == 0 && pps->t3 == 0 && pps->tx == 0) { in intel_lvds_pps_get_hw_state()
193 pps->t1_t2 = 40 * 10; in intel_lvds_pps_get_hw_state()
194 pps->t5 = 200 * 10; in intel_lvds_pps_get_hw_state()
196 pps->t3 = 35 * 10; in intel_lvds_pps_get_hw_state()
197 pps->tx = 200 * 10; in intel_lvds_pps_get_hw_state()
202 pps->t1_t2, pps->t3, pps->t4, pps->t5, pps->tx, in intel_lvds_pps_get_hw_state()
203 pps->divider, pps->port, pps->powerdown_on_reset); in intel_lvds_pps_get_hw_state()
207 struct intel_lvds_pps *pps) in intel_lvds_pps_init_hw() argument
[all …]
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dsc/
A Drc_calc.c40 void calc_rc_params(struct rc_params *rc, const struct drm_dsc_config *pps) in calc_rc_params() argument
45 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()
51 pps->native_420 ? CM_420 : CM_444)); 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()
A Drc_calc_dpi.c98 int dscc_compute_dsc_parameters(const struct drm_dsc_config *pps, in dscc_compute_dsc_parameters() argument
106 dsc_params->pps = *pps; in dscc_compute_dsc_parameters()
107 …dsc_params->pps.initial_scale_value = 8 * rc->rc_model_size / (rc->rc_model_size - rc->initial_ful… in dscc_compute_dsc_parameters()
109 copy_pps_fields(&dsc_cfg, &dsc_params->pps); in dscc_compute_dsc_parameters()
112 dsc_cfg.mux_word_size = dsc_params->pps.bits_per_component <= 10 ? 48 : 64; in dscc_compute_dsc_parameters()
119 copy_pps_fields(&dsc_params->pps, &dsc_cfg); in dscc_compute_dsc_parameters()
/linux-6.3-rc2/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()
A DMakefile6 obj-$(CONFIG_PPS_CLIENT_KTIMER) += pps-ktimer.o
7 obj-$(CONFIG_PPS_CLIENT_LDISC) += pps-ldisc.o
9 obj-$(CONFIG_PPS_CLIENT_GPIO) += pps-gpio.o
/linux-6.3-rc2/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-6.3-rc2/drivers/media/platform/verisilicon/
A Dhantro_g2_hevc_dec.c29 const struct v4l2_ctrl_hevc_pps *pps = ctrls->pps; in prepare_tile_info_buffer() local
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()
125 const struct v4l2_ctrl_hevc_pps *pps = ctrls->pps; in compute_header_skip_length() local
159 const struct v4l2_ctrl_hevc_pps *pps = ctrls->pps; in set_params() local
253 pps->log2_parallel_merge_level_minus2 + 2); in set_params()
294 pps->num_ref_idx_l0_default_active_minus1 + 1); in set_params()
296 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-6.3-rc2/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-6.3-rc2/samples/bpf/
A Dxdp_sample_user.c60 #define PPS(pps) pps, "pkt/s" argument
123 __u64 pps; member
137 __u64 pps; member
592 __u64 pps = 0; in calc_pps() local
598 return pps; in calc_pps()
610 return pps; in calc_drop_pps()
622 return pps; in calc_errs_pps()
634 return pps; in calc_info_pps()
682 out->rx_cnt.pps = pps; in stats_get_rx_cnt()
840 if (!pps) in stats_get_redirect_cnt()
[all …]
A Dxdp_rxq_info_user.c321 __u64 pps = 0; in calc_pps() local
325 pps = packets / period_; in calc_pps()
327 return pps; in calc_pps()
334 __u64 pps = 0; in calc_errs_pps() local
338 pps = packets / period_; in calc_errs_pps()
340 return pps; in calc_errs_pps()
349 double pps = 0, err = 0; in stats_print() local
379 if (pps > 0) in stats_print()
381 i, pps, err, errstr); in stats_print()
417 if (pps > 0) in stats_print()
[all …]
/linux-6.3-rc2/drivers/staging/media/sunxi/cedrus/
A Dcedrus_h265.c370 pps = run->h265.pps; in cedrus_h265_write_tiles()
440 pps = run->h265.pps; in cedrus_h265_setup()
624 pps->flags); in cedrus_h265_setup()
628 pps->flags); in cedrus_h265_setup()
632 pps->flags); in cedrus_h265_setup()
636 pps->flags); in cedrus_h265_setup()
644 pps->flags); in cedrus_h265_setup()
648 pps->flags); in cedrus_h265_setup()
652 pps->flags); in cedrus_h265_setup()
656 pps->flags); in cedrus_h265_setup()
[all …]
/linux-6.3-rc2/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-6.3-rc2/net/netfilter/
A Dxt_rateest.c26 pps1 = info->pps1 >= sample.pps ? info->pps1 - sample.pps : 0; in xt_rateest_mt()
29 pps1 = sample.pps; in xt_rateest_mt()
40 pps2 = info->pps2 >= sample.pps ? info->pps2 - sample.pps : 0; in xt_rateest_mt()
43 pps2 = sample.pps; in xt_rateest_mt()

Completed in 51 milliseconds

12345678