Home
last modified time | relevance | path

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

/Zephyr-Core-3.6.0/drivers/gpio/
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 …]
Dgpio_nct38xx_port.c46 uint8_t new_reg; in gpio_nct38xx_pin_config() local
72 new_reg = BIT(pin) & config->pinmux_mask; in gpio_nct38xx_pin_config()
75 ret = i2c_reg_update_byte_dt(data->i2c_dev, NCT38XX_REG_MUX_CONTROL, mask, new_reg); in gpio_nct38xx_pin_config()
84 new_reg = 0; in gpio_nct38xx_pin_config()
87 mask, new_reg); in gpio_nct38xx_pin_config()
95 new_reg = mask; in gpio_nct38xx_pin_config()
97 new_reg = 0; in gpio_nct38xx_pin_config()
100 mask, new_reg); in gpio_nct38xx_pin_config()
107 new_reg = mask; in gpio_nct38xx_pin_config()
109 new_reg = 0; in gpio_nct38xx_pin_config()
[all …]