Lines Matching refs:pos
267 unsigned int pos, i; in cpufreq_get_available_governors() local
275 pos = 0; in cpufreq_get_available_governors()
278 if (i - pos < 2) in cpufreq_get_available_governors()
294 current->governor = malloc(i - pos + 1); in cpufreq_get_available_governors()
298 memcpy(current->governor, linebuf + pos, i - pos); in cpufreq_get_available_governors()
299 current->governor[i - pos] = '\0'; in cpufreq_get_available_governors()
300 pos = i + 1; in cpufreq_get_available_governors()
342 unsigned int pos, i; in cpufreq_get_available_frequencies() local
350 pos = 0; in cpufreq_get_available_frequencies()
353 if (i - pos < 2) in cpufreq_get_available_frequencies()
355 if (i - pos >= SYSFS_PATH_MAX) in cpufreq_get_available_frequencies()
371 memcpy(one_value, linebuf + pos, i - pos); in cpufreq_get_available_frequencies()
372 one_value[i - pos] = '\0'; in cpufreq_get_available_frequencies()
376 pos = i + 1; in cpufreq_get_available_frequencies()
398 unsigned int pos, i; in cpufreq_get_boost_frequencies() local
406 pos = 0; in cpufreq_get_boost_frequencies()
409 if (i - pos < 2) in cpufreq_get_boost_frequencies()
411 if (i - pos >= SYSFS_PATH_MAX) in cpufreq_get_boost_frequencies()
427 memcpy(one_value, linebuf + pos, i - pos); in cpufreq_get_boost_frequencies()
428 one_value[i - pos] = '\0'; in cpufreq_get_boost_frequencies()
432 pos = i + 1; in cpufreq_get_boost_frequencies()
474 unsigned int pos, i; in sysfs_get_cpu_list() local
481 pos = 0; in sysfs_get_cpu_list()
484 if (i - pos < 1) in sysfs_get_cpu_list()
486 if (i - pos >= SYSFS_PATH_MAX) in sysfs_get_cpu_list()
502 memcpy(one_value, linebuf + pos, i - pos); in sysfs_get_cpu_list()
503 one_value[i - pos] = '\0'; in sysfs_get_cpu_list()
508 pos = i + 1; in sysfs_get_cpu_list()
705 unsigned int pos, i; in cpufreq_get_stats() local
714 pos = 0; in cpufreq_get_stats()
717 if (i - pos < 2) in cpufreq_get_stats()
719 if ((i - pos) >= SYSFS_PATH_MAX) in cpufreq_get_stats()
735 memcpy(one_value, linebuf + pos, i - pos); in cpufreq_get_stats()
736 one_value[i - pos] = '\0'; in cpufreq_get_stats()
743 pos = i + 1; in cpufreq_get_stats()