Lines Matching defs:val
18 struct sysinfo val;
20 memset((char *)&val, 0, sizeof(struct sysinfo));
23 val.uptime = jiffies / HZ;
25 val.loads[0] = avenrun[0] << (SI_LOAD_SHIFT - FSHIFT);
26 val.loads[1] = avenrun[1] << (SI_LOAD_SHIFT - FSHIFT);
27 val.loads[2] = avenrun[2] << (SI_LOAD_SHIFT - FSHIFT);
29 val.procs = nr_threads-1;
32 si_meminfo(&val);
33 si_swapinfo(&val);
46 mem_total = val.totalram + val.totalswap;
47 if (mem_total < val.totalram || mem_total < val.totalswap)
50 mem_unit = val.mem_unit;
61 * val.mem_unit and set it to 1. This leaves things compatible
65 val.mem_unit = 1;
66 val.totalram <<= bitcount;
67 val.freeram <<= bitcount;
68 val.sharedram <<= bitcount;
69 val.bufferram <<= bitcount;
70 val.totalswap <<= bitcount;
71 val.freeswap <<= bitcount;
72 val.totalhigh <<= bitcount;
73 val.freehigh <<= bitcount;
76 if (copy_to_user(info, &val, sizeof(struct sysinfo)))