Lines Matching refs:linebuf
53 char linebuf[MAX_LINE_LEN];
63 if (cpupower_read_sysfs(path, linebuf, MAX_LINE_LEN) == 0)
66 val = strtol(linebuf, &endp, 0);
67 if (endp == linebuf || errno == ERANGE)
76 char linebuf[3] = {};
82 snprintf(linebuf, sizeof(linebuf), "%d", val);
84 if (cpupower_write_sysfs(path, linebuf, 3) <= 0)
93 char linebuf[30] = {};
101 snprintf(linebuf, sizeof(linebuf), "%s", epp);
103 if (cpupower_write_sysfs(path, linebuf, 30) <= 0)
112 char linebuf[20] = {};
119 snprintf(linebuf, sizeof(linebuf), "%s\n", mode);
121 if (cpupower_write_sysfs(path, linebuf, 20) <= 0)
130 char linebuf[2] = {};
137 snprintf(linebuf, sizeof(linebuf), "%d", turbo_boost);
139 if (cpupower_write_sysfs(path, linebuf, 2) <= 0)