Lines Matching refs:cell
15 struct mmp_clk_reset_cell *cell; in mmp_of_reset_xlate() local
22 cell = &unit->cells[i]; in mmp_of_reset_xlate()
23 if (cell->clk_id == reset_spec->args[0]) in mmp_of_reset_xlate()
37 struct mmp_clk_reset_cell *cell; in mmp_clk_reset_assert() local
41 cell = &unit->cells[id]; in mmp_clk_reset_assert()
42 if (cell->lock) in mmp_clk_reset_assert()
43 spin_lock_irqsave(cell->lock, flags); in mmp_clk_reset_assert()
45 val = readl(cell->reg); in mmp_clk_reset_assert()
46 val |= cell->bits; in mmp_clk_reset_assert()
47 writel(val, cell->reg); in mmp_clk_reset_assert()
49 if (cell->lock) in mmp_clk_reset_assert()
50 spin_unlock_irqrestore(cell->lock, flags); in mmp_clk_reset_assert()
59 struct mmp_clk_reset_cell *cell; in mmp_clk_reset_deassert() local
63 cell = &unit->cells[id]; in mmp_clk_reset_deassert()
64 if (cell->lock) in mmp_clk_reset_deassert()
65 spin_lock_irqsave(cell->lock, flags); in mmp_clk_reset_deassert()
67 val = readl(cell->reg); in mmp_clk_reset_deassert()
68 val &= ~cell->bits; in mmp_clk_reset_deassert()
69 writel(val, cell->reg); in mmp_clk_reset_deassert()
71 if (cell->lock) in mmp_clk_reset_deassert()
72 spin_unlock_irqrestore(cell->lock, flags); in mmp_clk_reset_deassert()