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