Lines Matching refs:state

51     uint32_t state;  member
69 level = (s->state & s->mask) != 0; in gptm_update_irq()
112 s->state |= 1; in gptm_tick()
132 s->state |= 8; in gptm_tick()
159 return s->state; in gptm_read()
161 return s->state & s->mask; in gptm_read()
233 s->state &= ~value; in gptm_write()
291 qemu_put_be32(f, s->state); in gptm_save()
321 s->state = qemu_get_be32(f); in gptm_load()
925 uint32_t state; member
938 tail = s->fifo[n].state & 0xf; in stellaris_adc_fifo_read()
939 if (s->fifo[n].state & STELLARIS_ADC_FIFO_EMPTY) { in stellaris_adc_fifo_read()
942 s->fifo[n].state = (s->fifo[n].state & ~0xf) | ((tail + 1) & 0xf); in stellaris_adc_fifo_read()
943 s->fifo[n].state &= ~STELLARIS_ADC_FIFO_FULL; in stellaris_adc_fifo_read()
944 if (tail + 1 == ((s->fifo[n].state >> 4) & 0xf)) in stellaris_adc_fifo_read()
945 s->fifo[n].state |= STELLARIS_ADC_FIFO_EMPTY; in stellaris_adc_fifo_read()
957 head = (s->fifo[n].state >> 4) & 0xf; in stellaris_adc_fifo_write()
958 if (s->fifo[n].state & STELLARIS_ADC_FIFO_FULL) { in stellaris_adc_fifo_write()
964 s->fifo[n].state &= ~STELLARIS_ADC_FIFO_EMPTY; in stellaris_adc_fifo_write()
965 s->fifo[n].state = (s->fifo[n].state & ~0xf0) | (head << 4); in stellaris_adc_fifo_write()
966 if ((s->fifo[n].state & 0xf) == head) in stellaris_adc_fifo_write()
967 s->fifo[n].state |= STELLARIS_ADC_FIFO_FULL; in stellaris_adc_fifo_write()
1012 s->fifo[n].state = STELLARIS_ADC_FIFO_EMPTY; in stellaris_adc_reset()
1032 return s->fifo[n].state; in stellaris_adc_read()
1148 qemu_put_be32(f, s->fifo[i].state); in stellaris_adc_save()
1176 s->fifo[i].state = qemu_get_be32(f); in stellaris_adc_load()