Searched refs:pe (Results 1 – 3 of 3) sorted by relevance
/drivers/hdf_core/framework/support/platform/src/fwk/ |
D | platform_event.c | 31 int32_t PlatformEventInit(struct PlatformEvent *pe) in PlatformEventInit() argument 33 if (pe == NULL) { in PlatformEventInit() 36 pe->eventsWord = 0; in PlatformEventInit() 37 pe->waiterCnt = 0; in PlatformEventInit() 38 DListHeadInit(&pe->waiters); in PlatformEventInit() 39 (void)OsalSpinInit(&pe->spin); in PlatformEventInit() 40 (void)OsalSemInit(&pe->sem, 0); in PlatformEventInit() 44 static void PlatformEventLock(struct PlatformEvent *pe) in PlatformEventLock() argument 46 (void)OsalSpinLockIrqSave(&pe->spin, &pe->irqSave); in PlatformEventLock() 49 static void PlatformEventUnlock(struct PlatformEvent *pe) in PlatformEventUnlock() argument [all …]
|
/drivers/hdf_core/framework/test/unittest/platform/common/ |
D | platform_event_test.c | 28 static int32_t PlatformEventTestInitAndUninit(struct PlatformEvent *pe) in PlatformEventTestInitAndUninit() argument 34 CHECK_EQ_RETURN(pe->eventsWord, 0, HDF_FAILURE); in PlatformEventTestInitAndUninit() 37 ret = OsalSpinLock(&pe->spin); in PlatformEventTestInitAndUninit() 41 (void)OsalSpinUnlock(&pe->spin); in PlatformEventTestInitAndUninit() 44 ret = OsalSemPost(&pe->sem); in PlatformEventTestInitAndUninit() 48 (void)OsalSemWait(&pe->sem, HDF_WAIT_FOREVER); in PlatformEventTestInitAndUninit() 54 static int32_t PlatformEventTestPostAndWait(struct PlatformEvent *pe) in PlatformEventTestPostAndWait() argument 61 ret = PlatformEventWait(pe, PLAT_TEST_EVENT_A, 0, PLAT_EVENT_TEST_TIMEOUT, &events); in PlatformEventTestPostAndWait() 65 ret = PlatformEventPost(pe, PLAT_TEST_EVENT_A); in PlatformEventTestPostAndWait() 69 ret = PlatformEventWait(pe, PLAT_TEST_EVENT_A, 0, PLAT_EVENT_TEST_TIMEOUT, &events); in PlatformEventTestPostAndWait() [all …]
|
/drivers/hdf_core/framework/support/platform/include/fwk/ |
D | platform_event.h | 63 int32_t PlatformEventInit(struct PlatformEvent *pe); 74 int32_t PlatformEventUninit(struct PlatformEvent *pe); 86 int32_t PlatformEventPost(struct PlatformEvent *pe, uint32_t events); 100 int32_t PlatformEventWait(struct PlatformEvent *pe, uint32_t mask, int32_t mode, uint32_t tms, uint… 112 int32_t PlatformEventListen(struct PlatformEvent *pe, const struct PlatformEventListener *listener); 122 void PlatformEventUnlisten(struct PlatformEvent *pe, const struct PlatformEventListener *listener);
|