Lines Matching refs:gpio_base
57 uint32_t gpio_base = priv->pid + REG_OFFSET(offset); in pm8916_gpio_set_direction() local
61 ret = pmic_clrsetbits(dev->parent, gpio_base + REG_EN_CTL, in pm8916_gpio_set_direction()
68 ret = pmic_reg_write(dev->parent, gpio_base + REG_CTL, in pm8916_gpio_set_direction()
71 ret = pmic_reg_write(dev->parent, gpio_base + REG_CTL, in pm8916_gpio_set_direction()
77 ret = pmic_reg_write(dev->parent, gpio_base + REG_DIG_PULL_CTL, in pm8916_gpio_set_direction()
85 ret = pmic_reg_write(dev->parent, gpio_base + REG_DIG_VIN_CTL, in pm8916_gpio_set_direction()
91 ret = pmic_reg_write(dev->parent, gpio_base + REG_DIG_OUT_CTL, in pm8916_gpio_set_direction()
99 return pmic_clrsetbits(dev->parent, gpio_base + REG_EN_CTL, 0, in pm8916_gpio_set_direction()
117 uint32_t gpio_base = priv->pid + REG_OFFSET(offset); in pm8916_gpio_get_function() local
121 reg = pmic_reg_read(dev->parent, gpio_base + REG_CTL); in pm8916_gpio_get_function()
139 uint32_t gpio_base = priv->pid + REG_OFFSET(offset); in pm8916_gpio_get_value() local
142 reg = pmic_reg_read(dev->parent, gpio_base + REG_STATUS); in pm8916_gpio_get_value()
153 uint32_t gpio_base = priv->pid + REG_OFFSET(offset); in pm8916_gpio_set_value() local
156 return pmic_clrsetbits(dev->parent, gpio_base + REG_CTL, in pm8916_gpio_set_value()