Lines Matching full:freq
32 * Xe's Freq provides a sysfs API for frequency management:
63 u32 freq; in act_freq_show() local
66 freq = xe_guc_pc_get_act_freq(pc); in act_freq_show()
69 return sysfs_emit(buf, "%d\n", freq); in act_freq_show()
77 u32 freq; in cur_freq_show() local
81 ret = xe_guc_pc_get_cur_freq(pc, &freq); in cur_freq_show()
86 return sysfs_emit(buf, "%d\n", freq); in cur_freq_show()
94 u32 freq; in rp0_freq_show() local
97 freq = xe_guc_pc_get_rp0_freq(pc); in rp0_freq_show()
100 return sysfs_emit(buf, "%d\n", freq); in rp0_freq_show()
108 u32 freq; in rpe_freq_show() local
111 freq = xe_guc_pc_get_rpe_freq(pc); in rpe_freq_show()
114 return sysfs_emit(buf, "%d\n", freq); in rpe_freq_show()
131 u32 freq; in min_freq_show() local
135 ret = xe_guc_pc_get_min_freq(pc, &freq); in min_freq_show()
140 return sysfs_emit(buf, "%d\n", freq); in min_freq_show()
147 u32 freq; in min_freq_store() local
150 ret = kstrtou32(buff, 0, &freq); in min_freq_store()
155 ret = xe_guc_pc_set_min_freq(pc, freq); in min_freq_store()
168 u32 freq; in max_freq_show() local
172 ret = xe_guc_pc_get_max_freq(pc, &freq); in max_freq_show()
177 return sysfs_emit(buf, "%d\n", freq); in max_freq_show()
184 u32 freq; in max_freq_store() local
187 ret = kstrtou32(buff, 0, &freq); in max_freq_store()
192 ret = xe_guc_pc_set_max_freq(pc, freq); in max_freq_store()
221 * xe_gt_freq_init - Initialize Xe Freq component
236 gt->freq = kobject_create_and_add("freq0", gt->sysfs); in xe_gt_freq_init()
237 if (!gt->freq) in xe_gt_freq_init()
240 err = sysfs_create_files(gt->freq, freq_attrs); in xe_gt_freq_init()
244 err = devm_add_action_or_reset(xe->drm.dev, freq_fini, gt->freq); in xe_gt_freq_init()