H A D | ps3-lpm.c | 210 u32 ps3_read_phys_ctr(u32 cpu, u32 phys_ctr) ps3_read_phys_ctr() argument 216 if (phys_ctr >= NR_PHYS_CTRS) { ps3_read_phys_ctr() 217 dev_dbg(sbd_core(), "%s:%u: phys_ctr too big: %u\n", __func__, ps3_read_phys_ctr() 218 __LINE__, phys_ctr); ps3_read_phys_ctr() local 226 "phys_ctr %u, %s\n", __func__, __LINE__, phys_ctr, ps3_read_phys_ctr() local 231 switch (phys_ctr) { ps3_read_phys_ctr() 254 void ps3_write_phys_ctr(u32 cpu, u32 phys_ctr, u32 val) ps3_write_phys_ctr() argument 262 if (phys_ctr >= NR_PHYS_CTRS) { ps3_write_phys_ctr() 263 dev_dbg(sbd_core(), "%s:%u: phys_ctr too big: %u\n", __func__, ps3_write_phys_ctr() 264 __LINE__, phys_ctr); ps3_write_phys_ctr() local 268 switch (phys_ctr) { ps3_write_phys_ctr() 303 "phys_ctr %u, val %u, %s\n", __func__, __LINE__, ps3_write_phys_ctr() 304 phys_ctr, val, ps3_result(result)); ps3_write_phys_ctr() local 318 u32 phys_ctr = ctr & (NR_PHYS_CTRS - 1); ps3_read_ctr() local 320 val = ps3_read_phys_ctr(cpu, phys_ctr); ps3_read_ctr() 322 if (ps3_get_ctr_size(cpu, phys_ctr) == 16) ps3_read_ctr() 338 u32 phys_ctr; ps3_write_ctr() local 341 phys_ctr = ctr & (NR_PHYS_CTRS - 1); ps3_write_ctr() 343 if (ps3_get_ctr_size(cpu, phys_ctr) == 16) { ps3_write_ctr() 344 phys_val = ps3_read_phys_ctr(cpu, phys_ctr); ps3_write_ctr() 352 ps3_write_phys_ctr(cpu, phys_ctr, val); ps3_write_ctr() 521 u32 ps3_get_ctr_size(u32 cpu, u32 phys_ctr) ps3_get_ctr_size() argument 525 if (phys_ctr >= NR_PHYS_CTRS) { ps3_get_ctr_size() 526 dev_dbg(sbd_core(), "%s:%u: phys_ctr too big: %u\n", __func__, ps3_get_ctr_size() 527 __LINE__, phys_ctr); ps3_get_ctr_size() local 532 return (pm_ctrl & CBE_PM_16BIT_CTR(phys_ctr)) ? 16 : 32; ps3_get_ctr_size() 540 void ps3_set_ctr_size(u32 cpu, u32 phys_ctr, u32 ctr_size) ps3_set_ctr_size() argument 544 if (phys_ctr >= NR_PHYS_CTRS) { ps3_set_ctr_size() 545 dev_dbg(sbd_core(), "%s:%u: phys_ctr too big: %u\n", __func__, ps3_set_ctr_size() 546 __LINE__, phys_ctr); ps3_set_ctr_size() local 554 pm_ctrl |= CBE_PM_16BIT_CTR(phys_ctr); ps3_set_ctr_size() 559 pm_ctrl &= ~CBE_PM_16BIT_CTR(phys_ctr); ps3_set_ctr_size()
|