/openbmc/qemu/hw/ppc/ |
H A D | ppc4xx_devs.c | 72 switch (dcrn) { in dcr_read_mal() 110 if (dcrn >= MAL0_TXCTP0R && dcrn < MAL0_TXCTP0R + mal->txcnum) { in dcr_read_mal() 113 if (dcrn >= MAL0_RXCTP0R && dcrn < MAL0_RXCTP0R + mal->rxcnum) { in dcr_read_mal() 116 if (dcrn >= MAL0_RCBS0 && dcrn < MAL0_RCBS0 + mal->rxcnum) { in dcr_read_mal() 127 switch (dcrn) { in dcr_write_mal() 170 if (dcrn >= MAL0_TXCTP0R && dcrn < MAL0_TXCTP0R + mal->txcnum) { in dcr_write_mal() 173 if (dcrn >= MAL0_RXCTP0R && dcrn < MAL0_RXCTP0R + mal->rxcnum) { in dcr_write_mal() 176 if (dcrn >= MAL0_RCBS0 && dcrn < MAL0_RCBS0 + mal->rxcnum) { in dcr_write_mal() 267 switch (dcrn) { in dcr_read_plb() 290 switch (dcrn) { in dcr_write_plb() [all …]
|
H A D | ppc440_uc.c | 82 switch (dcrn) { in dcr_read_l2sram() 120 switch (dcrn) { in dcr_write_l2sram() 243 switch (dcrn) { in dcr_read_cpr() 277 switch (dcrn) { in dcr_write_cpr() 341 switch (dcrn) { in dcr_read_sdr() 390 switch (dcrn) { in dcr_write_sdr() 451 switch (dcrn) { in dcr_read_ahb() 469 switch (dcrn) { in dcr_write_ahb() 541 int addr = dcrn - dma->base; in dcr_read_dma() 587 int addr = dcrn - dma->base; in dcr_write_dma() [all …]
|
H A D | ppc.c | 1430 ppc_dcrn_t dcrn[DCRN_NB]; member 1431 int (*read_error)(int dcrn); 1432 int (*write_error)(int dcrn); 1439 if (dcrn < 0 || dcrn >= DCRN_NB) in ppc_dcr_read() 1441 dcr = &dcr_env->dcrn[dcrn]; in ppc_dcr_read() 1445 trace_ppc_dcr_read(dcrn, *valp); in ppc_dcr_read() 1460 if (dcrn < 0 || dcrn >= DCRN_NB) in ppc_dcr_write() 1462 dcr = &dcr_env->dcrn[dcrn]; in ppc_dcr_write() 1465 trace_ppc_dcr_write(dcrn, val); in ppc_dcr_write() 1486 if (dcrn < 0 || dcrn >= DCRN_NB) in ppc_dcr_register() [all …]
|
H A D | ppc4xx_sdram.c | 205 static uint32_t sdram_ddr_dcr_read(void *opaque, int dcrn) in sdram_ddr_dcr_read() argument 210 switch (dcrn) { in sdram_ddr_dcr_read() 272 static void sdram_ddr_dcr_write(void *opaque, int dcrn, uint32_t val) in sdram_ddr_dcr_write() argument 277 switch (dcrn) { in sdram_ddr_dcr_write() 526 static uint32_t sdram_ddr2_dcr_read(void *opaque, int dcrn) in sdram_ddr2_dcr_read() argument 531 switch (dcrn) { in sdram_ddr2_dcr_read() 536 if (s->bank[dcrn - SDRAM_R0BAS].size) { in sdram_ddr2_dcr_read() 537 ret = sdram_ddr2_bcr(s->bank[dcrn - SDRAM_R0BAS].base, in sdram_ddr2_dcr_read() 538 s->bank[dcrn - SDRAM_R0BAS].size); in sdram_ddr2_dcr_read() 581 static void sdram_ddr2_dcr_write(void *opaque, int dcrn, uint32_t val) in sdram_ddr2_dcr_write() argument [all …]
|
H A D | ppc405_uc.c | 54 static uint32_t dcr_read_pob(void *opaque, int dcrn) in dcr_read_pob() argument 59 switch (dcrn) { in dcr_read_pob() 78 static void dcr_write_pob(void *opaque, int dcrn, uint32_t val) in dcr_write_pob() argument 82 switch (dcrn) { in dcr_write_pob() 237 static uint32_t dcr_read_dma(void *opaque, int dcrn) in dcr_read_dma() argument 401 static uint32_t dcr_read_ocm(void *opaque, int dcrn) in dcr_read_ocm() argument 406 switch (dcrn) { in dcr_read_ocm() 436 switch (dcrn) { in dcr_write_ocm() 846 static uint32_t dcr_read_epcpc(void *opaque, int dcrn) in dcr_read_epcpc() argument 851 switch (dcrn) { in dcr_read_epcpc() [all …]
|
/openbmc/qemu/include/hw/ppc/ |
H A D | ppc.h | 64 typedef uint32_t (*dcr_read_cb)(void *opaque, int dcrn); 65 typedef void (*dcr_write_cb)(void *opaque, int dcrn, uint32_t val); 66 int ppc_dcr_init (CPUPPCState *env, int (*dcr_read_error)(int dcrn), 67 int (*dcr_write_error)(int dcrn)); 68 int ppc_dcr_register (CPUPPCState *env, int dcrn, void *opaque,
|
H A D | ppc4xx.h | 43 void ppc4xx_dcr_register(Ppc4xxDcrDeviceState *dev, int dcrn, void *opaque,
|
/openbmc/qemu/hw/intc/ |
H A D | ppc-uic.c | 141 static uint32_t dcr_read_uic(void *opaque, int dcrn) in dcr_read_uic() argument 146 dcrn -= uic->dcr_base; in dcr_read_uic() 147 switch (dcrn) { in dcr_read_uic() 188 static void dcr_write_uic(void *opaque, int dcrn, uint32_t val) in dcr_write_uic() argument 192 dcrn -= uic->dcr_base; in dcr_write_uic() 193 LOG_UIC("%s: dcr %d val 0x%x\n", __func__, dcrn, val); in dcr_write_uic() 194 switch (dcrn) { in dcr_write_uic()
|
/openbmc/qemu/target/ppc/ |
H A D | timebase_helper.c | 468 target_ulong helper_load_dcr(CPUPPCState *env, target_ulong dcrn) in helper_load_dcr() argument 481 ret = ppc_dcr_read(env->dcr_env, (uint32_t)dcrn, &val); in helper_load_dcr() 485 (uint32_t)dcrn, (uint32_t)dcrn); in helper_load_dcr() 494 void helper_store_dcr(CPUPPCState *env, target_ulong dcrn, target_ulong val) in helper_store_dcr() argument 504 ret = ppc_dcr_write(env->dcr_env, (uint32_t)dcrn, (uint32_t)val); in helper_store_dcr() 508 (uint32_t)dcrn, (uint32_t)dcrn); in helper_store_dcr()
|
H A D | kvm.c | 1362 uint32_t dcrn, uint32_t *data) in kvmppc_handle_dcr_read() argument 1364 if (ppc_dcr_read(env->dcr_env, dcrn, data) < 0) { in kvmppc_handle_dcr_read() 1365 fprintf(stderr, "Read to unhandled DCR (0x%x)\n", dcrn); in kvmppc_handle_dcr_read() 1372 uint32_t dcrn, uint32_t data) in kvmppc_handle_dcr_write() argument 1374 if (ppc_dcr_write(env->dcr_env, dcrn, data) < 0) { in kvmppc_handle_dcr_write() 1375 fprintf(stderr, "Write to unhandled DCR (0x%x)\n", dcrn); in kvmppc_handle_dcr_write() 1668 ret = kvmppc_handle_dcr_write(env, run->dcr.dcrn, run->dcr.data); in kvm_arch_handle_exit() 1671 ret = kvmppc_handle_dcr_read(env, run->dcr.dcrn, &run->dcr.data); in kvm_arch_handle_exit()
|
H A D | translate.c | 5002 TCGv dcrn; in gen_mfdcr() 5005 dcrn = tcg_constant_tl(SPR(ctx->opcode)); in gen_mfdcr() 5006 gen_helper_load_dcr(cpu_gpr[rD(ctx->opcode)], tcg_env, dcrn); in gen_mfdcr() 5016 TCGv dcrn; in gen_mtdcr() 5019 dcrn = tcg_constant_tl(SPR(ctx->opcode)); in gen_mtdcr() 5020 gen_helper_store_dcr(tcg_env, dcrn, cpu_gpr[rS(ctx->opcode)]); in gen_mtdcr()
|
H A D | cpu.h | 1659 int ppc_dcr_read(ppc_dcr_t *dcr_env, int dcrn, uint32_t *valp); 1660 int ppc_dcr_write(ppc_dcr_t *dcr_env, int dcrn, uint32_t val);
|
/openbmc/qemu/linux-user/ppc/ |
H A D | cpu_loop.c | 58 int ppc_dcr_read (ppc_dcr_t *dcr_env, int dcrn, uint32_t *valp) in ppc_dcr_read() argument 63 int ppc_dcr_write (ppc_dcr_t *dcr_env, int dcrn, uint32_t val) in ppc_dcr_write() argument
|
/openbmc/qemu/linux-headers/linux/ |
H A D | kvm.h | 292 __u32 dcrn; member
|
/openbmc/linux/include/uapi/linux/ |
H A D | kvm.h | 378 __u32 dcrn; member
|
/openbmc/linux/tools/include/uapi/linux/ |
H A D | kvm.h | 378 __u32 dcrn; member
|
/openbmc/linux/Documentation/virt/kvm/ |
H A D | api.rst | 6352 __u32 dcrn;
|