Home
last modified time | relevance | path

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

/device/soc/hisilicon/common/platform/mmc/himci_v200/
Dhimci.c636 …host->alignedBuff = (uint8_t *)OsalMemAllocAlign(CACHE_ALIGNED_SIZE, ALIGN(len, CACHE_ALIGNED_SIZE… in HimciFillDmaSg()
637 if (host->alignedBuff == NULL) { in HimciFillDmaSg()
642 ret = memcpy_s(host->alignedBuff, len, data->dataBuffer, len); in HimciFillDmaSg()
645 OsalMemFree(host->alignedBuff); in HimciFillDmaSg()
646 host->alignedBuff = NULL; in HimciFillDmaSg()
650 sg_init_one(&host->dmaSg, (const void *)host->alignedBuff, len); in HimciFillDmaSg()
665 if (host->alignedBuff != NULL && data->dataBuffer != NULL && len > 0 && host->buffLen > 0) { in HimciClearDmaSg()
667 if (memcpy_s(data->dataBuffer, len, host->alignedBuff, host->buffLen) != EOK) { in HimciClearDmaSg()
672 if (host->alignedBuff != NULL) { in HimciClearDmaSg()
673 OsalMemFree(host->alignedBuff); in HimciClearDmaSg()
[all …]
Dhimci.h526 uint8_t *alignedBuff; member
/device/soc/hisilicon/common/platform/mmc/sdhci/
Dsdhci.c485 …host->alignedBuff = (uint8_t *)OsalMemAllocAlign(CACHE_ALIGNED_SIZE, ALIGN(len, CACHE_ALIGNED_SIZE… in SdhciFillDmaSg()
486 if (host->alignedBuff == NULL) { in SdhciFillDmaSg()
491 ret = memcpy_s(host->alignedBuff, len, data->dataBuffer, len); in SdhciFillDmaSg()
494 free(host->alignedBuff); in SdhciFillDmaSg()
495 host->alignedBuff = NULL; in SdhciFillDmaSg()
499 sg_init_one(&host->dmaSg, (const void *)host->alignedBuff, len); in SdhciFillDmaSg()
514 if (host->alignedBuff != NULL && data->dataBuffer != NULL && len > 0 && host->buffLen > 0) { in SdhciClearDmaSg()
516 (void)memcpy_s(data->dataBuffer, len, host->alignedBuff, host->buffLen); in SdhciClearDmaSg()
519 if (host->alignedBuff != NULL) { in SdhciClearDmaSg()
520 OsalMemFree(host->alignedBuff); in SdhciClearDmaSg()
[all …]
Dsdhci.h681 uint8_t *alignedBuff; member