• Home
  • Raw
  • Download

Lines Matching refs:c

102 static inline int pm_qos_get_value(struct pm_qos_constraints *c)  in pm_qos_get_value()  argument
107 if (plist_head_empty(&c->list)) in pm_qos_get_value()
108 return c->no_constraint_value; in pm_qos_get_value()
110 switch (c->type) { in pm_qos_get_value()
112 return plist_first(&c->list)->prio; in pm_qos_get_value()
115 return plist_last(&c->list)->prio; in pm_qos_get_value()
118 plist_for_each(node, &c->list) in pm_qos_get_value()
130 s32 pm_qos_read_value(struct pm_qos_constraints *c) in pm_qos_read_value() argument
132 return c->target_value; in pm_qos_read_value()
135 static inline void pm_qos_set_value(struct pm_qos_constraints *c, s32 value) in pm_qos_set_value() argument
137 c->target_value = value; in pm_qos_set_value()
143 struct pm_qos_constraints *c; in pm_qos_debug_show() local
154 c = qos->constraints; in pm_qos_debug_show()
155 if (IS_ERR_OR_NULL(c)) { in pm_qos_debug_show()
162 if (plist_head_empty(&c->list)) { in pm_qos_debug_show()
167 switch (c->type) { in pm_qos_debug_show()
181 plist_for_each_entry(req, &c->list, node) { in pm_qos_debug_show()
184 if ((req->node).prio != c->default_value) { in pm_qos_debug_show()
194 type, pm_qos_get_value(c), active_reqs, tot_reqs); in pm_qos_debug_show()
214 int pm_qos_update_target(struct pm_qos_constraints *c, struct plist_node *node, in pm_qos_update_target() argument
222 prev_value = pm_qos_get_value(c); in pm_qos_update_target()
224 new_value = c->default_value; in pm_qos_update_target()
230 plist_del(node, &c->list); in pm_qos_update_target()
238 plist_del(node, &c->list); in pm_qos_update_target()
242 plist_add(node, &c->list); in pm_qos_update_target()
249 curr_value = pm_qos_get_value(c); in pm_qos_update_target()
250 pm_qos_set_value(c, curr_value); in pm_qos_update_target()
257 if (c->notifiers) in pm_qos_update_target()
258 blocking_notifier_call_chain(c->notifiers, in pm_qos_update_target()
662 struct pm_qos_constraints *c; in freq_constraints_init() local
664 c = &qos->min_freq; in freq_constraints_init()
665 plist_head_init(&c->list); in freq_constraints_init()
666 c->target_value = FREQ_QOS_MIN_DEFAULT_VALUE; in freq_constraints_init()
667 c->default_value = FREQ_QOS_MIN_DEFAULT_VALUE; in freq_constraints_init()
668 c->no_constraint_value = FREQ_QOS_MIN_DEFAULT_VALUE; in freq_constraints_init()
669 c->type = PM_QOS_MAX; in freq_constraints_init()
670 c->notifiers = &qos->min_freq_notifiers; in freq_constraints_init()
671 BLOCKING_INIT_NOTIFIER_HEAD(c->notifiers); in freq_constraints_init()
673 c = &qos->max_freq; in freq_constraints_init()
674 plist_head_init(&c->list); in freq_constraints_init()
675 c->target_value = FREQ_QOS_MAX_DEFAULT_VALUE; in freq_constraints_init()
676 c->default_value = FREQ_QOS_MAX_DEFAULT_VALUE; in freq_constraints_init()
677 c->no_constraint_value = FREQ_QOS_MAX_DEFAULT_VALUE; in freq_constraints_init()
678 c->type = PM_QOS_MIN; in freq_constraints_init()
679 c->notifiers = &qos->max_freq_notifiers; in freq_constraints_init()
680 BLOCKING_INIT_NOTIFIER_HEAD(c->notifiers); in freq_constraints_init()