Home
last modified time | relevance | path

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

/linux-4.4.14/arch/powerpc/platforms/cell/
Dpmu.c78 if (phys_ctr < NR_PHYS_CTRS) { in cbe_read_phys_ctr()
98 if (phys_ctr < NR_PHYS_CTRS) { in cbe_write_phys_ctr()
129 u32 phys_ctr = ctr & (NR_PHYS_CTRS - 1); in cbe_read_ctr()
134 val = (ctr < NR_PHYS_CTRS) ? (val >> 16) : (val & 0xffff); in cbe_read_ctr()
145 phys_ctr = ctr & (NR_PHYS_CTRS - 1); in cbe_write_ctr()
150 if (ctr < NR_PHYS_CTRS) in cbe_write_ctr()
275 if (phys_ctr < NR_PHYS_CTRS) { in cbe_get_ctr_size()
288 if (phys_ctr < NR_PHYS_CTRS) { in cbe_set_ctr_size()
/linux-4.4.14/arch/powerpc/include/asm/
Dcell-pmu.h31 #define NR_PHYS_CTRS 4 macro
32 #define NR_CTRS (NR_PHYS_CTRS * 2)
35 #define CBE_PM_16BIT_CTR(ctr) (1 << (24 - ((ctr) & (NR_PHYS_CTRS - 1))))
Dcell-regs.h154 u32 pm_ctr[NR_PHYS_CTRS];
/linux-4.4.14/drivers/ps3/
Dps3-lpm.c216 if (phys_ctr >= NR_PHYS_CTRS) { in ps3_read_phys_ctr()
262 if (phys_ctr >= NR_PHYS_CTRS) { in ps3_write_phys_ctr()
318 u32 phys_ctr = ctr & (NR_PHYS_CTRS - 1); in ps3_read_ctr()
323 val = (ctr < NR_PHYS_CTRS) ? (val >> 16) : (val & 0xffff); in ps3_read_ctr()
341 phys_ctr = ctr & (NR_PHYS_CTRS - 1); in ps3_write_ctr()
346 if (ctr < NR_PHYS_CTRS) in ps3_write_ctr()
525 if (phys_ctr >= NR_PHYS_CTRS) { in ps3_get_ctr_size()
544 if (phys_ctr >= NR_PHYS_CTRS) { in ps3_set_ctr_size()
/linux-4.4.14/arch/powerpc/oprofile/
Dop_model_cell.c130 u32 pm07_cntrl[NR_PHYS_CTRS];
140 static DEFINE_PER_CPU(unsigned long[NR_PHYS_CTRS], pmc_values);
142 static struct pmc_cntrl_data pmc_cntrl[NUM_THREADS][NR_PHYS_CTRS];
178 static struct pm_signal pm_signal[NR_PHYS_CTRS];
182 static u32 reset_value[NR_PHYS_CTRS];
243 struct pm_signal pm_signal_local[NR_PHYS_CTRS]; in pm_rtas_activate_signals()
766 if (unlikely(num_ctrs > NR_PHYS_CTRS)) { in cell_reg_setup_ppu()