Lines Matching refs:cpus
40 int i, first_hartid = ms->smp.cpus; in riscv_socket_first_hartid()
46 for (i = 0; i < ms->smp.cpus; i++) { in riscv_socket_first_hartid()
47 if (ms->possible_cpus->cpus[i].props.node_id != socket_id) { in riscv_socket_first_hartid()
55 return (first_hartid < ms->smp.cpus) ? first_hartid : -1; in riscv_socket_first_hartid()
63 return (!socket_id) ? ms->smp.cpus - 1 : -1; in riscv_socket_last_hartid()
66 for (i = 0; i < ms->smp.cpus; i++) { in riscv_socket_last_hartid()
67 if (ms->possible_cpus->cpus[i].props.node_id != socket_id) { in riscv_socket_last_hartid()
75 return (last_hartid < ms->smp.cpus) ? last_hartid : -1; in riscv_socket_last_hartid()
83 return (!socket_id) ? ms->smp.cpus : -1; in riscv_socket_hart_count()
122 if (ms->possible_cpus->cpus[i].props.node_id != socket_id) { in riscv_socket_check_hartids()
203 return possible_cpus->cpus[cpu_index].props; in riscv_numa_cpu_index_to_props()
210 if (ms->numa_state->num_nodes > ms->smp.cpus) { in riscv_numa_get_default_cpu_node_id()
213 ms->numa_state->num_nodes, ms->smp.cpus); in riscv_numa_get_default_cpu_node_id()
217 nidx = idx / (ms->smp.cpus / ms->numa_state->num_nodes); in riscv_numa_get_default_cpu_node_id()
240 ms->possible_cpus->cpus[n].type = ms->cpu_type; in riscv_numa_possible_cpu_arch_ids()
241 ms->possible_cpus->cpus[n].arch_id = n; in riscv_numa_possible_cpu_arch_ids()
242 ms->possible_cpus->cpus[n].props.has_core_id = true; in riscv_numa_possible_cpu_arch_ids()
243 ms->possible_cpus->cpus[n].props.core_id = n; in riscv_numa_possible_cpu_arch_ids()