Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/gpu/drm/msm/disp/mdp5/
H A Dmdp5_crtc.c217 struct mdp5_plane_state *pstate, *pstates[STAGE_MAX + 1] = {NULL}; in blend_setup() local
249 pstates[pstate->stage] = pstate; in blend_setup()
272 if (!pstates[STAGE_BASE]) { in blend_setup()
276 format = to_mdp_format(msm_framebuffer_format(pstates[STAGE_BASE]->base.fb)); in blend_setup()
284 if (!pstates[i]) in blend_setup()
288 msm_framebuffer_format(pstates[i]->base.fb)); in blend_setup()
289 plane = pstates[i]->base.plane; in blend_setup()
292 fg_alpha = pstates[i]->alpha; in blend_setup()
293 bg_alpha = 0xFF - pstates[i]->alpha; in blend_setup()
302 if (format->alpha_enable && pstates[ in blend_setup()
696 struct plane_state pstates[STAGE_MAX + 1]; mdp5_crtc_atomic_check() local
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/msm/disp/mdp5/
H A Dmdp5_crtc.c220 struct mdp5_plane_state *pstate, *pstates[STAGE_MAX + 1] = {NULL}; in blend_setup() local
252 pstates[pstate->stage] = pstate; in blend_setup()
275 if (!pstates[STAGE_BASE]) { in blend_setup()
279 format = to_mdp_format(msm_framebuffer_format(pstates[STAGE_BASE]->base.fb)); in blend_setup()
287 if (!pstates[i]) in blend_setup()
291 msm_framebuffer_format(pstates[i]->base.fb)); in blend_setup()
292 plane = pstates[i]->base.plane; in blend_setup()
295 fg_alpha = pstates[i]->base.alpha >> 8; in blend_setup()
306 pstates[i]->base.pixel_blend_mode == DRM_MODE_BLEND_PREMULTI) { in blend_setup()
318 pstates[ in blend_setup()
705 struct plane_state pstates[STAGE_MAX + 1]; mdp5_crtc_atomic_check() local
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/disp/dpu1/
H A Ddpu_crtc.c822 struct plane_state *pstates; in dpu_crtc_atomic_check() local
836 pstates = kzalloc(sizeof(*pstates) * DPU_STAGE_MAX * 4, GFP_KERNEL); in dpu_crtc_atomic_check()
837 if (!pstates) in dpu_crtc_atomic_check()
877 pstates[cnt].dpu_pstate = to_dpu_plane_state(pstate); in dpu_crtc_atomic_check()
878 pstates[cnt].drm_pstate = pstate; in dpu_crtc_atomic_check()
879 pstates[cnt].stage = pstate->normalized_zpos; in dpu_crtc_atomic_check()
880 pstates[cnt].pipe_id = dpu_plane_pipe(plane); in dpu_crtc_atomic_check()
882 if (pipe_staged[pstates[cnt].pipe_id]) { in dpu_crtc_atomic_check()
884 pipe_staged[pstates[cn in dpu_crtc_atomic_check()
[all...]
/kernel/linux/linux-5.10/drivers/misc/echo/
H A Decho.c185 ec->pstates = 0; in oslec_create()
250 ec->pstates = 0; in oslec_flush()
336 ec->pstates += in oslec_update()
338 if (ec->pstates < 0) in oslec_update()
339 ec->pstates = 0; in oslec_update()
408 p = MIN_TX_POWER_FOR_ADAPTION + ec->pstates; in oslec_update()
H A Decho.h130 int32_t pstates; member
/kernel/linux/linux-6.6/drivers/misc/echo/
H A Decho.c185 ec->pstates = 0; in oslec_create()
250 ec->pstates = 0; in oslec_flush()
336 ec->pstates += in oslec_update()
338 if (ec->pstates < 0) in oslec_update()
339 ec->pstates = 0; in oslec_update()
408 p = MIN_TX_POWER_FOR_ADAPTION + ec->pstates; in oslec_update()
H A Decho.h130 int32_t pstates; member
/kernel/linux/linux-5.10/tools/power/cpupower/utils/
H A Dcpufreq-info.c167 unsigned long pstates[MAX_HW_PSTATES] = {0,}; in get_boost_mode_x86() local
190 pstates, &pstate_no); in get_boost_mode_x86()
197 if (!pstates[i]) in get_boost_mode_x86()
201 "\n"), i, pstates[i]); in get_boost_mode_x86()
204 i - b_states, pstates[i]); in get_boost_mode_x86() local
/kernel/linux/linux-6.6/tools/power/cpupower/utils/
H A Dcpufreq-info.c130 unsigned long pstates[MAX_HW_PSTATES] = {0,}; in get_boost_mode_x86() local
155 ret = decode_pstates(cpu, b_states, pstates, &pstate_no); in get_boost_mode_x86()
162 if (!pstates[i]) in get_boost_mode_x86()
166 "\n"), i, pstates[i]); in get_boost_mode_x86()
169 i - b_states, pstates[i]); in get_boost_mode_x86() local
/kernel/linux/linux-5.10/tools/power/cpupower/utils/helpers/
H A Dhelpers.h127 int boost_states, unsigned long *pstates, int *no);
145 int boost_states, unsigned long *pstates, in decode_pstates()
144 decode_pstates(unsigned int cpu, unsigned int cpu_family, int boost_states, unsigned long *pstates, int *no) decode_pstates() argument
H A Damd.c81 * pstates -> a pointer to an array of size MAX_HW_PSTATES
83 * All available HW pstates (including boost states)
84 * no -> amount of pstates above array got filled up with
89 int boost_states, unsigned long *pstates, int *no) in decode_pstates()
116 fprintf(stderr, "HW pstates [%d] exceeding max [%d]\n", in decode_pstates()
127 pstates[i] = get_cof(cpu_family, pstate); in decode_pstates()
88 decode_pstates(unsigned int cpu, unsigned int cpu_family, int boost_states, unsigned long *pstates, int *no) decode_pstates() argument
/kernel/linux/linux-6.6/tools/power/cpupower/utils/helpers/
H A Dhelpers.h138 unsigned long *pstates, int *no);
166 unsigned long *pstates, int *no) in decode_pstates()
165 decode_pstates(unsigned int cpu, int boost_states, unsigned long *pstates, int *no) decode_pstates() argument
H A Damd.c85 * pstates -> a pointer to an array of size MAX_HW_PSTATES
87 * All available HW pstates (including boost states)
88 * no -> amount of pstates above array got filled up with
93 unsigned long *pstates, int *no) in decode_pstates()
112 fprintf(stderr, "HW pstates [%d] exceeding max [%d]\n", in decode_pstates()
123 pstates[i] = get_cof(pstate); in decode_pstates()
92 decode_pstates(unsigned int cpu, int boost_states, unsigned long *pstates, int *no) decode_pstates() argument
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/subdev/clk/
H A Dgm20b.c865 base->func->calc(base, &base->func->pstates[0].base); in gm20b_clk_init()
883 .pstates = gm20b_pstates,
901 .pstates = gm20b_pstates,
983 struct nvkm_pstate *pstates = clk->base.base.func->pstates; in gm20b_clk_init_safe_fmax() local
1000 if (pstates[i].base.voltage == id) in gm20b_clk_init_safe_fmax()
1002 pstates[i].base.domain[nv_clk_src_gpc]); in gm20b_clk_init_safe_fmax()
H A Dgk20a.c585 base->func->calc(base, &base->func->pstates[0].base); in gk20a_clk_init()
603 .pstates = gk20a_pstates,
622 /* Finish initializing the pstates */ in gk20a_clk_ctor()
624 INIT_LIST_HEAD(&func->pstates[i].list); in gk20a_clk_ctor()
625 func->pstates[i].pstate = i + 1; in gk20a_clk_ctor()
H A Dpriv.h14 struct nvkm_pstate *pstates; member
H A Dbase.c634 /* Early return if the pstates have been provided statically */ in nvkm_clk_dtor()
635 if (clk->func->pstates) in nvkm_clk_dtor()
683 /* If no pstates are provided, try and fetch them from the BIOS */ in nvkm_clk_ctor()
684 if (!func->pstates) { in nvkm_clk_ctor()
691 list_add_tail(&func->pstates[idx].head, &clk->states); in nvkm_clk_ctor()
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/subdev/clk/
H A Dgm20b.c865 base->func->calc(base, &base->func->pstates[0].base); in gm20b_clk_init()
883 .pstates = gm20b_pstates,
901 .pstates = gm20b_pstates,
980 struct nvkm_pstate *pstates = clk->base.base.func->pstates; in gm20b_clk_init_safe_fmax() local
997 if (pstates[i].base.voltage == id) in gm20b_clk_init_safe_fmax()
999 pstates[i].base.domain[nv_clk_src_gpc]); in gm20b_clk_init_safe_fmax()
H A Dgk20a.c585 base->func->calc(base, &base->func->pstates[0].base); in gk20a_clk_init()
603 .pstates = gk20a_pstates,
621 /* Finish initializing the pstates */ in gk20a_clk_ctor()
623 INIT_LIST_HEAD(&func->pstates[i].list); in gk20a_clk_ctor()
624 func->pstates[i].pstate = i + 1; in gk20a_clk_ctor()
H A Dpriv.h14 struct nvkm_pstate *pstates; member
H A Dbase.c629 /* Early return if the pstates have been provided statically */ in nvkm_clk_dtor()
630 if (clk->func->pstates) in nvkm_clk_dtor()
678 /* If no pstates are provided, try and fetch them from the BIOS */ in nvkm_clk_ctor()
679 if (!func->pstates) { in nvkm_clk_ctor()
686 list_add_tail(&func->pstates[idx].head, &clk->states); in nvkm_clk_ctor()
/kernel/linux/linux-5.10/drivers/platform/x86/
H A Dintel_telemetry_debugfs.c342 u64 pstates = 0; in telem_pss_states_show() local
400 pstates = evtlog[index].telem_evtlog; in telem_pss_states_show()
408 (pstates & TELEM_MASK_BYTE)*100, in telem_pss_states_show()
409 ((pstates >> 8) & TELEM_MASK_BYTE)*50/3); in telem_pss_states_show()
412 ((pstates >> 16) & TELEM_MASK_BYTE)*25, in telem_pss_states_show()
413 ((pstates >> 24) & TELEM_MASK_BYTE)*50/3); in telem_pss_states_show()
/kernel/linux/linux-6.6/drivers/platform/x86/intel/telemetry/
H A Ddebugfs.c342 u64 pstates = 0; in telem_pss_states_show() local
400 pstates = evtlog[index].telem_evtlog; in telem_pss_states_show()
408 (pstates & TELEM_MASK_BYTE)*100, in telem_pss_states_show()
409 ((pstates >> 8) & TELEM_MASK_BYTE)*50/3); in telem_pss_states_show()
412 ((pstates >> 16) & TELEM_MASK_BYTE)*25, in telem_pss_states_show()
413 ((pstates >> 24) & TELEM_MASK_BYTE)*50/3); in telem_pss_states_show()
/kernel/linux/linux-5.10/drivers/mtd/nand/raw/
H A Dnandsim.c300 uint32_t pstates[NS_MAX_PREVSTATES]; /* previous states */ member
1189 * case the ns->pstates[] array contains previous states.
1193 * ns->pstates[0], ... ns->pstates[ns->npstates], ns->state
1200 * ns->pstates.
1206 * ns->pstates[0], ... ns->pstates[ns->npstates], <address input>
1243 if (NS_STATE(ops[i].states[j]) != NS_STATE(ns->pstates[j]) in ns_find_operation()
1301 ns->pstates[ns->npstates++] = ns->state; in ns_find_operation()
/kernel/linux/linux-6.6/drivers/mtd/nand/raw/
H A Dnandsim.c302 uint32_t pstates[NS_MAX_PREVSTATES]; /* previous states */ member
1184 * case the ns->pstates[] array contains previous states.
1188 * ns->pstates[0], ... ns->pstates[ns->npstates], ns->state
1195 * ns->pstates.
1201 * ns->pstates[0], ... ns->pstates[ns->npstates], <address input>
1238 if (NS_STATE(ops[i].states[j]) != NS_STATE(ns->pstates[j]) in ns_find_operation()
1296 ns->pstates[ns->npstates++] = ns->state; in ns_find_operation()

Completed in 26 milliseconds