apbc 37 drivers/clk/mmp/clk-apbc.c struct clk_apbc *apbc = to_clk_apbc(hw); apbc 45 drivers/clk/mmp/clk-apbc.c if (apbc->lock) apbc 46 drivers/clk/mmp/clk-apbc.c spin_lock_irqsave(apbc->lock, flags); apbc 48 drivers/clk/mmp/clk-apbc.c data = readl_relaxed(apbc->base); apbc 49 drivers/clk/mmp/clk-apbc.c if (apbc->flags & APBC_POWER_CTRL) apbc 52 drivers/clk/mmp/clk-apbc.c writel_relaxed(data, apbc->base); apbc 54 drivers/clk/mmp/clk-apbc.c if (apbc->lock) apbc 55 drivers/clk/mmp/clk-apbc.c spin_unlock_irqrestore(apbc->lock, flags); apbc 57 drivers/clk/mmp/clk-apbc.c udelay(apbc->delay); apbc 59 drivers/clk/mmp/clk-apbc.c if (apbc->lock) apbc 60 drivers/clk/mmp/clk-apbc.c spin_lock_irqsave(apbc->lock, flags); apbc 62 drivers/clk/mmp/clk-apbc.c data = readl_relaxed(apbc->base); apbc 64 drivers/clk/mmp/clk-apbc.c writel_relaxed(data, apbc->base); apbc 66 drivers/clk/mmp/clk-apbc.c if (apbc->lock) apbc 67 drivers/clk/mmp/clk-apbc.c spin_unlock_irqrestore(apbc->lock, flags); apbc 69 drivers/clk/mmp/clk-apbc.c udelay(apbc->delay); apbc 71 drivers/clk/mmp/clk-apbc.c if (!(apbc->flags & APBC_NO_BUS_CTRL)) { apbc 72 drivers/clk/mmp/clk-apbc.c if (apbc->lock) apbc 73 drivers/clk/mmp/clk-apbc.c spin_lock_irqsave(apbc->lock, flags); apbc 75 drivers/clk/mmp/clk-apbc.c data = readl_relaxed(apbc->base); apbc 77 drivers/clk/mmp/clk-apbc.c writel_relaxed(data, apbc->base); apbc 79 drivers/clk/mmp/clk-apbc.c if (apbc->lock) apbc 80 drivers/clk/mmp/clk-apbc.c spin_unlock_irqrestore(apbc->lock, flags); apbc 88 drivers/clk/mmp/clk-apbc.c struct clk_apbc *apbc = to_clk_apbc(hw); apbc 92 drivers/clk/mmp/clk-apbc.c if (apbc->lock) apbc 93 drivers/clk/mmp/clk-apbc.c spin_lock_irqsave(apbc->lock, flags); apbc 95 drivers/clk/mmp/clk-apbc.c data = readl_relaxed(apbc->base); apbc 96 drivers/clk/mmp/clk-apbc.c if (apbc->flags & APBC_POWER_CTRL) apbc 99 drivers/clk/mmp/clk-apbc.c writel_relaxed(data, apbc->base); apbc 101 drivers/clk/mmp/clk-apbc.c if (apbc->lock) apbc 102 drivers/clk/mmp/clk-apbc.c spin_unlock_irqrestore(apbc->lock, flags); apbc 106 drivers/clk/mmp/clk-apbc.c if (apbc->lock) apbc 107 drivers/clk/mmp/clk-apbc.c spin_lock_irqsave(apbc->lock, flags); apbc 109 drivers/clk/mmp/clk-apbc.c data = readl_relaxed(apbc->base); apbc 111 drivers/clk/mmp/clk-apbc.c writel_relaxed(data, apbc->base); apbc 113 drivers/clk/mmp/clk-apbc.c if (apbc->lock) apbc 114 drivers/clk/mmp/clk-apbc.c spin_unlock_irqrestore(apbc->lock, flags); apbc 126 drivers/clk/mmp/clk-apbc.c struct clk_apbc *apbc; apbc 130 drivers/clk/mmp/clk-apbc.c apbc = kzalloc(sizeof(*apbc), GFP_KERNEL); apbc 131 drivers/clk/mmp/clk-apbc.c if (!apbc) apbc 140 drivers/clk/mmp/clk-apbc.c apbc->base = base; apbc 141 drivers/clk/mmp/clk-apbc.c apbc->delay = delay; apbc 142 drivers/clk/mmp/clk-apbc.c apbc->flags = apbc_flags; apbc 143 drivers/clk/mmp/clk-apbc.c apbc->lock = lock; apbc 144 drivers/clk/mmp/clk-apbc.c apbc->hw.init = &init; apbc 146 drivers/clk/mmp/clk-apbc.c clk = clk_register(NULL, &apbc->hw); apbc 148 drivers/clk/mmp/clk-apbc.c kfree(apbc);