Home
last modified time | relevance | path

Searched refs:notifier (Results 1 – 8 of 8) sorted by relevance

/system/chre/chpp/platform/linux/
Dnotifier.c34 void chppPlatformNotifierInit(struct ChppNotifier *notifier) { in chppPlatformNotifierInit() argument
35 chppMutexInit(&notifier->mutex); in chppPlatformNotifierInit()
36 pthread_cond_init(&notifier->cond, NULL); in chppPlatformNotifierInit()
39 void chppPlatformNotifierDeinit(struct ChppNotifier *notifier) { in chppPlatformNotifierDeinit() argument
40 pthread_cond_destroy(&notifier->cond); in chppPlatformNotifierDeinit()
41 chppMutexDeinit(&notifier->mutex); in chppPlatformNotifierDeinit()
44 uint32_t chppPlatformNotifierGetSignal(struct ChppNotifier *notifier) { in chppPlatformNotifierGetSignal() argument
45 chppMutexLock(&notifier->mutex); in chppPlatformNotifierGetSignal()
47 uint32_t signal = notifier->signal; in chppPlatformNotifierGetSignal()
48 notifier->signal = 0; in chppPlatformNotifierGetSignal()
[all …]
Dlink.c53 uint32_t signal = chppNotifierTimedWait(&context->notifier, CHPP_TIME_MAX); in linkSendThread()
77 chppNotifierSignal(&context->remoteLinkState->notifier, in linkSendThread()
117 chppNotifierInit(&context->notifier); in init()
131 chppNotifierSignal(&context->notifier, SIGNAL_EXIT); in deinit()
137 chppNotifierDeinit(&context->notifier); in deinit()
159 chppNotifierSignal(&context->notifier, SIGNAL_DATA); in send()
/system/chre/chpp/platform/linux/include/chpp/platform/
Dplatform_notifier.h38 void chppPlatformNotifierInit(struct ChppNotifier *notifier);
43 void chppPlatformNotifierDeinit(struct ChppNotifier *notifier);
48 uint32_t chppPlatformNotifierGetSignal(struct ChppNotifier *notifier);
53 uint32_t chppPlatformNotifierWait(struct ChppNotifier *notifier);
58 uint32_t chppPlatformNotifierTimedWait(struct ChppNotifier *notifier,
64 void chppPlatformNotifierSignal(struct ChppNotifier *notifier, uint32_t signal);
66 static inline void chppNotifierInit(struct ChppNotifier *notifier) { in chppNotifierInit() argument
67 chppPlatformNotifierInit(notifier); in chppNotifierInit()
70 static inline void chppNotifierDeinit(struct ChppNotifier *notifier) { in chppNotifierDeinit() argument
71 chppPlatformNotifierDeinit(notifier); in chppNotifierDeinit()
[all …]
Dplatform_link.h50 struct ChppNotifier notifier; member
/system/chre/chpp/include/chpp/
Dnotifier.h45 static void chppNotifierInit(struct ChppNotifier *notifier);
52 static void chppNotifierDeinit(struct ChppNotifier *notifier);
62 static uint32_t chppNotifierGetSignal(struct ChppNotifier *notifier);
73 static uint32_t chppNotifierWait(struct ChppNotifier *notifier);
87 static uint32_t chppNotifierTimedWait(struct ChppNotifier *notifier,
100 static void chppNotifierSignal(struct ChppNotifier *notifier, uint32_t signal);
Dtransport.h417 struct ChppNotifier notifier; // Notifier for main thread member
616 chppNotifierSignal(&context->notifier, in chppWorkThreadSignalFromLink()
/system/chre/chpp/
Dtransport.c605 chppNotifierSignal(&context->notifier, in chppProcessRxPacket()
804 chppNotifierSignal(&context->notifier, CHPP_TRANSPORT_SIGNAL_EVENT); in chppEnqueueTxPacket()
1358 chppNotifierInit(&transportContext->notifier); in chppTransportInit()
1403 chppNotifierDeinit(&transportContext->notifier); in chppTransportDeinit()
1587 signals = chppNotifierGetSignal(&context->notifier); in chppWorkThreadStart()
1589 signals = chppNotifierWait(&context->notifier); in chppWorkThreadStart()
1591 signals = chppNotifierTimedWait(&context->notifier, timeout); in chppWorkThreadStart()
1653 chppNotifierSignal(&context->notifier, CHPP_TRANSPORT_SIGNAL_EXIT); in chppWorkThreadStop()
DAndroid.bp68 "platform/linux/notifier.c",