Searched refs:SETPMASK (Results 1 – 4 of 4) sorted by relevance
/openbmc/linux/drivers/clk/meson/ |
H A D | parm.h | 14 #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 D | clk-cpu-dyndiv.c | 58 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 D | clk_meson.h | 33 #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 D | clk_meson.c | 387 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()
|