Lines Matching refs:tg
737 struct thread_groups *tg, in parse_thread_groups() argument
751 tg->property = thread_group_array[0]; in parse_thread_groups()
752 tg->nr_groups = thread_group_array[1]; in parse_thread_groups()
753 tg->threads_per_group = thread_group_array[2]; in parse_thread_groups()
754 if (tg->property != property || in parse_thread_groups()
755 tg->nr_groups < 1 || in parse_thread_groups()
756 tg->threads_per_group < 1) in parse_thread_groups()
759 total_threads = tg->nr_groups * tg->threads_per_group; in parse_thread_groups()
770 tg->thread_list[i] = thread_list[i]; in parse_thread_groups()
789 static int get_cpu_thread_group_start(int cpu, struct thread_groups *tg) in get_cpu_thread_group_start() argument
794 for (i = 0; i < tg->nr_groups; i++) { in get_cpu_thread_group_start()
795 int group_start = i * tg->threads_per_group; in get_cpu_thread_group_start()
797 for (j = 0; j < tg->threads_per_group; j++) { in get_cpu_thread_group_start()
800 if (tg->thread_list[idx] == hw_cpu_id) in get_cpu_thread_group_start()
812 struct thread_groups tg = {.property = 0, in init_cpu_l1_cache_map() local
821 err = parse_thread_groups(dn, &tg, THREAD_GROUP_SHARE_L1); in init_cpu_l1_cache_map()
825 cpu_group_start = get_cpu_thread_group_start(cpu, &tg); in init_cpu_l1_cache_map()
837 int i_group_start = get_cpu_thread_group_start(i, &tg); in init_cpu_l1_cache_map()