Lines Matching refs:bit
78 unsigned int bit; in mtk_pmx_gpio_set_direction() local
82 bit = BIT(offset & 0xf); in mtk_pmx_gpio_set_direction()
90 regmap_write(mtk_get_regmap(pctl, offset), reg_addr, bit); in mtk_pmx_gpio_set_direction()
97 unsigned int bit; in mtk_gpio_set() local
101 bit = BIT(offset & 0xf); in mtk_gpio_set()
108 regmap_write(mtk_get_regmap(pctl, offset), reg_addr, bit); in mtk_gpio_set()
115 unsigned int bit; in mtk_pconf_set_ies_smt() local
140 bit = BIT(pin & 0xf); in mtk_pconf_set_ies_smt()
152 regmap_write(mtk_get_regmap(pctl, pin), reg_addr, bit); in mtk_pconf_set_ies_smt()
160 unsigned int i, reg_addr, bit; in mtk_pconf_spec_set_ies_smt_range() local
177 bit = BIT(ies_smt_infos[i].bit); in mtk_pconf_spec_set_ies_smt_range()
178 regmap_write(regmap, reg_addr, bit); in mtk_pconf_spec_set_ies_smt_range()
217 shift = pin_drv->bit + drv_grp->low_bit; in mtk_pconf_set_driving()
290 unsigned int bit; in mtk_pconf_set_pull_select() local
312 bit = BIT(pin & 0xf); in mtk_pconf_set_pull_select()
327 regmap_write(mtk_get_regmap(pctl, pin), reg_pullen, bit); in mtk_pconf_set_pull_select()
328 regmap_write(mtk_get_regmap(pctl, pin), reg_pullsel, bit); in mtk_pconf_set_pull_select()
665 unsigned char bit; in mtk_pmx_set_mode() local
673 bit = pin % MAX_GPIO_MODE_PER_REG; in mtk_pmx_set_mode()
674 mask <<= (GPIO_MODE_BITS * bit); in mtk_pmx_set_mode()
675 val = (mode << (GPIO_MODE_BITS * bit)); in mtk_pmx_set_mode()
742 unsigned int bit; in mtk_gpio_get_direction() local
748 bit = BIT(offset & 0xf); in mtk_gpio_get_direction()
750 return !(read_val & bit); in mtk_gpio_get_direction()
756 unsigned int bit; in mtk_gpio_get() local
763 bit = BIT(offset & 0xf); in mtk_gpio_get()
765 return !!(read_val & bit); in mtk_gpio_get()
848 unsigned int bit = BIT(eint_num % 32); in mtk_eint_can_en_debounce() local
855 if (readl(reg) & bit) in mtk_eint_can_en_debounce()
873 unsigned int bit = BIT(eint_num % 32); in mtk_eint_get_mask() local
880 return !!(readl(reg) & bit); in mtk_eint_get_mask()
941 unsigned int set_offset, bit, clr_bit, clr_offset, rst, i, unmask, dbnc; in mtk_gpio_set_debounce() local
979 bit = ((dbnc << EINT_DBNC_SET_DBNC_BITS) | EINT_DBNC_SET_EN) << in mtk_gpio_set_debounce()
982 writel(rst | bit, pctl->eint_reg_base + set_offset); in mtk_gpio_set_debounce()
1167 unsigned int bit, dbnc; in mtk_eint_debounce_process() local
1173 bit = EINT_DBNC_SET_EN << ((index % 4) * 8); in mtk_eint_debounce_process()
1174 if ((bit & dbnc) > 0) { in mtk_eint_debounce_process()