coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
bouncebuf.c File Reference
#include <arch/cache.h>
#include "bouncebuf.h"
#include "storage.h"
#include <string.h>
#include <commonlib/stdlib.h>
Include dependency graph for bouncebuf.c:

Go to the source code of this file.

Functions

static int addr_aligned (struct bounce_buffer *state)
 
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_buffer_{start,stop} data: pointer to buffer to be aligned len: length of the buffer flags: flags describing the transaction, see above. More...
 
int bounce_buffer_stop (struct bounce_buffer *state)
 bounce_buffer_stop() – Finish the bounce buffer session state: stores state passed between bounce_buffer_{start,stop} More...
 

Function Documentation

◆ addr_aligned()

static int addr_aligned ( struct bounce_buffer state)
static

Definition at line 12 of file bouncebuf.c.

References ARCH_DMA_MINALIGN, and sdhc_debug.

Referenced by bounce_buffer_start().

Here is the caller graph for this function:

◆ bounce_buffer_start()

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_buffer_{start,stop} data: pointer to buffer to be aligned len: length of the buffer flags: flags describing the transaction, see above.

Definition at line 32 of file bouncebuf.c.

References addr_aligned(), ARCH_DMA_MINALIGN, dcache_clean_invalidate_by_mva, GEN_BB_READ, memalign(), memcpy(), and ROUND.

Referenced by sdhci_send_command().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ bounce_buffer_stop()

int bounce_buffer_stop ( struct bounce_buffer state)

bounce_buffer_stop() – Finish the bounce buffer session state: stores state passed between bounce_buffer_{start,stop}

Definition at line 61 of file bouncebuf.c.

References dcache_invalidate_by_mva, free(), GEN_BB_WRITE, and memcpy().

Referenced by sdhci_send_command().

Here is the call graph for this function:
Here is the caller graph for this function: