Lines Matching defs:phase
173 struct mmc_phase *phase = to_mmc_phase(hw);
179 value = readl(phase->reg);
180 delay = (value >> phase->offset) & 0x3;
215 struct mmc_phase *phase = to_mmc_phase(hw);
266 spin_lock_irqsave(phase->lock, flags);
267 value = readl(phase->reg);
268 value &= ~GENMASK(phase->offset + 3, phase->offset);
269 value |= delay << phase->offset;
270 writel(value, phase->reg);
271 spin_unlock_irqrestore(phase->lock, flags);
286 * through struct factors_data. The phase clocks parts are identical.
324 struct mmc_phase *phase;
326 phase = kmalloc(sizeof(*phase), GFP_KERNEL);
327 if (!phase)
330 phase->hw.init = &init;
331 phase->reg = reg;
332 phase->lock = lock;
335 phase->offset = 8;
337 phase->offset = 20;
343 clk_data->clks[i] = clk_register(NULL, &phase->hw);
345 kfree(phase);