• Home
  • Raw
  • Download

Lines Matching refs:v

873 	u64 v;  in calc_lcoefs()  local
887 v = DIV64_U64_ROUND_UP(VTIME_PER_SEC, seqiops); in calc_lcoefs()
888 if (v > *page) in calc_lcoefs()
889 *seqio = v - *page; in calc_lcoefs()
893 v = DIV64_U64_ROUND_UP(VTIME_PER_SEC, randiops); in calc_lcoefs()
894 if (v > *page) in calc_lcoefs()
895 *randio = v - *page; in calc_lcoefs()
3068 static int ioc_weight_show(struct seq_file *sf, void *v) in ioc_weight_show() argument
3087 u32 v; in ioc_weight_write() local
3093 if (!sscanf(buf, "default %u", &v) && !sscanf(buf, "%u", &v)) in ioc_weight_write()
3096 if (v < CGROUP_WEIGHT_MIN || v > CGROUP_WEIGHT_MAX) in ioc_weight_write()
3100 iocc->dfl_weight = v * WEIGHT_ONE; in ioc_weight_write()
3123 v = 0; in ioc_weight_write()
3125 if (!sscanf(ctx.body, "%u", &v)) in ioc_weight_write()
3127 if (v < CGROUP_WEIGHT_MIN || v > CGROUP_WEIGHT_MAX) in ioc_weight_write()
3132 iocg->cfg_weight = v * WEIGHT_ONE; in ioc_weight_write()
3169 static int ioc_qos_show(struct seq_file *sf, void *v) in ioc_qos_show() argument
3226 s64 v; in ioc_qos_write() local
3233 match_u64(&args[0], &v); in ioc_qos_write()
3234 enable = v; in ioc_qos_write()
3254 if (cgroup_parse_float(buf, 2, &v)) in ioc_qos_write()
3256 if (v < 0 || v > 10000) in ioc_qos_write()
3258 qos[tok] = v * 100; in ioc_qos_write()
3262 if (match_u64(&args[0], &v)) in ioc_qos_write()
3264 qos[tok] = v; in ioc_qos_write()
3271 if (cgroup_parse_float(buf, 2, &v)) in ioc_qos_write()
3273 if (v < 0) in ioc_qos_write()
3275 qos[tok] = clamp_t(s64, v * 100, in ioc_qos_write()
3336 static int ioc_cost_model_show(struct seq_file *sf, void *v) in ioc_cost_model_show() argument
3392 u64 v; in ioc_cost_model_write() local
3417 if (match_u64(&args[0], &v)) in ioc_cost_model_write()
3419 u[tok] = v; in ioc_cost_model_write()