Lines Matching refs:pl031
31 typedef struct pl031 {
41 static void pl031_set_kernel_offset(pl031_t* pl031) {
47 last = pl031->regs->dr;
49 offset32 = pl031->regs->dr;
74 pl031_t* pl031 = calloc(1, sizeof(*pl031));
75 if (!pl031) {
83 st = pdev_map_mmio(&proto, 0, ZX_CACHE_POLICY_UNCACHED_DEVICE, (void**)&pl031->regs,
90 pl031->parent = parent;
107 pl031_set_kernel_offset(pl031);
112 if (pl031->regs) {
113 zx_vmar_unmap(zx_vmar_root_self(), (uintptr_t)pl031->regs, mmio_size);
116 if (pl031) {
117 free(pl031);
130 ZIRCON_DRIVER_BEGIN(pl031, pl031_rtc_driver_ops, "zircon", "0.1", 3)
134 ZIRCON_DRIVER_END(pl031)