Searched refs:notifier (Results 1 – 8 of 8) sorted by relevance
/system/chre/chpp/platform/linux/ |
D | notifier.c | 34 void chppPlatformNotifierInit(struct ChppNotifier *notifier) { in chppPlatformNotifierInit() argument 35 chppMutexInit(¬ifier->mutex); in chppPlatformNotifierInit() 36 pthread_cond_init(¬ifier->cond, NULL); in chppPlatformNotifierInit() 39 void chppPlatformNotifierDeinit(struct ChppNotifier *notifier) { in chppPlatformNotifierDeinit() argument 40 pthread_cond_destroy(¬ifier->cond); in chppPlatformNotifierDeinit() 41 chppMutexDeinit(¬ifier->mutex); in chppPlatformNotifierDeinit() 44 uint32_t chppPlatformNotifierGetSignal(struct ChppNotifier *notifier) { in chppPlatformNotifierGetSignal() argument 45 chppMutexLock(¬ifier->mutex); in chppPlatformNotifierGetSignal() 47 uint32_t signal = notifier->signal; in chppPlatformNotifierGetSignal() 48 notifier->signal = 0; in chppPlatformNotifierGetSignal() [all …]
|
D | link.c | 53 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/ |
D | platform_notifier.h | 38 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 …]
|
D | platform_link.h | 50 struct ChppNotifier notifier; member
|
/system/chre/chpp/include/chpp/ |
D | notifier.h | 45 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);
|
D | transport.h | 417 struct ChppNotifier notifier; // Notifier for main thread member 616 chppNotifierSignal(&context->notifier, in chppWorkThreadSignalFromLink()
|
/system/chre/chpp/ |
D | transport.c | 605 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()
|
D | Android.bp | 68 "platform/linux/notifier.c",
|