Searched refs:inv_clock (Results 1 – 1 of 1) sorted by relevance
36 struct rockchip_inv_clock *inv_clock = to_inv_clock(hw); in rockchip_inv_get_phase() local39 val = readl(inv_clock->reg) >> inv_clock->shift; in rockchip_inv_get_phase()46 struct rockchip_inv_clock *inv_clock = to_inv_clock(hw); in rockchip_inv_set_phase() local57 if (inv_clock->flags & ROCKCHIP_INVERTER_HIWORD_MASK) { in rockchip_inv_set_phase()58 writel(HIWORD_UPDATE(val, INVERTER_MASK, inv_clock->shift), in rockchip_inv_set_phase()59 inv_clock->reg); in rockchip_inv_set_phase()64 spin_lock_irqsave(inv_clock->lock, flags); in rockchip_inv_set_phase()66 reg = readl(inv_clock->reg); in rockchip_inv_set_phase()67 reg &= ~BIT(inv_clock->shift); in rockchip_inv_set_phase()69 writel(reg, inv_clock->reg); in rockchip_inv_set_phase()[all …]