Lines Matching refs:rdebug

76 } rdebug;  variable
82 for (i = 0; i < rdebug.num_regulators; i++) in ux500_regulator_suspend_debug()
83 rdebug.state_before_suspend[i] = in ux500_regulator_suspend_debug()
84 rdebug.regulator_array[i].is_enabled; in ux500_regulator_suspend_debug()
91 for (i = 0; i < rdebug.num_regulators; i++) in ux500_regulator_resume_debug()
92 rdebug.state_after_suspend[i] = in ux500_regulator_resume_debug()
93 rdebug.regulator_array[i].is_enabled; in ux500_regulator_resume_debug()
128 for (i = 0; i < rdebug.num_regulators; i++) { in ux500_regulator_status_print()
131 info = &rdebug.regulator_array[i]; in ux500_regulator_status_print()
137 rdebug.state_before_suspend[i] ? "enabled" : "disabled", in ux500_regulator_status_print()
138 rdebug.state_after_suspend[i] ? "enabled" : "disabled"); in ux500_regulator_status_print()
171 rdebug.dir = debugfs_create_dir("ux500-regulator", NULL); in ux500_regulator_debug_init()
172 if (!rdebug.dir) in ux500_regulator_debug_init()
176 rdebug.status_file = debugfs_create_file("status", in ux500_regulator_debug_init()
177 S_IRUGO, rdebug.dir, &pdev->dev, in ux500_regulator_debug_init()
179 if (!rdebug.status_file) in ux500_regulator_debug_init()
183 rdebug.power_state_cnt_file = debugfs_create_file("power-state-count", in ux500_regulator_debug_init()
184 S_IRUGO, rdebug.dir, &pdev->dev, in ux500_regulator_debug_init()
186 if (!rdebug.power_state_cnt_file) in ux500_regulator_debug_init()
189 rdebug.regulator_array = regulator_info; in ux500_regulator_debug_init()
190 rdebug.num_regulators = num_regulators; in ux500_regulator_debug_init()
192 rdebug.state_before_suspend = kzalloc(num_regulators, GFP_KERNEL); in ux500_regulator_debug_init()
193 if (!rdebug.state_before_suspend) in ux500_regulator_debug_init()
196 rdebug.state_after_suspend = kzalloc(num_regulators, GFP_KERNEL); in ux500_regulator_debug_init()
197 if (!rdebug.state_after_suspend) in ux500_regulator_debug_init()
204 kfree(rdebug.state_before_suspend); in ux500_regulator_debug_init()
206 debugfs_remove(rdebug.power_state_cnt_file); in ux500_regulator_debug_init()
208 debugfs_remove(rdebug.status_file); in ux500_regulator_debug_init()
210 debugfs_remove(rdebug.dir); in ux500_regulator_debug_init()
218 debugfs_remove_recursive(rdebug.dir); in ux500_regulator_debug_exit()
219 kfree(rdebug.state_after_suspend); in ux500_regulator_debug_exit()
220 kfree(rdebug.state_before_suspend); in ux500_regulator_debug_exit()