Lines Matching full:current

274 	struct cpufreq_available_governors *current = NULL;  in cpufreq_get_available_governors()  local
289 if (current) { in cpufreq_get_available_governors()
290 current->next = malloc(sizeof(*current)); in cpufreq_get_available_governors()
291 if (!current->next) in cpufreq_get_available_governors()
293 current = current->next; in cpufreq_get_available_governors()
298 current = first; in cpufreq_get_available_governors()
300 current->first = first; in cpufreq_get_available_governors()
301 current->next = NULL; in cpufreq_get_available_governors()
303 current->governor = malloc(i - pos + 1); in cpufreq_get_available_governors()
304 if (!current->governor) in cpufreq_get_available_governors()
307 memcpy(current->governor, linebuf + pos, i - pos); in cpufreq_get_available_governors()
308 current->governor[i - pos] = '\0'; in cpufreq_get_available_governors()
317 current = first->next; in cpufreq_get_available_governors()
321 first = current; in cpufreq_get_available_governors()
348 struct cpufreq_available_frequencies *current = NULL; in cpufreq_get_available_frequencies() local
366 if (current) { in cpufreq_get_available_frequencies()
367 current->next = malloc(sizeof(*current)); in cpufreq_get_available_frequencies()
368 if (!current->next) in cpufreq_get_available_frequencies()
370 current = current->next; in cpufreq_get_available_frequencies()
375 current = first; in cpufreq_get_available_frequencies()
377 current->first = first; in cpufreq_get_available_frequencies()
378 current->next = NULL; in cpufreq_get_available_frequencies()
382 if (sscanf(one_value, "%lu", &current->frequency) != 1) in cpufreq_get_available_frequencies()
393 current = first->next; in cpufreq_get_available_frequencies()
395 first = current; in cpufreq_get_available_frequencies()
404 struct cpufreq_available_frequencies *current = NULL; in cpufreq_get_boost_frequencies() local
422 if (current) { in cpufreq_get_boost_frequencies()
423 current->next = malloc(sizeof(*current)); in cpufreq_get_boost_frequencies()
424 if (!current->next) in cpufreq_get_boost_frequencies()
426 current = current->next; in cpufreq_get_boost_frequencies()
431 current = first; in cpufreq_get_boost_frequencies()
433 current->first = first; in cpufreq_get_boost_frequencies()
434 current->next = NULL; in cpufreq_get_boost_frequencies()
438 if (sscanf(one_value, "%lu", &current->frequency) != 1) in cpufreq_get_boost_frequencies()
449 current = first->next; in cpufreq_get_boost_frequencies()
451 first = current; in cpufreq_get_boost_frequencies()
480 struct cpufreq_affected_cpus *current = NULL; in sysfs_get_cpu_list() local
497 if (current) { in sysfs_get_cpu_list()
498 current->next = malloc(sizeof(*current)); in sysfs_get_cpu_list()
499 if (!current->next) in sysfs_get_cpu_list()
501 current = current->next; in sysfs_get_cpu_list()
506 current = first; in sysfs_get_cpu_list()
508 current->first = first; in sysfs_get_cpu_list()
509 current->next = NULL; in sysfs_get_cpu_list()
514 if (sscanf(one_value, "%u", &current->cpu) != 1) in sysfs_get_cpu_list()
525 current = first->next; in sysfs_get_cpu_list()
527 first = current; in sysfs_get_cpu_list()
711 struct cpufreq_stats *current = NULL; in cpufreq_get_stats() local
730 if (current) { in cpufreq_get_stats()
731 current->next = malloc(sizeof(*current)); in cpufreq_get_stats()
732 if (!current->next) in cpufreq_get_stats()
734 current = current->next; in cpufreq_get_stats()
739 current = first; in cpufreq_get_stats()
741 current->first = first; in cpufreq_get_stats()
742 current->next = NULL; in cpufreq_get_stats()
747 &current->frequency, in cpufreq_get_stats()
748 &current->time_in_state) != 2) in cpufreq_get_stats()
751 *total_time = *total_time + current->time_in_state; in cpufreq_get_stats()
760 current = first->next; in cpufreq_get_stats()
762 first = current; in cpufreq_get_stats()