Lines Matching full:nor

4 #include <linux/mtd/spi-nor.h>
10 #define SPI_NOR_DEBUGFS_ROOT "spi-nor"
78 struct spi_nor *nor = s->private; in spi_nor_params_show() local
79 struct spi_nor_flash_parameter *params = nor->params; in spi_nor_params_show()
82 const struct flash_info *info = nor->info; in spi_nor_params_show()
87 seq_printf(s, "id\t\t%*ph\n", SPI_NOR_MAX_ID_LEN, nor->id); in spi_nor_params_show()
92 seq_printf(s, "address nbytes\t%u\n", nor->addr_nbytes); in spi_nor_params_show()
95 spi_nor_print_flags(s, nor->flags, snor_f_names, sizeof(snor_f_names)); in spi_nor_params_show()
99 seq_printf(s, " read\t\t0x%02x\n", nor->read_opcode); in spi_nor_params_show()
100 seq_printf(s, " dummy cycles\t%u\n", nor->read_dummy); in spi_nor_params_show()
101 seq_printf(s, " erase\t\t0x%02x\n", nor->erase_opcode); in spi_nor_params_show()
102 seq_printf(s, " program\t0x%02x\n", nor->program_opcode); in spi_nor_params_show()
104 switch (nor->cmd_ext_type) { in spi_nor_params_show()
122 spi_nor_protocol_name(nor->read_proto)); in spi_nor_params_show()
124 spi_nor_protocol_name(nor->write_proto)); in spi_nor_params_show()
126 spi_nor_protocol_name(nor->reg_proto)); in spi_nor_params_show()
139 if (!(nor->flags & SNOR_F_NO_OP_CHIP_ERASE)) { in spi_nor_params_show()
141 seq_printf(s, " %02x (%s)\n", nor->params->die_erase_opcode, buf); in spi_nor_params_show()
184 struct spi_nor *nor = s->private; in spi_nor_capabilities_show() local
185 struct spi_nor_flash_parameter *params = nor->params; in spi_nor_capabilities_show()
224 struct spi_nor *nor = data; in spi_nor_debugfs_unregister() local
226 debugfs_remove(nor->debugfs_root); in spi_nor_debugfs_unregister()
227 nor->debugfs_root = NULL; in spi_nor_debugfs_unregister()
232 void spi_nor_debugfs_register(struct spi_nor *nor) in spi_nor_debugfs_register() argument
240 ret = devm_add_action(nor->dev, spi_nor_debugfs_unregister, nor); in spi_nor_debugfs_register()
244 d = debugfs_create_dir(dev_name(nor->dev), rootdir); in spi_nor_debugfs_register()
245 nor->debugfs_root = d; in spi_nor_debugfs_register()
247 debugfs_create_file("params", 0444, d, nor, &spi_nor_params_fops); in spi_nor_debugfs_register()
248 debugfs_create_file("capabilities", 0444, d, nor, in spi_nor_debugfs_register()