Lines Matching refs:nodes
702 int (*get_smp_nodes)(struct sunxi_mc_smp_nodes *nodes);
706 static void __init sunxi_mc_smp_put_nodes(struct sunxi_mc_smp_nodes *nodes) in sunxi_mc_smp_put_nodes() argument
708 of_node_put(nodes->prcm_node); in sunxi_mc_smp_put_nodes()
709 of_node_put(nodes->cpucfg_node); in sunxi_mc_smp_put_nodes()
710 of_node_put(nodes->sram_node); in sunxi_mc_smp_put_nodes()
711 of_node_put(nodes->r_cpucfg_node); in sunxi_mc_smp_put_nodes()
712 memset(nodes, 0, sizeof(*nodes)); in sunxi_mc_smp_put_nodes()
715 static int __init sun9i_a80_get_smp_nodes(struct sunxi_mc_smp_nodes *nodes) in sun9i_a80_get_smp_nodes() argument
717 nodes->prcm_node = of_find_compatible_node(NULL, NULL, in sun9i_a80_get_smp_nodes()
719 if (!nodes->prcm_node) { in sun9i_a80_get_smp_nodes()
724 nodes->cpucfg_node = of_find_compatible_node(NULL, NULL, in sun9i_a80_get_smp_nodes()
726 if (!nodes->cpucfg_node) { in sun9i_a80_get_smp_nodes()
731 nodes->sram_node = of_find_compatible_node(NULL, NULL, in sun9i_a80_get_smp_nodes()
733 if (!nodes->sram_node) { in sun9i_a80_get_smp_nodes()
741 static int __init sun8i_a83t_get_smp_nodes(struct sunxi_mc_smp_nodes *nodes) in sun8i_a83t_get_smp_nodes() argument
743 nodes->prcm_node = of_find_compatible_node(NULL, NULL, in sun8i_a83t_get_smp_nodes()
745 if (!nodes->prcm_node) { in sun8i_a83t_get_smp_nodes()
750 nodes->cpucfg_node = of_find_compatible_node(NULL, NULL, in sun8i_a83t_get_smp_nodes()
752 if (!nodes->cpucfg_node) { in sun8i_a83t_get_smp_nodes()
757 nodes->r_cpucfg_node = of_find_compatible_node(NULL, NULL, in sun8i_a83t_get_smp_nodes()
759 if (!nodes->r_cpucfg_node) { in sun8i_a83t_get_smp_nodes()
781 struct sunxi_mc_smp_nodes nodes = { 0 }; in sunxi_mc_smp_init() local
825 ret = sunxi_mc_smp_data[i].get_smp_nodes(&nodes); in sunxi_mc_smp_init()
833 prcm_base = of_iomap(nodes.prcm_node, 0); in sunxi_mc_smp_init()
840 cpucfg_base = of_io_request_and_map(nodes.cpucfg_node, 0, in sunxi_mc_smp_init()
850 r_cpucfg_base = of_io_request_and_map(nodes.r_cpucfg_node, in sunxi_mc_smp_init()
859 sram_b_smp_base = of_io_request_and_map(nodes.sram_node, 0, in sunxi_mc_smp_init()
877 sunxi_mc_smp_put_nodes(&nodes); in sunxi_mc_smp_init()
896 of_address_to_resource(nodes.r_cpucfg_node, 0, &res); in sunxi_mc_smp_init()
899 of_address_to_resource(nodes.sram_node, 0, &res); in sunxi_mc_smp_init()
904 of_address_to_resource(nodes.cpucfg_node, 0, &res); in sunxi_mc_smp_init()
909 sunxi_mc_smp_put_nodes(&nodes); in sunxi_mc_smp_init()