Home
last modified time | relevance | path

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

123456789

/linux-6.15/drivers/pps/
H A Dpps.c73 pps->queue, in pps_cdev_pps_fetch()
305 if (pps) in pps_idr_get()
309 return pps; in pps_idr_get()
316 if (!pps) in pps_cdev_open()
351 kfree(pps); in pps_device_destruct()
375 pps->dev.parent = pps->info.dev; in pps_register_cdev()
376 pps->dev.devt = MKDEV(pps_major, pps->id); in pps_register_cdev()
377 dev_set_drvdata(&pps->dev, pps); in pps_register_cdev()
378 dev_set_name(&pps->dev, "pps%d", pps->id); in pps_register_cdev()
387 pps->id); in pps_register_cdev()
[all …]
H 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 …]
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()
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 …]
H 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 …]
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
/linux-6.15/drivers/gpu/drm/amd/display/dc/dsc/dcn20/
H A Ddcn20_dsc.c200 dsc_log_pps(dsc, &dsc20->reg_vals.pps); in dsc2_set_config()
220 dsc_log_pps(dsc, &dsc_reg_vals.pps); in dsc2_get_packed_pps()
291 int bits_per_pixel = pps->bits_per_pixel; in dsc_log_pps()
438 calc_rc_params(&rc, &dsc_reg_vals->pps); in dsc_prepare_config()
575 reg_vals->pps = dsc_params->pps; in dsc_update_from_dsc_parameters()
579 reg_vals->pps.rc_buf_thresh[i] = reg_vals->pps.rc_buf_thresh[i] >> 6; in dsc_update_from_dsc_parameters()
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()
650 PIC_WIDTH, reg_vals->pps.pic_width, in dsc_write_to_registers()
651 PIC_HEIGHT, reg_vals->pps.pic_height); in dsc_write_to_registers()
[all …]
/linux-6.15/drivers/gpu/drm/amd/display/dc/dsc/dcn401/
H A Ddcn401_dsc.c152 dsc_log_pps(dsc, &dsc401->reg_vals.pps); in dsc401_set_config()
265 LINEBUF_DEPTH, reg_vals->pps.line_buf_depth, in dsc_write_to_registers()
280 CHUNK_SIZE, reg_vals->pps.slice_chunk_size); in dsc_write_to_registers()
283 PIC_WIDTH, reg_vals->pps.pic_width, in dsc_write_to_registers()
284 PIC_HEIGHT, reg_vals->pps.pic_height); in dsc_write_to_registers()
287 SLICE_WIDTH, reg_vals->pps.slice_width, in dsc_write_to_registers()
288 SLICE_HEIGHT, reg_vals->pps.slice_height); in dsc_write_to_registers()
303 NFL_BPG_OFFSET, reg_vals->pps.nfl_bpg_offset, in dsc_write_to_registers()
307 NSL_BPG_OFFSET, reg_vals->pps.nsl_bpg_offset, in dsc_write_to_registers()
312 FINAL_OFFSET, reg_vals->pps.final_offset); in dsc_write_to_registers()
[all …]
/linux-6.15/drivers/gpu/drm/i915/display/
H A Dintel_pps.c32 struct intel_pps *pps = &intel_dp->pps; in pps_name() local
35 switch (pps->vlv_pps_pipe) { in pps_name()
47 MISSING_CASE(pps->vlv_pps_pipe); in pps_name()
51 switch (pps->pps_idx) { in pps_name()
57 MISSING_CASE(pps->pps_idx); in pps_name()
74 mutex_lock(&display->pps.mutex); in intel_pps_lock()
216 intel_dp->pps.vlv_active_pipe != intel_dp->pps.vlv_pps_pipe); in vlv_power_sequencer_pipe()
418 intel_dp->pps.pps_idx = 0; in pps_initial_setup()
421 intel_dp->pps.pps_idx = -1; in pps_initial_setup()
887 struct intel_dp *intel_dp = container_of(pps, struct intel_dp, pps); in edp_panel_vdd_work()
[all …]
H A Dintel_lvds.c159 struct intel_lvds_pps *pps) in intel_lvds_pps_get_hw_state() argument
189 pps->delays.power_up == 0 && in intel_lvds_pps_get_hw_state()
191 pps->delays.power_down == 0 && in intel_lvds_pps_get_hw_state()
197 pps->delays.power_up = 40 * 10; in intel_lvds_pps_get_hw_state()
200 pps->delays.power_down = 35 * 10; in intel_lvds_pps_get_hw_state()
206 pps->delays.power_up, pps->delays.power_down, in intel_lvds_pps_get_hw_state()
207 pps->delays.power_cycle, pps->delays.backlight_on, in intel_lvds_pps_get_hw_state()
208 pps->delays.backlight_off, pps->divider, in intel_lvds_pps_get_hw_state()
209 pps->port, pps->powerdown_on_reset); in intel_lvds_pps_get_hw_state()
213 struct intel_lvds_pps *pps) in intel_lvds_pps_init_hw() argument
[all …]
H A Dintel_vdsc_regs.h58 #define DSCA_PPS(pps) _MMIO(_DSCA_PPS_0 + ((pps) < 12 ? (pps) : (pps) + 12) * 4) argument
59 #define DSCC_PPS(pps) _MMIO(_DSCC_PPS_0 + ((pps) < 12 ? (pps) : (pps) + 12) * 4) argument
81 #define ICL_DSC0_PPS(pipe, pps) _MMIO(_ICL_DSC0_PPS_0(pipe) + ((pps) * 4)) argument
82 #define ICL_DSC1_PPS(pipe, pps) _MMIO(_ICL_DSC1_PPS_0(pipe) + ((pps) * 4)) argument
83 #define BMG_DSC2_PPS(pipe, pps) _MMIO(_BMG_DSC2_PPS_0(pipe) + ((pps) * 4)) argument
/linux-6.15/drivers/gpu/drm/amd/display/dc/dsc/
H A Drc_calc.c40 void calc_rc_params(struct rc_params *rc, const struct drm_dsc_config *pps) in calc_rc_params() argument
46 u16 drm_bpp = pps->bits_per_pixel; in calc_rc_params()
47 int slice_width = pps->slice_width; in calc_rc_params()
48 int slice_height = pps->slice_height; in calc_rc_params()
50 mode = pps->convert_rgb ? CM_RGB : (pps->simple_422 ? CM_444 : in calc_rc_params()
51 (pps->native_422 ? CM_422 : in calc_rc_params()
52 pps->native_420 ? CM_420 : CM_444)); in calc_rc_params()
53 bpc = (pps->bits_per_component == 8) ? BPC_8 : (pps->bits_per_component == 10) in calc_rc_params()
56 is_navite_422_or_420 = pps->native_422 || pps->native_420; in calc_rc_params()
61 pps->dsc_version_minor); in calc_rc_params()
/linux-6.15/drivers/pps/clients/
H 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 …]
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_dbg(&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_dbg(&pps->dev, "ktimer PPS source registered\n"); in pps_ktimer_init()
H A Dpps-gpio.c29 struct pps_device *pps; /* PPS source device */ member
60 pps_event(info->pps, &ts, PPS_CAPTUREASSERT, data); in pps_gpio_irq_handler()
64 pps_event(info->pps, &ts, PPS_CAPTURECLEAR, data); in pps_gpio_irq_handler()
79 if (pps->params.mode & PPS_ECHOASSERT) in pps_gpio_echo()
84 if (pps->params.mode & PPS_ECHOCLEAR) in pps_gpio_echo()
90 if (info->pps->params.mode & (PPS_ECHOASSERT | PPS_ECHOCLEAR)) { in pps_gpio_echo()
206 if (IS_ERR(data->pps)) { in pps_gpio_probe()
209 return PTR_ERR(data->pps); in pps_gpio_probe()
216 pps_unregister_source(data->pps); in pps_gpio_probe()
221 dev_dbg(&data->pps->dev, "Registered IRQ %d as PPS source\n", in pps_gpio_probe()
[all …]
H 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()
173 device->pps = pps_register_source(&info, in parport_attach()
175 if (IS_ERR(device->pps)) { in parport_attach()
212 pps_unregister_source(device->pps); in parport_detach()
/linux-6.15/drivers/media/platform/allegro-dvt/
H 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 …]
H 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.15/drivers/media/platform/verisilicon/
H A Dhantro_g2_hevc_dec.c15 const struct v4l2_ctrl_hevc_pps *pps = ctrls->pps; in prepare_tile_info_buffer() local
57 h = pps->row_height_minus1[i] + 1; in prepare_tile_info_buffer()
62 tmp_w += pps->column_width_minus1[j] + 1; in prepare_tile_info_buffer()
63 *p++ = pps->column_width_minus1[j] + 1; in prepare_tile_info_buffer()
86 (pps->column_width_minus1[0] + 1) == 1 && in prepare_tile_info_buffer()
111 const struct v4l2_ctrl_hevc_pps *pps = ctrls->pps; in compute_header_skip_length() local
145 const struct v4l2_ctrl_hevc_pps *pps = ctrls->pps; in set_params() local
239 pps->log2_parallel_merge_level_minus2 + 2); in set_params()
280 pps->num_ref_idx_l0_default_active_minus1 + 1); in set_params()
282 pps->num_ref_idx_l1_default_active_minus1 + 1); in set_params()
[all …]
H 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.15/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
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 …]
H A Dsysfs-pps-gen1 What: /sys/class/pps-gen/
6 The /sys/class/pps-gen/ directory contains files and
10 What: /sys/class/pps-gen/pps-genX/
15 The /sys/class/pps-gen/pps-genX/ directory is related to X-th
19 What: /sys/class/pps-gen/pps-genX/enable
27 What: /sys/class/pps-gen/pps-genX/system
36 What: /sys/class/pps-gen/pps-genX/time
/linux-6.15/samples/bpf/
H 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 …]
/linux-6.15/drivers/staging/media/sunxi/cedrus/
H A Dcedrus_h265.c370 pps = run->h265.pps; in cedrus_h265_write_tiles()
440 pps = run->h265.pps; in cedrus_h265_setup()
622 pps->flags); in cedrus_h265_setup()
626 pps->flags); in cedrus_h265_setup()
630 pps->flags); in cedrus_h265_setup()
634 pps->flags); in cedrus_h265_setup()
642 pps->flags); in cedrus_h265_setup()
646 pps->flags); in cedrus_h265_setup()
650 pps->flags); in cedrus_h265_setup()
654 pps->flags); in cedrus_h265_setup()
[all …]
/linux-6.15/include/linux/
H A Dpps_kernel.h28 void (*echo)(struct pps_device *pps,
77 extern int pps_register_cdev(struct pps_device *pps);
78 extern void pps_unregister_cdev(struct pps_device *pps);
86 extern void pps_unregister_source(struct pps_device *pps);
87 extern void pps_event(struct pps_device *pps,
/linux-6.15/Documentation/devicetree/bindings/pps/
H A Dpps-gpio.yaml4 $id: http://devicetree.org/schemas/pps/pps-gpio.yaml#
14 const: pps-gpio
41 pps {
42 compatible = "pps-gpio";

123456789