Lines Matching refs:num_harts
241 for (cpu = s->soc[socket].num_harts - 1; cpu >= 0; cpu--) { in create_fdt_socket_cpus()
333 clint_cells = g_new0(uint32_t, s->soc[socket].num_harts * 4); in create_fdt_socket_clint()
335 for (cpu = 0; cpu < s->soc[socket].num_harts; cpu++) { in create_fdt_socket_clint()
352 clint_cells, s->soc[socket].num_harts * sizeof(uint32_t) * 4); in create_fdt_socket_clint()
369 aclint_mswi_cells = g_new0(uint32_t, s->soc[socket].num_harts * 2); in create_fdt_socket_aclint()
370 aclint_mtimer_cells = g_new0(uint32_t, s->soc[socket].num_harts * 2); in create_fdt_socket_aclint()
371 aclint_sswi_cells = g_new0(uint32_t, s->soc[socket].num_harts * 2); in create_fdt_socket_aclint()
373 for (cpu = 0; cpu < s->soc[socket].num_harts; cpu++) { in create_fdt_socket_aclint()
381 aclint_cells_size = s->soc[socket].num_harts * sizeof(uint32_t) * 2; in create_fdt_socket_aclint()
472 plic_cells = g_new0(uint32_t, s->soc[socket].num_harts * 2); in create_fdt_socket_plic()
474 for (cpu = 0; cpu < s->soc[socket].num_harts; cpu++) { in create_fdt_socket_plic()
481 s->soc[socket].num_harts * sizeof(uint32_t) * 2); in create_fdt_socket_plic()
483 plic_cells = g_new0(uint32_t, s->soc[socket].num_harts * 4); in create_fdt_socket_plic()
485 for (cpu = 0; cpu < s->soc[socket].num_harts; cpu++) { in create_fdt_socket_plic()
494 s->soc[socket].num_harts * sizeof(uint32_t) * 4); in create_fdt_socket_plic()
551 s->soc[socket].num_harts; in create_fdt_one_imsic()
556 if (imsic_max_hart_per_socket < s->soc[socket].num_harts) { in create_fdt_one_imsic()
557 imsic_max_hart_per_socket = s->soc[socket].num_harts; in create_fdt_one_imsic()
627 bool m_mode, int num_harts) in create_fdt_one_aplic() argument
631 g_autofree uint32_t *aplic_cells = g_new0(uint32_t, num_harts * 2); in create_fdt_one_aplic()
637 for (cpu = 0; cpu < num_harts; cpu++) { in create_fdt_one_aplic()
654 aplic_cells, num_harts * sizeof(uint32_t) * 2); in create_fdt_one_aplic()
692 int num_harts) in create_fdt_socket_aplic() argument
709 true, num_harts); in create_fdt_socket_aplic()
718 false, num_harts); in create_fdt_socket_aplic()
770 phandle_pos -= s->soc[socket].num_harts; in create_fdt_sockets()
811 phandle_pos -= s->soc[socket].num_harts; in create_fdt_sockets()
822 s->soc[socket].num_harts); in create_fdt_sockets()