Home
last modified time | relevance | path

Searched refs:sfdp (Results 1 – 4 of 4) sorted by relevance

/drivers/mtd/spi-nor/
Dsysfs.c57 struct sfdp *sfdp = nor->sfdp; in sfdp_read() local
58 size_t sfdp_size = sfdp->num_dwords * sizeof(*sfdp->dwords); in sfdp_read()
60 return memory_read_from_buffer(buf, count, &off, nor->sfdp->dwords, in sfdp_read()
63 static BIN_ATTR_RO(sfdp, 0);
90 if (attr == &bin_attr_sfdp && nor->sfdp) in spi_nor_sysfs_is_bin_visible()
Dsfdp.c1249 struct sfdp *sfdp; in spi_nor_parse_sfdp() local
1323 sfdp = devm_kzalloc(dev, sizeof(*sfdp), GFP_KERNEL); in spi_nor_parse_sfdp()
1324 if (!sfdp) { in spi_nor_parse_sfdp()
1335 sfdp->num_dwords = DIV_ROUND_UP(sfdp_size, sizeof(*sfdp->dwords)); in spi_nor_parse_sfdp()
1336 sfdp->dwords = devm_kcalloc(dev, sfdp->num_dwords, in spi_nor_parse_sfdp()
1337 sizeof(*sfdp->dwords), GFP_KERNEL); in spi_nor_parse_sfdp()
1338 if (!sfdp->dwords) { in spi_nor_parse_sfdp()
1340 devm_kfree(dev, sfdp); in spi_nor_parse_sfdp()
1344 err = spi_nor_read_sfdp(nor, 0, sfdp_size, sfdp->dwords); in spi_nor_parse_sfdp()
1347 devm_kfree(dev, sfdp->dwords); in spi_nor_parse_sfdp()
[all …]
DMakefile3 spi-nor-objs := core.o sfdp.o swp.o otp.o sysfs.o
Dcore.h469 struct sfdp { struct