Lines Matching refs:opp

17 #include "opp.h"
30 void opp_debug_remove_one(struct dev_pm_opp *opp)
32 debugfs_remove_recursive(opp->dentry);
53 static void opp_debug_create_bw(struct dev_pm_opp *opp,
70 &opp->bandwidth[i].peak);
72 &opp->bandwidth[i].avg);
76 static void opp_debug_create_supplies(struct dev_pm_opp *opp,
88 /* Create per-opp directory */
92 &opp->supplies[i].u_volt);
95 &opp->supplies[i].u_volt_min);
98 &opp->supplies[i].u_volt_max);
101 &opp->supplies[i].u_amp);
105 void opp_debug_create_one(struct dev_pm_opp *opp, struct opp_table *opp_table)
110 char name[25]; /* 20 chars for 64 bit value + 5 (opp:\0) */
115 * - Normally rate is unique to each OPP, use it to get unique opp-name.
118 if (likely(opp->rate))
119 id = opp->rate;
123 snprintf(name, sizeof(name), "opp:%lu", id);
125 /* Create per-opp directory */
128 debugfs_create_bool("available", S_IRUGO, d, &opp->available);
129 debugfs_create_bool("dynamic", S_IRUGO, d, &opp->dynamic);
130 debugfs_create_bool("turbo", S_IRUGO, d, &opp->turbo);
131 debugfs_create_bool("suspend", S_IRUGO, d, &opp->suspend);
132 debugfs_create_u32("performance_state", S_IRUGO, d, &opp->pstate);
133 debugfs_create_ulong("rate_hz", S_IRUGO, d, &opp->rate);
135 &opp->clock_latency_ns);
137 opp_debug_create_supplies(opp, opp_table, d);
138 opp_debug_create_bw(opp, opp_table, d);
140 opp->dentry = d;
171 * opp_debug_register - add a device opp node to the debugfs 'opp' directory
172 * @opp_dev: opp-dev pointer for device
173 * @opp_table: the device-opp being added
175 * Dynamically adds device specific directory in debugfs 'opp' directory. If the
176 * device-opp is shared with other devices, then links will be created for all
194 /* Look for next opp-dev */
218 * opp_debug_unregister - remove a device opp node from debugfs opp directory
219 * @opp_dev: opp-dev pointer for device
220 * @opp_table: the device-opp being removed
222 * Dynamically removes device specific directory from debugfs 'opp' directory.
244 /* Create /sys/kernel/debug/opp directory */
245 rootdir = debugfs_create_dir("opp", NULL);