Lines Matching refs:tg

837 		struct thread_groups *tg = &tglp->property_tgs[property_idx++];  in parse_thread_groups()  local
839 tg->property = thread_group_array[i]; in parse_thread_groups()
840 tg->nr_groups = thread_group_array[i + 1]; in parse_thread_groups()
841 tg->threads_per_group = thread_group_array[i + 2]; in parse_thread_groups()
842 total_threads = tg->nr_groups * tg->threads_per_group; in parse_thread_groups()
847 tg->thread_list[j] = thread_list[j]; in parse_thread_groups()
872 static int get_cpu_thread_group_start(int cpu, struct thread_groups *tg) in get_cpu_thread_group_start() argument
877 for (i = 0; i < tg->nr_groups; i++) { in get_cpu_thread_group_start()
878 int group_start = i * tg->threads_per_group; in get_cpu_thread_group_start()
880 for (j = 0; j < tg->threads_per_group; j++) { in get_cpu_thread_group_start()
883 if (tg->thread_list[idx] == hw_cpu_id) in get_cpu_thread_group_start()
897 struct thread_groups *tg = NULL; in get_thread_groups() local
914 tg = &cpu_tgl->property_tgs[i]; in get_thread_groups()
919 if (!tg) in get_thread_groups()
923 return tg; in get_thread_groups()
926 static int __init update_mask_from_threadgroup(cpumask_var_t *mask, struct thread_groups *tg, in update_mask_from_threadgroup() argument
935 int i_group_start = get_cpu_thread_group_start(i, tg); in update_mask_from_threadgroup()
953 struct thread_groups *tg = NULL; in init_thread_group_cache_map() local
960 tg = get_thread_groups(cpu, cache_property, &err); in init_thread_group_cache_map()
962 if (!tg) in init_thread_group_cache_map()
965 cpu_group_start = get_cpu_thread_group_start(cpu, tg); in init_thread_group_cache_map()
974 update_mask_from_threadgroup(mask, tg, cpu, cpu_group_start); in init_thread_group_cache_map()
978 update_mask_from_threadgroup(mask, tg, cpu, cpu_group_start); in init_thread_group_cache_map()
980 update_mask_from_threadgroup(mask, tg, cpu, cpu_group_start); in init_thread_group_cache_map()