Home
last modified time | relevance | path

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

/Zephyr-Core-3.5.0/drivers/gpio/
Dgpio_litex.c65 int regv, new_regv; in set_bit() local
67 regv = litex_read(config->reg_addr, config->reg_size); in set_bit()
68 new_regv = (regv & ~BIT(bit)) | (val << bit); in set_bit()
74 int regv = litex_read(config->reg_addr, config->reg_size); in get_bit() local
76 return !!(regv & BIT(bit)); in get_bit()
86 int regv = litex_read(config->reg_addr, config->reg_size); in get_port() local
88 return (regv & BIT_MASK(config->nr_gpios)); in get_port()