Home
last modified time | relevance | path

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

/Zephyr-Core-3.4.0/drivers/gpio/
Dgpio_nct38xx_port.c44 uint8_t reg, new_reg; in gpio_nct38xx_pin_config() local
71 new_reg = reg | mask; in gpio_nct38xx_pin_config()
73 new_reg &= config->pinmux_mask; in gpio_nct38xx_pin_config()
76 new_reg); in gpio_nct38xx_pin_config()
89 new_reg = reg & ~mask; in gpio_nct38xx_pin_config()
91 NCT38XX_REG_GPIO_DIR(config->gpio_port), reg, new_reg); in gpio_nct38xx_pin_config()
104 new_reg = reg | mask; in gpio_nct38xx_pin_config()
106 new_reg = reg & ~mask; in gpio_nct38xx_pin_config()
109 reg, new_reg); in gpio_nct38xx_pin_config()
122 new_reg = reg | mask; in gpio_nct38xx_pin_config()
[all …]
Dgpio_rt1718s_port.c43 uint8_t new_reg = 0; in gpio_rt1718s_pin_config() local
66 new_reg |= RT1718S_REG_GPIO_CTRL_PU; in gpio_rt1718s_pin_config()
69 new_reg |= RT1718S_REG_GPIO_CTRL_PD; in gpio_rt1718s_pin_config()
73 new_reg |= RT1718S_REG_GPIO_CTRL_OE; in gpio_rt1718s_pin_config()
77 new_reg |= RT1718S_REG_GPIO_CTRL_OD_N; in gpio_rt1718s_pin_config()
82 new_reg |= RT1718S_REG_GPIO_CTRL_O; in gpio_rt1718s_pin_config()
87 ret = rt1718s_reg_write_byte(config->rt1718s_dev, RT1718S_REG_GPIO_CTRL(pin), new_reg); in gpio_rt1718s_pin_config()
111 uint8_t new_reg, reg; in gpio_rt1718s_port_set_masked_raw() local
125 new_reg = reg | RT1718S_REG_GPIO_CTRL_O; in gpio_rt1718s_port_set_masked_raw()
127 new_reg = reg & ~RT1718S_REG_GPIO_CTRL_O; in gpio_rt1718s_port_set_masked_raw()
[all …]