/linux-6.12.1/drivers/platform/x86/intel/pmc/ |
D | core.c | 85 static int set_etr3(struct pmc_dev *pmcdev) in set_etr3() argument 87 struct pmc *pmc = pmcdev->pmcs[PMC_IDX_MAIN]; in set_etr3() 94 guard(mutex)(&pmcdev->lock); in set_etr3() 116 struct pmc_dev *pmcdev = dev_get_drvdata(dev); in etr3_is_visible() local 117 struct pmc *pmc = pmcdev->pmcs[PMC_IDX_MAIN]; in etr3_is_visible() 121 scoped_guard(mutex, &pmcdev->lock) in etr3_is_visible() 130 struct pmc_dev *pmcdev = dev_get_drvdata(dev); in etr3_show() local 131 struct pmc *pmc = pmcdev->pmcs[PMC_IDX_MAIN]; in etr3_show() 138 scoped_guard(mutex, &pmcdev->lock) { in etr3_show() 150 struct pmc_dev *pmcdev = dev_get_drvdata(dev); in etr3_store() local [all …]
|
D | core_ssram.c | 43 static int pmc_core_get_lpm_req(struct pmc_dev *pmcdev, struct pmc *pmc) in pmc_core_get_lpm_req() argument 56 guid = pmc_core_find_guid(pmcdev->regmap_list, pmc->map); in pmc_core_get_lpm_req() 60 ep = pmt_telem_find_and_register_endpoint(pmcdev->ssram_pcidev, guid, 0); in pmc_core_get_lpm_req() 62 dev_dbg(&pmcdev->pdev->dev, "couldn't get telem endpoint %ld", in pmc_core_get_lpm_req() 67 pmc->lpm_req_regs = devm_kzalloc(&pmcdev->pdev->dev, in pmc_core_get_lpm_req() 119 pmc_for_each_mode(mode, pmcdev) { in pmc_core_get_lpm_req() 128 dev_err(&pmcdev->pdev->dev, in pmc_core_get_lpm_req() 130 devm_kfree(&pmcdev->pdev->dev, pmc->lpm_req_regs); in pmc_core_get_lpm_req() 144 int pmc_core_ssram_get_lpm_reqs(struct pmc_dev *pmcdev) in pmc_core_ssram_get_lpm_reqs() argument 148 if (!pmcdev->ssram_pcidev) in pmc_core_ssram_get_lpm_reqs() [all …]
|
D | cnp.c | 207 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() 237 pmc_core_get_low_power_modes(pmcdev); in cnp_core_init()
|
D | core.h | 419 void (*suspend)(struct pmc_dev *pmcdev); 420 int (*resume)(struct pmc_dev *pmcdev); 584 extern int pmc_core_ssram_get_lpm_reqs(struct pmc_dev *pmcdev); 585 int pmc_core_send_ltr_ignore(struct pmc_dev *pmcdev, u32 value, int ignore); 587 int pmc_core_resume_common(struct pmc_dev *pmcdev); 589 extern void pmc_core_get_low_power_modes(struct pmc_dev *pmcdev); 590 extern void pmc_core_punit_pmt_init(struct pmc_dev *pmcdev, u32 guid); 593 extern int pmc_core_ssram_init(struct pmc_dev *pmcdev, int func); 595 int spt_core_init(struct pmc_dev *pmcdev); 596 int cnp_core_init(struct pmc_dev *pmcdev); [all …]
|
D | tgl.c | 242 struct pmc_dev *pmcdev = platform_get_drvdata(pdev); in pmc_core_get_tgl_lpm_reqs() local 243 struct pmc *pmc = pmcdev->pmcs[PMC_IDX_MAIN]; in pmc_core_get_tgl_lpm_reqs() 288 int tgl_l_core_init(struct pmc_dev *pmcdev) in tgl_l_core_init() argument 290 return tgl_core_generic_init(pmcdev, PCH_LP); in tgl_l_core_init() 293 int tgl_core_init(struct pmc_dev *pmcdev) in tgl_core_init() argument 295 return tgl_core_generic_init(pmcdev, PCH_H); in tgl_core_init() 298 int tgl_core_generic_init(struct pmc_dev *pmcdev, int pch_tp) in tgl_core_generic_init() argument 300 struct pmc *pmc = pmcdev->pmcs[PMC_IDX_MAIN]; in tgl_core_generic_init() 308 pmcdev->suspend = cnl_suspend; in tgl_core_generic_init() 309 pmcdev->resume = cnl_resume; in tgl_core_generic_init() [all …]
|
D | arl.c | 687 static int arl_resume(struct pmc_dev *pmcdev) in arl_resume() argument 690 pmc_core_send_ltr_ignore(pmcdev, 3, 0); in arl_resume() 692 return pmc_core_resume_common(pmcdev); in arl_resume() 695 int arl_core_init(struct pmc_dev *pmcdev) in arl_core_init() argument 697 struct pmc *pmc = pmcdev->pmcs[PMC_IDX_SOC]; in arl_core_init() 703 pmcdev->suspend = cnl_suspend; in arl_core_init() 704 pmcdev->resume = arl_resume; in arl_core_init() 705 pmcdev->regmap_list = arl_pmc_info_list; in arl_core_init() 711 ret = pmc_core_ssram_init(pmcdev, func); in arl_core_init() 721 pmc_core_get_low_power_modes(pmcdev); in arl_core_init() [all …]
|
D | mtl.c | 986 static int mtl_resume(struct pmc_dev *pmcdev) in mtl_resume() argument 989 pmc_core_send_ltr_ignore(pmcdev, 3, 0); in mtl_resume() 991 return pmc_core_resume_common(pmcdev); in mtl_resume() 994 int mtl_core_init(struct pmc_dev *pmcdev) in mtl_core_init() argument 996 struct pmc *pmc = pmcdev->pmcs[PMC_IDX_SOC]; in mtl_core_init() 1003 pmcdev->suspend = cnl_suspend; in mtl_core_init() 1004 pmcdev->resume = mtl_resume; in mtl_core_init() 1005 pmcdev->regmap_list = mtl_pmc_info_list; in mtl_core_init() 1011 ret = pmc_core_ssram_init(pmcdev, func); in mtl_core_init() 1014 dev_warn(&pmcdev->pdev->dev, in mtl_core_init() [all …]
|
D | lnl.c | 546 static int lnl_resume(struct pmc_dev *pmcdev) in lnl_resume() argument 549 pmc_core_send_ltr_ignore(pmcdev, 3, 0); in lnl_resume() 551 return pmc_core_resume_common(pmcdev); in lnl_resume() 554 int lnl_core_init(struct pmc_dev *pmcdev) in lnl_core_init() argument 557 struct pmc *pmc = pmcdev->pmcs[PMC_IDX_SOC]; in lnl_core_init() 561 pmcdev->suspend = cnl_suspend; in lnl_core_init() 562 pmcdev->resume = lnl_resume; in lnl_core_init() 569 pmc_core_get_low_power_modes(pmcdev); in lnl_core_init()
|
D | icl.c | 53 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() 64 pmc_core_get_low_power_modes(pmcdev); in icl_core_init()
|
D | adl.c | 314 int adl_core_init(struct pmc_dev *pmcdev) in adl_core_init() argument 316 struct pmc *pmc = pmcdev->pmcs[PMC_IDX_MAIN]; in adl_core_init() 319 pmcdev->suspend = cnl_suspend; in adl_core_init() 320 pmcdev->resume = cnl_resume; in adl_core_init() 327 pmc_core_get_low_power_modes(pmcdev); in adl_core_init()
|
D | spt.c | 137 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() 148 pmc_core_get_low_power_modes(pmcdev); in spt_core_init()
|