Home
last modified time | relevance | path

Searched refs:counter (Results 1 – 3 of 3) sorted by relevance

/DragonOS-0.1.3/kernel/src/libs/
Dsemaphore.c8 if (atomic_read(&sema->counter) > 0) // 信号量大于0,资源充足 in semaphore_down()
9 atomic_dec(&sema->counter); in semaphore_down()
30 atomic_inc(&sema->counter); in semaphore_up()
/DragonOS-0.1.3/kernel/src/common/
Dsemaphore.h23 atomic_t counter; member
36 atomic_set(&sema->counter, count); in semaphore_init()
/DragonOS-0.1.3/kernel/src/driver/usb/xhci/
Dxhci.h329 uint16_t counter; member