get_flash_name_index() is only used within OpenOCD.
 
Symbols
loading...
Files
loading...
CodeScopeDevelopment ToolsOpenOCDget_flash_name_index()

get_flash_name_index() function

Parses the optional '.index' portion of a flash bank identifier.

Syntax

unsigned get_flash_name_index(const char *name);
Implemented in common.c:14

Arguments

name

The desired driver name, passed by the user.

Return value

The parsed index request, or 0 if not present. If the name provides a suffix but it does not parse as an unsigned integer, the routine returns ~0U. This will prevent further matching.

References

LocationReferrerText
common.c:14
unsigned get_flash_name_index(const char *name)
common.h:20
unsigned get_flash_name_index(const char *name);
core.c:168get_nand_device_by_name()
unsigned requested = get_flash_name_index(name);
core.c:245get_flash_bank_by_name_noprobe()
unsigned requested = get_flash_name_index(name);

Call Tree

Functions calling get_flash_name_index()
Functions called by get_flash_name_index()
get_flash_name_index()
strrchr()
all items filtered out
Data read by get_flash_name_index()
get_flash_name_index()::name_index
get_flash_name_index()::requested
get_flash_name_index()::retval
all items filtered out
get_flash_name_index()