Lines Matching refs:tg

832 		struct thread_groups *tg = &tglp->property_tgs[property_idx++];  in parse_thread_groups()  local
834 tg->property = thread_group_array[i]; in parse_thread_groups()
835 tg->nr_groups = thread_group_array[i + 1]; in parse_thread_groups()
836 tg->threads_per_group = thread_group_array[i + 2]; in parse_thread_groups()
837 total_threads = tg->nr_groups * tg->threads_per_group; in parse_thread_groups()
842 tg->thread_list[j] = thread_list[j]; in parse_thread_groups()
867 static int get_cpu_thread_group_start(int cpu, struct thread_groups *tg) in get_cpu_thread_group_start() argument
872 for (i = 0; i < tg->nr_groups; i++) { in get_cpu_thread_group_start()
873 int group_start = i * tg->threads_per_group; in get_cpu_thread_group_start()
875 for (j = 0; j < tg->threads_per_group; j++) { in get_cpu_thread_group_start()
878 if (tg->thread_list[idx] == hw_cpu_id) in get_cpu_thread_group_start()
892 struct thread_groups *tg = NULL; in get_thread_groups() local
909 tg = &cpu_tgl->property_tgs[i]; in get_thread_groups()
914 if (!tg) in get_thread_groups()
918 return tg; in get_thread_groups()
921 static int __init update_mask_from_threadgroup(cpumask_var_t *mask, struct thread_groups *tg, in update_mask_from_threadgroup() argument
930 int i_group_start = get_cpu_thread_group_start(i, tg); in update_mask_from_threadgroup()
948 struct thread_groups *tg = NULL; in init_thread_group_cache_map() local
955 tg = get_thread_groups(cpu, cache_property, &err); in init_thread_group_cache_map()
957 if (!tg) in init_thread_group_cache_map()
960 cpu_group_start = get_cpu_thread_group_start(cpu, tg); in init_thread_group_cache_map()
969 update_mask_from_threadgroup(mask, tg, cpu, cpu_group_start); in init_thread_group_cache_map()
973 update_mask_from_threadgroup(mask, tg, cpu, cpu_group_start); in init_thread_group_cache_map()
975 update_mask_from_threadgroup(mask, tg, cpu, cpu_group_start); in init_thread_group_cache_map()