Lines Matching refs:pmd_regs
91 struct cbe_pmd_regs __iomem *pmd_regs; in spu_show_temp() local
93 pmd_regs = get_pmd_regs(dev); in spu_show_temp()
95 value = spu_read_register_value(dev, &pmd_regs->ts_ctsr1); in spu_show_temp()
100 static ssize_t show_throttle(struct cbe_pmd_regs __iomem *pmd_regs, char *buf, int pos) in show_throttle() argument
104 value = in_be64(&pmd_regs->tm_tpr.val); in show_throttle()
112 static ssize_t store_throttle(struct cbe_pmd_regs __iomem *pmd_regs, const char *buf, size_t size, … in store_throttle() argument
126 reg_value = in_be64(&pmd_regs->tm_tpr.val); in store_throttle()
133 out_be64(&pmd_regs->tm_tpr.val, reg_value); in store_throttle()
175 struct cbe_pmd_regs __iomem *pmd_regs; in ppe_show_temp() local
178 pmd_regs = cbe_get_cpu_pmd_regs(dev->id); in ppe_show_temp()
179 value = in_be64(&pmd_regs->ts_ctsr2); in ppe_show_temp()
296 struct cbe_pmd_regs __iomem *pmd_regs; in init_default_values() local
346 pmd_regs = cbe_get_cpu_pmd_regs(dev->id); in init_default_values()
348 if (!pmd_regs) { in init_default_values()
353 out_be64(&pmd_regs->tm_str2, str2); in init_default_values()
354 out_be64(&pmd_regs->tm_str1.val, str1.val); in init_default_values()
355 out_be64(&pmd_regs->tm_tpr.val, tpr.val); in init_default_values()
356 out_be64(&pmd_regs->tm_cr1.val, cr1.val); in init_default_values()
357 out_be64(&pmd_regs->tm_cr2, cr2); in init_default_values()