Lines Matching refs:pmd_regs
104 struct cbe_pmd_regs __iomem *pmd_regs; in spu_show_temp() local
106 pmd_regs = get_pmd_regs(dev); in spu_show_temp()
108 value = spu_read_register_value(dev, &pmd_regs->ts_ctsr1); in spu_show_temp()
113 static ssize_t show_throttle(struct cbe_pmd_regs __iomem *pmd_regs, char *buf, int pos) in show_throttle() argument
117 value = in_be64(&pmd_regs->tm_tpr.val); in show_throttle()
125 static ssize_t store_throttle(struct cbe_pmd_regs __iomem *pmd_regs, const char *buf, size_t size, … in store_throttle() argument
139 reg_value = in_be64(&pmd_regs->tm_tpr.val); in store_throttle()
146 out_be64(&pmd_regs->tm_tpr.val, reg_value); in store_throttle()
188 struct cbe_pmd_regs __iomem *pmd_regs; in ppe_show_temp() local
191 pmd_regs = cbe_get_cpu_pmd_regs(dev->id); in ppe_show_temp()
192 value = in_be64(&pmd_regs->ts_ctsr2); in ppe_show_temp()
309 struct cbe_pmd_regs __iomem *pmd_regs; in init_default_values() local
359 pmd_regs = cbe_get_cpu_pmd_regs(dev->id); in init_default_values()
361 if (!pmd_regs) { in init_default_values()
366 out_be64(&pmd_regs->tm_str2, str2); in init_default_values()
367 out_be64(&pmd_regs->tm_str1.val, str1.val); in init_default_values()
368 out_be64(&pmd_regs->tm_tpr.val, tpr.val); in init_default_values()
369 out_be64(&pmd_regs->tm_cr1.val, cr1.val); in init_default_values()
370 out_be64(&pmd_regs->tm_cr2, cr2); in init_default_values()