Lines Matching refs:rapl_domain

122 static bool is_pl_valid(struct rapl_domain *rd, int pl)  in is_pl_valid()
129 static int get_pl_lock_prim(struct rapl_domain *rd, int pl) in get_pl_lock_prim()
153 static int get_pl_prim(struct rapl_domain *rd, int pl, enum pl_prims prim) in get_pl_prim()
201 container_of(_zone, struct rapl_domain, power_zone)
205 int (*check_unit)(struct rapl_domain *rd);
206 void (*set_floor_freq)(struct rapl_domain *rd, bool mode);
207 u64 (*compute_time_window)(struct rapl_domain *rd, u64 val,
250 static int rapl_read_data_raw(struct rapl_domain *rd,
253 static int rapl_write_data_raw(struct rapl_domain *rd,
256 static int rapl_read_pl_data(struct rapl_domain *rd, int pl,
259 static int rapl_write_pl_data(struct rapl_domain *rd, int pl,
262 static u64 rapl_unit_xlate(struct rapl_domain *rd,
279 struct rapl_domain *rd; in get_energy_counter()
301 struct rapl_domain *rd = power_zone_to_rapl_domain(pcd_dev); in get_max_energy_counter()
309 struct rapl_domain *rd = power_zone_to_rapl_domain(power_zone); in release_zone()
324 static int find_nr_power_limit(struct rapl_domain *rd) in find_nr_power_limit()
338 struct rapl_domain *rd = power_zone_to_rapl_domain(power_zone); in set_domain_enable()
353 struct rapl_domain *rd = power_zone_to_rapl_domain(power_zone); in get_domain_enable()
419 static int contraint_to_pl(struct rapl_domain *rd, int cid) in contraint_to_pl()
437 struct rapl_domain *rd; in set_power_limit()
457 struct rapl_domain *rd; in get_current_power_limit()
478 struct rapl_domain *rd; in set_time_window()
495 struct rapl_domain *rd; in get_time_window()
516 struct rapl_domain *rd; in get_constraint_name()
529 struct rapl_domain *rd; in get_max_power()
571 struct rapl_domain *rd = rp->domains; in rapl_init_domains()
608 static u64 rapl_unit_xlate(struct rapl_domain *rd, enum unit_type type, in rapl_unit_xlate()
766 prim_fixups(struct rapl_domain *rd, enum rapl_primitives prim) in prim_fixups()
807 static int rapl_read_data_raw(struct rapl_domain *rd, in rapl_read_data_raw()
846 static int rapl_write_data_raw(struct rapl_domain *rd, in rapl_write_data_raw()
874 static int rapl_read_pl_data(struct rapl_domain *rd, int pl, in rapl_read_pl_data()
885 static int rapl_write_pl_data(struct rapl_domain *rd, int pl, in rapl_write_pl_data()
912 static int rapl_check_unit_core(struct rapl_domain *rd) in rapl_check_unit_core()
940 static int rapl_check_unit_atom(struct rapl_domain *rd) in rapl_check_unit_atom()
1032 static void set_floor_freq_default(struct rapl_domain *rd, bool mode) in set_floor_freq_default()
1047 static void set_floor_freq_atom(struct rapl_domain *rd, bool enable) in set_floor_freq_atom()
1071 static u64 rapl_compute_time_window_core(struct rapl_domain *rd, u64 value, in rapl_compute_time_window_core()
1104 static u64 rapl_compute_time_window_atom(struct rapl_domain *rd, u64 value, in rapl_compute_time_window_atom()
1127 static int rapl_check_unit_tpmi(struct rapl_domain *rd) in rapl_check_unit_tpmi()
1305 struct rapl_domain *rd; in rapl_package_register_powercap()
1407 static int rapl_get_domain_unit(struct rapl_domain *rd) in rapl_get_domain_unit()
1445 static void rapl_detect_powerlimit(struct rapl_domain *rd) in rapl_detect_powerlimit()
1469 struct rapl_domain *rd; in rapl_detect_domains()
1486 rp->domains = kcalloc(rp->nr_domains, sizeof(struct rapl_domain), in rapl_detect_domains()
1504 struct rapl_domain *rd, *rd_package = NULL; in rapl_remove_package()
1606 struct rapl_domain *rd; in power_limit_state_save()
1627 struct rapl_domain *rd; in power_limit_state_restore()