Lines Matching refs:tg
840 struct thread_groups *tg = &tglp->property_tgs[property_idx++]; in parse_thread_groups() local
842 tg->property = thread_group_array[i]; in parse_thread_groups()
843 tg->nr_groups = thread_group_array[i + 1]; in parse_thread_groups()
844 tg->threads_per_group = thread_group_array[i + 2]; in parse_thread_groups()
845 total_threads = tg->nr_groups * tg->threads_per_group; in parse_thread_groups()
850 tg->thread_list[j] = thread_list[j]; in parse_thread_groups()
875 static int get_cpu_thread_group_start(int cpu, struct thread_groups *tg) in get_cpu_thread_group_start() argument
880 for (i = 0; i < tg->nr_groups; i++) { in get_cpu_thread_group_start()
881 int group_start = i * tg->threads_per_group; in get_cpu_thread_group_start()
883 for (j = 0; j < tg->threads_per_group; j++) { in get_cpu_thread_group_start()
886 if (tg->thread_list[idx] == hw_cpu_id) in get_cpu_thread_group_start()
900 struct thread_groups *tg = NULL; in get_thread_groups() local
917 tg = &cpu_tgl->property_tgs[i]; in get_thread_groups()
922 if (!tg) in get_thread_groups()
926 return tg; in get_thread_groups()
929 static int __init update_mask_from_threadgroup(cpumask_var_t *mask, struct thread_groups *tg, in update_mask_from_threadgroup() argument
938 int i_group_start = get_cpu_thread_group_start(i, tg); in update_mask_from_threadgroup()
956 struct thread_groups *tg = NULL; in init_thread_group_cache_map() local
963 tg = get_thread_groups(cpu, cache_property, &err); in init_thread_group_cache_map()
965 if (!tg) in init_thread_group_cache_map()
968 cpu_group_start = get_cpu_thread_group_start(cpu, tg); in init_thread_group_cache_map()
977 update_mask_from_threadgroup(mask, tg, cpu, cpu_group_start); in init_thread_group_cache_map()
981 update_mask_from_threadgroup(mask, tg, cpu, cpu_group_start); in init_thread_group_cache_map()
983 update_mask_from_threadgroup(mask, tg, cpu, cpu_group_start); in init_thread_group_cache_map()