Lines Matching refs:req
29 struct pm_policy_latency_request *req; in update_max_latency() local
31 SYS_SLIST_FOR_EACH_CONTAINER(&latency_reqs, req, node) { in update_max_latency()
33 ((int32_t)req->value_us < new_max_latency_us)) { in update_max_latency()
34 new_max_latency_us = (int32_t)req->value_us; in update_max_latency()
55 void pm_policy_latency_request_add(struct pm_policy_latency_request *req, in pm_policy_latency_request_add() argument
58 req->value_us = value_us; in pm_policy_latency_request_add()
62 sys_slist_append(&latency_reqs, &req->node); in pm_policy_latency_request_add()
68 void pm_policy_latency_request_update(struct pm_policy_latency_request *req, in pm_policy_latency_request_update() argument
73 req->value_us = value_us; in pm_policy_latency_request_update()
79 void pm_policy_latency_request_remove(struct pm_policy_latency_request *req) in pm_policy_latency_request_remove() argument
83 (void)sys_slist_find_and_remove(&latency_reqs, &req->node); in pm_policy_latency_request_remove()
89 void pm_policy_latency_changed_subscribe(struct pm_policy_latency_subscription *req, in pm_policy_latency_changed_subscribe() argument
94 req->cb = cb; in pm_policy_latency_changed_subscribe()
95 sys_slist_append(&latency_subs, &req->node); in pm_policy_latency_changed_subscribe()
100 void pm_policy_latency_changed_unsubscribe(struct pm_policy_latency_subscription *req) in pm_policy_latency_changed_unsubscribe() argument
104 (void)sys_slist_find_and_remove(&latency_subs, &req->node); in pm_policy_latency_changed_unsubscribe()