• Home
  • Raw
  • Download

Lines Matching refs:qos

241 	return req->qos == &cpu_latency_constraints;  in cpu_latency_qos_request_active()
248 int ret = pm_qos_update_target(req->qos, &req->node, action, value); in cpu_latency_qos_apply()
277 req->qos = &cpu_latency_constraints; in cpu_latency_qos_add_request()
439 void freq_constraints_init(struct freq_constraints *qos) in freq_constraints_init() argument
443 c = &qos->min_freq; in freq_constraints_init()
449 c->notifiers = &qos->min_freq_notifiers; in freq_constraints_init()
452 c = &qos->max_freq; in freq_constraints_init()
458 c->notifiers = &qos->max_freq_notifiers; in freq_constraints_init()
467 s32 freq_qos_read_value(struct freq_constraints *qos, in freq_qos_read_value() argument
474 ret = IS_ERR_OR_NULL(qos) ? in freq_qos_read_value()
476 pm_qos_read_value(&qos->min_freq); in freq_qos_read_value()
479 ret = IS_ERR_OR_NULL(qos) ? in freq_qos_read_value()
481 pm_qos_read_value(&qos->max_freq); in freq_qos_read_value()
506 ret = pm_qos_update_target(&req->qos->min_freq, &req->pnode, in freq_qos_apply()
510 ret = pm_qos_update_target(&req->qos->max_freq, &req->pnode, in freq_qos_apply()
534 int freq_qos_add_request(struct freq_constraints *qos, in freq_qos_add_request() argument
540 if (IS_ERR_OR_NULL(qos) || !req || freq_qos_value_invalid(value)) in freq_qos_add_request()
547 req->qos = qos; in freq_qos_add_request()
551 req->qos = NULL; in freq_qos_add_request()
555 trace_android_vh_freq_qos_add_request(qos, req, type, value, ret); in freq_qos_add_request()
611 req->qos = NULL; in freq_qos_remove_request()
624 int freq_qos_add_notifier(struct freq_constraints *qos, in freq_qos_add_notifier() argument
630 if (IS_ERR_OR_NULL(qos) || !notifier) in freq_qos_add_notifier()
635 ret = blocking_notifier_chain_register(qos->min_freq.notifiers, in freq_qos_add_notifier()
639 ret = blocking_notifier_chain_register(qos->max_freq.notifiers, in freq_qos_add_notifier()
657 int freq_qos_remove_notifier(struct freq_constraints *qos, in freq_qos_remove_notifier() argument
663 if (IS_ERR_OR_NULL(qos) || !notifier) in freq_qos_remove_notifier()
668 ret = blocking_notifier_chain_unregister(qos->min_freq.notifiers, in freq_qos_remove_notifier()
672 ret = blocking_notifier_chain_unregister(qos->max_freq.notifiers, in freq_qos_remove_notifier()