Home
last modified time | relevance | path

Searched refs:s32SemaphoreId (Results 1 – 11 of 11) sorted by relevance

/utopia/UTPA2-700.0.x/modules/msos/msos/linux_kernel_V2/
H A DMsOS_linux_kernel.c1469 MS_BOOL MsOS_DeleteSemaphore (MS_S32 s32SemaphoreId) in MsOS_DeleteSemaphore() argument
1475 if ( (s32SemaphoreId & MSOS_ID_PREFIX_MASK) != MSOS_ID_PREFIX ) in MsOS_DeleteSemaphore()
1481 s32SemaphoreId &= MSOS_ID_MASK; in MsOS_DeleteSemaphore()
1486 if (!_MsOS_Semaphore_Info[s32SemaphoreId].bUsed) in MsOS_DeleteSemaphore()
1492 for(s32Count=0;s32Count<_MsOS_Semaphore_Info[s32SemaphoreId].u32SemaCount;s32Count++) in MsOS_DeleteSemaphore()
1501 bResult = down_trylock(&_MsOS_Semaphore_Info[s32SemaphoreId].stSemaphore); in MsOS_DeleteSemaphore()
1510 up(&_MsOS_Semaphore_Info[s32SemaphoreId].stSemaphore); in MsOS_DeleteSemaphore()
1519 _MsOS_Semaphore_Info[s32SemaphoreId].bUsed = FALSE; in MsOS_DeleteSemaphore()
1520 _MsOS_Semaphore_Info[s32SemaphoreId].u32SemaCount = 0; in MsOS_DeleteSemaphore()
1533 MS_BOOL MsOS_ObtainSemaphore (MS_S32 s32SemaphoreId, MS_U32 u32WaitMs) in MsOS_ObtainSemaphore() argument
[all …]
/utopia/UTPA2-700.0.x/modules/msos/msos/nuttx/
H A DMsOS_nuttx.c1097 MS_BOOL MsOS_DeleteSemaphore (MS_S32 s32SemaphoreId) in MsOS_DeleteSemaphore() argument
1099 if ( (s32SemaphoreId & MSOS_ID_PREFIX_MASK) != MSOS_ID_PREFIX ) in MsOS_DeleteSemaphore()
1105 s32SemaphoreId &= MSOS_ID_MASK; in MsOS_DeleteSemaphore()
1108 if(_MsOS_Semaphore_Info[s32SemaphoreId].bUsed == FALSE ) in MsOS_DeleteSemaphore()
1110 MSOS_PRINT("SEMAPHORE WITH SEMAPHORE_ID:0x%lx NOT EXIST\n",s32SemaphoreId ); in MsOS_DeleteSemaphore()
1114 sem_destroy(&_MsOS_Semaphore_Info[s32SemaphoreId].stSemaphore); in MsOS_DeleteSemaphore()
1117 _MsOS_Semaphore_Info[s32SemaphoreId].bUsed = FALSE; in MsOS_DeleteSemaphore()
1131 MS_BOOL MsOS_ObtainSemaphore (MS_S32 s32SemaphoreId, MS_U32 u32WaitMs) in MsOS_ObtainSemaphore() argument
1137 if ( (s32SemaphoreId & MSOS_ID_PREFIX_MASK) != MSOS_ID_PREFIX ) in MsOS_ObtainSemaphore()
1143 s32SemaphoreId &= MSOS_ID_MASK; in MsOS_ObtainSemaphore()
[all …]
/utopia/UTPA2-700.0.x/modules/msos/msos/linux_kernel/
H A DMsOS_linux_kernel.c1389 MS_BOOL MsOS_DeleteSemaphore (MS_S32 s32SemaphoreId)
1391 if ( (s32SemaphoreId & MSOS_ID_PREFIX_MASK) != MSOS_ID_PREFIX )
1397 s32SemaphoreId &= MSOS_ID_MASK;
1400 sem_destroy(&_MsOS_Semaphore_Info[s32SemaphoreId].stSemaphore);
1403 _MsOS_Semaphore_Info[s32SemaphoreId].bUsed = FALSE;
1415 MS_BOOL MsOS_ObtainSemaphore (MS_S32 s32SemaphoreId, MS_U32 u32WaitMs)
1419 if ( (s32SemaphoreId & MSOS_ID_PREFIX_MASK) != MSOS_ID_PREFIX )
1425 s32SemaphoreId &= MSOS_ID_MASK;
1430 bRet = sem_wait(&_MsOS_Semaphore_Info[s32SemaphoreId].stSemaphore) >=0 ? TRUE : FALSE;
1440 …bRet = sem_timedwait(&_MsOS_Semaphore_Info[s32SemaphoreId].stSemaphore, &StopTime) >=0 ? TRUE : FA…
[all …]
/utopia/UTPA2-700.0.x/modules/msos/msos/ecos/
H A DMsOS_ecos.c1623 MS_BOOL MsOS_DeleteSemaphore (MS_S32 s32SemaphoreId) in MsOS_DeleteSemaphore() argument
1625 if ( (s32SemaphoreId & MSOS_ID_PREFIX_MASK) != MSOS_ID_PREFIX ) in MsOS_DeleteSemaphore()
1631 s32SemaphoreId &= MSOS_ID_MASK; in MsOS_DeleteSemaphore()
1634 cyg_semaphore_destroy(&_MsOS_Semaphore_Info[s32SemaphoreId].stSemaphore); in MsOS_DeleteSemaphore()
1637 _MsOS_Semaphore_Info[s32SemaphoreId].bUsed = FALSE; in MsOS_DeleteSemaphore()
1649 MS_BOOL MsOS_ObtainSemaphore (MS_S32 s32SemaphoreId, MS_U32 u32WaitMs) in MsOS_ObtainSemaphore() argument
1653 if ( (s32SemaphoreId & MSOS_ID_PREFIX_MASK) != MSOS_ID_PREFIX ) in MsOS_ObtainSemaphore()
1659 s32SemaphoreId &= MSOS_ID_MASK; in MsOS_ObtainSemaphore()
1666 cyg_semaphore_wait(&_MsOS_Semaphore_Info[s32SemaphoreId].stSemaphore); in MsOS_ObtainSemaphore()
1671 if ( cyg_semaphore_trywait(&_MsOS_Semaphore_Info[s32SemaphoreId].stSemaphore) ) in MsOS_ObtainSemaphore()
[all …]
/utopia/UTPA2-700.0.x/modules/msos/msos/ucos/
H A DMsOS_ucos.c1610 MS_BOOL MsOS_DeleteSemaphore (MS_S32 s32SemaphoreId) in MsOS_DeleteSemaphore() argument
1618 if ((s32SemaphoreId & MSOS_ID_PREFIX_MASK) != MSOS_ID_PREFIX) in MsOS_DeleteSemaphore()
1624 s32SemaphoreId &= MSOS_ID_MASK; in MsOS_DeleteSemaphore()
1627 OSSemDel(_MsOS_Semaphore_Info[s32SemaphoreId].stSemaphore, OS_DEL_ALWAYS, &u8Err); in MsOS_DeleteSemaphore()
1631 _MsOS_Semaphore_Info[s32SemaphoreId].bUsed = FALSE; in MsOS_DeleteSemaphore()
1647 MS_BOOL MsOS_ObtainSemaphore (MS_S32 s32SemaphoreId, MS_U32 u32WaitMs) in MsOS_ObtainSemaphore() argument
1652 if ((s32SemaphoreId & MSOS_ID_PREFIX_MASK) != MSOS_ID_PREFIX) in MsOS_ObtainSemaphore()
1658 s32SemaphoreId &= MSOS_ID_MASK; in MsOS_ObtainSemaphore()
1665 OSSemPend(_MsOS_Semaphore_Info[s32SemaphoreId].stSemaphore, 0, &u8Err); in MsOS_ObtainSemaphore()
1677 if (OSSemAccept(_MsOS_Semaphore_Info[s32SemaphoreId].stSemaphore)) in MsOS_ObtainSemaphore()
[all …]
/utopia/UTPA2-700.0.x/modules/msos/msos/linux/
H A DMsOS_linux.c2023 MS_BOOL MsOS_DeleteSemaphore (MS_S32 s32SemaphoreId) in MsOS_DeleteSemaphore() argument
2025 if ( (s32SemaphoreId & MSOS_ID_PREFIX_MASK) != MSOS_ID_PREFIX ) in MsOS_DeleteSemaphore()
2031 s32SemaphoreId &= MSOS_ID_MASK; in MsOS_DeleteSemaphore()
2035 if(_MsOS_Semaphore_Info[s32SemaphoreId].bUsed == FALSE ) in MsOS_DeleteSemaphore()
2037 MSOS_ERROR("SEMAPHORE WITH SEMAPHORE_ID: %td NOT EXIST\n", (ptrdiff_t)s32SemaphoreId); in MsOS_DeleteSemaphore()
2042 sem_destroy(&_MsOS_Semaphore_Info[s32SemaphoreId].stSemaphore); in MsOS_DeleteSemaphore()
2045 _MsOS_Semaphore_Info[s32SemaphoreId].bUsed = FALSE; in MsOS_DeleteSemaphore()
2057 MS_BOOL MsOS_ObtainSemaphore (MS_S32 s32SemaphoreId, MS_U32 u32WaitMs) in MsOS_ObtainSemaphore() argument
2061 if ( (s32SemaphoreId & MSOS_ID_PREFIX_MASK) != MSOS_ID_PREFIX ) in MsOS_ObtainSemaphore()
2067 s32SemaphoreId &= MSOS_ID_MASK; in MsOS_ObtainSemaphore()
[all …]
/utopia/UTPA2-700.0.x/modules/msos/msos/optee/
H A DMsOS_optee.c1051 MS_BOOL MsOS_DeleteSemaphore (MS_S32 s32SemaphoreId) in MsOS_DeleteSemaphore() argument
1053 return MsOS_DeleteSemaphore(s32SemaphoreId); in MsOS_DeleteSemaphore()
1084 MS_BOOL MsOS_ObtainSemaphore (MS_S32 s32SemaphoreId, MS_U32 u32WaitMs) in MsOS_ObtainSemaphore() argument
1086 return MsOS_ObtainMutex(s32SemaphoreId,u32WaitMs); in MsOS_ObtainSemaphore()
1127 MS_BOOL MsOS_ReleaseSemaphore (MS_S32 s32SemaphoreId) in MsOS_ReleaseSemaphore() argument
1129 return MsOS_ReleaseMutex(s32SemaphoreId); in MsOS_ReleaseSemaphore()
1167 MS_BOOL MsOS_InfoSemaphore (MS_S32 s32SemaphoreId, MS_U32 *pu32InitCnt, MsOSAttribute *peAttribute,… in MsOS_InfoSemaphore() argument
/utopia/UTPA2-700.0.x/projects/tmplib/include/
H A DMsOS.h812 MS_BOOL MsOS_DeleteSemaphore (MS_S32 s32SemaphoreId);
822 MS_BOOL MsOS_ObtainSemaphore (MS_S32 s32SemaphoreId, MS_U32 u32WaitMs);
832 MS_BOOL MsOS_ReleaseSemaphore (MS_S32 s32SemaphoreId);
844 MS_BOOL MsOS_InfoSemaphore (MS_S32 s32SemaphoreId, MS_U32 *pu32Cnt, MsOSAttribute *peAttribute, cha…
/utopia/UTPA2-700.0.x/modules/msos/msos/nos/
H A DMsOS_nos.c1031 MS_BOOL MsOS_DeleteSemaphore (MS_S32 s32SemaphoreId) in MsOS_DeleteSemaphore() argument
1044 MS_BOOL MsOS_ObtainSemaphore (MS_S32 s32SemaphoreId, MS_U32 u32WaitMs) in MsOS_ObtainSemaphore() argument
1057 MS_BOOL MsOS_ReleaseSemaphore (MS_S32 s32SemaphoreId) in MsOS_ReleaseSemaphore() argument
1072 MS_BOOL MsOS_InfoSemaphore (MS_S32 s32SemaphoreId, MS_U32 *pu32InitCnt, MsOSAttribute *peAttribute,… in MsOS_InfoSemaphore() argument
/utopia/UTPA2-700.0.x/mxlib/include/
H A DMsOS.h954 MS_BOOL MsOS_DeleteSemaphore (MS_S32 s32SemaphoreId);
964 MS_BOOL MsOS_ObtainSemaphore (MS_S32 s32SemaphoreId, MS_U32 u32WaitMs);
974 MS_BOOL MsOS_ReleaseSemaphore (MS_S32 s32SemaphoreId);
986 MS_BOOL MsOS_InfoSemaphore (MS_S32 s32SemaphoreId, MS_U32 *pu32Cnt, MsOSAttribute *peAttribute, cha…
/utopia/UTPA2-700.0.x/projects/build/
H A Dpreprocess.txt81281 MS_BOOL MsOS_DeleteSemaphore (MS_S32 s32SemaphoreId);
81283 MS_BOOL MsOS_ObtainSemaphore (MS_S32 s32SemaphoreId, MS_U32 u32WaitMs);
81285 MS_BOOL MsOS_ReleaseSemaphore (MS_S32 s32SemaphoreId);
81287 MS_BOOL MsOS_InfoSemaphore (MS_S32 s32SemaphoreId, MS_U32 *pu32Cnt, MsOSAttribute *peAttribute, cha…