Searched refs:tmpBuf (Results 1 - 2 of 2) sorted by relevance
/device/soc/hisilicon/hi3861v100/hi3861_adapter/kal/posix/src/ |
H A D | file.c | 86 char *tmpBuf = (char *)malloc(tmpLen); in GetCanonicalPath() local 87 if (tmpBuf == NULL) { in GetCanonicalPath() 91 if (-1 == sprintf_s(tmpBuf, tmpLen, "/%s/%s/", cwd, path)) { in GetCanonicalPath() 92 free(tmpBuf); in GetCanonicalPath() 98 while ((p = strstr(tmpBuf, "/./")) != NULL) { in GetCanonicalPath() 99 if (EOK != memmove_s(p, tmpLen - (p - tmpBuf), p + 2, tmpLen - (p - tmpBuf) - 2)) { in GetCanonicalPath() 100 free(tmpBuf); in GetCanonicalPath() 106 while ((p = strstr(tmpBuf, "//")) != NULL) { in GetCanonicalPath() 107 if (EOK != memmove_s(p, tmpLen - (p - tmpBuf), in GetCanonicalPath() [all...] |
/device/soc/hisilicon/common/platform/spi/ |
H A D | spi_hi35xx.c | 554 void *tmpBuf = OsalMemCalloc(len); in Pl022AllocBufPhy() local 555 return (tmpBuf == NULL) ? 0 : (uintptr_t)LOS_PaddrQuery(tmpBuf); in Pl022AllocBufPhy() 560 void *tmpBuf = NULL; in Pl022RleaseBufPhy() local 563 tmpBuf = LOS_PaddrToKVaddr((paddr_t)buf); in Pl022RleaseBufPhy() 564 OsalMemFree(tmpBuf); in Pl022RleaseBufPhy() 574 uintptr_t tmpBuf = 0; in Pl022TxRxDma() local 583 if ((tmpBuf = Pl022AllocBufPhy(msg->len)) == 0) { in Pl022TxRxDma() 589 dmaMsgRx.destAddr = (msg->rbuf == NULL) ? tmpBuf : (uintptr_t)(LOS_PaddrQuery(msg->rbuf)); in Pl022TxRxDma() 596 dmaMsgTx.srcAddr = (msg->wbuf == NULL) ? tmpBuf in Pl022TxRxDma() [all...] |
Completed in 2 milliseconds