Home
last modified time | relevance | path

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

/linux-5.19.10/drivers/platform/x86/intel/pmc/
Dcore.c603 struct pmc_dev *pmcdev = platform_get_drvdata(pdev); in pmc_core_get_tgl_lpm_reqs() local
604 const int num_maps = pmcdev->map->lpm_num_maps; in pmc_core_get_tgl_lpm_reqs()
642 pmcdev->lpm_req_regs = lpm_req_regs; in pmc_core_get_tgl_lpm_reqs()
948 static inline u32 pmc_core_reg_read(struct pmc_dev *pmcdev, int reg_offset) in pmc_core_reg_read() argument
950 return readl(pmcdev->regbase + reg_offset); in pmc_core_reg_read()
953 static inline void pmc_core_reg_write(struct pmc_dev *pmcdev, int reg_offset, in pmc_core_reg_write() argument
956 writel(val, pmcdev->regbase + reg_offset); in pmc_core_reg_write()
959 static inline u64 pmc_core_adjust_slp_s0_step(struct pmc_dev *pmcdev, u32 value) in pmc_core_adjust_slp_s0_step() argument
961 return (u64)value * pmcdev->map->slp_s0_res_counter_step; in pmc_core_adjust_slp_s0_step()
964 static int set_etr3(struct pmc_dev *pmcdev) in set_etr3() argument
[all …]
Dcore.h344 #define pmc_for_each_mode(i, mode, pmcdev) \ argument
345 for (i = 0, mode = pmcdev->lpm_en_modes[i]; \
346 i < pmcdev->num_lpm_modes; \
347 i++, mode = pmcdev->lpm_en_modes[i])