• Home
  • Raw
  • Download

Lines Matching refs:qos

54 	struct dev_pm_qos *qos = dev->power.qos;  in __dev_pm_qos_flags()  local
60 if (IS_ERR_OR_NULL(qos)) in __dev_pm_qos_flags()
63 pqf = &qos->flags; in __dev_pm_qos_flags()
112 struct dev_pm_qos *qos = dev->power.qos; in dev_pm_qos_read_value() local
120 ret = IS_ERR_OR_NULL(qos) ? PM_QOS_RESUME_LATENCY_NO_CONSTRAINT in dev_pm_qos_read_value()
121 : pm_qos_read_value(&qos->resume_latency); in dev_pm_qos_read_value()
124 ret = IS_ERR_OR_NULL(qos) ? PM_QOS_MIN_FREQUENCY_DEFAULT_VALUE in dev_pm_qos_read_value()
125 : freq_qos_read_value(&qos->freq, FREQ_QOS_MIN); in dev_pm_qos_read_value()
128 ret = IS_ERR_OR_NULL(qos) ? PM_QOS_MAX_FREQUENCY_DEFAULT_VALUE in dev_pm_qos_read_value()
129 : freq_qos_read_value(&qos->freq, FREQ_QOS_MAX); in dev_pm_qos_read_value()
154 struct dev_pm_qos *qos = req->dev->power.qos; in apply_constraint() local
162 ret = pm_qos_update_target(&qos->resume_latency, in apply_constraint()
166 ret = pm_qos_update_target(&qos->latency_tolerance, in apply_constraint()
169 value = pm_qos_read_value(&qos->latency_tolerance); in apply_constraint()
178 ret = pm_qos_update_flags(&qos->flags, &req->data.flr, in apply_constraint()
197 struct dev_pm_qos *qos; in dev_pm_qos_constraints_allocate() local
201 qos = kzalloc(sizeof(*qos), GFP_KERNEL); in dev_pm_qos_constraints_allocate()
202 if (!qos) in dev_pm_qos_constraints_allocate()
207 kfree(qos); in dev_pm_qos_constraints_allocate()
211 c = &qos->resume_latency; in dev_pm_qos_constraints_allocate()
220 c = &qos->latency_tolerance; in dev_pm_qos_constraints_allocate()
227 freq_constraints_init(&qos->freq); in dev_pm_qos_constraints_allocate()
229 INIT_LIST_HEAD(&qos->flags.list); in dev_pm_qos_constraints_allocate()
232 dev->power.qos = qos; in dev_pm_qos_constraints_allocate()
249 struct dev_pm_qos *qos; in dev_pm_qos_constraints_destroy() local
268 qos = dev->power.qos; in dev_pm_qos_constraints_destroy()
269 if (!qos) in dev_pm_qos_constraints_destroy()
273 c = &qos->resume_latency; in dev_pm_qos_constraints_destroy()
283 c = &qos->latency_tolerance; in dev_pm_qos_constraints_destroy()
289 c = &qos->freq.min_freq; in dev_pm_qos_constraints_destroy()
296 c = &qos->freq.max_freq; in dev_pm_qos_constraints_destroy()
303 f = &qos->flags; in dev_pm_qos_constraints_destroy()
310 dev->power.qos = ERR_PTR(-ENODEV); in dev_pm_qos_constraints_destroy()
313 kfree(qos->resume_latency.notifiers); in dev_pm_qos_constraints_destroy()
314 kfree(qos); in dev_pm_qos_constraints_destroy()
342 if (IS_ERR(dev->power.qos)) in __dev_pm_qos_add_request()
344 else if (!dev->power.qos) in __dev_pm_qos_add_request()
354 ret = freq_qos_add_request(&dev->power.qos->freq, in __dev_pm_qos_add_request()
358 ret = freq_qos_add_request(&dev->power.qos->freq, in __dev_pm_qos_add_request()
419 if (IS_ERR_OR_NULL(req->dev->power.qos)) in __dev_pm_qos_update_request()
486 if (IS_ERR_OR_NULL(req->dev->power.qos)) in __dev_pm_qos_remove_request()
543 if (IS_ERR(dev->power.qos)) in dev_pm_qos_add_notifier()
545 else if (!dev->power.qos) in dev_pm_qos_add_notifier()
553 ret = blocking_notifier_chain_register(dev->power.qos->resume_latency.notifiers, in dev_pm_qos_add_notifier()
557 ret = freq_qos_add_notifier(&dev->power.qos->freq, in dev_pm_qos_add_notifier()
561 ret = freq_qos_add_notifier(&dev->power.qos->freq, in dev_pm_qos_add_notifier()
595 if (IS_ERR_OR_NULL(dev->power.qos)) in dev_pm_qos_remove_notifier()
600 ret = blocking_notifier_chain_unregister(dev->power.qos->resume_latency.notifiers, in dev_pm_qos_remove_notifier()
604 ret = freq_qos_remove_notifier(&dev->power.qos->freq, in dev_pm_qos_remove_notifier()
608 ret = freq_qos_remove_notifier(&dev->power.qos->freq, in dev_pm_qos_remove_notifier()
667 req = dev->power.qos->resume_latency_req; in __dev_pm_qos_drop_user_request()
668 dev->power.qos->resume_latency_req = NULL; in __dev_pm_qos_drop_user_request()
671 req = dev->power.qos->latency_tolerance_req; in __dev_pm_qos_drop_user_request()
672 dev->power.qos->latency_tolerance_req = NULL; in __dev_pm_qos_drop_user_request()
675 req = dev->power.qos->flags_req; in __dev_pm_qos_drop_user_request()
676 dev->power.qos->flags_req = NULL; in __dev_pm_qos_drop_user_request()
721 if (IS_ERR_OR_NULL(dev->power.qos)) in dev_pm_qos_expose_latency_limit()
723 else if (dev->power.qos->resume_latency_req) in dev_pm_qos_expose_latency_limit()
732 dev->power.qos->resume_latency_req = req; in dev_pm_qos_expose_latency_limit()
748 if (!IS_ERR_OR_NULL(dev->power.qos) && dev->power.qos->resume_latency_req) in __dev_pm_qos_hide_latency_limit()
798 if (IS_ERR_OR_NULL(dev->power.qos)) in dev_pm_qos_expose_flags()
800 else if (dev->power.qos->flags_req) in dev_pm_qos_expose_flags()
809 dev->power.qos->flags_req = req; in dev_pm_qos_expose_flags()
826 if (!IS_ERR_OR_NULL(dev->power.qos) && dev->power.qos->flags_req) in __dev_pm_qos_hide_flags()
864 if (IS_ERR_OR_NULL(dev->power.qos) || !dev->power.qos->flags_req) { in dev_pm_qos_update_flags()
875 ret = __dev_pm_qos_update_request(dev->power.qos->flags_req, value); in dev_pm_qos_update_flags()
892 ret = IS_ERR_OR_NULL(dev->power.qos) in dev_pm_qos_get_user_latency_tolerance()
893 || !dev->power.qos->latency_tolerance_req ? in dev_pm_qos_get_user_latency_tolerance()
895 dev->power.qos->latency_tolerance_req->data.pnode.prio; in dev_pm_qos_get_user_latency_tolerance()
911 if (IS_ERR_OR_NULL(dev->power.qos) in dev_pm_qos_update_user_latency_tolerance()
912 || !dev->power.qos->latency_tolerance_req) { in dev_pm_qos_update_user_latency_tolerance()
932 dev->power.qos->latency_tolerance_req = req; in dev_pm_qos_update_user_latency_tolerance()
938 ret = __dev_pm_qos_update_request(dev->power.qos->latency_tolerance_req, val); in dev_pm_qos_update_user_latency_tolerance()