Lines Matching refs:dcrn
1430 ppc_dcrn_t dcrn[DCRN_NB]; member
1431 int (*read_error)(int dcrn);
1432 int (*write_error)(int dcrn);
1435 int ppc_dcr_read (ppc_dcr_t *dcr_env, int dcrn, uint32_t *valp) in ppc_dcr_read() argument
1439 if (dcrn < 0 || dcrn >= DCRN_NB) in ppc_dcr_read()
1441 dcr = &dcr_env->dcrn[dcrn]; in ppc_dcr_read()
1444 *valp = (*dcr->dcr_read)(dcr->opaque, dcrn); in ppc_dcr_read()
1445 trace_ppc_dcr_read(dcrn, *valp); in ppc_dcr_read()
1451 return (*dcr_env->read_error)(dcrn); in ppc_dcr_read()
1456 int ppc_dcr_write (ppc_dcr_t *dcr_env, int dcrn, uint32_t val) in ppc_dcr_write() argument
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()
1466 (*dcr->dcr_write)(dcr->opaque, dcrn, val); in ppc_dcr_write()
1472 return (*dcr_env->write_error)(dcrn); in ppc_dcr_write()
1477 int ppc_dcr_register (CPUPPCState *env, int dcrn, void *opaque, in ppc_dcr_register() argument
1486 if (dcrn < 0 || dcrn >= DCRN_NB) in ppc_dcr_register()
1488 dcr = &dcr_env->dcrn[dcrn]; in ppc_dcr_register()
1500 int ppc_dcr_init (CPUPPCState *env, int (*read_error)(int dcrn), in ppc_dcr_init() argument
1501 int (*write_error)(int dcrn)) in ppc_dcr_init() argument