at91sam9_oob_init() is only used within OpenOCD.
 
Symbols
loading...
Files
loading...

at91sam9_oob_init() function

Initialize an area for the OOB based on whether a user is requesting the OOB data. This determines the size of the OOB and allocates the space in case the user has not requested the OOB data.

Syntax

static uint8_t *at91sam9_oob_init(struct nand_device *nand,     uint8_t *oob,     uint32_t *size);

Arguments

nand

NAND device we are creating an OOB for.

oob

Pointer to the user supplied OOB area.

size

Size of the OOB.

Return value

Pointer to an area to store OOB data.

References

LocationReferrerText
at91sam9.c:316
static uint8_t *at91sam9_oob_init(struct nand_device *nand, uint8_t *oob, uint32_t *size)
at91sam9.c:373at91sam9_read_page()
oob_data = at91sam9_oob_init(nand, oob, &oob_size);
at91sam9.c:450at91sam9_write_page()
oob_data = at91sam9_oob_init(nand, oob, &oob_size);

Call Tree

Functions calling at91sam9_oob_init()
Functions called by at91sam9_oob_init()
at91sam9_oob_init()
memset()
malloc()
all items filtered out
Data read by at91sam9_oob_init()
Data written by at91sam9_oob_init()
at91sam9_oob_init()
all items filtered out
Type of at91sam9_oob_init()
at91sam9_oob_init()
uint8_t
all items filtered out