Home
last modified time | relevance | path

Searched refs:nbits_l (Results 1 – 2 of 2) sorted by relevance

/openbmc/u-boot/drivers/pinctrl/mediatek/
H A Dpinctrl-mtk-common.c146 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()
154 (value & pf->mask) >> nbits_l); 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()
164 l = (mtk_r32(dev, pf->offset) >> pf->bitpos) & (BIT(nbits_l) - 1); in mtk_hw_read_cross_field()
167 *value = (h << nbits_l) | l; in mtk_hw_read_cross_field()
/openbmc/linux/drivers/pinctrl/mediatek/
H A Dpinctrl-mtk-common-v2.c166 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()
174 (value & pf->mask) >> nbits_l); 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()
185 >> pf->bitpos) & (BIT(nbits_l) - 1); in mtk_hw_read_cross_field()
189 *value = (h << nbits_l) | l; in mtk_hw_read_cross_field()