• Home
  • Raw
  • Download

Lines Matching refs:d

970 	struct ubifs_debug_info *d = c->dbg;  in dbg_save_space_info()  local
974 memcpy(&d->saved_lst, &c->lst, sizeof(struct ubifs_lp_stats)); in dbg_save_space_info()
975 memcpy(&d->saved_bi, &c->bi, sizeof(struct ubifs_budg_info)); in dbg_save_space_info()
976 d->saved_idx_gc_cnt = c->idx_gc_cnt; in dbg_save_space_info()
1004 d->saved_free = ubifs_get_free_space_nolock(c); in dbg_save_space_info()
1020 struct ubifs_debug_info *d = c->dbg; in dbg_check_space_info() local
1032 if (free != d->saved_free) { in dbg_check_space_info()
1034 d->saved_free, free); in dbg_check_space_info()
1042 ubifs_dump_lstats(&d->saved_lst); in dbg_check_space_info()
1044 ubifs_dump_budg(c, &d->saved_bi); in dbg_check_space_info()
1045 ubifs_msg(c, "saved idx_gc_cnt %d", d->saved_idx_gc_cnt); in dbg_check_space_info()
2455 struct ubifs_debug_info *d = c->dbg; in power_cut_emulated() local
2459 if (!d->pc_cnt) { in power_cut_emulated()
2465 d->pc_delay = 1; in power_cut_emulated()
2468 d->pc_timeout = jiffies; in power_cut_emulated()
2469 d->pc_timeout += msecs_to_jiffies(delay); in power_cut_emulated()
2472 d->pc_delay = 2; in power_cut_emulated()
2475 d->pc_cnt_max = delay; in power_cut_emulated()
2480 d->pc_cnt += 1; in power_cut_emulated()
2484 if (d->pc_delay == 1 && time_before(jiffies, d->pc_timeout)) in power_cut_emulated()
2486 if (d->pc_delay == 2 && d->pc_cnt++ < d->pc_cnt_max) in power_cut_emulated()
2541 d->pc_happened = 1; in power_cut_emulated()
2683 struct ubifs_debug_info *d = c->dbg; in dfs_file_read() local
2686 if (dent == d->dfs_chk_gen) in dfs_file_read()
2687 val = d->chk_gen; in dfs_file_read()
2688 else if (dent == d->dfs_chk_index) in dfs_file_read()
2689 val = d->chk_index; in dfs_file_read()
2690 else if (dent == d->dfs_chk_orph) in dfs_file_read()
2691 val = d->chk_orph; in dfs_file_read()
2692 else if (dent == d->dfs_chk_lprops) in dfs_file_read()
2693 val = d->chk_lprops; in dfs_file_read()
2694 else if (dent == d->dfs_chk_fs) in dfs_file_read()
2695 val = d->chk_fs; in dfs_file_read()
2696 else if (dent == d->dfs_tst_rcvry) in dfs_file_read()
2697 val = d->tst_rcvry; in dfs_file_read()
2698 else if (dent == d->dfs_ro_error) in dfs_file_read()
2736 struct ubifs_debug_info *d = c->dbg; in dfs_file_write() local
2752 if (file->f_path.dentry == d->dfs_dump_lprops) { in dfs_file_write()
2756 if (file->f_path.dentry == d->dfs_dump_budg) { in dfs_file_write()
2760 if (file->f_path.dentry == d->dfs_dump_tnc) { in dfs_file_write()
2771 if (dent == d->dfs_chk_gen) in dfs_file_write()
2772 d->chk_gen = val; in dfs_file_write()
2773 else if (dent == d->dfs_chk_index) in dfs_file_write()
2774 d->chk_index = val; in dfs_file_write()
2775 else if (dent == d->dfs_chk_orph) in dfs_file_write()
2776 d->chk_orph = val; in dfs_file_write()
2777 else if (dent == d->dfs_chk_lprops) in dfs_file_write()
2778 d->chk_lprops = val; in dfs_file_write()
2779 else if (dent == d->dfs_chk_fs) in dfs_file_write()
2780 d->chk_fs = val; in dfs_file_write()
2781 else if (dent == d->dfs_tst_rcvry) in dfs_file_write()
2782 d->tst_rcvry = val; in dfs_file_write()
2783 else if (dent == d->dfs_ro_error) in dfs_file_write()
2814 struct ubifs_debug_info *d = c->dbg; in dbg_debugfs_init_fs() local
2816 n = snprintf(d->dfs_dir_name, UBIFS_DFS_DIR_LEN + 1, UBIFS_DFS_DIR_NAME, in dbg_debugfs_init_fs()
2823 fname = d->dfs_dir_name; in dbg_debugfs_init_fs()
2824 d->dfs_dir = debugfs_create_dir(fname, dfs_rootdir); in dbg_debugfs_init_fs()
2827 d->dfs_dump_lprops = debugfs_create_file(fname, S_IWUSR, d->dfs_dir, c, in dbg_debugfs_init_fs()
2831 d->dfs_dump_budg = debugfs_create_file(fname, S_IWUSR, d->dfs_dir, c, in dbg_debugfs_init_fs()
2835 d->dfs_dump_tnc = debugfs_create_file(fname, S_IWUSR, d->dfs_dir, c, in dbg_debugfs_init_fs()
2839 d->dfs_chk_gen = debugfs_create_file(fname, S_IRUSR | S_IWUSR, in dbg_debugfs_init_fs()
2840 d->dfs_dir, c, &dfs_fops); in dbg_debugfs_init_fs()
2843 d->dfs_chk_index = debugfs_create_file(fname, S_IRUSR | S_IWUSR, in dbg_debugfs_init_fs()
2844 d->dfs_dir, c, &dfs_fops); in dbg_debugfs_init_fs()
2847 d->dfs_chk_orph = debugfs_create_file(fname, S_IRUSR | S_IWUSR, in dbg_debugfs_init_fs()
2848 d->dfs_dir, c, &dfs_fops); in dbg_debugfs_init_fs()
2851 d->dfs_chk_lprops = debugfs_create_file(fname, S_IRUSR | S_IWUSR, in dbg_debugfs_init_fs()
2852 d->dfs_dir, c, &dfs_fops); in dbg_debugfs_init_fs()
2855 d->dfs_chk_fs = debugfs_create_file(fname, S_IRUSR | S_IWUSR, in dbg_debugfs_init_fs()
2856 d->dfs_dir, c, &dfs_fops); in dbg_debugfs_init_fs()
2859 d->dfs_tst_rcvry = debugfs_create_file(fname, S_IRUSR | S_IWUSR, in dbg_debugfs_init_fs()
2860 d->dfs_dir, c, &dfs_fops); in dbg_debugfs_init_fs()
2863 d->dfs_ro_error = debugfs_create_file(fname, S_IRUSR | S_IWUSR, in dbg_debugfs_init_fs()
2864 d->dfs_dir, c, &dfs_fops); in dbg_debugfs_init_fs()