Lines Matching refs:c
147 static inline int pm_qos_get_value(struct pm_qos_constraints *c) in pm_qos_get_value() argument
152 if (plist_head_empty(&c->list)) in pm_qos_get_value()
153 return c->no_constraint_value; in pm_qos_get_value()
155 switch (c->type) { in pm_qos_get_value()
157 return plist_first(&c->list)->prio; in pm_qos_get_value()
160 return plist_last(&c->list)->prio; in pm_qos_get_value()
163 plist_for_each(node, &c->list) in pm_qos_get_value()
175 s32 pm_qos_read_value(struct pm_qos_constraints *c) in pm_qos_read_value() argument
177 return c->target_value; in pm_qos_read_value()
180 static inline void pm_qos_set_value(struct pm_qos_constraints *c, s32 value) in pm_qos_set_value() argument
182 c->target_value = value; in pm_qos_set_value()
196 int pm_qos_update_target(struct pm_qos_constraints *c, struct plist_node *node, in pm_qos_update_target() argument
204 prev_value = pm_qos_get_value(c); in pm_qos_update_target()
206 new_value = c->default_value; in pm_qos_update_target()
212 plist_del(node, &c->list); in pm_qos_update_target()
220 plist_del(node, &c->list); in pm_qos_update_target()
223 plist_add(node, &c->list); in pm_qos_update_target()
230 curr_value = pm_qos_get_value(c); in pm_qos_update_target()
231 pm_qos_set_value(c, curr_value); in pm_qos_update_target()
238 if (c->notifiers) in pm_qos_update_target()
239 blocking_notifier_call_chain(c->notifiers, in pm_qos_update_target()