Home | History | Annotate | Download | only in core

Lines Matching defs:evtData

338 static inline void osTaskHandle(struct Task *task, uint16_t evtType, uint16_t fromTid, const void* evtData)
343 evtData);
370 void *evtData = act->privateEvt.evtData;
383 evtType & EVT_MASK, evtData);
389 ((EventFreeF)taggedPtrToPtr(evtFreeInfo))(evtData);
394 struct AppEventFreeData fd = {.evtType = evtType, .evtData = evtData};
401 static void handleEventFreeing(uint32_t evtType, void *evtData, TaggedPtr evtFreeData) // watch out, this is synchronous
418 ((EventFreeF)taggedPtrToPtr(evtFreeData))(evtData);
422 struct AppEventFreeData fd = {.evtType = EVENT_GET_EVENT(evtType), .evtData = evtData};
1039 static void osInternalEvtHandle(uint32_t evtType, void *evtData)
1041 union SeosInternalSlabData *da = (union SeosInternalSlabData*)evtData;
1087 ssTask = evtData;
1119 evtData = da->privateEvt.evtData;
1124 osTaskHandle(task, evtType, da->privateEvt.fromTid, da->privateEvt.evtData);
1149 void osFreeRetainedEvent(uint32_t evtType, void *evtData, TaggedPtr *evtFreeingInfoP)
1152 handleEventFreeing(evtType, evtData, *evtFreeingInfoP);
1178 void *evtData;
1183 if (!evtQueueDequeue(mEvtsInternal, &evtType, &evtData, &evtFreeingInfo, true))
1193 osInternalEvtHandle(evtType, evtData);
1199 osTaskHandle(task, evt, tid, evtData);
1208 handleEventFreeing(evtType, evtData, evtFreeingInfo);
1303 static bool osEnqueueEvtCommon(uint32_t evt, void *evtData, TaggedPtr evtFreeInfo, bool urgent)
1311 !evtQueueEnqueue(mEvtsInternal, evtType, evtData, evtFreeInfo, urgent)) {
1319 void osRemovePendingEvents(bool (*match)(uint32_t evtType, const void *evtData, void *context), void *context)
1324 bool osEnqueueEvt(uint32_t evtType, void *evtData, EventFreeF evtFreeF)
1326 return osEnqueueEvtCommon(evtType, evtData, taggedPtrMakeFromPtr(evtFreeF), false);
1329 bool osEnqueueEvtOrFree(uint32_t evtType, void *evtData, EventFreeF evtFreeF)
1331 bool success = osEnqueueEvt(evtType, evtData, evtFreeF);
1334 evtFreeF(evtData);
1339 bool osEnqueueEvtAsApp(uint32_t evtType, void *evtData, bool freeData)
1345 return osEnqueueEvtCommon(evtType, evtData, freeData ? taggedPtrMakeFromUint(osGetCurrentTid()) : taggedPtrMakeFromPtr(NULL), false);
1364 static bool osEnqueuePrivateEvtEx(uint32_t evtType, void *evtData, TaggedPtr evtFreeInfo, uint32_t toTid)
1377 act->privateEvt.evtData = evtData;
1389 bool osEnqueuePrivateEvtNew(uint16_t evtType, void *evtData,
1390 void (*evtFreeCallback)(uint16_t evtType, void *evtData),
1393 if (!osEnqueuePrivateEvtEx(evtType | (EVT_PRIVATE_CLASS_CHRE << 16), evtData,
1395 osChreFreeEvent(osGetCurrentTid(), evtFreeCallback, evtType, evtData);
1401 bool osEnqueuePrivateEvt(uint32_t evtType, void *evtData, EventFreeF evtFreeF, uint32_t toTid)
1403 return osEnqueuePrivateEvtEx(evtType & EVT_MASK, evtData, taggedPtrMakeFromPtr(evtFreeF), toTid);
1406 bool osEnqueuePrivateEvtAsApp(uint32_t evtType, void *evtData, uint32_t toTid)
1408 return osEnqueuePrivateEvtEx(evtType & EVT_MASK, evtData, taggedPtrMakeFromUint(osGetCurrentTid()), toTid);