Searched refs:pconst (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/drivers/powercap/
H A Dpowercap_sys.c80 struct powercap_zone_constraint *pconst;\
86 pconst = &power_zone->constraints[id]; \
87 if (pconst && pconst->ops && pconst->ops->get_##_attr) { \
88 if (!pconst->ops->get_##_attr(power_zone, id, &value)) \
105 struct powercap_zone_constraint *pconst;\
111 pconst = &power_zone->constraints[id]; \
115 if (pconst && pconst->ops && pconst->ops->set_##_attr) { \
116 if (!pconst->ops->set_##_attr(power_zone, id, value)) \
174 struct powercap_zone_constraint *pconst; show_constraint_name() local
180 pconst = &power_zone->constraints[id]; show_constraint_name()
182 if (pconst && pconst->ops && pconst->ops->get_name) { show_constraint_name()
183 name = pconst->ops->get_name(power_zone, id); show_constraint_name()
302 struct powercap_zone_constraint *pconst; create_constraints() local
312 pconst = &power_zone->constraints[i]; create_constraints()
313 pconst->ops = const_ops; create_constraints()
314 pconst->id = power_zone->const_id_cnt; create_constraints()
320 if (pconst->ops->get_name) create_constraints()
323 if (pconst->ops->get_max_power_uw) create_constraints()
326 if (pconst->ops->get_min_power_uw) create_constraints()
329 if (pconst->ops->get_max_time_window_us) create_constraints()
332 if (pconst->ops->get_min_time_window_us) create_constraints()

Completed in 29 milliseconds