Searched refs:nbits_h (Results 1 – 2 of 2) sorted by relevance
/openbmc/u-boot/drivers/pinctrl/mediatek/ |
H A D | pinctrl-mtk-common.c | 146 int nbits_l, nbits_h; in mtk_hw_write_cross_field() local 148 mtk_hw_bits_part(pf, &nbits_h, &nbits_l); in mtk_hw_write_cross_field() 153 mtk_rmw(dev, pf->offset + pf->next, BIT(nbits_h) - 1, in mtk_hw_write_cross_field() 160 int nbits_l, nbits_h, h, l; in mtk_hw_read_cross_field() local 162 mtk_hw_bits_part(pf, &nbits_h, &nbits_l); in mtk_hw_read_cross_field() 165 h = (mtk_r32(dev, pf->offset + pf->next)) & (BIT(nbits_h) - 1); in mtk_hw_read_cross_field()
|
/openbmc/linux/drivers/pinctrl/mediatek/ |
H A D | pinctrl-mtk-common-v2.c | 166 int nbits_l, nbits_h; in mtk_hw_write_cross_field() local 168 mtk_hw_bits_part(pf, &nbits_h, &nbits_l); in mtk_hw_write_cross_field() 173 mtk_rmw(hw, pf->index, pf->offset + pf->next, BIT(nbits_h) - 1, in mtk_hw_write_cross_field() 180 int nbits_l, nbits_h, h, l; in mtk_hw_read_cross_field() local 182 mtk_hw_bits_part(pf, &nbits_h, &nbits_l); in mtk_hw_read_cross_field() 187 & (BIT(nbits_h) - 1); in mtk_hw_read_cross_field()
|