Searched refs:pfd (Results 1 – 5 of 5) sorted by relevance
/drivers/clk/imx/ |
D | clk-pfdv2.c | 43 static int clk_pfdv2_wait(struct clk_pfdv2 *pfd) in clk_pfdv2_wait() argument 47 return readl_poll_timeout(pfd->reg, val, val & (1 << pfd->vld_bit), in clk_pfdv2_wait() 53 struct clk_pfdv2 *pfd = to_clk_pfdv2(hw); in clk_pfdv2_enable() local 58 val = readl_relaxed(pfd->reg); in clk_pfdv2_enable() 59 val &= ~(1 << pfd->gate_bit); in clk_pfdv2_enable() 60 writel_relaxed(val, pfd->reg); in clk_pfdv2_enable() 63 return clk_pfdv2_wait(pfd); in clk_pfdv2_enable() 68 struct clk_pfdv2 *pfd = to_clk_pfdv2(hw); in clk_pfdv2_disable() local 73 val = readl_relaxed(pfd->reg); in clk_pfdv2_disable() 74 val |= (1 << pfd->gate_bit); in clk_pfdv2_disable() [all …]
|
D | clk-pfd.c | 37 struct clk_pfd *pfd = to_clk_pfd(hw); in clk_pfd_enable() local 39 writel_relaxed(1 << ((pfd->idx + 1) * 8 - 1), pfd->reg + CLR); in clk_pfd_enable() 46 struct clk_pfd *pfd = to_clk_pfd(hw); in clk_pfd_disable() local 48 writel_relaxed(1 << ((pfd->idx + 1) * 8 - 1), pfd->reg + SET); in clk_pfd_disable() 54 struct clk_pfd *pfd = to_clk_pfd(hw); in clk_pfd_recalc_rate() local 56 u8 frac = (readl_relaxed(pfd->reg) >> (pfd->idx * 8)) & 0x3f; in clk_pfd_recalc_rate() 87 struct clk_pfd *pfd = to_clk_pfd(hw); in clk_pfd_set_rate() local 99 writel_relaxed(0x3f << (pfd->idx * 8), pfd->reg + CLR); in clk_pfd_set_rate() 100 writel_relaxed(frac << (pfd->idx * 8), pfd->reg + SET); in clk_pfd_set_rate() 107 struct clk_pfd *pfd = to_clk_pfd(hw); in clk_pfd_is_enabled() local [all …]
|
D | Makefile | 17 mxc-clk-objs += clk-pfd.o
|
/drivers/pinctrl/mediatek/ |
D | pinctrl-mtk-common-v2.c | 74 int field, struct mtk_pin_field *pfd) in mtk_hw_pin_field_lookup() argument 131 pfd->index = c->i_base; in mtk_hw_pin_field_lookup() 132 pfd->offset = c->s_addr + c->x_addrs * (bits / c->sz_reg); in mtk_hw_pin_field_lookup() 133 pfd->bitpos = bits % c->sz_reg; in mtk_hw_pin_field_lookup() 134 pfd->mask = (1 << c->x_bits) - 1; in mtk_hw_pin_field_lookup() 140 pfd->next = pfd->bitpos + c->x_bits > c->sz_reg ? c->x_addrs : 0; in mtk_hw_pin_field_lookup() 147 int field, struct mtk_pin_field *pfd) in mtk_hw_pin_field_get() argument 154 return mtk_hw_pin_field_lookup(hw, desc, field, pfd); in mtk_hw_pin_field_get()
|
/drivers/iio/frequency/ |
D | adf4371.c | 208 unsigned long long pfd, in adf4371_pll_fract_n_compute() argument 217 tmp = do_div(vco, pfd); in adf4371_pll_fract_n_compute() 219 *fract2 = do_div(tmp, pfd); in adf4371_pll_fract_n_compute() 224 *mod2 = pfd; in adf4371_pll_fract_n_compute()
|