Lines Matching refs:rdebug
74 } rdebug; variable
94 for (i = 0; i < rdebug.num_regulators; i++) { in ux500_regulator_status_show()
97 info = &rdebug.regulator_array[i]; in ux500_regulator_status_show()
103 rdebug.state_before_suspend[i] ? "enabled" : "disabled", in ux500_regulator_status_show()
104 rdebug.state_after_suspend[i] ? "enabled" : "disabled"); in ux500_regulator_status_show()
117 rdebug.dir = debugfs_create_dir("ux500-regulator", NULL); in ux500_regulator_debug_init()
120 debugfs_create_file("status", S_IRUGO, rdebug.dir, &pdev->dev, in ux500_regulator_debug_init()
124 debugfs_create_file("power-state-count", S_IRUGO, rdebug.dir, in ux500_regulator_debug_init()
127 rdebug.regulator_array = regulator_info; in ux500_regulator_debug_init()
128 rdebug.num_regulators = num_regulators; in ux500_regulator_debug_init()
130 rdebug.state_before_suspend = kzalloc(num_regulators, GFP_KERNEL); in ux500_regulator_debug_init()
131 if (!rdebug.state_before_suspend) in ux500_regulator_debug_init()
134 rdebug.state_after_suspend = kzalloc(num_regulators, GFP_KERNEL); in ux500_regulator_debug_init()
135 if (!rdebug.state_after_suspend) in ux500_regulator_debug_init()
141 kfree(rdebug.state_before_suspend); in ux500_regulator_debug_init()
143 debugfs_remove_recursive(rdebug.dir); in ux500_regulator_debug_init()
149 debugfs_remove_recursive(rdebug.dir); in ux500_regulator_debug_exit()
150 kfree(rdebug.state_after_suspend); in ux500_regulator_debug_exit()
151 kfree(rdebug.state_before_suspend); in ux500_regulator_debug_exit()