Lines Matching refs:pstEventCB
839 PEVENT_CB_S pstEventCB; in osEventFlagsNew() local
848 pstEventCB = (PEVENT_CB_S)LOS_MemAlloc(m_aucSysMem0, sizeof(EVENT_CB_S)); in osEventFlagsNew()
849 if (pstEventCB == NULL) { in osEventFlagsNew()
853 ret = LOS_EventInit(pstEventCB); in osEventFlagsNew()
855 return (osEventFlagsId_t)pstEventCB; in osEventFlagsNew()
857 if (LOS_MemFree(m_aucSysMem0, pstEventCB) != LOS_OK) { in osEventFlagsNew()
875 PEVENT_CB_S pstEventCB = (PEVENT_CB_S)ef_id; in osEventFlagsSet() local
879 if (pstEventCB == NULL) { in osEventFlagsSet()
883 ret = LOS_EventWrite(pstEventCB, (UINT32)flags); in osEventFlagsSet()
885 rflags = pstEventCB->uwEventID; in osEventFlagsSet()
894 PEVENT_CB_S pstEventCB = (PEVENT_CB_S)ef_id; in osEventFlagsClear() local
899 if (pstEventCB == NULL) { in osEventFlagsClear()
904 rflags = pstEventCB->uwEventID; in osEventFlagsClear()
906 ret = LOS_EventClear(pstEventCB, ~flags); in osEventFlagsClear()
917 PEVENT_CB_S pstEventCB = (PEVENT_CB_S)ef_id; in osEventFlagsGet() local
921 if (pstEventCB == NULL) { in osEventFlagsGet()
926 rflags = pstEventCB->uwEventID; in osEventFlagsGet()
934 PEVENT_CB_S pstEventCB = (PEVENT_CB_S)ef_id; in osEventFlagsWait() local
959 ret = LOS_EventRead(pstEventCB, (UINT32)flags, mode, (UINT32)timeout); in osEventFlagsWait()
982 PEVENT_CB_S pstEventCB = (PEVENT_CB_S)ef_id; in osEventFlagsDelete() local
989 if (LOS_EventDestroy(pstEventCB) != LOS_OK) { in osEventFlagsDelete()
994 if (LOS_MemFree(m_aucSysMem0, (void *)pstEventCB) != LOS_OK) { in osEventFlagsDelete()