6 #include <arch/cache.h>
33 size_t len,
unsigned int flags)
35 state->user_buffer = data;
36 state->bounce_buffer = data;
44 if (!
state->bounce_buffer)
69 if (
state->bounce_buffer ==
state->user_buffer)
void * memcpy(void *dest, const void *src, size_t n)
int bounce_buffer_start(struct bounce_buffer *state, void *data, size_t len, unsigned int flags)
bounce_buffer_start() – Start the bounce buffer session state: stores state passed between bounce_buf...
int bounce_buffer_stop(struct bounce_buffer *state)
bounce_buffer_stop() – Finish the bounce buffer session state: stores state passed between bounce_buf...
static int addr_aligned(struct bounce_buffer *state)
#define ARCH_DMA_MINALIGN
void * memalign(size_t boundary, size_t size)
#define sdhc_debug(format...)
#define dcache_invalidate_by_mva(addr, len)
#define dcache_clean_invalidate_by_mva(addr, len)