Lines Matching refs:first

273 	struct cpufreq_available_governors *first = NULL;  in cpufreq_get_available_governors()  local
295 first = malloc(sizeof(*first)); in cpufreq_get_available_governors()
296 if (!first) in cpufreq_get_available_governors()
298 current = first; in cpufreq_get_available_governors()
300 current->first = first; in cpufreq_get_available_governors()
313 return first; in cpufreq_get_available_governors()
316 while (first) { in cpufreq_get_available_governors()
317 current = first->next; in cpufreq_get_available_governors()
318 if (first->governor) in cpufreq_get_available_governors()
319 free(first->governor); in cpufreq_get_available_governors()
320 free(first); in cpufreq_get_available_governors()
321 first = current; in cpufreq_get_available_governors()
333 tmp = any->first; in cpufreq_put_available_governors()
347 struct cpufreq_available_frequencies *first = NULL; in cpufreq_get_available_frequencies() local
372 first = malloc(sizeof(*first)); in cpufreq_get_available_frequencies()
373 if (!first) in cpufreq_get_available_frequencies()
375 current = first; in cpufreq_get_available_frequencies()
377 current->first = first; in cpufreq_get_available_frequencies()
389 return first; in cpufreq_get_available_frequencies()
392 while (first) { in cpufreq_get_available_frequencies()
393 current = first->next; in cpufreq_get_available_frequencies()
394 free(first); in cpufreq_get_available_frequencies()
395 first = current; in cpufreq_get_available_frequencies()
403 struct cpufreq_available_frequencies *first = NULL; in cpufreq_get_boost_frequencies() local
428 first = malloc(sizeof(*first)); in cpufreq_get_boost_frequencies()
429 if (!first) in cpufreq_get_boost_frequencies()
431 current = first; in cpufreq_get_boost_frequencies()
433 current->first = first; in cpufreq_get_boost_frequencies()
445 return first; in cpufreq_get_boost_frequencies()
448 while (first) { in cpufreq_get_boost_frequencies()
449 current = first->next; in cpufreq_get_boost_frequencies()
450 free(first); in cpufreq_get_boost_frequencies()
451 first = current; in cpufreq_get_boost_frequencies()
463 tmp = any->first; in cpufreq_put_available_frequencies()
479 struct cpufreq_affected_cpus *first = NULL; in sysfs_get_cpu_list() local
503 first = malloc(sizeof(*first)); in sysfs_get_cpu_list()
504 if (!first) in sysfs_get_cpu_list()
506 current = first; in sysfs_get_cpu_list()
508 current->first = first; in sysfs_get_cpu_list()
521 return first; in sysfs_get_cpu_list()
524 while (first) { in sysfs_get_cpu_list()
525 current = first->next; in sysfs_get_cpu_list()
526 free(first); in sysfs_get_cpu_list()
527 first = current; in sysfs_get_cpu_list()
544 tmp = any->first; in cpufreq_put_affected_cpus()
710 struct cpufreq_stats *first = NULL; in cpufreq_get_stats() local
736 first = malloc(sizeof(*first)); in cpufreq_get_stats()
737 if (!first) in cpufreq_get_stats()
739 current = first; in cpufreq_get_stats()
741 current->first = first; in cpufreq_get_stats()
756 return first; in cpufreq_get_stats()
759 while (first) { in cpufreq_get_stats()
760 current = first->next; in cpufreq_get_stats()
761 free(first); in cpufreq_get_stats()
762 first = current; in cpufreq_get_stats()
774 tmp = any->first; in cpufreq_put_stats()