/openbmc/linux/drivers/platform/x86/ |
H A D | panasonic-laptop.c | 961 if (!pcc) in acpi_pcc_hotkey_resume() 965 acpi_pcc_write_sset(pcc, SINF_MUTE, pcc->mute); in acpi_pcc_hotkey_resume() 967 acpi_pcc_write_sset(pcc, SINF_ECO_MODE, pcc->eco_mode); in acpi_pcc_hotkey_resume() 1005 if (!pcc) { in acpi_pcc_hotkey_add() 1056 pcc->ac_brightness = pcc->sinf[SINF_AC_CUR_BRIGHT]; in acpi_pcc_hotkey_add() 1057 pcc->dc_brightness = pcc->sinf[SINF_DC_CUR_BRIGHT]; in acpi_pcc_hotkey_add() 1059 pcc->mute = pcc->sinf[SINF_MUTE]; in acpi_pcc_hotkey_add() 1061 pcc->eco_mode = pcc->sinf[SINF_ECO_MODE]; in acpi_pcc_hotkey_add() 1063 pcc->current_brightness = pcc->sinf[SINF_CUR_BRIGHT]; in acpi_pcc_hotkey_add() 1099 kfree(pcc); in acpi_pcc_hotkey_add() [all …]
|
/openbmc/qemu/target/ppc/ |
H A D | cpu_init.c | 6085 pcc->lrg_decr_bits = 32; in POWERPC_FAMILY() 6205 pcc->lrg_decr_bits = 32; in POWERPC_FAMILY() 6376 pcc->lrg_decr_bits = 32; in POWERPC_FAMILY() 6377 pcc->n_host_threads = 8; in POWERPC_FAMILY() 6571 pcc->lrg_decr_bits = 56; in POWERPC_FAMILY() 6825 (*pcc->init_proc)(env); in init_ppc_proc() 6975 ppc_gdb_init(cs, pcc); in ppc_cpu_realize() 7029 return pcc; in ppc_cpu_class_by_pvr() 7044 if (pcc->pvr_match(pcc, pvr, true)) { in ppc_cpu_compare_class_pvr_mask() 7063 return pcc; in ppc_cpu_class_by_pvr_mask() [all …]
|
H A D | compat.c | 117 static bool pcc_compat(PowerPCCPUClass *pcc, uint32_t compat_pvr, in pcc_compat() argument 135 if (!(pcc->pcr_supported & compat->pcr_level)) { in pcc_compat() 145 PowerPCCPUClass *pcc = POWERPC_CPU_GET_CLASS(cpu); in ppc_check_compat() local 151 return pcc_compat(pcc, compat_pvr, min_compat_pvr, max_compat_pvr); in ppc_check_compat() 157 PowerPCCPUClass *pcc = POWERPC_CPU_CLASS(object_class_by_name(cputype)); in ppc_type_check_compat() local 158 return pcc_compat(pcc, compat_pvr, min_compat_pvr, max_compat_pvr); in ppc_type_check_compat() 165 PowerPCCPUClass *pcc = POWERPC_CPU_GET_CLASS(cpu); in ppc_set_compat() local 193 env->spr[SPR_PCR] = pcr & pcc->pcr_mask; in ppc_set_compat()
|
H A D | gdbstub.c | 301 PowerPCCPUClass *pcc = POWERPC_CPU_GET_CLASS(cs); in gdb_gen_spr_feature() local 327 if (pcc->gdb_spr.xml) { in gdb_gen_spr_feature() 331 gdb_feature_builder_init(&builder, &pcc->gdb_spr, in gdb_gen_spr_feature() 625 void ppc_gdb_init(CPUState *cs, PowerPCCPUClass *pcc) in ppc_gdb_init() argument 627 if (pcc->insns_flags & PPC_FLOAT) { in ppc_gdb_init() 631 if (pcc->insns_flags & PPC_ALTIVEC) { in ppc_gdb_init() 636 if (pcc->insns_flags & PPC_SPE) { in ppc_gdb_init() 640 if (pcc->insns_flags2 & PPC2_VSX) { in ppc_gdb_init() 647 &pcc->gdb_spr, 0); in ppc_gdb_init()
|
H A D | helper_regs.c | 434 PowerPCCPUClass *pcc = POWERPC_CPU_GET_CLASS(cpu); in register_generic_sprs() local 487 pcc->pvr); in register_generic_sprs() 490 if (pcc->svr != POWERPC_SVR_NONE) { in register_generic_sprs() 491 if (pcc->svr & POWERPC_SVR_E500) { in register_generic_sprs() 495 pcc->svr & ~POWERPC_SVR_E500); in register_generic_sprs() 500 pcc->svr); in register_generic_sprs()
|
H A D | cpu.c | 97 PowerPCCPUClass *pcc = POWERPC_CPU_GET_CLASS(cpu); in ppc_store_lpcr() local 100 env->spr[SPR_LPCR] = val & pcc->lpcr_mask; in ppc_store_lpcr()
|
H A D | machine.c | 236 PowerPCCPUClass *pcc = POWERPC_CPU_GET_CLASS(cpu); in pvr_match() local 238 if (pvr == pcc->pvr) { in pvr_match() 241 return pcc->pvr_match(pcc, pvr, true); in pvr_match()
|
/openbmc/qemu/hw/pcmcia/ |
H A D | pxa2xx.c | 40 PCMCIACardClass *pcc; in pxa2xx_pcmcia_common_read() local 43 pcc = PCMCIA_CARD_GET_CLASS(s->card); in pxa2xx_pcmcia_common_read() 54 PCMCIACardClass *pcc; in pxa2xx_pcmcia_common_write() local 66 PCMCIACardClass *pcc; in pxa2xx_pcmcia_attr_read() local 80 PCMCIACardClass *pcc; in pxa2xx_pcmcia_attr_write() local 92 PCMCIACardClass *pcc; in pxa2xx_pcmcia_io_read() local 106 PCMCIACardClass *pcc; in pxa2xx_pcmcia_io_write() local 181 PCMCIACardClass *pcc; in pxa2xx_pcmcia_attach() local 196 pcc->attach(s->card); in pxa2xx_pcmcia_attach() 205 PCMCIACardClass *pcc; in pxa2xx_pcmcia_detach() local [all …]
|
/openbmc/qemu/hw/ide/ |
H A D | microdrive.c | 138 if (at < pcc->cis_len) { in md_attr_read() 139 return pcc->cis[at]; in md_attr_read() 544 md->attr_base = pcc->cis[0x74] | (pcc->cis[0x76] << 8); in dscm1xxxx_attach() 583 pcc->cis = dscm1xxxx_cis; in dscm1xxxx_class_init() 586 pcc->attach = dscm1xxxx_attach; in dscm1xxxx_class_init() 587 pcc->detach = dscm1xxxx_detach; in dscm1xxxx_class_init() 617 pcc->attr_read = md_attr_read; in microdrive_class_init() 618 pcc->attr_write = md_attr_write; in microdrive_class_init() 619 pcc->common_read = md_common_read; in microdrive_class_init() 621 pcc->io_read = md_common_read; in microdrive_class_init() [all …]
|
/openbmc/qemu/hw/ppc/ |
H A D | pnv_core.c | 70 pcc->intc_reset(pc->chip, cpu); in pnv_core_cpu_reset() 308 pcc->intc_create(pc->chip, cpu, &local_err); in pnv_core_cpu_realize() 349 PnvCoreClass *pcc = PNV_CORE_GET_CLASS(pc); in pnv_core_realize() local 410 pcc->intc_destroy(pc->chip, cpu); in pnv_core_cpu_unrealize() 444 PnvCoreClass *pcc = PNV_CORE_CLASS(oc); in pnv_core_power8_class_init() local 446 pcc->xscom_ops = &pnv_core_power8_xscom_ops; in pnv_core_power8_class_init() 447 pcc->xscom_size = PNV_XSCOM_EX_SIZE; in pnv_core_power8_class_init() 452 PnvCoreClass *pcc = PNV_CORE_CLASS(oc); in pnv_core_power9_class_init() local 455 pcc->xscom_size = PNV_XSCOM_EX_SIZE; in pnv_core_power9_class_init() 460 PnvCoreClass *pcc = PNV_CORE_CLASS(oc); in pnv_core_power10_class_init() local [all …]
|
H A D | pnv.c | 183 if (pcc->l1_dcache_size) { in pnv_dt_core() 189 if (pcc->l1_icache_size) { in pnv_dt_core() 279 pcc->get_pir_tir(chip, hwid, 0, &pir, NULL); in pnv_dt_icp() 1430 chip8->num_phbs = pcc->num_phbs; in pnv_chip_power8_instance_init() 1494 pcc->parent_realize(dev, &local_err); in pnv_chip_power8_realize() 1673 chip->num_pecs = pcc->num_pecs; in pnv_chip_power9_instance_init() 1760 pcc->parent_realize(dev, &local_err); in pnv_chip_power9_realize() 1955 chip->num_pecs = pcc->num_pecs; in pnv_chip_power10_instance_init() 2033 pcc->parent_realize(dev, &local_err); in pnv_chip_power10_realize() 2286 chip->cores_mask = pcc->cores_mask; in pnv_chip_core_sanitize() [all …]
|
H A D | spapr_cpu_core.c | 33 PowerPCCPUClass *pcc = POWERPC_CPU_GET_CLASS(cpu); in spapr_reset_vcpu() local 62 lpcr &= ~(LPCR_VPM1 | LPCR_ISL | LPCR_KBV | pcc->lpcr_pm); in spapr_reset_vcpu() 90 PowerPCCPUClass *pcc = POWERPC_CPU_GET_CLASS(cpu); in spapr_cpu_set_entry_state() local 100 ppc_store_lpcr(cpu, env->spr[SPR_LPCR] | pcc->lpcr_pm); in spapr_cpu_set_entry_state()
|
H A D | spapr_rtas.c | 210 PowerPCCPUClass *pcc = POWERPC_CPU_GET_CLASS(cpu); in rtas_stop_self() local 219 ppc_store_lpcr(cpu, env->spr[SPR_LPCR] & ~pcc->lpcr_pm); in rtas_stop_self() 273 PowerPCCPUClass *pcc = POWERPC_CPU_GET_CLASS(cpu); in rtas_ibm_get_system_parameter() local 290 if (pcc->n_host_threads > 0) { in rtas_ibm_get_system_parameter() 298 pcc->n_host_threads); in rtas_ibm_get_system_parameter()
|
H A D | ppc.c | 756 PowerPCCPUClass *pcc = POWERPC_CPU_GET_CLASS(cpu); in _cpu_ppc_load_decr() local 757 return sextract64(decr, 0, pcc->lrg_decr_bits); in _cpu_ppc_load_decr() 774 PowerPCCPUClass *pcc = POWERPC_CPU_GET_CLASS(cpu); in _cpu_ppc_load_hdecr() local 784 if (pcc->lrg_decr_bits > 32) { in _cpu_ppc_load_hdecr() 785 return sextract64(hdecr, 0, pcc->lrg_decr_bits); in _cpu_ppc_load_hdecr() 908 PowerPCCPUClass *pcc = POWERPC_CPU_GET_CLASS(cpu); in cpu_ppc_store_decr() local 919 nr_bits = pcc->lrg_decr_bits; in cpu_ppc_store_decr() 952 PowerPCCPUClass *pcc = POWERPC_CPU_GET_CLASS(cpu); in cpu_ppc_store_hdecr() local 958 _cpu_ppc_store_hdecr(cpu, now, hdecr, value, pcc->lrg_decr_bits); in cpu_ppc_store_hdecr()
|
H A D | spapr_caps.c | 539 PowerPCCPUClass *pcc = POWERPC_CPU_GET_CLASS(cpu); in cap_large_decr_apply() local 559 } else if (pcc->lrg_decr_bits != kvm_nr_bits) { in cap_large_decr_apply() 562 kvm_nr_bits, pcc->lrg_decr_bits); in cap_large_decr_apply() 677 PowerPCCPUClass *pcc = POWERPC_CPU_GET_CLASS(cpu); in cap_ail_mode_3_apply() local 685 if (!(pcc->insns_flags2 & PPC2_ISA207S)) { in cap_ail_mode_3_apply()
|
/openbmc/qemu/target/s390x/ |
H A D | cpu_features_def.h.inc | 316 DEF_FEAT(PCC_CMAC_DEA, "pcc-cmac-dea", PCC, 1, "PCC Compute-Last-Block-CMAC-Using-DEA") 322 DEF_FEAT(PCC_CMAC_AES_128, "pcc-cmac-aes-128", PCC, 18, "PCC Compute-Last-Block-CMAC-Using-AES-128") 323 DEF_FEAT(PCC_CMAC_AES_192, "pcc-cmac-aes-192", PCC, 19, "PCC Compute-Last-Block-CMAC-Using-AES-192") 328 DEF_FEAT(PCC_XTS_AES_128, "pcc-xts-aes-128", PCC, 50, "PCC Compute-XTS-Parameter-Using-AES-128") 329 DEF_FEAT(PCC_XTS_AES_256, "pcc-xts-aes-256", PCC, 52, "PCC Compute-XTS-Parameter-Using-AES-256") 332 DEF_FEAT(PCC_SCALAR_MULT_P256, "pcc-scalar-mult-p256", PCC, 64, "PCC Scalar-Multiply-P256") 333 DEF_FEAT(PCC_SCALAR_MULT_P384, "pcc-scalar-mult-p384", PCC, 65, "PCC Scalar-Multiply-P384") 334 DEF_FEAT(PCC_SCALAR_MULT_P512, "pcc-scalar-mult-p521", PCC, 66, "PCC Scalar-Multiply-P521") 336 DEF_FEAT(PCC_SCALAR_MULT_ED448, "pcc-scalar-mult-ed448", PCC, 73, "PCC Scalar-Multiply-Ed448") 337 DEF_FEAT(PCC_SCALAR_MULT_X25519, "pcc-scalar-mult-x25519", PCC, 80, "PCC Scalar-Multiply-X25519") [all …]
|
/openbmc/u-boot/arch/arm/mach-imx/mx7ulp/ |
H A D | Makefile | 6 obj-y := soc.o clock.o iomux.o pcc.o scg.o
|
/openbmc/openbmc/meta-facebook/meta-harma/recipes-phosphor/host/ |
H A D | phosphor-host-postd_%.bbappend | 5 SNOOP_DEVICE = "aspeed-lpc-pcc"
|
/openbmc/u-boot/drivers/pci/ |
H A D | pcie_imx.c | 662 static struct pci_controller pcc; in imx_pcie_init() local 663 struct pci_controller *hose = &pcc; in imx_pcie_init() 666 memset(&pcc, 0, sizeof(pcc)); in imx_pcie_init()
|
/openbmc/linux/kernel/bpf/ |
H A D | memalloc.c | 499 struct bpf_mem_caches *cc, __percpu *pcc; in bpf_mem_alloc_init() local 539 pcc = __alloc_percpu_gfp(sizeof(*cc), 8, GFP_KERNEL); in bpf_mem_alloc_init() 540 if (!pcc) in bpf_mem_alloc_init() 546 cc = per_cpu_ptr(pcc, cpu); in bpf_mem_alloc_init() 558 ma->caches = pcc; in bpf_mem_alloc_init()
|
/openbmc/linux/Documentation/devicetree/bindings/clock/ |
H A D | imx8ulp-pcc-clock.yaml | 4 $id: http://devicetree.org/schemas/clock/imx8ulp-pcc-clock.yaml#
|
/openbmc/linux/drivers/mailbox/ |
H A D | Makefile | 24 obj-$(CONFIG_PCC) += pcc.o
|
/openbmc/linux/arch/alpha/boot/ |
H A D | bootp.c | 79 pcb_va->pcc = 0; in pal_init()
|
H A D | main.c | 73 pcb_va->pcc = 0; in pal_init()
|
/openbmc/linux/drivers/gpu/drm/msm/disp/dpu1/ |
H A D | dpu_hw_dspp.c | 36 base = ctx->cap->sblk->pcc.base; in dpu_setup_dspp_pcc()
|