Lines Matching refs:pin_idx
18 #define SLEWCTL_PIN_SHIFT(pin_idx) ((pin_idx) * 2) argument
19 #define SLEWCTL_MASK(pin_idx) (3 << SLEWCTL_PIN_SHIFT(pin_idx)) argument
20 #define DINOFF_PIN_SHIFT(pin_idx) (pin_idx + GPIO_DINOFF_DINOFF0_Pos) argument
21 #define DINOFF_MASK(pin_idx) (1 << DINOFF_PIN_SHIFT(pin_idx)) argument
23 static void gpio_configure(const pinctrl_soc_pin_t *pin, uint8_t port_idx, uint8_t pin_idx) in gpio_configure() argument
29 port->SMTEN = (port->SMTEN & ~BIT(pin_idx)) | in gpio_configure()
30 ((pin->schmitt_enable ? 1 : 0) << pin_idx); in gpio_configure()
31 port->SLEWCTL = (port->SLEWCTL & ~SLEWCTL_MASK(pin_idx)) | in gpio_configure()
32 (pin->slew_rate << SLEWCTL_PIN_SHIFT(pin_idx)); in gpio_configure()
33 port->DINOFF = (port->DINOFF & ~DINOFF_MASK(pin_idx)) | in gpio_configure()
34 ((pin->digital_disable ? 1 : 0) << DINOFF_PIN_SHIFT(pin_idx)); in gpio_configure()