/external/u-boot/arch/arm/mach-at91/ |
D | clock.c | 16 struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC; in at91_periph_clk_enable() local 25 writel(id, &pmc->pcr); in at91_periph_clk_enable() 27 div_value = readl(&pmc->pcr) & AT91_PMC_PCR_DIV; in at91_periph_clk_enable() 31 writel(regval, &pmc->pcr); in at91_periph_clk_enable() 33 writel(0x01 << id, &pmc->pcer); in at91_periph_clk_enable() 39 struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC; in at91_periph_clk_disable() local 49 writel(regval, &pmc->pcr); in at91_periph_clk_disable() 51 writel(0x01 << id, &pmc->pcdr); in at91_periph_clk_disable() 57 struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC; in at91_system_clk_enable() local 59 writel(sys_clk, &pmc->scer); in at91_system_clk_enable() [all …]
|
D | spl_atmel.c | 19 struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC; in switch_to_main_crystal_osc() local 22 tmp = readl(&pmc->mor); in switch_to_main_crystal_osc() 28 writel(tmp, &pmc->mor); in switch_to_main_crystal_osc() 29 while (!(readl(&pmc->sr) & AT91_PMC_IXR_MOSCS)) in switch_to_main_crystal_osc() 34 tmp = readl(&pmc->mcfr); in switch_to_main_crystal_osc() 37 writel(tmp, &pmc->mcfr); in switch_to_main_crystal_osc() 39 while (!(readl(&pmc->mcfr) & AT91_PMC_MCFR_MAINRDY)) in switch_to_main_crystal_osc() 42 if (!(readl(&pmc->mcfr) & AT91_PMC_MCFR_MAINF_MASK)) in switch_to_main_crystal_osc() 46 tmp = readl(&pmc->mor); in switch_to_main_crystal_osc() 50 writel(tmp, &pmc->mor); in switch_to_main_crystal_osc() [all …]
|
D | spl_at91.c | 32 struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC; in lowlevel_clock_init() local 34 if (!(readl(&pmc->sr) & AT91_PMC_MOSCS)) { in lowlevel_clock_init() 36 writel(AT91_PMC_MOSCS | (0x40 << 8), &pmc->mor); in lowlevel_clock_init() 39 while (!(readl(&pmc->sr) & AT91_PMC_MOSCS)) in lowlevel_clock_init() 44 if ((readl(&pmc->mckr) & AT91_PMC_CSS) == AT91_PMC_CSS_SLOW) { in lowlevel_clock_init() 47 tmp = readl(&pmc->mckr); in lowlevel_clock_init() 50 writel(tmp, &pmc->mckr); in lowlevel_clock_init() 51 while (!(readl(&pmc->sr) & AT91_PMC_MCKRDY)) in lowlevel_clock_init() 56 writel(tmp, &pmc->mckr); in lowlevel_clock_init() 57 while (!(readl(&pmc->sr) & AT91_PMC_MCKRDY)) in lowlevel_clock_init()
|
/external/u-boot/arch/arm/mach-at91/armv7/ |
D | clock.c | 58 struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC; in at91_clock_init() local 69 tmp = readl(&pmc->mcfr); in at91_clock_init() 78 gd->arch.plla_rate_hz = at91_pll_rate(main_clock, readl(&pmc->pllar)); in at91_clock_init() 84 mckr = readl(&pmc->mckr); in at91_clock_init() 117 struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC; in at91_plla_init() local 119 writel(pllar, &pmc->pllar); in at91_plla_init() 120 while (!(readl(&pmc->sr) & (AT91_PMC_LOCKA | AT91_PMC_MCKRDY))) in at91_plla_init() 126 struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC; in at91_mck_init() local 129 tmp = readl(&pmc->mckr); in at91_mck_init() 146 writel(tmp, &pmc->mckr); in at91_mck_init() [all …]
|
/external/u-boot/arch/arm/mach-at91/arm926ejs/ |
D | clock.c | 116 at91_pmc_t *pmc = (at91_pmc_t *) ATMEL_BASE_PMC; in at91_clock_init() local 127 tmp = readl(&pmc->mcfr); in at91_clock_init() 136 gd->arch.plla_rate_hz = at91_pll_rate(main_clock, readl(&pmc->pllar)); in at91_clock_init() 155 mckr = readl(&pmc->mckr); in at91_clock_init() 204 struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC; in at91_plla_init() local 206 writel(pllar, &pmc->pllar); in at91_plla_init() 207 while (!(readl(&pmc->sr) & AT91_PMC_LOCKA)) in at91_plla_init() 212 struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC; in at91_pllb_init() local 214 writel(pllbr, &pmc->pllbr); in at91_pllb_init() 215 while (!(readl(&pmc->sr) & AT91_PMC_LOCKB)) in at91_pllb_init() [all …]
|
/external/clang/test/CXX/expr/expr.mptr.oper/ |
D | p5.cpp | 11 void (X0::*pmc)() const, in test_object_cvquals() 23 (p->*pmc)(); in test_object_cvquals() 28 (pc->*pmc)(); in test_object_cvquals() 33 …(pv->*pmc)(); // expected-error-re{{call to pointer to member function of type 'void (){{( __attri… in test_object_cvquals() 38 …(pcv->*pmc)(); // expected-error-re{{call to pointer to member function of type 'void (){{( __attr… in test_object_cvquals() 43 (o.*pmc)(); in test_object_cvquals() 48 (oc.*pmc)(); in test_object_cvquals() 53 …(ov.*pmc)(); // expected-error-re{{call to pointer to member function of type 'void (){{( __attrib… in test_object_cvquals() 58 …(ocv.*pmc)(); // expected-error-re{{call to pointer to member function of type 'void (){{( __attri… in test_object_cvquals()
|
/external/u-boot/arch/arm/mach-tegra/tegra124/ |
D | cpu.c | 23 struct pmc_ctlr *pmc = (struct pmc_ctlr *)NV_PA_PMC_BASE; in enable_cpu_power_rail() local 37 writel(0x7C830, &pmc->pmc_cpupwrgood_timer); in enable_cpu_power_rail() 40 clrbits_le32(&pmc->pmc_cntrl, CPUPWRREQ_POL); in enable_cpu_power_rail() 41 setbits_le32(&pmc->pmc_cntrl, CPUPWRREQ_OE); in enable_cpu_power_rail() 114 struct pmc_ctlr *pmc = (struct pmc_ctlr *)NV_PA_PMC_BASE; in tegra124_init_clocks() local 131 val = readl(&pmc->pmc_osc_edpd_over); in tegra124_init_clocks() 134 writel(val, &pmc->pmc_osc_edpd_over); in tegra124_init_clocks() 137 setbits_le32(&pmc->pmc_cntrl2, HOLD_CKE_LOW_EN); in tegra124_init_clocks() 196 struct pmc_ctlr *pmc = (struct pmc_ctlr *)NV_PA_PMC_BASE; in is_partition_powered() local 200 reg = readl(&pmc->pmc_pwrgate_status); in is_partition_powered() [all …]
|
/external/linux-kselftest/tools/testing/selftests/powerpc/pmu/ebb/ |
D | ebb.h | 14 #define PMC_INDEX(pmc) ((pmc)-1) argument 41 static inline void ebb_enable_pmc_counting(int pmc) in ebb_enable_pmc_counting() argument 43 ebb_state.pmc_enable[PMC_INDEX(pmc)] = true; in ebb_enable_pmc_counting() 46 bool ebb_check_count(int pmc, u64 sample_period, int fudge); 60 int count_pmc(int pmc, uint32_t sample_period); 65 void write_pmc(int pmc, u64 value); 66 u64 read_pmc(int pmc);
|
D | ebb.c | 71 bool ebb_check_count(int pmc, u64 sample_period, int fudge) in ebb_check_count() argument 75 count = ebb_state.stats.pmc_count[PMC_INDEX(pmc)]; in ebb_check_count() 81 pmc, count, lower, lower - count); in ebb_check_count() 89 pmc, count, upper, count - upper); in ebb_check_count() 94 pmc, count, lower, upper, count - lower, upper - count); in ebb_check_count() 252 int count_pmc(int pmc, uint32_t sample_period) in count_pmc() argument 260 val = read_pmc(pmc); in count_pmc() 264 ebb_state.stats.pmc_count[PMC_INDEX(pmc)] += val - start_value; in count_pmc() 266 trace_log_reg(ebb_state.trace, SPRN_PMC1 + pmc - 1, val); in count_pmc() 269 write_pmc(pmc, start_value); in count_pmc() [all …]
|
/external/u-boot/arch/arm/mach-at91/arm920t/ |
D | clock.c | 108 at91_pmc_t *pmc = (at91_pmc_t *) ATMEL_BASE_PMC; in at91_clock_init() local 119 tmp = readl(&pmc->mcfr); in at91_clock_init() 128 gd->arch.plla_rate_hz = at91_pll_rate(main_clock, readl(&pmc->pllar)); in at91_clock_init() 147 mckr = readl(&pmc->mckr); in at91_clock_init() 162 struct at91_pmc *pmc = (at91_pmc_t *)ATMEL_BASE_PMC; in at91_pllb_clk_enable() local 166 writel(pllbr, &pmc->pllbr); in at91_pllb_clk_enable() 167 while ((readl(&pmc->sr) & AT91_PMC_LOCKB) != AT91_PMC_LOCKB) { in at91_pllb_clk_enable() 180 struct at91_pmc *pmc = (at91_pmc_t *)ATMEL_BASE_PMC; in at91_pllb_clk_disable() local 184 writel(0, &pmc->pllbr); in at91_pllb_clk_disable() 185 while ((readl(&pmc->sr) & AT91_PMC_LOCKB) != 0) { in at91_pllb_clk_disable()
|
/external/autotest/client/cros/cellular/pseudomodem/ |
D | run_pseudomodem.py | 16 pmc = None 30 pmc = pseudomodem_context.PseudoModemManagerContext( 33 pmc.cmd_line_flags = flags 34 pmc.Start() 46 if pmc: 47 pmc.Stop()
|
/external/u-boot/arch/arm/mach-tegra/tegra114/ |
D | cpu.c | 20 struct pmc_ctlr *pmc = (struct pmc_ctlr *)NV_PA_PMC_BASE; in enable_cpu_power_rail() local 35 writel(reg, &pmc->pmc_cpupwrgood_timer); in enable_cpu_power_rail() 38 clrbits_le32(&pmc->pmc_cntrl, CPUPWRREQ_POL); in enable_cpu_power_rail() 39 setbits_le32(&pmc->pmc_cntrl, CPUPWRREQ_OE); in enable_cpu_power_rail() 188 struct pmc_ctlr *pmc = (struct pmc_ctlr *)NV_PA_PMC_BASE; in is_partition_powered() local 192 reg = readl(&pmc->pmc_pwrgate_status); in is_partition_powered() 198 struct pmc_ctlr *pmc = (struct pmc_ctlr *)NV_PA_PMC_BASE; in is_clamp_enabled() local 202 reg = readl(&pmc->pmc_clamp_status); in is_clamp_enabled() 208 struct pmc_ctlr *pmc = (struct pmc_ctlr *)NV_PA_PMC_BASE; in power_partition() local 215 writel(START_CP | partid, &pmc->pmc_pwrgate_toggle); in power_partition()
|
/external/u-boot/arch/arm/mach-tegra/tegra20/ |
D | warmboot_avp.c | 26 struct pmc_ctlr *pmc = (struct pmc_ctlr *)NV_PA_PMC_BASE; in wb_start() local 67 if (!(readl(&pmc->pmc_pwrgate_status) & PWRGATE_STATUS_CPU)) { in wb_start() 69 writel(reg, &pmc->pmc_pwrgate_toggle); in wb_start() 70 while (!(readl(&pmc->pmc_pwrgate_status) & PWRGATE_STATUS_CPU)) in wb_start() 75 reg = readl(&pmc->pmc_remove_clamping); in wb_start() 77 writel(reg, &pmc->pmc_remove_clamping); in wb_start() 99 reg = readl(&pmc->pmc_scratch41); in wb_start() 142 writel(reg, &pmc->pmc_scratch1); in wb_start() 146 scratch3.word = readl(&pmc->pmc_scratch3); in wb_start()
|
D | cpu.c | 14 struct pmc_ctlr *pmc = (struct pmc_ctlr *)NV_PA_PMC_BASE; in enable_cpu_power_rail() local 17 reg = readl(&pmc->pmc_cntrl); in enable_cpu_power_rail() 19 writel(reg, &pmc->pmc_cntrl); in enable_cpu_power_rail()
|
/external/u-boot/drivers/clk/at91/ |
D | clk-generated.c | 51 struct at91_pmc *pmc = plat->reg_base; in generic_clk_get_rate() local 58 writel(clk->id & AT91_PMC_PCR_PID_MASK, &pmc->pcr); in generic_clk_get_rate() 59 tmp = readl(&pmc->pcr); in generic_clk_get_rate() 79 struct at91_pmc *pmc = plat->reg_base; in generic_clk_set_rate() local 128 writel(clk->id & AT91_PMC_PCR_PID_MASK, &pmc->pcr); in generic_clk_set_rate() 129 tmp = readl(&pmc->pcr); in generic_clk_set_rate() 135 writel(tmp, &pmc->pcr); in generic_clk_set_rate() 137 while (!(readl(&pmc->sr) & AT91_PMC_GCKRDY)) in generic_clk_set_rate()
|
D | clk-plladiv.c | 22 struct at91_pmc *pmc = plat->reg_base; in at91_plladiv_clk_get_rate() local 32 if (readl(&pmc->mckr) & AT91_PMC_MCKR_PLLADIV_2) in at91_plladiv_clk_get_rate() 41 struct at91_pmc *pmc = plat->reg_base; in at91_plladiv_clk_set_rate() local 55 writel((readl(&pmc->mckr) | AT91_PMC_MCKR_PLLADIV_2), in at91_plladiv_clk_set_rate() 56 &pmc->mckr); in at91_plladiv_clk_set_rate()
|
D | clk-peripheral.c | 57 struct at91_pmc *pmc = plat->reg_base; in periph_clk_enable() local 66 addr = &pmc->pcer; in periph_clk_enable() 68 addr = &pmc->pcer1; in periph_clk_enable() 72 writel(clk->id & AT91_PMC_PCR_PID_MASK, &pmc->pcr); in periph_clk_enable() 73 setbits_le32(&pmc->pcr, in periph_clk_enable()
|
D | clk-utmi.c | 25 struct at91_pmc *pmc = plat->reg_base; in utmi_clk_enable() local 32 if (readl(&pmc->sr) & AT91_PMC_LOCKU) in utmi_clk_enable() 82 tmp = readl(&pmc->uckr); in utmi_clk_enable() 86 writel(tmp, &pmc->uckr); in utmi_clk_enable() 88 while (!(readl(&pmc->sr) & AT91_PMC_LOCKU)) in utmi_clk_enable()
|
D | clk-usb.c | 26 struct at91_pmc *pmc = plat->reg_base; in at91_usb_clk_get_rate() local 32 tmp = readl(&pmc->pcr); in at91_usb_clk_get_rate() 47 struct at91_pmc *pmc = plat->reg_base; in at91_usb_clk_set_rate() local 97 writel(tmp, &pmc->usb); in at91_usb_clk_set_rate()
|
D | clk-system.c | 73 struct at91_pmc *pmc = plat->reg_base; in system_clk_enable() local 81 writel(mask, &pmc->scer); in system_clk_enable() 91 while (!(readl(&pmc->sr) & mask)) in system_clk_enable()
|
/external/u-boot/arch/arm/mach-tegra/ |
D | cpu.c | 302 struct pmc_ctlr *pmc = (struct pmc_ctlr *)NV_PA_PMC_BASE; in is_cpu_powered() local 304 return (readl(&pmc->pmc_pwrgate_status) & CPU_PWRED) ? 1 : 0; in is_cpu_powered() 309 struct pmc_ctlr *pmc = (struct pmc_ctlr *)NV_PA_PMC_BASE; in remove_cpu_io_clamps() local 314 reg = readl(&pmc->pmc_remove_clamping); in remove_cpu_io_clamps() 316 writel(reg, &pmc->pmc_remove_clamping); in remove_cpu_io_clamps() 324 struct pmc_ctlr *pmc = (struct pmc_ctlr *)NV_PA_PMC_BASE; in powerup_cpu() local 331 reg = readl(&pmc->pmc_pwrgate_toggle); in powerup_cpu() 334 writel(reg, &pmc->pmc_pwrgate_toggle); in powerup_cpu()
|
/external/u-boot/board/atmel/sama5d2_xplained/ |
D | sama5d2_xplained.c | 137 struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC; in mem_init() local 145 writel(AT91_PMC_DDR, &pmc->scer); in mem_init() 165 struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC; in at91_pmc_init() local 184 writel(0x0 << 8, &pmc->pllicpr); in at91_pmc_init()
|
/external/skia/src/opts/ |
D | SkBlitMask_opts.h | 48 SkPMColor pmc = SkPreMultiplyColor(color); in D32_A8_Opaque_Color_neon() local 57 vpmc.val[NEON_A] = vdup_n_u8(SkGetPackedA32(pmc)); in D32_A8_Opaque_Color_neon() 58 vpmc.val[NEON_R] = vdup_n_u8(SkGetPackedR32(pmc)); in D32_A8_Opaque_Color_neon() 59 vpmc.val[NEON_G] = vdup_n_u8(SkGetPackedG32(pmc)); in D32_A8_Opaque_Color_neon() 60 vpmc.val[NEON_B] = vdup_n_u8(SkGetPackedB32(pmc)); in D32_A8_Opaque_Color_neon() 94 *device = SkBlendARGB32(pmc, *device, aa); in D32_A8_Opaque_Color_neon() 96 *device = SkAlphaMulQ(pmc, SkAlpha255To256(aa)) in D32_A8_Opaque_Color_neon()
|
/external/skqp/src/opts/ |
D | SkBlitMask_opts.h | 48 SkPMColor pmc = SkPreMultiplyColor(color); in D32_A8_Opaque_Color_neon() local 57 vpmc.val[NEON_A] = vdup_n_u8(SkGetPackedA32(pmc)); in D32_A8_Opaque_Color_neon() 58 vpmc.val[NEON_R] = vdup_n_u8(SkGetPackedR32(pmc)); in D32_A8_Opaque_Color_neon() 59 vpmc.val[NEON_G] = vdup_n_u8(SkGetPackedG32(pmc)); in D32_A8_Opaque_Color_neon() 60 vpmc.val[NEON_B] = vdup_n_u8(SkGetPackedB32(pmc)); in D32_A8_Opaque_Color_neon() 94 *device = SkBlendARGB32(pmc, *device, aa); in D32_A8_Opaque_Color_neon() 96 *device = SkAlphaMulQ(pmc, SkAlpha255To256(aa)) in D32_A8_Opaque_Color_neon()
|
/external/skqp/src/shaders/gradients/ |
D | Sk4fGradientPriv.h | 76 SkPMColor pmc; 77 store(c, &pmc, Sk4f(0)); 78 sk_memset32(dst, pmc, n);
|