flash_info
u8 flash_info;
rc = zl3073x_read_u8(zldev, ZL_REG_FLASH_INFO, &flash_info);
switch (FIELD_GET(ZL_FLASH_INFO_SECTOR_SIZE, flash_info)) {
static struct flash_info dataflash_data[] = {
static struct flash_info *jedec_lookup(struct spi_device *spi,
struct flash_info *info;
static struct flash_info *jedec_probe(struct spi_device *spi)
struct flash_info *info;
struct flash_info *info;
struct spear_smi_flash_info *flash_info;
flash_info = &pdata->board_flash_info[bank];
if (!flash_info)
flash->fast_mode = flash_info->fast_mode ? 1 : 0;
flash->base_addr = devm_ioremap(&pdev->dev, flash_info->mem_base,
flash_info->size);
if (flash_info->name)
flash->mtd.name = flash_info->name;
flash->mtd.size = flash_info->size;
if (flash_info->partitions) {
parts = flash_info->partitions;
count = flash_info->nr_partitions;
static struct flash_info *sst25l_match_device(struct spi_device *spi)
struct flash_info *flash_info = NULL;
flash_info = &sst25l_flash_info[i];
if (!flash_info)
return flash_info;
struct flash_info *flash_info;
flash_info = sst25l_match_device(spi);
if (!flash_info)
flash->mtd.erasesize = flash_info->erase_size;
flash->mtd.writesize = flash_info->page_size;
flash->mtd.writebufsize = flash_info->page_size;
flash->mtd.size = flash_info->page_size * flash_info->nr_pages;
dev_info(&spi->dev, "%s (%lld KiB)\n", flash_info->name,
static struct flash_info sst25l_flash_info[] = {
struct flash_info *info = fsm->info;
static struct flash_info *stfsm_jedec_probe(struct stfsm *fsm)
struct flash_info *info;
struct flash_info *info;
struct flash_info *info;
static struct flash_info flash_types[] = {
static const struct flash_info atmel_nor_parts[] = {
static const struct flash_info spi_nor_generic_flash = {
static const struct flash_info *spi_nor_match_id(struct spi_nor *nor,
const struct flash_info *part;
static const struct flash_info *spi_nor_detect(struct spi_nor *nor)
const struct flash_info *info;
const struct flash_info *info = nor->info;
const struct flash_info *info = nor->info;
static const struct flash_info *spi_nor_match_name(struct spi_nor *nor,
static const struct flash_info *spi_nor_get_flash_info(struct spi_nor *nor,
const struct flash_info *info = NULL;
const struct flash_info *jinfo;
const struct flash_info *info;
const struct flash_info *parts;
const struct flash_info *info = nor->info;
static const struct flash_info eon_nor_parts[] = {
static const struct flash_info esmt_nor_parts[] = {
static const struct flash_info everspin_nor_parts[] = {
static const struct flash_info gigadevice_nor_parts[] = {
static const struct flash_info intel_nor_parts[] = {
static const struct flash_info issi_nor_parts[] = {
static const struct flash_info macronix_nor_parts[] = {
static const struct flash_info micron_nor_parts[] = {
static const struct flash_info st_nor_parts[] = {
static const struct flash_info spansion_nor_parts[] = {
static const struct flash_info sst_nor_parts[] = {
static const struct flash_info winbond_nor_parts[] = {
static const struct flash_info xmc_nor_parts[] = {
if (bp->flash_info->flags & BNX2_NV_WREN) {
if (bp->flash_info->flags & BNX2_NV_BUFFERED)
if (bp->flash_info->flags & BNX2_NV_TRANSLATE) {
offset = ((offset / bp->flash_info->page_size) <<
bp->flash_info->page_bits) +
(offset % bp->flash_info->page_size);
if (bp->flash_info->flags & BNX2_NV_TRANSLATE) {
offset = ((offset / bp->flash_info->page_size) <<
bp->flash_info->page_bits) +
(offset % bp->flash_info->page_size);
bp->flash_info = &flash_5709;
bp->flash_info = flash;
bp->flash_info = flash;
bp->flash_info = NULL;
bp->flash_size = bp->flash_info->total_size;
if (!(bp->flash_info->flags & BNX2_NV_BUFFERED)) {
page_start -= (page_start % bp->flash_info->page_size);
page_end = page_start + bp->flash_info->page_size;
if (!(bp->flash_info->flags & BNX2_NV_BUFFERED)) {
for (j = 0; j < bp->flash_info->page_size; j += 4) {
if (j == (bp->flash_info->page_size - 4)) {
if (!(bp->flash_info->flags & BNX2_NV_BUFFERED)) {
((bp->flash_info->flags & BNX2_NV_BUFFERED) &&
if (!(bp->flash_info->flags & BNX2_NV_BUFFERED)) {
if (!bp->flash_info)
const struct flash_spec *flash_info;
struct flash_info;
const struct flash_info *info;
} __packed flash_info;
&flash_info, sizeof(flash_info));
count = le32_to_cpu(flash_info.count);