Lines Matching refs:tg

810 		struct thread_groups *tg = &tglp->property_tgs[property_idx++];  in parse_thread_groups()  local
812 tg->property = thread_group_array[i]; in parse_thread_groups()
813 tg->nr_groups = thread_group_array[i + 1]; in parse_thread_groups()
814 tg->threads_per_group = thread_group_array[i + 2]; in parse_thread_groups()
815 total_threads = tg->nr_groups * tg->threads_per_group; in parse_thread_groups()
820 tg->thread_list[j] = thread_list[j]; in parse_thread_groups()
845 static int get_cpu_thread_group_start(int cpu, struct thread_groups *tg) in get_cpu_thread_group_start() argument
850 for (i = 0; i < tg->nr_groups; i++) { in get_cpu_thread_group_start()
851 int group_start = i * tg->threads_per_group; in get_cpu_thread_group_start()
853 for (j = 0; j < tg->threads_per_group; j++) { in get_cpu_thread_group_start()
856 if (tg->thread_list[idx] == hw_cpu_id) in get_cpu_thread_group_start()
870 struct thread_groups *tg = NULL; in get_thread_groups() local
887 tg = &cpu_tgl->property_tgs[i]; in get_thread_groups()
892 if (!tg) in get_thread_groups()
896 return tg; in get_thread_groups()
899 static int update_mask_from_threadgroup(cpumask_var_t *mask, struct thread_groups *tg, int cpu, int… in update_mask_from_threadgroup() argument
907 int i_group_start = get_cpu_thread_group_start(i, tg); in update_mask_from_threadgroup()
925 struct thread_groups *tg = NULL; in init_thread_group_cache_map() local
932 tg = get_thread_groups(cpu, cache_property, &err); in init_thread_group_cache_map()
934 if (!tg) in init_thread_group_cache_map()
937 cpu_group_start = get_cpu_thread_group_start(cpu, tg); in init_thread_group_cache_map()
946 update_mask_from_threadgroup(mask, tg, cpu, cpu_group_start); in init_thread_group_cache_map()
950 update_mask_from_threadgroup(mask, tg, cpu, cpu_group_start); in init_thread_group_cache_map()
952 update_mask_from_threadgroup(mask, tg, cpu, cpu_group_start); in init_thread_group_cache_map()