Home
last modified time | relevance | path

Searched refs:oldstate (Results 1 – 2 of 2) sorted by relevance

/trusty/kernel/lib/trusty/
Devent.c207 int oldstate; in event_source_poll() local
213 oldstate = es->state; in event_source_poll()
214 if (finalize && (oldstate == EVENT_STATE_HANDLED)) { in event_source_poll()
219 if (oldstate == EVENT_STATE_HANDLED) { in event_source_poll()
527 int oldstate; in event_client_poll() local
535 oldstate = ec->state; in event_client_poll()
536 if (finalize && (oldstate == EVENT_STATE_SIGNALED)) { in event_client_poll()
541 if (oldstate == EVENT_STATE_CLOSED) { in event_client_poll()
545 if (oldstate == EVENT_STATE_SIGNALED) { in event_client_poll()
570 int oldstate; in event_client_destroy() local
[all …]
Dtrusty_virtio.c475 int oldstate; in virtio_start() local
497 oldstate = atomic_cmpxchg(&vb->state, VIRTIO_BUS_STATE_IDLE, in virtio_start()
500 if (oldstate != VIRTIO_BUS_STATE_IDLE) { in virtio_start()
502 LTRACEF("unexpected state state (%d)\n", oldstate); in virtio_start()
549 vb->state = oldstate; in virtio_start()
561 int oldstate; in virtio_stop() local
581 oldstate = atomic_cmpxchg(&vb->state, VIRTIO_BUS_STATE_ACTIVE, in virtio_stop()
584 if (oldstate != VIRTIO_BUS_STATE_ACTIVE) { in virtio_stop()