Home
last modified time | relevance | path

Searched refs:pstate (Results 1 - 25 of 357) sorted by relevance

12345678910>>...15

/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/subdev/clk/
H A Dbase.c42 u8 pstate, u8 domain, u32 input) in nvkm_clk_adjust()
49 data = nvbios_boostEm(bios, pstate, &ver, &hdr, &cnt, &len, &boostE); in nvkm_clk_adjust()
112 nvkm_cstate_find_best(struct nvkm_clk *clk, struct nvkm_pstate *pstate, in nvkm_cstate_find_best() argument
119 if (!pstate || !cstate) in nvkm_cstate_find_best()
136 list_for_each_entry_from_reverse(cstate, &pstate->list, head) { in nvkm_cstate_find_best()
145 nvkm_cstate_get(struct nvkm_clk *clk, struct nvkm_pstate *pstate, int cstatei) in nvkm_cstate_get() argument
149 return list_last_entry(&pstate->list, typeof(*cstate), head); in nvkm_cstate_get()
151 list_for_each_entry(cstate, &pstate->list, head) { in nvkm_cstate_get()
160 nvkm_cstate_prog(struct nvkm_clk *clk, struct nvkm_pstate *pstate, int cstatei) in nvkm_cstate_prog() argument
169 if (!list_empty(&pstate in nvkm_cstate_prog()
41 nvkm_clk_adjust(struct nvkm_clk *clk, bool adjust, u8 pstate, u8 domain, u32 input) nvkm_clk_adjust() argument
225 nvkm_cstate_new(struct nvkm_clk *clk, int idx, struct nvkm_pstate *pstate) nvkm_cstate_new() argument
272 struct nvkm_pstate *pstate; nvkm_pstate_prog() local
304 int pstate; nvkm_pstate_work() local
347 nvkm_pstate_info(struct nvkm_clk *clk, struct nvkm_pstate *pstate) nvkm_pstate_info() argument
390 nvkm_pstate_del(struct nvkm_pstate *pstate) nvkm_pstate_del() argument
407 struct nvkm_pstate *pstate; nvkm_pstate_new() local
476 struct nvkm_pstate *pstate; nvkm_clk_ustate_update() local
630 struct nvkm_pstate *pstate, *temp; nvkm_clk_dtor() local
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/subdev/clk/
H A Dbase.c42 u8 pstate, u8 domain, u32 input) in nvkm_clk_adjust()
49 data = nvbios_boostEm(bios, pstate, &ver, &hdr, &cnt, &len, &boostE); in nvkm_clk_adjust()
112 nvkm_cstate_find_best(struct nvkm_clk *clk, struct nvkm_pstate *pstate, in nvkm_cstate_find_best() argument
119 if (!pstate || !cstate) in nvkm_cstate_find_best()
136 list_for_each_entry_from_reverse(cstate, &pstate->list, head) { in nvkm_cstate_find_best()
145 nvkm_cstate_get(struct nvkm_clk *clk, struct nvkm_pstate *pstate, int cstatei) in nvkm_cstate_get() argument
149 return list_last_entry(&pstate->list, typeof(*cstate), head); in nvkm_cstate_get()
151 list_for_each_entry(cstate, &pstate->list, head) { in nvkm_cstate_get()
160 nvkm_cstate_prog(struct nvkm_clk *clk, struct nvkm_pstate *pstate, int cstatei) in nvkm_cstate_prog() argument
169 if (!list_empty(&pstate in nvkm_cstate_prog()
41 nvkm_clk_adjust(struct nvkm_clk *clk, bool adjust, u8 pstate, u8 domain, u32 input) nvkm_clk_adjust() argument
225 nvkm_cstate_new(struct nvkm_clk *clk, int idx, struct nvkm_pstate *pstate) nvkm_cstate_new() argument
272 struct nvkm_pstate *pstate; nvkm_pstate_prog() local
304 int pstate; nvkm_pstate_work() local
346 nvkm_pstate_info(struct nvkm_clk *clk, struct nvkm_pstate *pstate) nvkm_pstate_info() argument
389 nvkm_pstate_del(struct nvkm_pstate *pstate) nvkm_pstate_del() argument
406 struct nvkm_pstate *pstate; nvkm_pstate_new() local
475 struct nvkm_pstate *pstate; nvkm_clk_ustate_update() local
627 struct nvkm_pstate *pstate, *temp; nvkm_clk_dtor() local
[all...]
/third_party/libsnd/src/G72x/
H A Dg72x.c135 { G72x_STATE *pstate ; in g72x_reader_init() local
137 if ((pstate = g72x_state_new ()) == NULL) in g72x_reader_init()
140 private_init_state (pstate) ; in g72x_reader_init()
142 pstate->encoder = NULL ; in g72x_reader_init()
146 pstate->decoder = g723_16_decoder ; in g72x_reader_init()
149 pstate->codec_bits = 2 ; in g72x_reader_init()
150 pstate->blocksize = G723_16_BYTES_PER_BLOCK ; in g72x_reader_init()
151 pstate->samplesperblock = G723_16_SAMPLES_PER_BLOCK ; in g72x_reader_init()
155 pstate->decoder = g723_24_decoder ; in g72x_reader_init()
158 pstate in g72x_reader_init()
190 { G72x_STATE *pstate ; g72x_writer_init() local
243 g72x_decode_block(G72x_STATE *pstate, const unsigned char *block, short *samples) g72x_decode_block() argument
254 g72x_encode_block(G72x_STATE *pstate, short *samples, unsigned char *block) g72x_encode_block() argument
[all...]
/kernel/linux/linux-6.6/arch/arm64/kernel/
H A Dtraps.c52 static bool __kprobes __check_eq(unsigned long pstate) in __check_eq() argument
54 return (pstate & PSR_Z_BIT) != 0; in __check_eq()
57 static bool __kprobes __check_ne(unsigned long pstate) in __check_ne() argument
59 return (pstate & PSR_Z_BIT) == 0; in __check_ne()
62 static bool __kprobes __check_cs(unsigned long pstate) in __check_cs() argument
64 return (pstate & PSR_C_BIT) != 0; in __check_cs()
67 static bool __kprobes __check_cc(unsigned long pstate) in __check_cc() argument
69 return (pstate & PSR_C_BIT) == 0; in __check_cc()
72 static bool __kprobes __check_mi(unsigned long pstate) in __check_mi() argument
74 return (pstate in __check_mi()
77 __check_pl(unsigned long pstate) __check_pl() argument
82 __check_vs(unsigned long pstate) __check_vs() argument
87 __check_vc(unsigned long pstate) __check_vc() argument
92 __check_hi(unsigned long pstate) __check_hi() argument
98 __check_ls(unsigned long pstate) __check_ls() argument
104 __check_ge(unsigned long pstate) __check_ge() argument
110 __check_lt(unsigned long pstate) __check_lt() argument
116 __check_gt(unsigned long pstate) __check_gt() argument
125 __check_le(unsigned long pstate) __check_le() argument
134 __check_al(unsigned long pstate) __check_al() argument
313 u32 it, pstate = regs->pstate; compat_get_it_state() local
[all...]
H A Dprocess.c160 u64 pstate = regs->pstate; in print_pstate() local
163 printk("pstate: %08llx (%c%c%c%c %c %s %s %c%c%c %cDIT %cSSBS)\n", in print_pstate()
164 pstate, in print_pstate()
165 pstate & PSR_AA32_N_BIT ? 'N' : 'n', in print_pstate()
166 pstate & PSR_AA32_Z_BIT ? 'Z' : 'z', in print_pstate()
167 pstate & PSR_AA32_C_BIT ? 'C' : 'c', in print_pstate()
168 pstate & PSR_AA32_V_BIT ? 'V' : 'v', in print_pstate()
169 pstate & PSR_AA32_Q_BIT ? 'Q' : 'q', in print_pstate()
170 pstate in print_pstate()
[all...]
/kernel/linux/linux-6.6/tools/power/cpupower/utils/helpers/
H A Damd.c33 } pstate; member
47 static int get_did(union core_pstate pstate) in get_did() argument
52 t = pstate.pstatedef.did; in get_did()
54 t = pstate.val & 0xf; in get_did()
56 t = pstate.pstate.did; in get_did()
61 static int get_cof(union core_pstate pstate) in get_cof() argument
66 did = get_did(pstate); in get_cof()
68 fid = pstate.pstatedef.fid; in get_cof()
72 fid = pstate in get_cof()
96 union core_pstate pstate; decode_pstates() local
[all...]
/kernel/linux/linux-5.10/tools/power/cpupower/utils/helpers/
H A Damd.c42 static int get_did(int family, union msr_pstate pstate) in get_did() argument
47 t = pstate.val & 0xf; in get_did()
49 t = pstate.fam17h_bits.did; in get_did()
51 t = pstate.bits.did; in get_did()
56 static int get_cof(int family, union msr_pstate pstate) in get_cof() argument
61 did = get_did(family, pstate); in get_cof()
63 fid = pstate.fam17h_bits.fid; in get_cof()
67 fid = pstate.bits.fid; in get_cof()
92 union msr_pstate pstate; in decode_pstates() local
120 if (read_msr(cpu, MSR_AMD_PSTATE + i, &pstate in decode_pstates()
[all...]
/kernel/linux/linux-6.6/drivers/cpufreq/
H A Dintel_pstate.c197 * @pstate: Stores P state limits for this CPU
235 struct pstate_data pstate; member
291 u64 (*get_val)(struct cpudata*, int pstate);
532 if (freq == cpu->pstate.turbo_freq) in intel_pstate_freq_to_hwp_rel()
533 return cpu->pstate.turbo_pstate; in intel_pstate_freq_to_hwp_rel()
535 if (freq == cpu->pstate.max_freq) in intel_pstate_freq_to_hwp_rel()
536 return cpu->pstate.max_pstate; in intel_pstate_freq_to_hwp_rel()
540 return freq / cpu->pstate.scaling; in intel_pstate_freq_to_hwp_rel()
542 return DIV_ROUND_CLOSEST(freq, cpu->pstate.scaling); in intel_pstate_freq_to_hwp_rel()
545 return DIV_ROUND_UP(freq, cpu->pstate in intel_pstate_freq_to_hwp_rel()
1790 atom_get_val(struct cpudata *cpudata, int pstate) atom_get_val() argument
1957 core_get_val(struct cpudata *cpudata, int pstate) core_get_val() argument
2017 intel_pstate_set_pstate(struct cpudata *cpu, int pstate) intel_pstate_set_pstate() argument
2037 int pstate = max(cpu->pstate.min_pstate, cpu->max_perf_ratio); intel_pstate_max_within_limits() local
2289 intel_pstate_prepare_request(struct cpudata *cpu, int pstate) intel_pstate_prepare_request() argument
2297 intel_pstate_update_pstate(struct cpudata *cpu, int pstate) intel_pstate_update_pstate() argument
[all...]
/kernel/linux/linux-5.10/arch/arm64/include/asm/
H A Dptrace.h146 unsigned long pstate; in compat_psr_to_pstate() local
148 pstate = psr & ~COMPAT_PSR_DIT_BIT; in compat_psr_to_pstate()
151 pstate |= PSR_AA32_DIT_BIT; in compat_psr_to_pstate()
153 return pstate; in compat_psr_to_pstate()
156 static inline unsigned long pstate_to_compat_psr(const unsigned long pstate) in pstate_to_compat_psr() argument
160 psr = pstate & ~PSR_AA32_DIT_BIT; in pstate_to_compat_psr()
162 if (pstate & PSR_AA32_DIT_BIT) in pstate_to_compat_psr()
180 u64 pstate; member
212 #define MAX_REG_OFFSET offsetof(struct pt_regs, pstate)
218 (((regs)->pstate
[all...]
/kernel/linux/linux-6.6/arch/arm64/include/asm/
H A Dptrace.h151 unsigned long pstate; in compat_psr_to_pstate() local
153 pstate = psr & ~COMPAT_PSR_DIT_BIT; in compat_psr_to_pstate()
156 pstate |= PSR_AA32_DIT_BIT; in compat_psr_to_pstate()
158 return pstate; in compat_psr_to_pstate()
161 static inline unsigned long pstate_to_compat_psr(const unsigned long pstate) in pstate_to_compat_psr() argument
165 psr = pstate & ~PSR_AA32_DIT_BIT; in pstate_to_compat_psr()
167 if (pstate & PSR_AA32_DIT_BIT) in pstate_to_compat_psr()
185 u64 pstate; member
216 #define MAX_REG_OFFSET offsetof(struct pt_regs, pstate)
222 (((regs)->pstate
[all...]
/kernel/linux/linux-5.10/arch/arm64/kernel/
H A Dprocess.c225 u64 pstate = regs->pstate; in print_pstate() local
228 printk("pstate: %08llx (%c%c%c%c %c %s %s %c%c%c)\n", in print_pstate()
229 pstate, in print_pstate()
230 pstate & PSR_AA32_N_BIT ? 'N' : 'n', in print_pstate()
231 pstate & PSR_AA32_Z_BIT ? 'Z' : 'z', in print_pstate()
232 pstate & PSR_AA32_C_BIT ? 'C' : 'c', in print_pstate()
233 pstate & PSR_AA32_V_BIT ? 'V' : 'v', in print_pstate()
234 pstate & PSR_AA32_Q_BIT ? 'Q' : 'q', in print_pstate()
235 pstate in print_pstate()
[all...]
H A Dinsn.c1435 static bool __kprobes __check_eq(unsigned long pstate) in __check_eq() argument
1437 return (pstate & PSR_Z_BIT) != 0; in __check_eq()
1440 static bool __kprobes __check_ne(unsigned long pstate) in __check_ne() argument
1442 return (pstate & PSR_Z_BIT) == 0; in __check_ne()
1445 static bool __kprobes __check_cs(unsigned long pstate) in __check_cs() argument
1447 return (pstate & PSR_C_BIT) != 0; in __check_cs()
1450 static bool __kprobes __check_cc(unsigned long pstate) in __check_cc() argument
1452 return (pstate & PSR_C_BIT) == 0; in __check_cc()
1455 static bool __kprobes __check_mi(unsigned long pstate) in __check_mi() argument
1457 return (pstate in __check_mi()
1460 __check_pl(unsigned long pstate) __check_pl() argument
1465 __check_vs(unsigned long pstate) __check_vs() argument
1470 __check_vc(unsigned long pstate) __check_vc() argument
1475 __check_hi(unsigned long pstate) __check_hi() argument
1481 __check_ls(unsigned long pstate) __check_ls() argument
1487 __check_ge(unsigned long pstate) __check_ge() argument
1493 __check_lt(unsigned long pstate) __check_lt() argument
1499 __check_gt(unsigned long pstate) __check_gt() argument
1508 __check_le(unsigned long pstate) __check_le() argument
1517 __check_al(unsigned long pstate) __check_al() argument
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/disp/dpu1/
H A Ddpu_plane.c145 struct dpu_plane_state *pstate; in _dpu_plane_calc_bw() local
157 pstate = to_dpu_plane_state(plane->state); in _dpu_plane_calc_bw()
181 pstate->plane_fetch_bw = max(plane_bw, plane_prefill_bw); in _dpu_plane_calc_bw()
193 struct dpu_plane_state *pstate; in _dpu_plane_calc_clk() local
197 pstate = to_dpu_plane_state(plane->state); in _dpu_plane_calc_clk()
205 pstate->plane_clk = in _dpu_plane_calc_clk()
209 pstate->plane_clk *= src_height; in _dpu_plane_calc_clk()
210 do_div(pstate->plane_clk, dst_height); in _dpu_plane_calc_clk()
225 struct dpu_plane_state *pstate; in _dpu_plane_calc_fill_level() local
235 pstate in _dpu_plane_calc_fill_level()
501 _dpu_plane_set_scanout(struct drm_plane *plane, struct dpu_plane_state *pstate, struct dpu_hw_pipe_cfg *pipe_cfg, struct drm_framebuffer *fb) _dpu_plane_set_scanout() argument
525 _dpu_plane_setup_scaler3(struct dpu_plane *pdpu, struct dpu_plane_state *pstate, uint32_t src_w, uint32_t src_h, uint32_t dst_w, uint32_t dst_h, struct dpu_hw_scaler3_cfg *scale_cfg, const struct dpu_format *fmt, uint32_t chroma_subsmpl_h, uint32_t chroma_subsmpl_v) _dpu_plane_setup_scaler3() argument
641 _dpu_plane_setup_scaler(struct dpu_plane *pdpu, struct dpu_plane_state *pstate, const struct dpu_format *fmt, bool color_fill) _dpu_plane_setup_scaler() argument
670 struct dpu_plane_state *pstate = to_dpu_plane_state(plane->state); _dpu_plane_color_fill() local
721 struct dpu_plane_state *pstate = to_dpu_plane_state(drm_state); dpu_plane_clear_multirect() local
729 struct dpu_plane_state *pstate[R_MAX]; dpu_plane_validate_multirect_v2() local
860 struct dpu_plane_state *pstate = to_dpu_plane_state(new_state); dpu_plane_prepare_fb() local
1018 struct dpu_plane_state *pstate; dpu_plane_flush() local
1066 struct dpu_plane_state *pstate = to_dpu_plane_state(state); dpu_plane_sspp_atomic_update() local
1195 struct dpu_plane_state *pstate = to_dpu_plane_state(state); _dpu_plane_atomic_disable() local
1273 struct dpu_plane_state *pstate; dpu_plane_duplicate_state() local
1304 struct dpu_plane_state *pstate; dpu_plane_reset() local
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/msm/disp/dpu1/
H A Ddpu_plane.c576 static void _dpu_plane_color_fill_pipe(struct dpu_plane_state *pstate, in _dpu_plane_color_fill_pipe() argument
606 _dpu_plane_setup_scaler(pipe, fmt, true, &pipe_cfg, pstate->rotation); in _dpu_plane_color_fill_pipe()
620 struct dpu_plane_state *pstate = to_dpu_plane_state(plane->state); in _dpu_plane_color_fill() local
635 _dpu_plane_color_fill_pipe(pstate, &pstate->pipe, &pstate->pipe_cfg.dst_rect, in _dpu_plane_color_fill()
638 if (pstate->r_pipe.sspp) in _dpu_plane_color_fill()
639 _dpu_plane_color_fill_pipe(pstate, &pstate->r_pipe, &pstate in _dpu_plane_color_fill()
648 struct dpu_plane_state *pstate = to_dpu_plane_state(new_state); dpu_plane_prepare_fb() local
795 struct dpu_plane_state *pstate = to_dpu_plane_state(new_plane_state); dpu_plane_atomic_check() local
967 struct dpu_plane_state *pstate; dpu_plane_flush() local
1023 struct dpu_plane_state *pstate = to_dpu_plane_state(state); dpu_plane_sspp_update_pipe() local
1088 struct dpu_plane_state *pstate = to_dpu_plane_state(state); dpu_plane_sspp_atomic_update() local
1149 struct dpu_plane_state *pstate = to_dpu_plane_state(state); _dpu_plane_atomic_disable() local
1187 struct dpu_plane_state *pstate; dpu_plane_destroy() local
1218 struct dpu_plane_state *pstate; dpu_plane_duplicate_state() local
1277 const struct dpu_plane_state *pstate = to_dpu_plane_state(state); dpu_plane_atomic_print_state() local
1306 struct dpu_plane_state *pstate; dpu_plane_reset() local
1346 struct dpu_plane_state *pstate = to_dpu_plane_state(plane->state); dpu_plane_danger_signal_ctrl() local
[all...]
H A Ddpu_crtc.c334 struct dpu_plane_state *pstate, struct dpu_format *format) in _dpu_crtc_setup_blend_cfg()
340 fg_alpha = pstate->base.alpha >> 8; in _dpu_crtc_setup_blend_cfg()
344 if (pstate->base.pixel_blend_mode == DRM_MODE_BLEND_PIXEL_NONE || in _dpu_crtc_setup_blend_cfg()
348 } else if (pstate->base.pixel_blend_mode == DRM_MODE_BLEND_PREMULTI) { in _dpu_crtc_setup_blend_cfg()
373 lm->ops.setup_blend_config(lm, pstate->stage, in _dpu_crtc_setup_blend_cfg()
453 struct dpu_plane_state *pstate = NULL; in _dpu_crtc_blend_setup_mixer() local
470 pstate = to_dpu_plane_state(state); in _dpu_crtc_blend_setup_mixer()
473 format = to_dpu_format(msm_framebuffer_format(pstate->base.fb)); in _dpu_crtc_blend_setup_mixer()
475 if (pstate->stage == DPU_STAGE_BASE && format->alpha_enable) in _dpu_crtc_blend_setup_mixer()
478 set_bit(pstate in _dpu_crtc_blend_setup_mixer()
333 _dpu_crtc_setup_blend_cfg(struct dpu_crtc_mixer *mixer, struct dpu_plane_state *pstate, struct dpu_format *format) _dpu_crtc_setup_blend_cfg() argument
1190 const struct drm_plane_state *pstate; dpu_crtc_atomic_check() local
1279 struct dpu_plane_state *pstate = NULL; _dpu_debugfs_status_show() local
[all...]
/kernel/linux/linux-5.10/drivers/cpufreq/
H A Dintel_pstate.c202 * @pstate: Stores P state limits for this CPU
239 struct pstate_data pstate; member
292 u64 (*get_val)(struct cpudata*, int pstate);
497 cpu->pstate.max_pstate == cpu->pstate.turbo_pstate); in update_turbo_state()
503 int turbo_pstate = cpu->pstate.turbo_pstate; in min_perf_pct_min()
506 (cpu->pstate.min_pstate * 100 / turbo_pstate) : 0; in min_perf_pct_min()
808 return sprintf(buf, "%d\n", ratio * cpu->pstate.scaling); in show_base_frequency()
1013 cpudata->pstate.max_freq : cpudata->pstate in intel_pstate_update_max_freq()
1485 atom_get_val(struct cpudata *cpudata, int pstate) atom_get_val() argument
1657 core_get_val(struct cpudata *cpudata, int pstate) core_get_val() argument
1686 intel_pstate_set_pstate(struct cpudata *cpu, int pstate) intel_pstate_set_pstate() argument
1706 int pstate = max(cpu->pstate.min_pstate, cpu->max_perf_ratio); intel_pstate_max_within_limits() local
1946 intel_pstate_prepare_request(struct cpudata *cpu, int pstate) intel_pstate_prepare_request() argument
1954 intel_pstate_update_pstate(struct cpudata *cpu, int pstate) intel_pstate_update_pstate() argument
[all...]
/kernel/linux/linux-5.10/samples/bpf/
H A Dcpustat_kern.c9 * The CPU number, cstate number and pstate number are based
28 * my_map structure is used to record cstate and pstate index and
36 * timestamp, and record for cstate and pstate saperately:
43 * | pstate timestamp |
45 * | pstate index |
90 /* calculate pstate index, returns MAX_PSTATE_ENTRIES for failure */
106 u64 *cts, *pts, *cstate, *pstate, prev_state, cur_ts, delta; in bpf_prog1() local
131 pstate = bpf_map_lookup_elem(&my_map, &key); in bpf_prog1()
132 if (!pstate) in bpf_prog1()
150 * for the pstate in bpf_prog1()
214 u64 *pts, *cstate, *pstate, prev_state, cur_ts, delta; bpf_prog2() local
[all...]
/kernel/linux/linux-6.6/samples/bpf/
H A Dcpustat_kern.c9 * The CPU number, cstate number and pstate number are based
28 * my_map structure is used to record cstate and pstate index and
36 * timestamp, and record for cstate and pstate saperately:
43 * | pstate timestamp |
45 * | pstate index |
90 /* calculate pstate index, returns MAX_PSTATE_ENTRIES for failure */
106 u64 *cts, *pts, *cstate, *pstate, prev_state, cur_ts, delta; in bpf_prog1() local
131 pstate = bpf_map_lookup_elem(&my_map, &key); in bpf_prog1()
132 if (!pstate) in bpf_prog1()
150 * for the pstate in bpf_prog1()
214 u64 *pts, *cstate, *pstate, prev_state, cur_ts, delta; bpf_prog2() local
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/arm/
H A Dmalidp_crtc.c256 const struct drm_plane_state *pstate; in malidp_crtc_atomic_check_scaling() local
271 drm_atomic_crtc_state_for_each_plane_state(plane, pstate, state) { in malidp_crtc_atomic_check_scaling()
282 h_upscale_factor = div_u64((u64)pstate->crtc_w << 32, in malidp_crtc_atomic_check_scaling()
283 pstate->src_w); in malidp_crtc_atomic_check_scaling()
284 v_upscale_factor = div_u64((u64)pstate->crtc_h << 32, in malidp_crtc_atomic_check_scaling()
285 pstate->src_h); in malidp_crtc_atomic_check_scaling()
290 if (pstate->rotation & MALIDP_ROTATED_MASK) { in malidp_crtc_atomic_check_scaling()
291 s->input_w = pstate->src_h >> 16; in malidp_crtc_atomic_check_scaling()
292 s->input_h = pstate->src_w >> 16; in malidp_crtc_atomic_check_scaling()
294 s->input_w = pstate in malidp_crtc_atomic_check_scaling()
343 const struct drm_plane_state *pstate; malidp_crtc_atomic_check() local
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/arm/
H A Dmalidp_crtc.c259 const struct drm_plane_state *pstate; in malidp_crtc_atomic_check_scaling() local
274 drm_atomic_crtc_state_for_each_plane_state(plane, pstate, state) { in malidp_crtc_atomic_check_scaling()
285 h_upscale_factor = div_u64((u64)pstate->crtc_w << 32, in malidp_crtc_atomic_check_scaling()
286 pstate->src_w); in malidp_crtc_atomic_check_scaling()
287 v_upscale_factor = div_u64((u64)pstate->crtc_h << 32, in malidp_crtc_atomic_check_scaling()
288 pstate->src_h); in malidp_crtc_atomic_check_scaling()
293 if (pstate->rotation & MALIDP_ROTATED_MASK) { in malidp_crtc_atomic_check_scaling()
294 s->input_w = pstate->src_h >> 16; in malidp_crtc_atomic_check_scaling()
295 s->input_h = pstate->src_w >> 16; in malidp_crtc_atomic_check_scaling()
297 s->input_w = pstate in malidp_crtc_atomic_check_scaling()
348 const struct drm_plane_state *pstate; malidp_crtc_atomic_check() local
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/engine/device/
H A Dctrl.c43 nvif_ioctl(&ctrl->object, "control pstate info size %d\n", size); in nvkm_control_mthd_pstate_info()
45 nvif_ioctl(&ctrl->object, "control pstate info vers %d\n", in nvkm_control_mthd_pstate_info()
55 args->v0.pstate = clk->pstate; in nvkm_control_mthd_pstate_info()
61 args->v0.pstate = NVIF_CONTROL_PSTATE_INFO_V0_PSTATE_UNKNOWN; in nvkm_control_mthd_pstate_info()
75 struct nvkm_pstate *pstate; in nvkm_control_mthd_pstate_attr() local
81 nvif_ioctl(&ctrl->object, "control pstate attr size %d\n", size); in nvkm_control_mthd_pstate_attr()
84 "control pstate attr vers %d state %d index %d\n", in nvkm_control_mthd_pstate_attr()
106 list_for_each_entry(pstate, &clk->states, head) { in nvkm_control_mthd_pstate_attr()
111 lo = pstate in nvkm_control_mthd_pstate_attr()
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/engine/device/
H A Dctrl.c43 nvif_ioctl(&ctrl->object, "control pstate info size %d\n", size); in nvkm_control_mthd_pstate_info()
45 nvif_ioctl(&ctrl->object, "control pstate info vers %d\n", in nvkm_control_mthd_pstate_info()
55 args->v0.pstate = clk->pstate; in nvkm_control_mthd_pstate_info()
61 args->v0.pstate = NVIF_CONTROL_PSTATE_INFO_V0_PSTATE_UNKNOWN; in nvkm_control_mthd_pstate_info()
75 struct nvkm_pstate *pstate; in nvkm_control_mthd_pstate_attr() local
81 nvif_ioctl(&ctrl->object, "control pstate attr size %d\n", size); in nvkm_control_mthd_pstate_attr()
84 "control pstate attr vers %d state %d index %d\n", in nvkm_control_mthd_pstate_attr()
106 list_for_each_entry(pstate, &clk->states, head) { in nvkm_control_mthd_pstate_attr()
111 lo = pstate in nvkm_control_mthd_pstate_attr()
[all...]
/kernel/linux/linux-5.10/drivers/regulator/
H A Dpwm-regulator.c86 struct pwm_state pstate; in pwm_regulator_set_voltage_sel() local
89 pwm_init_state(drvdata->pwm, &pstate); in pwm_regulator_set_voltage_sel()
90 pwm_set_relative_duty_cycle(&pstate, in pwm_regulator_set_voltage_sel()
93 ret = pwm_apply_state(drvdata->pwm, &pstate); in pwm_regulator_set_voltage_sel()
154 struct pwm_state pstate; in pwm_regulator_get_voltage() local
158 pwm_get_state(drvdata->pwm, &pstate); in pwm_regulator_get_voltage()
160 voltage = pwm_get_relative_duty_cycle(&pstate, duty_unit); in pwm_regulator_get_voltage()
191 struct pwm_state pstate; in pwm_regulator_set_voltage() local
196 pwm_init_state(drvdata->pwm, &pstate); in pwm_regulator_set_voltage()
217 pwm_set_relative_duty_cycle(&pstate, dutycycl in pwm_regulator_set_voltage()
[all...]
/kernel/linux/linux-6.6/drivers/regulator/
H A Dpwm-regulator.c86 struct pwm_state pstate; in pwm_regulator_set_voltage_sel() local
89 pwm_init_state(drvdata->pwm, &pstate); in pwm_regulator_set_voltage_sel()
90 pwm_set_relative_duty_cycle(&pstate, in pwm_regulator_set_voltage_sel()
93 ret = pwm_apply_state(drvdata->pwm, &pstate); in pwm_regulator_set_voltage_sel()
154 struct pwm_state pstate; in pwm_regulator_get_voltage() local
158 pwm_get_state(drvdata->pwm, &pstate); in pwm_regulator_get_voltage()
160 voltage = pwm_get_relative_duty_cycle(&pstate, duty_unit); in pwm_regulator_get_voltage()
194 struct pwm_state pstate; in pwm_regulator_set_voltage() local
199 pwm_init_state(drvdata->pwm, &pstate); in pwm_regulator_set_voltage()
220 pwm_set_relative_duty_cycle(&pstate, dutycycl in pwm_regulator_set_voltage()
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/disp/mdp5/
H A Dmdp5_plane.c104 struct mdp5_plane_state *pstate; in mdp5_plane_atomic_set_property() local
108 pstate = to_mdp5_plane_state(state); in mdp5_plane_atomic_set_property()
112 pstate->name = (type)val; \ in mdp5_plane_atomic_set_property()
132 struct mdp5_plane_state *pstate; in mdp5_plane_atomic_get_property() local
136 pstate = to_mdp5_plane_state(state); in mdp5_plane_atomic_get_property()
140 *val = pstate->name; \ in mdp5_plane_atomic_get_property()
159 struct mdp5_plane_state *pstate = to_mdp5_plane_state(state); in mdp5_plane_atomic_print_state() local
162 drm_printf(p, "\thwpipe=%s\n", pstate->hwpipe ? in mdp5_plane_atomic_print_state()
163 pstate->hwpipe->name : "(null)"); in mdp5_plane_atomic_print_state()
166 pstate in mdp5_plane_atomic_print_state()
222 struct mdp5_plane_state *pstate = to_mdp5_plane_state(state); mdp5_plane_destroy_state() local
931 struct drm_plane_state *pstate = plane->state; mdp5_plane_mode_set() local
1045 struct mdp5_plane_state *pstate = to_mdp5_plane_state(plane->state); mdp5_plane_pipe() local
1055 struct mdp5_plane_state *pstate = to_mdp5_plane_state(plane->state); mdp5_plane_right_pipe() local
1065 struct mdp5_plane_state *pstate = to_mdp5_plane_state(plane->state); mdp5_plane_get_flush() local
[all...]

Completed in 22 milliseconds

12345678910>>...15