Searched refs:regv (Results 1 – 1 of 1) sorted by relevance
65 int regv, new_regv; in set_bit() local67 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() local76 return !!(regv & BIT(bit)); in get_bit()86 int regv = litex_read(config->reg_addr, config->reg_size); in get_port() local88 return (regv & BIT_MASK(config->nr_gpios)); in get_port()