Lines Matching refs:nor
4 #include <linux/mtd/spi-nor.h>
10 #define SPI_NOR_DEBUGFS_ROOT "spi-nor"
78 struct spi_nor *nor = s->private;
79 struct spi_nor_flash_parameter *params = nor->params;
82 const struct flash_info *info = nor->info;
87 seq_printf(s, "id\t\t%*ph\n", SPI_NOR_MAX_ID_LEN, nor->id);
92 seq_printf(s, "address nbytes\t%u\n", nor->addr_nbytes);
95 spi_nor_print_flags(s, nor->flags, snor_f_names, sizeof(snor_f_names));
99 seq_printf(s, " read\t\t0x%02x\n", nor->read_opcode);
100 seq_printf(s, " dummy cycles\t%u\n", nor->read_dummy);
101 seq_printf(s, " erase\t\t0x%02x\n", nor->erase_opcode);
102 seq_printf(s, " program\t0x%02x\n", nor->program_opcode);
104 switch (nor->cmd_ext_type) {
122 spi_nor_protocol_name(nor->read_proto));
124 spi_nor_protocol_name(nor->write_proto));
126 spi_nor_protocol_name(nor->reg_proto));
139 if (!(nor->flags & SNOR_F_NO_OP_CHIP_ERASE)) {
186 struct spi_nor *nor = s->private;
187 struct spi_nor_flash_parameter *params = nor->params;
226 struct spi_nor *nor = data;
228 debugfs_remove(nor->debugfs_root);
229 nor->debugfs_root = NULL;
234 void spi_nor_debugfs_register(struct spi_nor *nor)
242 ret = devm_add_action(nor->dev, spi_nor_debugfs_unregister, nor);
246 d = debugfs_create_dir(dev_name(nor->dev), rootdir);
247 nor->debugfs_root = d;
249 debugfs_create_file("params", 0444, d, nor, &spi_nor_params_fops);
250 debugfs_create_file("capabilities", 0444, d, nor,