Home
last modified time | relevance | path

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

/linux/arch/powerpc/include/asm/
H A Dcell-pmu.h18 #define NR_PHYS_CTRS 4 macro
19 #define NR_CTRS (NR_PHYS_CTRS * 2)
22 #define CBE_PM_16BIT_CTR(ctr) (1 << (24 - ((ctr) & (NR_PHYS_CTRS - 1))))
/linux/drivers/ps3/
H A Dps3-lpm.c204 if (phys_ctr >= NR_PHYS_CTRS) { in ps3_read_phys_ctr()
250 if (phys_ctr >= NR_PHYS_CTRS) { in ps3_write_phys_ctr()
306 u32 phys_ctr = ctr & (NR_PHYS_CTRS - 1); in ps3_read_ctr()
311 val = (ctr < NR_PHYS_CTRS) ? (val >> 16) : (val & 0xffff); in ps3_read_ctr()
329 phys_ctr = ctr & (NR_PHYS_CTRS - 1); in ps3_write_ctr()
334 if (ctr < NR_PHYS_CTRS) in ps3_write_ctr()
513 if (phys_ctr >= NR_PHYS_CTRS) { in ps3_get_ctr_size()
532 if (phys_ctr >= NR_PHYS_CTRS) { in ps3_set_ctr_size()