Lines Matching refs:req
10659 struct uclamp_request req = { in capacity_from_percent() local
10667 req.ret = cgroup_parse_float(buf, UCLAMP_PERCENT_SHIFT, in capacity_from_percent()
10668 &req.percent); in capacity_from_percent()
10669 if (req.ret) in capacity_from_percent()
10670 return req; in capacity_from_percent()
10671 if ((u64)req.percent > UCLAMP_PERCENT_SCALE) { in capacity_from_percent()
10672 req.ret = -ERANGE; in capacity_from_percent()
10673 return req; in capacity_from_percent()
10676 req.util = req.percent << SCHED_CAPACITY_SHIFT; in capacity_from_percent()
10677 req.util = DIV_ROUND_CLOSEST_ULL(req.util, UCLAMP_PERCENT_SCALE); in capacity_from_percent()
10680 return req; in capacity_from_percent()
10687 struct uclamp_request req; in cpu_uclamp_write() local
10690 req = capacity_from_percent(buf); in cpu_uclamp_write()
10691 if (req.ret) in cpu_uclamp_write()
10692 return req.ret; in cpu_uclamp_write()
10700 if (tg->uclamp_req[clamp_id].value != req.util) in cpu_uclamp_write()
10701 uclamp_se_set(&tg->uclamp_req[clamp_id], req.util, false); in cpu_uclamp_write()
10707 tg->uclamp_pct[clamp_id] = req.percent; in cpu_uclamp_write()