Home
last modified time | relevance | path

Searched refs:pprof (Results 1 – 12 of 12) sorted by relevance

/linux-6.12.1/drivers/acpi/
Dplatform_profile.c178 int platform_profile_register(struct platform_profile_handler *pprof) in platform_profile_register() argument
190 if (!pprof || bitmap_empty(pprof->choices, PLATFORM_PROFILE_LAST) || in platform_profile_register()
191 !pprof->profile_set || !pprof->profile_get) { in platform_profile_register()
202 cur_profile = pprof; in platform_profile_register()
/linux-6.12.1/drivers/platform/x86/amd/pmf/
Dsps.c285 static int amd_pmf_profile_get(struct platform_profile_handler *pprof, in amd_pmf_profile_get() argument
288 struct amd_pmf_dev *pmf = container_of(pprof, struct amd_pmf_dev, pprof); in amd_pmf_profile_get()
366 static int amd_pmf_profile_set(struct platform_profile_handler *pprof, in amd_pmf_profile_set() argument
369 struct amd_pmf_dev *pmf = container_of(pprof, struct amd_pmf_dev, pprof); in amd_pmf_profile_set()
408 dev->pprof.profile_get = amd_pmf_profile_get; in amd_pmf_init_sps()
409 dev->pprof.profile_set = amd_pmf_profile_set; in amd_pmf_init_sps()
412 set_bit(PLATFORM_PROFILE_LOW_POWER, dev->pprof.choices); in amd_pmf_init_sps()
413 set_bit(PLATFORM_PROFILE_BALANCED, dev->pprof.choices); in amd_pmf_init_sps()
414 set_bit(PLATFORM_PROFILE_PERFORMANCE, dev->pprof.choices); in amd_pmf_init_sps()
417 err = platform_profile_register(&dev->pprof); in amd_pmf_init_sps()
Dpmf.h340 struct platform_profile_handler pprof; member
/linux-6.12.1/include/linux/
Dplatform_profile.h31 int (*profile_get)(struct platform_profile_handler *pprof,
33 int (*profile_set)(struct platform_profile_handler *pprof,
37 int platform_profile_register(struct platform_profile_handler *pprof);
/linux-6.12.1/drivers/platform/x86/
Dinspur_platform_profile.c87 static int inspur_platform_profile_set(struct platform_profile_handler *pprof, in inspur_platform_profile_set() argument
90 struct inspur_wmi_priv *priv = container_of(pprof, struct inspur_wmi_priv, in inspur_platform_profile_set()
135 static int inspur_platform_profile_get(struct platform_profile_handler *pprof, in inspur_platform_profile_get() argument
138 struct inspur_wmi_priv *priv = container_of(pprof, struct inspur_wmi_priv, in inspur_platform_profile_get()
Dideapad-laptop.c145 struct platform_profile_handler pprof; member
936 static int dytc_profile_get(struct platform_profile_handler *pprof, in dytc_profile_get() argument
939 struct ideapad_dytc_priv *dytc = container_of(pprof, struct ideapad_dytc_priv, pprof); in dytc_profile_get()
989 static int dytc_profile_set(struct platform_profile_handler *pprof, in dytc_profile_set() argument
992 struct ideapad_dytc_priv *dytc = container_of(pprof, struct ideapad_dytc_priv, pprof); in dytc_profile_set()
1106 priv->dytc->pprof.profile_get = dytc_profile_get; in ideapad_dytc_profile_init()
1107 priv->dytc->pprof.profile_set = dytc_profile_set; in ideapad_dytc_profile_init()
1110 set_bit(PLATFORM_PROFILE_LOW_POWER, priv->dytc->pprof.choices); in ideapad_dytc_profile_init()
1111 set_bit(PLATFORM_PROFILE_BALANCED, priv->dytc->pprof.choices); in ideapad_dytc_profile_init()
1112 set_bit(PLATFORM_PROFILE_PERFORMANCE, priv->dytc->pprof.choices); in ideapad_dytc_profile_init()
[all …]
Dacer-wmi.c1808 acer_predator_v4_platform_profile_get(struct platform_profile_handler *pprof, in acer_predator_v4_platform_profile_get() argument
1843 acer_predator_v4_platform_profile_set(struct platform_profile_handler *pprof, in acer_predator_v4_platform_profile_set() argument
Dasus-wmi.c3847 static int asus_wmi_platform_profile_get(struct platform_profile_handler *pprof, in asus_wmi_platform_profile_get() argument
3853 asus = container_of(pprof, struct asus_wmi, platform_profile_handler); in asus_wmi_platform_profile_get()
3873 static int asus_wmi_platform_profile_set(struct platform_profile_handler *pprof, in asus_wmi_platform_profile_set() argument
3879 asus = container_of(pprof, struct asus_wmi, platform_profile_handler); in asus_wmi_platform_profile_set()
Dthinkpad_acpi.c10417 static int dytc_profile_get(struct platform_profile_handler *pprof, in dytc_profile_get() argument
10492 static int dytc_profile_set(struct platform_profile_handler *pprof, in dytc_profile_set() argument
/linux-6.12.1/drivers/platform/surface/
Dsurface_platform_profile.c157 static int ssam_platform_profile_get(struct platform_profile_handler *pprof, in ssam_platform_profile_get() argument
164 tpd = container_of(pprof, struct ssam_platform_profile_device, handler); in ssam_platform_profile_get()
178 static int ssam_platform_profile_set(struct platform_profile_handler *pprof, in ssam_platform_profile_set() argument
184 tpd = container_of(pprof, struct ssam_platform_profile_device, handler); in ssam_platform_profile_set()
/linux-6.12.1/drivers/platform/x86/dell/
Ddell-pc.c185 static int thermal_platform_profile_set(struct platform_profile_handler *pprof, in thermal_platform_profile_set() argument
202 static int thermal_platform_profile_get(struct platform_profile_handler *pprof, in thermal_platform_profile_get() argument
/linux-6.12.1/drivers/platform/x86/hp/
Dhp-wmi.c1224 static int platform_profile_omen_get(struct platform_profile_handler *pprof, in platform_profile_omen_get() argument
1321 static int platform_profile_omen_set(struct platform_profile_handler *pprof, in platform_profile_omen_set() argument
1348 static int hp_wmi_platform_profile_get(struct platform_profile_handler *pprof, in hp_wmi_platform_profile_get() argument
1377 static int hp_wmi_platform_profile_set(struct platform_profile_handler *pprof, in hp_wmi_platform_profile_set() argument
1443 static int platform_profile_victus_get(struct platform_profile_handler *pprof, in platform_profile_victus_get() argument
1447 return platform_profile_omen_get(pprof, profile); in platform_profile_victus_get()
1475 static int platform_profile_victus_set(struct platform_profile_handler *pprof, in platform_profile_victus_set() argument