Searched refs:sfdp (Results 1 – 6 of 6) sorted by relevance
/Linux-v6.1/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); 77 if (attr == &bin_attr_sfdp && nor->sfdp) in spi_nor_sysfs_is_bin_visible()
|
D | sfdp.c | 1270 struct sfdp *sfdp; in spi_nor_parse_sfdp() local 1344 sfdp = devm_kzalloc(dev, sizeof(*sfdp), GFP_KERNEL); in spi_nor_parse_sfdp() 1345 if (!sfdp) { in spi_nor_parse_sfdp() 1356 sfdp->num_dwords = DIV_ROUND_UP(sfdp_size, sizeof(*sfdp->dwords)); in spi_nor_parse_sfdp() 1357 sfdp->dwords = devm_kcalloc(dev, sfdp->num_dwords, in spi_nor_parse_sfdp() 1358 sizeof(*sfdp->dwords), GFP_KERNEL); in spi_nor_parse_sfdp() 1359 if (!sfdp->dwords) { in spi_nor_parse_sfdp() 1361 devm_kfree(dev, sfdp); in spi_nor_parse_sfdp() 1365 err = spi_nor_read_sfdp(nor, 0, sfdp_size, sfdp->dwords); in spi_nor_parse_sfdp() 1368 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 | 607 struct sfdp { struct
|
/Linux-v6.1/include/linux/mtd/ |
D | spi-nor.h | 395 struct sfdp *sfdp; member
|
/Linux-v6.1/Documentation/ABI/testing/ |
D | sysfs-bus-spi-devices-spi-nor | 23 What: /sys/bus/spi/devices/.../spi-nor/sfdp
|