Lines Matching full:nor
3 #include <linux/mtd/spi-nor.h>
15 struct spi_nor *nor = spi_mem_get_drvdata(spimem);
17 return sysfs_emit(buf, "%s\n", nor->manufacturer->name);
26 struct spi_nor *nor = spi_mem_get_drvdata(spimem);
28 return sysfs_emit(buf, "%s\n", nor->info->name);
37 struct spi_nor *nor = spi_mem_get_drvdata(spimem);
38 const u8 *id = nor->info->id ? nor->info->id->bytes : nor->id;
39 u8 id_len = nor->info->id ? nor->info->id->len : SPI_NOR_MAX_ID_LEN;
58 struct spi_nor *nor = spi_mem_get_drvdata(spimem);
59 struct sfdp *sfdp = nor->sfdp;
62 return memory_read_from_buffer(buf, count, &off, nor->sfdp->dwords,
77 struct spi_nor *nor = spi_mem_get_drvdata(spimem);
79 if (attr == &dev_attr_manufacturer.attr && !nor->manufacturer)
81 if (attr == &dev_attr_partname.attr && !nor->info->name)
83 if (attr == &dev_attr_jedec_id.attr && !nor->info->id && !nor->id)
94 struct spi_nor *nor = spi_mem_get_drvdata(spimem);
96 if (attr == &bin_attr_sfdp && nor->sfdp)
103 .name = "spi-nor",