Lines Matching refs:phys_ctr
198 u32 ps3_read_phys_ctr(u32 cpu, u32 phys_ctr) in ps3_read_phys_ctr() argument
204 if (phys_ctr >= NR_PHYS_CTRS) { in ps3_read_phys_ctr()
206 __LINE__, phys_ctr); in ps3_read_phys_ctr()
214 "phys_ctr %u, %s\n", __func__, __LINE__, phys_ctr, in ps3_read_phys_ctr()
219 switch (phys_ctr) { in ps3_read_phys_ctr()
242 void ps3_write_phys_ctr(u32 cpu, u32 phys_ctr, u32 val) in ps3_write_phys_ctr() argument
250 if (phys_ctr >= NR_PHYS_CTRS) { in ps3_write_phys_ctr()
252 __LINE__, phys_ctr); in ps3_write_phys_ctr()
256 switch (phys_ctr) { in ps3_write_phys_ctr()
292 phys_ctr, val, ps3_result(result)); in ps3_write_phys_ctr()
306 u32 phys_ctr = ctr & (NR_PHYS_CTRS - 1); in ps3_read_ctr() local
308 val = ps3_read_phys_ctr(cpu, phys_ctr); in ps3_read_ctr()
310 if (ps3_get_ctr_size(cpu, phys_ctr) == 16) in ps3_read_ctr()
326 u32 phys_ctr; in ps3_write_ctr() local
329 phys_ctr = ctr & (NR_PHYS_CTRS - 1); in ps3_write_ctr()
331 if (ps3_get_ctr_size(cpu, phys_ctr) == 16) { in ps3_write_ctr()
332 phys_val = ps3_read_phys_ctr(cpu, phys_ctr); in ps3_write_ctr()
340 ps3_write_phys_ctr(cpu, phys_ctr, val); in ps3_write_ctr()
509 u32 ps3_get_ctr_size(u32 cpu, u32 phys_ctr) in ps3_get_ctr_size() argument
513 if (phys_ctr >= NR_PHYS_CTRS) { in ps3_get_ctr_size()
515 __LINE__, phys_ctr); in ps3_get_ctr_size()
520 return (pm_ctrl & CBE_PM_16BIT_CTR(phys_ctr)) ? 16 : 32; in ps3_get_ctr_size()
528 void ps3_set_ctr_size(u32 cpu, u32 phys_ctr, u32 ctr_size) in ps3_set_ctr_size() argument
532 if (phys_ctr >= NR_PHYS_CTRS) { in ps3_set_ctr_size()
534 __LINE__, phys_ctr); in ps3_set_ctr_size()
542 pm_ctrl |= CBE_PM_16BIT_CTR(phys_ctr); in ps3_set_ctr_size()
547 pm_ctrl &= ~CBE_PM_16BIT_CTR(phys_ctr); in ps3_set_ctr_size()