Lines Matching refs:tg
703 struct thread_groups *tg, in parse_thread_groups() argument
717 tg->property = thread_group_array[0]; in parse_thread_groups()
718 tg->nr_groups = thread_group_array[1]; in parse_thread_groups()
719 tg->threads_per_group = thread_group_array[2]; in parse_thread_groups()
720 if (tg->property != property || in parse_thread_groups()
721 tg->nr_groups < 1 || in parse_thread_groups()
722 tg->threads_per_group < 1) in parse_thread_groups()
725 total_threads = tg->nr_groups * tg->threads_per_group; in parse_thread_groups()
736 tg->thread_list[i] = thread_list[i]; in parse_thread_groups()
755 static int get_cpu_thread_group_start(int cpu, struct thread_groups *tg) in get_cpu_thread_group_start() argument
760 for (i = 0; i < tg->nr_groups; i++) { in get_cpu_thread_group_start()
761 int group_start = i * tg->threads_per_group; in get_cpu_thread_group_start()
763 for (j = 0; j < tg->threads_per_group; j++) { in get_cpu_thread_group_start()
766 if (tg->thread_list[idx] == hw_cpu_id) in get_cpu_thread_group_start()
778 struct thread_groups tg = {.property = 0, in init_cpu_l1_cache_map() local
787 err = parse_thread_groups(dn, &tg, THREAD_GROUP_SHARE_L1); in init_cpu_l1_cache_map()
795 cpu_group_start = get_cpu_thread_group_start(cpu, &tg); in init_cpu_l1_cache_map()
804 int i_group_start = get_cpu_thread_group_start(i, &tg); in init_cpu_l1_cache_map()