Lines Matching refs:regval
36 u8 regval; in boco_clear_bits() local
39 ret = i2c_read(BOCO_ADDR, reg, 1, ®val, 1); in boco_clear_bits()
45 regval &= ~flags; in boco_clear_bits()
46 ret = i2c_write(BOCO_ADDR, reg, 1, ®val, 1); in boco_clear_bits()
59 u8 regval; in boco_set_bits() local
62 ret = i2c_read(BOCO_ADDR, reg, 1, ®val, 1); in boco_set_bits()
68 regval |= flags; in boco_set_bits()
69 ret = i2c_write(BOCO_ADDR, reg, 1, ®val, 1); in boco_set_bits()
88 u8 regval; in fpga_done() local
94 ret = i2c_read(BOCO_ADDR, SPI_REG, 1, ®val, 1); in fpga_done()
101 return regval & FPGA_DONE ? 1 : 0; in fpga_done()