OpenOCD
|
Go to the source code of this file.
Functions | |
COMMAND_HELPER (nand_fileio_parse_args, struct nand_fileio_state *state, struct nand_device **dev, enum fileio_access filemode, bool need_size, bool sw_ecc) | |
int | nand_fileio_cleanup (struct nand_fileio_state *state) |
int | nand_fileio_finish (struct nand_fileio_state *state) |
void | nand_fileio_init (struct nand_fileio_state *state) |
int | nand_fileio_read (struct nand_device *nand, struct nand_fileio_state *s) |
int | nand_fileio_start (struct command_invocation *cmd, struct nand_device *nand, const char *filename, int filemode, struct nand_fileio_state *state) |
Variables | |
static struct nand_ecclayout | nand_oob_16 |
static struct nand_ecclayout | nand_oob_64 |
COMMAND_HELPER | ( | nand_fileio_parse_args | , |
struct nand_fileio_state * | state, | ||
struct nand_device ** | dev, | ||
enum fileio_access | filemode, | ||
bool | need_size, | ||
bool | sw_ecc | ||
) |
Definition at line 104 of file flash/nand/fileio.c.
References CALL_COMMAND_HANDLER, CMD, CMD_ARGC, CMD_ARGV, COMMAND_PARSE_NUMBER, command_print(), nand_device::device, ERROR_COMMAND_SYNTAX_ERROR, ERROR_NAND_DEVICE_NOT_PROBED, ERROR_OK, fileio_size(), nand_fileio_init(), nand_fileio_start(), NAND_OOB_ONLY, NAND_OOB_RAW, NAND_OOB_SW_ECC, NAND_OOB_SW_ECC_KW, nand_device::page_size, and state.
int nand_fileio_cleanup | ( | struct nand_fileio_state * | state | ) |
Definition at line 86 of file flash/nand/fileio.c.
References ERROR_OK, fileio_close(), NULL, and state.
Referenced by COMMAND_HANDLER(), and nand_fileio_finish().
int nand_fileio_finish | ( | struct nand_fileio_state * | state | ) |
Definition at line 98 of file flash/nand/fileio.c.
References duration_measure(), nand_fileio_cleanup(), and state.
Referenced by COMMAND_HANDLER().
void nand_fileio_init | ( | struct nand_fileio_state * | state | ) |
Definition at line 40 of file flash/nand/fileio.c.
References NAND_OOB_NONE, and state.
Referenced by COMMAND_HANDLER(), and COMMAND_HELPER().
int nand_fileio_read | ( | struct nand_device * | nand, |
struct nand_fileio_state * | s | ||
) |
Definition at line 171 of file flash/nand/fileio.c.
References nand_fileio_state::eccpos, nand_fileio_state::fileio, fileio_read(), nand_calculate_ecc(), nand_calculate_ecc_kw(), NAND_OOB_SW_ECC, NAND_OOB_SW_ECC_KW, nand_fileio_state::oob, nand_fileio_state::oob_format, nand_fileio_state::oob_size, nand_fileio_state::page, nand_device::page_size, and nand_fileio_state::page_size.
Referenced by COMMAND_HANDLER().
int nand_fileio_start | ( | struct command_invocation * | cmd, |
struct nand_device * | nand, | ||
const char * | filename, | ||
int | filemode, | ||
struct nand_fileio_state * | state | ||
) |
Definition at line 46 of file flash/nand/fileio.c.
References cmd, command_print(), duration_start(), nand_ecclayout::eccpos, ERROR_COMMAND_SYNTAX_ERROR, ERROR_OK, FILEIO_BINARY, fileio_open(), FILEIO_READ, nand_oob_16, nand_oob_64, NAND_OOB_ONLY, NAND_OOB_RAW, NAND_OOB_SW_ECC, NAND_OOB_SW_ECC_KW, nand_device::page_size, and state.
Referenced by COMMAND_HANDLER(), and COMMAND_HELPER().
|
static |
Definition at line 1 of file flash/nand/fileio.c.
Referenced by nand_fileio_start().
|
static |
Definition at line 1 of file flash/nand/fileio.c.
Referenced by nand_fileio_start().