Lines Matching refs:val
76 int val; /* most recent output value */ member
1827 static int update_relax_domain_level(struct cpuset *cs, s64 val) in update_relax_domain_level() argument
1830 if (val < -1 || val >= sched_domain_level_max) in update_relax_domain_level()
1834 if (val != cs->relax_domain_level) { in update_relax_domain_level()
1835 cs->relax_domain_level = val; in update_relax_domain_level()
1920 static int update_prstate(struct cpuset *cs, int val) in update_prstate() argument
1926 if ((val != 0) && (val != 1)) in update_prstate()
1928 if (val == cs->partition_root_state) in update_prstate()
1935 if (val && cs->partition_root_state) in update_prstate()
2055 fmp->val = 0; in fmeter_init()
2074 fmp->val = (FM_COEF * fmp->val) / FM_SCALE; in fmeter_update()
2077 fmp->val += ((FM_SCALE - FM_COEF) * fmp->cnt) / FM_SCALE; in fmeter_update()
2093 int val; in fmeter_getrate() local
2097 val = fmp->val; in fmeter_getrate()
2099 return val; in fmeter_getrate()
2254 u64 val) in cpuset_write_u64() argument
2269 retval = update_flag(CS_CPU_EXCLUSIVE, cs, val); in cpuset_write_u64()
2272 retval = update_flag(CS_MEM_EXCLUSIVE, cs, val); in cpuset_write_u64()
2275 retval = update_flag(CS_MEM_HARDWALL, cs, val); in cpuset_write_u64()
2278 retval = update_flag(CS_SCHED_LOAD_BALANCE, cs, val); in cpuset_write_u64()
2281 retval = update_flag(CS_MEMORY_MIGRATE, cs, val); in cpuset_write_u64()
2284 cpuset_memory_pressure_enabled = !!val; in cpuset_write_u64()
2287 retval = update_flag(CS_SPREAD_PAGE, cs, val); in cpuset_write_u64()
2290 retval = update_flag(CS_SPREAD_SLAB, cs, val); in cpuset_write_u64()
2303 s64 val) in cpuset_write_s64() argument
2316 retval = update_relax_domain_level(cs, val); in cpuset_write_s64()
2504 int val; in sched_partition_write() local
2513 val = PRS_ENABLED; in sched_partition_write()
2515 val = PRS_DISABLED; in sched_partition_write()
2525 retval = update_prstate(cs, val); in sched_partition_write()