Lines Matching full:current
265 struct cpufreq_available_governors *current = NULL; in cpufreq_get_available_governors() local
280 if (current) { in cpufreq_get_available_governors()
281 current->next = malloc(sizeof(*current)); in cpufreq_get_available_governors()
282 if (!current->next) in cpufreq_get_available_governors()
284 current = current->next; in cpufreq_get_available_governors()
289 current = first; in cpufreq_get_available_governors()
291 current->first = first; in cpufreq_get_available_governors()
292 current->next = NULL; in cpufreq_get_available_governors()
294 current->governor = malloc(i - pos + 1); in cpufreq_get_available_governors()
295 if (!current->governor) 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()
308 current = first->next; in cpufreq_get_available_governors()
312 first = current; in cpufreq_get_available_governors()
339 struct cpufreq_available_frequencies *current = NULL; in cpufreq_get_available_frequencies() local
357 if (current) { in cpufreq_get_available_frequencies()
358 current->next = malloc(sizeof(*current)); in cpufreq_get_available_frequencies()
359 if (!current->next) in cpufreq_get_available_frequencies()
361 current = current->next; in cpufreq_get_available_frequencies()
366 current = first; in cpufreq_get_available_frequencies()
368 current->first = first; in cpufreq_get_available_frequencies()
369 current->next = NULL; in cpufreq_get_available_frequencies()
373 if (sscanf(one_value, "%lu", ¤t->frequency) != 1) in cpufreq_get_available_frequencies()
384 current = first->next; in cpufreq_get_available_frequencies()
386 first = current; in cpufreq_get_available_frequencies()
395 struct cpufreq_available_frequencies *current = NULL; in cpufreq_get_boost_frequencies() local
413 if (current) { in cpufreq_get_boost_frequencies()
414 current->next = malloc(sizeof(*current)); in cpufreq_get_boost_frequencies()
415 if (!current->next) in cpufreq_get_boost_frequencies()
417 current = current->next; in cpufreq_get_boost_frequencies()
422 current = first; in cpufreq_get_boost_frequencies()
424 current->first = first; in cpufreq_get_boost_frequencies()
425 current->next = NULL; in cpufreq_get_boost_frequencies()
429 if (sscanf(one_value, "%lu", ¤t->frequency) != 1) in cpufreq_get_boost_frequencies()
440 current = first->next; in cpufreq_get_boost_frequencies()
442 first = current; in cpufreq_get_boost_frequencies()
471 struct cpufreq_affected_cpus *current = NULL; in sysfs_get_cpu_list() local
488 if (current) { in sysfs_get_cpu_list()
489 current->next = malloc(sizeof(*current)); in sysfs_get_cpu_list()
490 if (!current->next) in sysfs_get_cpu_list()
492 current = current->next; in sysfs_get_cpu_list()
497 current = first; in sysfs_get_cpu_list()
499 current->first = first; in sysfs_get_cpu_list()
500 current->next = NULL; in sysfs_get_cpu_list()
505 if (sscanf(one_value, "%u", ¤t->cpu) != 1) in sysfs_get_cpu_list()
516 current = first->next; in sysfs_get_cpu_list()
518 first = current; in sysfs_get_cpu_list()
702 struct cpufreq_stats *current = NULL; in cpufreq_get_stats() local
721 if (current) { in cpufreq_get_stats()
722 current->next = malloc(sizeof(*current)); in cpufreq_get_stats()
723 if (!current->next) in cpufreq_get_stats()
725 current = current->next; in cpufreq_get_stats()
730 current = first; in cpufreq_get_stats()
732 current->first = first; in cpufreq_get_stats()
733 current->next = NULL; in cpufreq_get_stats()
738 ¤t->frequency, in cpufreq_get_stats()
739 ¤t->time_in_state) != 2) in cpufreq_get_stats()
742 *total_time = *total_time + current->time_in_state; in cpufreq_get_stats()
751 current = first->next; in cpufreq_get_stats()
753 first = current; in cpufreq_get_stats()