Lines Matching refs:nor
75 struct spi_nor *nor = s->private; in spi_nor_params_show() local
76 struct spi_nor_flash_parameter *params = nor->params; in spi_nor_params_show()
79 const struct flash_info *info = nor->info; in spi_nor_params_show()
89 seq_printf(s, "address nbytes\t%u\n", nor->addr_nbytes); in spi_nor_params_show()
92 spi_nor_print_flags(s, nor->flags, snor_f_names, sizeof(snor_f_names)); in spi_nor_params_show()
96 seq_printf(s, " read\t\t0x%02x\n", nor->read_opcode); in spi_nor_params_show()
97 seq_printf(s, " dummy cycles\t%u\n", nor->read_dummy); in spi_nor_params_show()
98 seq_printf(s, " erase\t\t0x%02x\n", nor->erase_opcode); in spi_nor_params_show()
99 seq_printf(s, " program\t0x%02x\n", nor->program_opcode); in spi_nor_params_show()
101 switch (nor->cmd_ext_type) { in spi_nor_params_show()
119 spi_nor_protocol_name(nor->read_proto)); in spi_nor_params_show()
121 spi_nor_protocol_name(nor->write_proto)); in spi_nor_params_show()
123 spi_nor_protocol_name(nor->reg_proto)); in spi_nor_params_show()
136 if (!(nor->flags & SNOR_F_NO_OP_CHIP_ERASE)) { in spi_nor_params_show()
183 struct spi_nor *nor = s->private; in spi_nor_capabilities_show() local
184 struct spi_nor_flash_parameter *params = nor->params; in spi_nor_capabilities_show()
223 struct spi_nor *nor = data; in spi_nor_debugfs_unregister() local
225 debugfs_remove(nor->debugfs_root); in spi_nor_debugfs_unregister()
226 nor->debugfs_root = NULL; in spi_nor_debugfs_unregister()
229 void spi_nor_debugfs_register(struct spi_nor *nor) in spi_nor_debugfs_register() argument
239 ret = devm_add_action(nor->dev, spi_nor_debugfs_unregister, nor); in spi_nor_debugfs_register()
243 d = debugfs_create_dir(dev_name(nor->dev), rootdir); in spi_nor_debugfs_register()
244 nor->debugfs_root = d; in spi_nor_debugfs_register()
246 debugfs_create_file("params", 0444, d, nor, &spi_nor_params_fops); in spi_nor_debugfs_register()
247 debugfs_create_file("capabilities", 0444, d, nor, in spi_nor_debugfs_register()