Home
last modified time | relevance | path

Searched refs:u32ShmSize (Results 1 – 15 of 15) sorted by relevance

/utopia/UTPA2-700.0.x/modules/msos/msos/nos/
H A DMsOS_nos.c1605 MS_U32 u32ShmSize; member
1619 MS_U32 u32ShmSize; in MsOS_SHM_Init() local
1626 u32ShmSize = SHM_SIZE; in MsOS_SHM_Init()
1627 u32ShmSize += sizeof(MsOS_SHM_Hdr); in MsOS_SHM_Init()
1628 u32ShmSize += ((1<< 12)- 1); in MsOS_SHM_Init()
1629 u32ShmSize = (u32ShmSize>> 12)<< 12; // make it 4KBytes alignment in MsOS_SHM_Init()
1631 if (NULL == (_pu8ShareMem = (MS_U8*)malloc(u32ShmSize))) in MsOS_SHM_Init()
1633 …printf("[%s][%d] fail, ask for 0x%X mem_size\n", __FUNCTION__, __LINE__, (unsigned int)u32ShmSize); in MsOS_SHM_Init()
1648 pHdr->u32ShmSize = u32ShmSize; in MsOS_SHM_Init()
1654 _ShmHdr.u32ShmSize = u32ShmSize; in MsOS_SHM_Init()
[all …]
/utopia/UTPA2-700.0.x/modules/msos/msos/linux/
H A DMsOS_linux.c501 MS_U32 u32ShmSize; member
3412 MS_U32 u32ShmSize; in MsOS_SHM_Init() local
3444 u32ShmSize = SHM_SIZE; in MsOS_SHM_Init()
3446 u32ShmSize = MsOS_GetSHMSize(); in MsOS_SHM_Init()
3447 if(u32ShmSize < SHM_SIZE) in MsOS_SHM_Init()
3456 u32ShmSize = SHM_SIZE; in MsOS_SHM_Init()
3459 u32ShmSize -= SHM_SIZE_RESEVED; in MsOS_SHM_Init()
3460 u32ShmSize += sizeof(MsOS_SHM_Hdr); in MsOS_SHM_Init()
3461 u32ShmSize += ((1<< 12)- 1); in MsOS_SHM_Init()
3462 u32ShmSize = (u32ShmSize>> 12)<< 12; // make it 4KBytes alignment in MsOS_SHM_Init()
[all …]
H A DdrvMPool.c473 MS_BOOL MsOS_SHM_Expand(MS_U32 u32ShmSize, MS_U32 u32ExpandSize) in MsOS_SHM_Expand() argument
481 u32ExpandSize += u32ShmSize; in MsOS_SHM_Expand()
495 MS_VIRT MsOS_Mapping_SharedMem(MS_U32 u32ShmSize,MS_BOOL *bInit) in MsOS_Mapping_SharedMem() argument
519 if(ioctl(_s32SemutexFD,MDRV_SEMUTEX_CREATE_SHAREMEMORY,&u32ShmSize)) in MsOS_Mapping_SharedMem()
531 _psAddr = mmap(NULL,u32ShmSize,PROT_READ | PROT_WRITE,MAP_SHARED,_s32SemutexFD,0); in MsOS_Mapping_SharedMem()
H A DMsOS_private.h116 MS_BOOL MsOS_SHM_Expand(MS_U32 u32ShmSize, MS_U32 u32ExpandSize);
/utopia/UTPA2-700.0.x/modules/msos/msos/ecos/
H A DMsOS_ecos.c3208 MS_U32 u32ShmSize; member
3222 MS_U32 u32ShmSize; in MsOS_SHM_Init() local
3229 u32ShmSize = SHM_SIZE; in MsOS_SHM_Init()
3230 u32ShmSize += sizeof(MsOS_SHM_Hdr); in MsOS_SHM_Init()
3231 u32ShmSize += ((1<< 12)- 1); in MsOS_SHM_Init()
3232 u32ShmSize = (u32ShmSize>> 12)<< 12; // make it 4KBytes alignment in MsOS_SHM_Init()
3234 if (NULL == (_pu8ShareMem = (MS_U8*)malloc(u32ShmSize))) in MsOS_SHM_Init()
3253 pHdr->u32ShmSize = u32ShmSize; in MsOS_SHM_Init()
3259 _ShmHdr.u32ShmSize = u32ShmSize; in MsOS_SHM_Init()
3308 if ((_ShmHdr.u32Offset + u32BufSize)> _ShmHdr.u32ShmSize) in MsOS_SHM_GetId()
/utopia/UTPA2-700.0.x/modules/msos/msos/ucos/
H A DMsOS_ucos.c3721 MS_U32 u32ShmSize; member
3735 MS_U32 u32ShmSize; in MsOS_SHM_Init() local
3742 u32ShmSize = SHM_SIZE; in MsOS_SHM_Init()
3743 u32ShmSize += sizeof(MsOS_SHM_Hdr); in MsOS_SHM_Init()
3744 u32ShmSize += ((1<< 12)- 1); in MsOS_SHM_Init()
3745 u32ShmSize = (u32ShmSize>> 12)<< 12; // make it 4KBytes alignment in MsOS_SHM_Init()
3747 if (NULL == (_pu8ShareMem = (MS_U8*)malloc(u32ShmSize))) in MsOS_SHM_Init()
3749 …printf("[%s][%d] fail, ask for 0x%X mem_size\n", __FUNCTION__, __LINE__, (unsigned int)u32ShmSize); in MsOS_SHM_Init()
3764 pHdr->u32ShmSize = u32ShmSize; in MsOS_SHM_Init()
3770 _ShmHdr.u32ShmSize = u32ShmSize; in MsOS_SHM_Init()
[all …]
/utopia/UTPA2-700.0.x/modules/msos/utopia_core/optee/
H A Dutopia_dapi.c81 static void* shm_malloc(MS_U32 u32ShmSize, char* shmName, MS_U32* pu32RetShmID) in shm_malloc() argument
87 …u32Ret = MsOS_SHM_GetId((MS_U8*)shmName, u32ShmSize, &u32RetShmID, &u32RetAddr, &u32RetShmSize, MS… in shm_malloc()
91 …MsOS_SHM_GetId((MS_U8*)shmName, u32ShmSize, &u32RetShmID, &u32RetAddr, &u32RetShmSize, MSOS_SHM_CR… in shm_malloc()
/utopia/UTPA2-700.0.x/modules/msos/utopia_core/nuttx/
H A Dutopia_dapi.c81 static void* shm_malloc(MS_U32 u32ShmSize, char* shmName, MS_U32* pu32RetShmID) in shm_malloc() argument
87 …u32Ret = MsOS_SHM_GetId((MS_U8*)shmName, u32ShmSize, &u32RetShmID, &u32RetAddr, &u32RetShmSize, MS… in shm_malloc()
91 …MsOS_SHM_GetId((MS_U8*)shmName, u32ShmSize, &u32RetShmID, &u32RetAddr, &u32RetShmSize, MSOS_SHM_CR… in shm_malloc()
/utopia/UTPA2-700.0.x/modules/msos/utopia_core/ecos/
H A Dutopia_dapi.c90 static void* shm_malloc(MS_U32 u32ShmSize, char* shmName, MS_U32* pu32RetShmID) in shm_malloc() argument
108 …u32Ret = MsOS_SHM_GetId((MS_U8*)shmName, u32ShmSize, &u32RetShmID, &u32RetAddr, &u32RetShmSize, MS… in shm_malloc()
115 …MsOS_SHM_GetId((MS_U8*)shmName, u32ShmSize, &u32RetShmID, &u32RetAddr, &u32RetShmSize, MSOS_SHM_CR… in shm_malloc()
/utopia/UTPA2-700.0.x/modules/msos/utopia_core/ucos/
H A Dutopia_dapi.c90 static void* shm_malloc(MS_U32 u32ShmSize, char* shmName, MS_U32* pu32RetShmID) in shm_malloc() argument
108 …u32Ret = MsOS_SHM_GetId((MS_U8*)shmName, u32ShmSize, &u32RetShmID, &u32RetAddr, &u32RetShmSize, MS… in shm_malloc()
115 …MsOS_SHM_GetId((MS_U8*)shmName, u32ShmSize, &u32RetShmID, &u32RetAddr, &u32RetShmSize, MSOS_SHM_CR… in shm_malloc()
/utopia/UTPA2-700.0.x/modules/msos/utopia_core/linux/
H A Dutopia_dapi.c165 static MS_U32 shm_malloc(MS_U32 u32ShmSize, char* shmName, in shm_malloc() argument
187 u32QueryRet = MsOS_SHM_GetId((MS_U8*)shmName, u32ShmSize, &u32RetShmID in shm_malloc()
202 u32CreateRet = MsOS_SHM_GetId((MS_U8*)shmName, u32ShmSize, &u32RetShmID in shm_malloc()
/utopia/UTPA2-700.0.x/modules/msos/utopia_core/linux_kernel/
H A Dutopia_dapi.c111 static MS_U32 shm_malloc(MS_U32 u32ShmSize, char* shmName, in shm_malloc() argument
133 u32QueryRet = MsOS_SHM_GetId((MS_U8*)shmName, u32ShmSize, &u32RetShmID in shm_malloc()
148 u32CreateRet = MsOS_SHM_GetId((MS_U8*)shmName, u32ShmSize, &u32RetShmID in shm_malloc()
/utopia/UTPA2-700.0.x/modules/msos/utopia_core/nos/
H A Dutopia_dapi.c113 static void* shm_malloc(MS_U32 u32ShmSize, char* shmName, MS_U32* pu32RetShmID) in shm_malloc() argument
128 u32RetAddr = (MS_U32)malloc(u32ShmSize); in shm_malloc()
/utopia/UTPA2-700.0.x/mxlib/include/
H A DMsOS.h1948 MS_VIRT MsOS_Mapping_SharedMem(MS_U32 u32ShmSize,MS_BOOL *bInit);
/utopia/UTPA2-700.0.x/projects/build/
H A Dpreprocess.txt81864 MS_VIRT MsOS_Mapping_SharedMem(MS_U32 u32ShmSize,MS_BOOL *bInit);