Searched refs:sfdp (Results 1 – 4 of 4) sorted by relevance
/drivers/mtd/spi-nor/ |
D | sysfs.c | 57 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()
|
D | sfdp.c | 1249 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 …]
|
D | Makefile | 3 spi-nor-objs := core.o sfdp.o swp.o otp.o sysfs.o
|
D | core.h | 469 struct sfdp { struct
|