Home
last modified time | relevance | path

Searched refs:SETPMASK (Results 1 – 4 of 4) sorted by relevance

/openbmc/linux/drivers/clk/meson/
H A Dparm.h14 #define SETPMASK(width, shift) GENMASK(shift + width - 1, shift) macro
15 #define CLRPMASK(width, shift) (~SETPMASK(width, shift))
18 (((reg) & SETPMASK(width, shift)) >> (shift))
41 regmap_update_bits(map, p->reg_off, SETPMASK(p->width, p->shift), in meson_parm_write()
H A Dclk-cpu-dyndiv.c58 SETPMASK(data->div.width, data->div.shift) | in meson_clk_cpu_dyndiv_set_rate()
59 SETPMASK(data->dyn.width, data->dyn.shift), in meson_clk_cpu_dyndiv_set_rate()
/openbmc/u-boot/drivers/clk/
H A Dclk_meson.h33 #define SETPMASK(width, shift) GENMASK(shift + width - 1, shift) macro
34 #define CLRPMASK(width, shift) (~SETPMASK(width, shift))
37 (((reg) & SETPMASK(width, shift)) >> (shift))
H A Dclk_meson.c387 regmap_update_bits(priv->map, parm->reg_off, SETPMASK(parm->width, parm->shift), in meson_div_set_rate()
548 regmap_update_bits(priv->map, parm->reg_off, SETPMASK(parm->width, parm->shift), in meson_mux_set_parent()