Lines Matching refs:pconst
69 struct powercap_zone_constraint *pconst;\
75 pconst = &power_zone->constraints[id]; \
76 if (pconst && pconst->ops && pconst->ops->get_##_attr) { \
77 if (!pconst->ops->get_##_attr(power_zone, id, &value)) \
94 struct powercap_zone_constraint *pconst;\
100 pconst = &power_zone->constraints[id]; \
104 if (pconst && pconst->ops && pconst->ops->set_##_attr) { \
105 if (!pconst->ops->set_##_attr(power_zone, id, value)) \
163 struct powercap_zone_constraint *pconst; in show_constraint_name() local
169 pconst = &power_zone->constraints[id]; in show_constraint_name()
171 if (pconst && pconst->ops && pconst->ops->get_name) { in show_constraint_name()
172 name = pconst->ops->get_name(power_zone, id); in show_constraint_name()
290 struct powercap_zone_constraint *pconst; in create_constraints() local
300 pconst = &power_zone->constraints[i]; in create_constraints()
301 pconst->ops = const_ops; in create_constraints()
302 pconst->id = power_zone->const_id_cnt; in create_constraints()
308 if (pconst->ops->get_name) in create_constraints()
311 if (pconst->ops->get_max_power_uw) in create_constraints()
314 if (pconst->ops->get_min_power_uw) in create_constraints()
317 if (pconst->ops->get_max_time_window_us) in create_constraints()
320 if (pconst->ops->get_min_time_window_us) in create_constraints()