Lines Matching refs:cell
16 struct mmp_clk_reset_cell *cell; in mmp_of_reset_xlate() local
23 cell = &unit->cells[i]; in mmp_of_reset_xlate()
24 if (cell->clk_id == reset_spec->args[0]) in mmp_of_reset_xlate()
38 struct mmp_clk_reset_cell *cell; in mmp_clk_reset_assert() local
42 cell = &unit->cells[id]; in mmp_clk_reset_assert()
43 if (cell->lock) in mmp_clk_reset_assert()
44 spin_lock_irqsave(cell->lock, flags); in mmp_clk_reset_assert()
46 val = readl(cell->reg); in mmp_clk_reset_assert()
47 val |= cell->bits; in mmp_clk_reset_assert()
48 writel(val, cell->reg); in mmp_clk_reset_assert()
50 if (cell->lock) in mmp_clk_reset_assert()
51 spin_unlock_irqrestore(cell->lock, flags); in mmp_clk_reset_assert()
60 struct mmp_clk_reset_cell *cell; in mmp_clk_reset_deassert() local
64 cell = &unit->cells[id]; in mmp_clk_reset_deassert()
65 if (cell->lock) in mmp_clk_reset_deassert()
66 spin_lock_irqsave(cell->lock, flags); in mmp_clk_reset_deassert()
68 val = readl(cell->reg); in mmp_clk_reset_deassert()
69 val &= ~cell->bits; in mmp_clk_reset_deassert()
70 writel(val, cell->reg); in mmp_clk_reset_deassert()
72 if (cell->lock) in mmp_clk_reset_deassert()
73 spin_unlock_irqrestore(cell->lock, flags); in mmp_clk_reset_deassert()