• Home
  • Raw
  • Download

Lines Matching full:sfdp

38 	u32		signature; /* Ox50444653U <=> "SFDP" */
172 * @addr: offset in the SFDP area to start reading data from
174 * @buf: buffer where the SFDP data are copied into (dma-safe memory)
177 * for (Fast) Read commands, the Read SFDP (5Ah) instruction is always
208 * @addr: offset in the SFDP area to start reading data from
210 * @buf: buffer where the SFDP data are copied into
321 * synchronize with the supported Erase Types defined in SFDP optional tables.
415 * defined by the SFDP (JESD216) specification.
1037 * SFDP table that indicates support for Page Program Commands. in spi_nor_parse_4bait()
1083 /* 4BAIT is the only SFDP table that indicates page program support. */ in spi_nor_parse_4bait()
1116 * SFDP compliant memories. in spi_nor_parse_4bait()
1331 * after SFDP has been parsed. Called only for flashes that define JESD216 SFDP
1335 * Used to tweak various flash parameters when information provided by the SFDP
1356 * spi_nor_check_sfdp_signature() - check for a valid SFDP signature
1360 * presence of a valid SFDP table.
1369 /* Get the SFDP header. */ in spi_nor_check_sfdp_signature()
1375 /* Check the SFDP signature. */ in spi_nor_check_sfdp_signature()
1400 struct sfdp *sfdp; in spi_nor_parse_sfdp() local
1405 /* Get the SFDP header. */ in spi_nor_parse_sfdp()
1410 /* Check the SFDP header version. */ in spi_nor_parse_sfdp()
1429 * Read SFDP command. These parameter headers will actually be parsed in spi_nor_parse_sfdp()
1448 dev_dbg(dev, "failed to read SFDP parameter headers\n"); in spi_nor_parse_sfdp()
1454 * Cache the complete SFDP data. It is not (easily) possible to fetch in spi_nor_parse_sfdp()
1455 * SFDP after probe time and we need it for the sysfs access. in spi_nor_parse_sfdp()
1469 dev_dbg(dev, "SFDP data (%zu) too big, truncating\n", in spi_nor_parse_sfdp()
1474 sfdp = devm_kzalloc(dev, sizeof(*sfdp), GFP_KERNEL); in spi_nor_parse_sfdp()
1475 if (!sfdp) { in spi_nor_parse_sfdp()
1481 * The SFDP is organized in chunks of DWORDs. Thus, in theory, the in spi_nor_parse_sfdp()
1484 * the complete SFDP data. in spi_nor_parse_sfdp()
1486 sfdp->num_dwords = DIV_ROUND_UP(sfdp_size, sizeof(*sfdp->dwords)); in spi_nor_parse_sfdp()
1487 sfdp->dwords = devm_kcalloc(dev, sfdp->num_dwords, in spi_nor_parse_sfdp()
1488 sizeof(*sfdp->dwords), GFP_KERNEL); in spi_nor_parse_sfdp()
1489 if (!sfdp->dwords) { in spi_nor_parse_sfdp()
1491 devm_kfree(dev, sfdp); in spi_nor_parse_sfdp()
1495 err = spi_nor_read_sfdp(nor, 0, sfdp_size, sfdp->dwords); in spi_nor_parse_sfdp()
1497 dev_dbg(dev, "failed to read SFDP data\n"); in spi_nor_parse_sfdp()
1498 devm_kfree(dev, sfdp->dwords); in spi_nor_parse_sfdp()
1499 devm_kfree(dev, sfdp); in spi_nor_parse_sfdp()
1503 nor->sfdp = sfdp; in spi_nor_parse_sfdp()