Lines Matching refs:phase
175 struct mmc_phase *phase = to_mmc_phase(hw);
181 value = readl(phase->reg);
182 delay = (value >> phase->offset) & 0x3;
217 struct mmc_phase *phase = to_mmc_phase(hw);
268 spin_lock_irqsave(phase->lock, flags);
269 value = readl(phase->reg);
270 value &= ~GENMASK(phase->offset + 3, phase->offset);
271 value |= delay << phase->offset;
272 writel(value, phase->reg);
273 spin_unlock_irqrestore(phase->lock, flags);
288 * through struct factors_data. The phase clocks parts are identical.
326 struct mmc_phase *phase;
328 phase = kmalloc(sizeof(*phase), GFP_KERNEL);
329 if (!phase)
332 phase->hw.init = &init;
333 phase->reg = reg;
334 phase->lock = lock;
337 phase->offset = 8;
339 phase->offset = 20;
345 clk_data->clks[i] = clk_register(NULL, &phase->hw);
347 kfree(phase);