Home
last modified time | relevance | path

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

/trusted-firmware-m-latest/lib/ext/cryptocell-312-runtime/host/src/pal/linux/
Dcc_pal_memmap.c17 static int halFileH = -1; variable
44 if (halFileH >= 0) { /* already opened */ in CC_PalMemMap()
48 halFileH = open("/dev/mem", O_RDWR|O_SYNC); in CC_PalMemMap()
49 if (halFileH < 0) { in CC_PalMemMap()
52 (void)fcntl(halFileH, F_SETFD, FD_CLOEXEC); in CC_PalMemMap()
54 …*ppVirtBuffAddr = (uint32_t *)mmap(0, mapSize, PROT_READ|PROT_WRITE, MAP_SHARED, halFileH, physica… in CC_PalMemMap()
56 close(halFileH); in CC_PalMemMap()
57 halFileH = -1; in CC_PalMemMap()
78 if (halFileH < 0) { in CC_PalMemUnMap()
83 close(halFileH); in CC_PalMemUnMap()
[all …]