/linux-4.1.27/arch/powerpc/perf/ |
H A D | power5+-pmu.c | 407 int pmc, psel; power5p_marked_instr_event() local 412 psel = event & PM_PMCSEL_MSK; power5p_marked_instr_event() 417 if (psel < sizeof(direct_event_is_marked)) { power5p_marked_instr_event() 418 if (direct_event_is_marked[psel] & (1 << pmc)) power5p_marked_instr_event() 420 if (direct_event_is_marked[psel] & 0x80) power5p_marked_instr_event() 422 else if (psel == 0x08) power5p_marked_instr_event() 424 else if (psel == 0x10) power5p_marked_instr_event() 426 else if (psel == 0x1b && (pmc == 1 || pmc == 3)) power5p_marked_instr_event() 428 } else if ((psel & 0x48) == 0x40) { power5p_marked_instr_event() 429 bit = psel & 7; power5p_marked_instr_event() 430 } else if (psel == 0x28) { power5p_marked_instr_event() 432 } else if (pmc == 3 && (psel == 0x2e || psel == 0x2f)) { power5p_marked_instr_event() 459 unsigned int pmc, unit, byte, psel; power5p_compute_mmcr() local 555 psel = event[i] & PM_PMCSEL_MSK; power5p_compute_mmcr() 570 (psel == 8 || psel == 0x10 || psel == 0x28)) power5p_compute_mmcr() 578 bit = psel & 7; power5p_compute_mmcr() 584 if ((psel & 0x58) == 0x40 && (byte & 1) != ((pmc >> 1) & 1)) power5p_compute_mmcr() 586 psel |= 0x10; power5p_compute_mmcr() 588 mmcr1 |= psel << MMCR1_PMCSEL_SH(pmc); power5p_compute_mmcr()
|
H A D | power6-pmu.c | 141 int pmc, psel, ptype; power6_marked_instr_event() local 146 psel = (event & PM_PMCSEL_MSK) >> 1; /* drop edge/level bit */ power6_marked_instr_event() 151 if (psel < sizeof(direct_event_is_marked)) { power6_marked_instr_event() 152 ptype = direct_event_is_marked[psel]; power6_marked_instr_event() 162 } else if ((psel & 0x48) == 0x40) power6_marked_instr_event() 163 bit = psel & 7; power6_marked_instr_event() 183 unsigned int pmc, ev, b, u, s, psel; p6_compute_mmcr() local 212 psel = ev & PM_PMCSEL_MSK; p6_compute_mmcr() 231 if (0x30 <= psel && psel <= 0x3d) { p6_compute_mmcr() 237 if (pmc >= 2 && (psel & 0x90) == 0x80) p6_compute_mmcr() 238 psel ^= 0x20; p6_compute_mmcr() 248 mmcr1 |= (unsigned long)psel << MMCR1_PMCSEL_SH(pmc); p6_compute_mmcr() 365 unsigned int psel, pmc; p6_get_alternatives() local 388 psel = event & (PM_PMCSEL_MSK & ~1); /* ignore edge bit */ p6_get_alternatives() 390 if (pmc && (psel == 0x32 || psel == 0x34)) p6_get_alternatives() 395 if (pmc && (psel == 0x38 || psel == 0x3a)) p6_get_alternatives()
|
H A D | power7-pmu.c | 148 int pmc, psel; find_alternative_decode() local 152 psel = event & PM_PMCSEL_MSK; find_alternative_decode() 153 if ((pmc == 2 || pmc == 4) && (psel & ~7) == 0x40) find_alternative_decode() 155 if ((pmc == 1 || pmc == 3) && (psel & ~7) == 0x48) find_alternative_decode() 217 int pmc, psel; power7_marked_instr_event() local 222 psel = event & PM_PMCSEL_MSK & ~1; /* trim off edge/level bit */ power7_marked_instr_event() 226 switch (psel >> 4) { power7_marked_instr_event() 230 if (psel == 0x3c) power7_marked_instr_event() 232 if (psel == 0x3e) power7_marked_instr_event() 239 if (psel == 0x64) power7_marked_instr_event() 252 unsigned int pmc, unit, combine, l2sel, psel; power7_compute_mmcr() local 274 psel = event[i] & PM_PMCSEL_MSK; power7_compute_mmcr() 293 mmcr1 |= psel << MMCR1_PMCSEL_SH(pmc); power7_compute_mmcr()
|
H A D | ppc970-pmu.c | 149 int pmc, psel, unit, byte, bit; p970_marked_instr_event() local 153 psel = event & PM_PMCSEL_MSK; p970_marked_instr_event() 155 if (direct_marked_event[pmc - 1] & (1 << psel)) p970_marked_instr_event() 157 if (psel == 0) /* add events */ p970_marked_instr_event() 159 else if (psel == 7 || psel == 13) /* decode events */ p970_marked_instr_event() 164 bit = psel; p970_marked_instr_event() 263 unsigned int pmc, unit, byte, psel; p970_compute_mmcr() local 353 psel = event[i] & PM_PMCSEL_MSK; p970_compute_mmcr() 357 psel |= 0x10 | ((byte & 2) << 2); p970_compute_mmcr() 359 psel |= 8; p970_compute_mmcr() 376 if (psel == 0 && (byte & 2)) p970_compute_mmcr() 380 pmcsel[pmc] = psel; p970_compute_mmcr()
|
H A D | power5-pmu.c | 343 int pmc, psel; power5_marked_instr_event() local 348 psel = event & PM_PMCSEL_MSK; power5_marked_instr_event() 353 if (psel < sizeof(direct_event_is_marked)) { power5_marked_instr_event() 354 if (direct_event_is_marked[psel] & (1 << pmc)) power5_marked_instr_event() 356 if (direct_event_is_marked[psel] & 0x80) power5_marked_instr_event() 358 else if (psel == 0x08) power5_marked_instr_event() 360 else if (psel == 0x10) power5_marked_instr_event() 362 else if (psel == 0x1b && (pmc == 1 || pmc == 3)) power5_marked_instr_event() 364 } else if ((psel & 0x58) == 0x40) power5_marked_instr_event() 365 bit = psel & 7; power5_marked_instr_event() 390 unsigned int pmc, unit, byte, psel; power5_compute_mmcr() local 495 psel = event[i] & PM_PMCSEL_MSK; power5_compute_mmcr() 515 if ((psel == 8 || psel == 0x10) && isbus && (byte & 2)) power5_compute_mmcr() 523 bit = psel & 7; power5_compute_mmcr() 530 mmcr1 |= psel << MMCR1_PMCSEL_SH(pmc); power5_compute_mmcr()
|
H A D | power4-pmu.c | 220 int pmc, psel, unit, byte, bit; p4_marked_instr_event() local 224 psel = event & PM_PMCSEL_MSK; p4_marked_instr_event() 226 if (direct_marked_event[pmc - 1] & (1 << psel)) p4_marked_instr_event() 228 if (psel == 0) /* add events */ p4_marked_instr_event() 230 else if (psel == 6) /* decode events */ p4_marked_instr_event() 235 bit = psel; p4_marked_instr_event() 362 unsigned int pmc, unit, byte, psel, lower; p4_compute_mmcr() local 474 psel = event[i] & PM_PMCSEL_MSK; p4_compute_mmcr() 478 psel |= 0x10 | ((byte & 2) << 2); p4_compute_mmcr() 495 if (psel == 0 && (byte & 2)) p4_compute_mmcr() 498 else if (psel == 6 && byte == 3) p4_compute_mmcr() 501 psel |= 8; p4_compute_mmcr() 504 mmcr0 |= psel << (MMCR0_PMC1SEL_SH - 7 * pmc); p4_compute_mmcr() 506 mmcr1 |= psel << (MMCR1_PMC3SEL_SH - 5 * (pmc - 2)); p4_compute_mmcr() 508 mmcra |= (psel & 1) << MMCRA_PMC8SEL0_SH; p4_compute_mmcr()
|
H A D | power8-pmu.c | 405 unsigned long mmcra, mmcr1, mmcr2, unit, combine, psel, cache, val; power8_compute_mmcr() local 427 psel = event[i] & EVENT_PSEL_MASK; power8_compute_mmcr() 441 mmcr1 |= psel << MMCR1_PMCSEL_SHIFT(pmc); power8_compute_mmcr()
|
/linux-4.1.27/arch/powerpc/oprofile/ |
H A D | op_model_power4.c | 44 u64 psel, unit; power7_marked_instr_event() local 52 psel = mmcr1 & (OPROFILE_PM_PMCSEL_MSK power7_marked_instr_event() 55 psel = (psel >> ((OPROFILE_MAX_PMC_NUM - pmc) power7_marked_instr_event() 63 switch (psel >> 4) { power7_marked_instr_event() 68 if (psel == 0x3c) { power7_marked_instr_event() 73 if (psel == 0x3e) { power7_marked_instr_event() 85 if (psel == 0x64) power7_marked_instr_event()
|
/linux-4.1.27/drivers/watchdog/ |
H A D | at32ap700x_wdt.c | 93 unsigned long psel; at32_wdt_stop() local 96 psel = wdt_readl(wdt, CTRL) & WDT_BF(CTRL_PSEL, 0x0f); at32_wdt_stop() 97 wdt_writel(wdt, CTRL, psel | WDT_BF(CTRL_KEY, 0x55)); at32_wdt_stop() 98 wdt_writel(wdt, CTRL, psel | WDT_BF(CTRL_KEY, 0xaa)); at32_wdt_stop() 108 unsigned long psel = (wdt->timeout > 1) ? 0xf : 0xe; at32_wdt_start() local 112 | WDT_BF(CTRL_PSEL, psel) at32_wdt_start() 115 | WDT_BF(CTRL_PSEL, psel) at32_wdt_start()
|
/linux-4.1.27/arch/arm/mach-ep93xx/ |
H A D | clock.c | 355 int *psel, int *esel, int *pdiv, int *div) calc_clk_div() 394 *psel = (i == 2); calc_clk_div() 412 int err, psel = 0, esel = 0, pdiv = 0, div = 0; set_div_rate() local 415 err = calc_clk_div(clk, rate, &psel, &esel, &pdiv, &div); set_div_rate() 419 /* Clear the esel, psel, pdiv and div bits */ set_div_rate() 423 /* Set the new esel, psel, pdiv and div bits for the new clock rate */ set_div_rate() 425 (psel ? EP93XX_SYSCON_CLKDIV_PSEL : 0) | set_div_rate() 354 calc_clk_div(struct clk *clk, unsigned long rate, int *psel, int *esel, int *pdiv, int *div) calc_clk_div() argument
|
/linux-4.1.27/drivers/media/pci/saa7164/ |
H A D | saa7164-api.c | 944 struct tmComResSelDescrHeader *psel; saa7164_api_dump_subdevs() local 1170 psel = (struct tmComResSelDescrHeader *)(buf + idx); saa7164_api_dump_subdevs() 1173 psel->unitid); saa7164_api_dump_subdevs() 1175 psel->nrinpins); saa7164_api_dump_subdevs() 1177 psel->sourceid); saa7164_api_dump_subdevs()
|