Home
last modified time | relevance | path

Searched refs:pmcdev (Results 1 – 9 of 9) sorted by relevance

/drivers/platform/x86/intel/pmc/
Dcore.c83 static int set_etr3(struct pmc_dev *pmcdev) in set_etr3() argument
85 struct pmc *pmc = pmcdev->pmcs[PMC_IDX_MAIN]; in set_etr3()
93 mutex_lock(&pmcdev->lock); in set_etr3()
115 mutex_unlock(&pmcdev->lock); in set_etr3()
123 struct pmc_dev *pmcdev = dev_get_drvdata(dev); in etr3_is_visible() local
124 struct pmc *pmc = pmcdev->pmcs[PMC_IDX_MAIN]; in etr3_is_visible()
128 mutex_lock(&pmcdev->lock); in etr3_is_visible()
130 mutex_unlock(&pmcdev->lock); in etr3_is_visible()
138 struct pmc_dev *pmcdev = dev_get_drvdata(dev); in etr3_show() local
139 struct pmc *pmc = pmcdev->pmcs[PMC_IDX_MAIN]; in etr3_show()
[all …]
Dcore_ssram.c39 pmc_core_pmc_add(struct pmc_dev *pmcdev, u64 pwrm_base, in pmc_core_pmc_add() argument
42 struct pmc *pmc = pmcdev->pmcs[pmc_index]; in pmc_core_pmc_add()
49 pmc = devm_kzalloc(&pmcdev->pdev->dev, sizeof(*pmc), GFP_KERNEL); in pmc_core_pmc_add()
59 devm_kfree(&pmcdev->pdev->dev, pmc); in pmc_core_pmc_add()
63 pmcdev->pmcs[pmc_index] = pmc; in pmc_core_pmc_add()
67 pmc_core_ssram_get_pmc(struct pmc_dev *pmcdev, void __iomem *ssram, u32 offset, in pmc_core_ssram_get_pmc() argument
87 if (pmcdev->regmap_list) { in pmc_core_ssram_get_pmc()
90 map = pmc_core_find_regmap(pmcdev->regmap_list, devid); in pmc_core_ssram_get_pmc()
92 pmc_core_pmc_add(pmcdev, pwrm_base, map, pmc_idx); in pmc_core_ssram_get_pmc()
99 void pmc_core_ssram_init(struct pmc_dev *pmcdev) in pmc_core_ssram_init() argument
[all …]
Dcore.h383 void (*suspend)(struct pmc_dev *pmcdev);
384 int (*resume)(struct pmc_dev *pmcdev);
491 int pmc_core_send_ltr_ignore(struct pmc_dev *pmcdev, u32 value, int ignore);
493 int pmc_core_resume_common(struct pmc_dev *pmcdev);
496 extern void pmc_core_ssram_init(struct pmc_dev *pmcdev);
498 int spt_core_init(struct pmc_dev *pmcdev);
499 int cnp_core_init(struct pmc_dev *pmcdev);
500 int icl_core_init(struct pmc_dev *pmcdev);
501 int tgl_core_init(struct pmc_dev *pmcdev);
502 int adl_core_init(struct pmc_dev *pmcdev);
[all …]
Dcnp.c207 void cnl_suspend(struct pmc_dev *pmcdev) in cnl_suspend() argument
214 pmc_core_send_ltr_ignore(pmcdev, 3, 1); in cnl_suspend()
217 int cnl_resume(struct pmc_dev *pmcdev) in cnl_resume() argument
219 pmc_core_send_ltr_ignore(pmcdev, 3, 0); in cnl_resume()
221 return pmc_core_resume_common(pmcdev); in cnl_resume()
224 int cnp_core_init(struct pmc_dev *pmcdev) in cnp_core_init() argument
226 struct pmc *pmc = pmcdev->pmcs[PMC_IDX_MAIN]; in cnp_core_init()
229 pmcdev->suspend = cnl_suspend; in cnp_core_init()
230 pmcdev->resume = cnl_resume; in cnp_core_init()
Dtgl.c210 struct pmc_dev *pmcdev = platform_get_drvdata(pdev); in pmc_core_get_tgl_lpm_reqs() local
211 struct pmc *pmc = pmcdev->pmcs[PMC_IDX_MAIN]; in pmc_core_get_tgl_lpm_reqs()
256 int tgl_core_init(struct pmc_dev *pmcdev) in tgl_core_init() argument
258 struct pmc *pmc = pmcdev->pmcs[PMC_IDX_MAIN]; in tgl_core_init()
263 pmcdev->suspend = cnl_suspend; in tgl_core_init()
264 pmcdev->resume = cnl_resume; in tgl_core_init()
270 pmc_core_get_tgl_lpm_reqs(pmcdev->pdev); in tgl_core_init()
Dmtl.c979 static int mtl_resume(struct pmc_dev *pmcdev) in mtl_resume() argument
982 pmc_core_send_ltr_ignore(pmcdev, 3, 0); in mtl_resume()
984 return pmc_core_resume_common(pmcdev); in mtl_resume()
987 int mtl_core_init(struct pmc_dev *pmcdev) in mtl_core_init() argument
989 struct pmc *pmc = pmcdev->pmcs[PMC_IDX_SOC]; in mtl_core_init()
994 pmcdev->suspend = cnl_suspend; in mtl_core_init()
995 pmcdev->resume = mtl_resume; in mtl_core_init()
997 pmcdev->regmap_list = mtl_pmc_info_list; in mtl_core_init()
998 pmc_core_ssram_init(pmcdev); in mtl_core_init()
Dadl.c312 int adl_core_init(struct pmc_dev *pmcdev) in adl_core_init() argument
314 struct pmc *pmc = pmcdev->pmcs[PMC_IDX_MAIN]; in adl_core_init()
317 pmcdev->suspend = cnl_suspend; in adl_core_init()
318 pmcdev->resume = cnl_resume; in adl_core_init()
Dicl.c53 int icl_core_init(struct pmc_dev *pmcdev) in icl_core_init() argument
55 struct pmc *pmc = pmcdev->pmcs[PMC_IDX_MAIN]; in icl_core_init()
Dspt.c137 int spt_core_init(struct pmc_dev *pmcdev) in spt_core_init() argument
139 struct pmc *pmc = pmcdev->pmcs[PMC_IDX_MAIN]; in spt_core_init()