Lines Matching refs:fmc
41 static void fmc_sdb_dump_recursive(struct fmc_device *fmc, struct seq_file *s, in fmc_sdb_dump_recursive() argument
85 fmc_sdb_dump_recursive(fmc, s, arr->subtree[i]); in fmc_sdb_dump_recursive()
119 struct fmc_device *fmc = s->private; in fmc_sdb_dump() local
121 if (!fmc->sdb) { in fmc_sdb_dump()
126 seq_printf(s, "FMC: %s (%s), slot %i, device %s\n", dev_name(fmc->hwdev), in fmc_sdb_dump()
127 fmc->carrier_name, fmc->slot_id, dev_name(&fmc->dev)); in fmc_sdb_dump()
129 fmc_sdb_dump_recursive(fmc, s, fmc->sdb); in fmc_sdb_dump()
137 struct fmc_device *fmc = inode->i_private; in fmc_sdb_dump_open() local
139 return single_open(file, fmc_sdb_dump, fmc); in fmc_sdb_dump_open()
151 int fmc_debug_init(struct fmc_device *fmc) in fmc_debug_init() argument
153 fmc->dbg_dir = debugfs_create_dir(dev_name(&fmc->dev), NULL); in fmc_debug_init()
154 if (IS_ERR_OR_NULL(fmc->dbg_dir)) { in fmc_debug_init()
156 return PTR_ERR(fmc->dbg_dir); in fmc_debug_init()
159 fmc->dbg_sdb_dump = debugfs_create_file(FMC_DBG_SDB_DUMP, 0444, in fmc_debug_init()
160 fmc->dbg_dir, fmc, in fmc_debug_init()
162 if (IS_ERR_OR_NULL(fmc->dbg_sdb_dump)) in fmc_debug_init()
169 void fmc_debug_exit(struct fmc_device *fmc) in fmc_debug_exit() argument
171 if (fmc->dbg_dir) in fmc_debug_exit()
172 debugfs_remove_recursive(fmc->dbg_dir); in fmc_debug_exit()