#include "mmu/isp_mmu.h"
#include "mmu/sh_mmu_mrfld.h"
-#ifdef USE_SSSE3
-#include <asm/ssse3.h>
-#endif
-
struct hmm_bo_device bo_device;
struct hmm_pool dynamic_pool;
struct hmm_pool reserved_pool;
"p", /* private */
"s", /* shared */
"u", /* user */
-#ifdef CONFIG_ION
"i", /* ion */
-#endif
};
static ssize_t bo_show(struct device *dev, struct device_attribute *attr,
virt += len; /* update virt for next loop */
if (des) {
-
-#ifdef USE_SSSE3
- _ssse3_memcpy(des, src, len);
-#else
memcpy(des, src, len);
-#endif
des += len;
}
void *src = bo->vmap_addr;
src += (virt - bo->start);
-#ifdef USE_SSSE3
- _ssse3_memcpy(data, src, bytes);
-#else
memcpy(data, src, bytes);
-#endif
if (bo->status & HMM_BO_VMAPED_CACHED)
clflush_cache_range(src, bytes);
} else {
else
vptr = vptr + (virt - bo->start);
-#ifdef USE_SSSE3
- _ssse3_memcpy(data, vptr, bytes);
-#else
memcpy(data, vptr, bytes);
-#endif
clflush_cache_range(vptr, bytes);
hmm_bo_vunmap(bo);
}
void *dst = bo->vmap_addr;
dst += (virt - bo->start);
-#ifdef USE_SSSE3
- _ssse3_memcpy(dst, data, bytes);
-#else
memcpy(dst, data, bytes);
-#endif
if (bo->status & HMM_BO_VMAPED_CACHED)
clflush_cache_range(dst, bytes);
} else {
if (vptr) {
vptr = vptr + (virt - bo->start);
-#ifdef USE_SSSE3
- _ssse3_memcpy(vptr, data, bytes);
-#else
memcpy(vptr, data, bytes);
-#endif
clflush_cache_range(vptr, bytes);
hmm_bo_vunmap(bo);
return 0;
virt += len;
-#ifdef USE_SSSE3
- _ssse3_memcpy(des, src, len);
-#else
memcpy(des, src, len);
-#endif
+
src += len;
clflush_cache_range(des, len);