Lines Matching refs:value
47 prev_ival = extract32(s->value, i, 1); in update_state()
100 s->value = deposit32(s->value, i, 1, ival); in update_state()
112 r = s->value; in sifive_gpio_read()
191 uint64_t value, unsigned int size) in sifive_gpio_write() argument
195 trace_sifive_gpio_write(offset, value); in sifive_gpio_write()
200 s->input_en = value; in sifive_gpio_write()
204 s->output_en = value; in sifive_gpio_write()
208 s->port = value; in sifive_gpio_write()
212 s->pue = value; in sifive_gpio_write()
216 s->ds = value; in sifive_gpio_write()
220 s->rise_ie = value; in sifive_gpio_write()
225 s->rise_ip &= ~value; in sifive_gpio_write()
229 s->fall_ie = value; in sifive_gpio_write()
234 s->fall_ip &= ~value; in sifive_gpio_write()
238 s->high_ie = value; in sifive_gpio_write()
243 s->high_ip &= ~value; in sifive_gpio_write()
247 s->low_ie = value; in sifive_gpio_write()
252 s->low_ip &= ~value; in sifive_gpio_write()
256 s->iof_en = value; in sifive_gpio_write()
260 s->iof_sel = value; in sifive_gpio_write()
264 s->out_xor = value; in sifive_gpio_write()
284 static void sifive_gpio_set(void *opaque, int line, int value) in sifive_gpio_set() argument
288 trace_sifive_gpio_set(line, value); in sifive_gpio_set()
292 s->in_mask = deposit32(s->in_mask, line, 1, value >= 0); in sifive_gpio_set()
293 if (value >= 0) { in sifive_gpio_set()
294 s->in = deposit32(s->in, line, 1, value != 0); in sifive_gpio_set()
304 s->value = 0; in sifive_gpio_reset()
330 VMSTATE_UINT32(value, SIFIVEGPIOState),