Lines Matching refs:pin
74 uint32_t *bank, uint32_t *pin) in versal_gpio_get_pin() argument
89 *pin = gpio - platdata->p_data->bank_min[bnk]; in versal_gpio_get_pin()
102 uint32_t pin = 0; in gpio_get_value() local
104 versal_gpio_get_pin(chip, gpio, &bank, &pin); in gpio_get_value()
106 return (io_read32(chip->base + DATA_RO_OFFSET(bank)) >> pin) & 1; in gpio_get_value()
114 uint32_t pin = 0; in gpio_set_value() local
116 versal_gpio_get_pin(chip, gpio, &bank, &pin); in gpio_set_value()
130 val = ~BIT32(pin + VERSAL_GPIO_MID_PIN) & in gpio_set_value()
131 (SHIFT_U32(val, pin) | VERSAL_GPIO_UPPER_MASK); in gpio_set_value()
141 uint32_t pin = 0; in gpio_set_direction() local
143 versal_gpio_get_pin(chip, gpio, &bank, &pin); in gpio_set_direction()
148 reg |= BIT(pin); in gpio_set_direction()
154 reg |= BIT(pin); in gpio_set_direction()
161 assert(!(bank == 0 && (pin == 7 || pin == 8))); in gpio_set_direction()
164 reg &= ~BIT(pin); in gpio_set_direction()
172 uint32_t pin = 0; in gpio_get_direction() local
175 versal_gpio_get_pin(chip, gpio, &bank, &pin); in gpio_get_direction()
177 if (io_read32(chip->base + DIRM_OFFSET(bank)) & BIT(pin)) in gpio_get_direction()