Home
last modified time | relevance | path

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

/openbmc/linux/drivers/platform/x86/intel/pmc/
H A Dcore.c1081 dir, pmcdev, in pmc_core_dbgfs_register()
1090 pmcdev->dbgfs_dir, pmcdev, in pmc_core_dbgfs_register()
1096 pmcdev->dbgfs_dir, pmcdev, in pmc_core_dbgfs_register()
1099 pmcdev->dbgfs_dir, pmcdev, in pmc_core_dbgfs_register()
1102 pmcdev->dbgfs_dir, pmcdev, in pmc_core_dbgfs_register()
1108 pmcdev->dbgfs_dir, pmcdev, in pmc_core_dbgfs_register()
1221 pmcdev = devm_kzalloc(&pdev->dev, sizeof(*pmcdev), GFP_KERNEL); in pmc_core_probe()
1222 if (!pmcdev) in pmc_core_probe()
1286 pmcdev->suspend(pmcdev); in pmc_core_suspend()
1379 if (pmcdev->resume) in pmc_core_resume()
[all …]
H A 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()
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
119 pmcdev->ssram_pcidev = pcidev; in pmc_core_ssram_init()
[all …]
H A 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()
H A Dcore.h383 void (*suspend)(struct pmc_dev *pmcdev);
384 int (*resume)(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);
503 int mtl_core_init(struct pmc_dev *pmcdev);
505 void cnl_suspend(struct pmc_dev *pmcdev);
506 int cnl_resume(struct pmc_dev *pmcdev);
[all …]
H A 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()
H A 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()
H A 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()
H A 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()
H A 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()