Lines Matching refs:value
96 uint32_t value = s->regs[reg]; in read_channel_sample() local
104 return value; in read_channel_sample()
112 uint32_t value = 0; in aspeed_adc_engine_read() local
139 value = s->regs[reg]; in aspeed_adc_engine_read()
150 value = read_channel_sample(s, reg); in aspeed_adc_engine_read()
154 value >>= 16; in aspeed_adc_engine_read()
163 trace_aspeed_adc_engine_read(s->engine_id, addr, value); in aspeed_adc_engine_read()
164 return value; in aspeed_adc_engine_read()
167 static void aspeed_adc_engine_write(void *opaque, hwaddr addr, uint64_t value, in aspeed_adc_engine_write() argument
174 trace_aspeed_adc_engine_write(s->engine_id, addr, value); in aspeed_adc_engine_write()
178 init = !!(value & ASPEED_ADC_ENGINE_EN); in aspeed_adc_engine_write()
181 value &= ~ASPEED_ADC_ENGINE_INIT; in aspeed_adc_engine_write()
182 value |= init; in aspeed_adc_engine_write()
184 value &= ~ASPEED_ADC_ENGINE_AUTO_COMP; in aspeed_adc_engine_write()
208 value &= ASPEED_ADC_LH_MASK; in aspeed_adc_engine_write()
219 value &= (ASPEED_ADC_HYST_EN | ASPEED_ADC_LH_MASK); in aspeed_adc_engine_write()
222 value &= 0xffff; in aspeed_adc_engine_write()
225 value &= 0xf; in aspeed_adc_engine_write()
230 __func__, s->engine_id, addr, value); in aspeed_adc_engine_write()
234 s->regs[reg] = value; in aspeed_adc_engine_write()