Lines Matching refs:ubi
34 void ubi_dump_flash(struct ubi_device *ubi, int pnum, int offset, int len) in ubi_dump_flash() argument
39 loff_t addr = (loff_t)pnum * ubi->peb_size + offset; in ubi_dump_flash()
44 err = mtd_read(ubi->mtd, addr, len, &read, buf); in ubi_dump_flash()
264 struct ubi_device *ubi; in dfs_file_read() local
269 ubi = ubi_get_device(ubi_num); in dfs_file_read()
270 if (!ubi) in dfs_file_read()
272 d = &ubi->dbg; in dfs_file_read()
299 ubi_put_device(ubi); in dfs_file_read()
309 struct ubi_device *ubi; in dfs_file_write() local
315 ubi = ubi_get_device(ubi_num); in dfs_file_write()
316 if (!ubi) in dfs_file_write()
318 d = &ubi->dbg; in dfs_file_write()
349 ubi_put_device(ubi); in dfs_file_write()
369 int ubi_debugfs_init_dev(struct ubi_device *ubi) in ubi_debugfs_init_dev() argument
372 unsigned long ubi_num = ubi->ubi_num; in ubi_debugfs_init_dev()
375 struct ubi_debug_info *d = &ubi->dbg; in ubi_debugfs_init_dev()
381 ubi->ubi_num); in ubi_debugfs_init_dev()
445 void ubi_debugfs_exit_dev(struct ubi_device *ubi) in ubi_debugfs_exit_dev() argument
448 debugfs_remove_recursive(ubi->dbg.dfs_dir); in ubi_debugfs_exit_dev()