Home
last modified time | relevance | path

Searched refs:node (Results 1 – 25 of 720) sorted by relevance

12345678910>>...29

/arch/sparc/prom/
Dtree_32.c24 static phandle __prom_getchild(phandle node) in __prom_getchild() argument
30 cnode = prom_nodeops->no_child(node); in __prom_getchild()
40 phandle prom_getchild(phandle node) in prom_getchild() argument
44 if ((s32)node == -1) in prom_getchild()
47 cnode = __prom_getchild(node); in prom_getchild()
56 static phandle __prom_getsibling(phandle node) in __prom_getsibling() argument
62 cnode = prom_nodeops->no_nextnode(node); in __prom_getsibling()
72 phandle prom_getsibling(phandle node) in prom_getsibling() argument
76 if ((s32)node == -1) in prom_getsibling()
79 sibnode = __prom_getsibling(node); in prom_getsibling()
[all …]
Dtree_64.c20 static phandle prom_node_to_node(const char *type, phandle node) in prom_node_to_node() argument
27 args[3] = (unsigned int) node; in prom_node_to_node()
38 inline phandle __prom_getchild(phandle node) in __prom_getchild() argument
40 return prom_node_to_node("child", node); in __prom_getchild()
43 phandle prom_getchild(phandle node) in prom_getchild() argument
47 if ((s32)node == -1) in prom_getchild()
49 cnode = __prom_getchild(node); in prom_getchild()
56 inline phandle prom_getparent(phandle node) in prom_getparent() argument
60 if ((s32)node == -1) in prom_getparent()
62 cnode = prom_node_to_node("parent", node); in prom_getparent()
[all …]
/arch/x86/platform/olpc/
Dolpc_dt.c22 static phandle __init olpc_dt_getsibling(phandle node) in olpc_dt_getsibling() argument
24 const void *args[] = { (void *)node }; in olpc_dt_getsibling()
25 void *res[] = { &node }; in olpc_dt_getsibling()
27 if ((s32)node == -1) in olpc_dt_getsibling()
30 if (olpc_ofw("peer", args, res) || (s32)node == -1) in olpc_dt_getsibling()
33 return node; in olpc_dt_getsibling()
36 static phandle __init olpc_dt_getchild(phandle node) in olpc_dt_getchild() argument
38 const void *args[] = { (void *)node }; in olpc_dt_getchild()
39 void *res[] = { &node }; in olpc_dt_getchild()
41 if ((s32)node == -1) in olpc_dt_getchild()
[all …]
/arch/powerpc/kernel/
Dsecure_boot.c24 struct device_node *node; in is_ppc_secureboot_enabled() local
28 node = get_ppc_fw_sb_node(); in is_ppc_secureboot_enabled()
29 enabled = of_property_read_bool(node, "os-secureboot-enforcing"); in is_ppc_secureboot_enabled()
30 of_node_put(node); in is_ppc_secureboot_enabled()
35 node = of_find_node_by_path("/"); in is_ppc_secureboot_enabled()
36 if (!of_property_read_u32(node, "ibm,secure-boot", &secureboot)) in is_ppc_secureboot_enabled()
38 of_node_put(node); in is_ppc_secureboot_enabled()
48 struct device_node *node; in is_ppc_trustedboot_enabled() local
52 node = get_ppc_fw_sb_node(); in is_ppc_trustedboot_enabled()
53 enabled = of_property_read_bool(node, "trusted-enabled"); in is_ppc_trustedboot_enabled()
[all …]
Dpci_of_scan.c117 static void of_pci_parse_addrs(struct device_node *node, struct pci_dev *dev) in of_pci_parse_addrs() argument
128 addrs = of_get_property(node, "assigned-addresses", &proplen); in of_pci_parse_addrs()
130 addrs = of_get_property(node, "reg", &proplen); in of_pci_parse_addrs()
175 struct pci_dev *of_create_pci_dev(struct device_node *node, in of_create_pci_dev() argument
185 of_node_get_device_type(node)); in of_create_pci_dev()
187 dev->dev.of_node = of_node_get(node); in of_create_pci_dev()
196 dev->vendor = get_int_prop(node, "vendor-id", 0xffff); in of_create_pci_dev()
197 dev->device = get_int_prop(node, "device-id", 0xffff); in of_create_pci_dev()
198 dev->subsystem_vendor = get_int_prop(node, "subsystem-vendor-id", 0); in of_create_pci_dev()
199 dev->subsystem_device = get_int_prop(node, "subsystem-id", 0); in of_create_pci_dev()
[all …]
/arch/sparc/kernel/
Dauxio_32.c31 phandle node, auxio_nd; in auxio_probe() local
42 node = prom_getchild(prom_root_node); in auxio_probe()
43 auxio_nd = prom_searchsiblings(node, "auxiliary-io"); in auxio_probe()
45 node = prom_searchsiblings(node, "obio"); in auxio_probe()
46 node = prom_getchild(node); in auxio_probe()
47 auxio_nd = prom_searchsiblings(node, "auxio"); in auxio_probe()
53 if(prom_searchsiblings(node, "leds")) { in auxio_probe()
114 phandle node; in auxio_power_probe() local
118 node = prom_getchild(prom_root_node); in auxio_power_probe()
119 node = prom_searchsiblings(node, "obio"); in auxio_power_probe()
[all …]
Dcpumap.c188 struct cpuinfo_node *node; in build_cpuinfo_tree() local
211 node = &new_tree->nodes[n]; in build_cpuinfo_tree()
218 node->id = id; in build_cpuinfo_tree()
219 node->level = level; in build_cpuinfo_tree()
220 node->num_cpus = 1; in build_cpuinfo_tree()
222 node->parent_index = (level > CPUINFO_LVL_ROOT) in build_cpuinfo_tree()
225 node->child_start = node->child_end = node->rover = in build_cpuinfo_tree()
229 prev_id[level] = node->id; in build_cpuinfo_tree()
252 node = &new_tree->nodes[level_rover[level]]; in build_cpuinfo_tree()
253 node->num_cpus = num_cpus[level]; in build_cpuinfo_tree()
[all …]
/arch/arm/boot/dts/nxp/imx/
Dimx6ulz.dtsi22 /delete-node/ &adc1;
23 /delete-node/ &ecspi3;
24 /delete-node/ &ecspi4;
25 /delete-node/ &epit2;
26 /delete-node/ &gpt2;
27 /delete-node/ &i2c3;
28 /delete-node/ &i2c4;
29 /delete-node/ &pwm5;
30 /delete-node/ &pwm6;
31 /delete-node/ &pwm7;
[all …]
/arch/mips/loongson64/
Dnuma.c82 static void __init node_mem_init(unsigned int node) in node_mem_init() argument
87 node_addrspace_offset = nid_to_addrbase(node); in node_mem_init()
89 node, node_addrspace_offset); in node_mem_init()
91 get_pfn_range_for_nid(node, &start_pfn, &end_pfn); in node_mem_init()
93 node, start_pfn, end_pfn); in node_mem_init()
95 alloc_node_data(node); in node_mem_init()
97 NODE_DATA(node)->node_start_pfn = start_pfn; in node_mem_init()
98 NODE_DATA(node)->node_spanned_pages = end_pfn - start_pfn; in node_mem_init()
100 if (node == 0) { in node_mem_init()
128 unsigned int node, cpu, active_cpu = 0; in prom_meminit() local
[all …]
/arch/x86/kernel/
Dkdebugfs.c32 struct setup_data_node *node = file->private_data; in setup_data_read() local
41 if (pos >= node->len) in setup_data_read()
44 if (count > node->len - pos) in setup_data_read()
45 count = node->len - pos; in setup_data_read()
47 pa = node->paddr + pos; in setup_data_read()
50 if (!(node->type & SETUP_INDIRECT) || node->type == SETUP_INDIRECT) in setup_data_read()
77 struct setup_data_node *node) in create_setup_data_node() argument
85 debugfs_create_x32("type", S_IRUGO, d, &node->type); in create_setup_data_node()
86 debugfs_create_file("data", S_IRUGO, d, node, &fops_setup_data); in create_setup_data_node()
92 struct setup_data_node *node; in create_setup_data_nodes() local
[all …]
/arch/powerpc/sysdev/
Dfsl_soc.c87 struct device_node *node; in get_brgfreq() local
92 node = of_find_compatible_node(NULL, NULL, "fsl,cpm-brg"); in get_brgfreq()
93 if (node) { in get_brgfreq()
94 of_property_read_u32(node, "clock-frequency", &brgfreq); in get_brgfreq()
95 of_node_put(node); in get_brgfreq()
100 node = of_find_node_by_type(NULL, "cpm"); in get_brgfreq()
101 if (!node) in get_brgfreq()
102 node = of_find_compatible_node(NULL, NULL, "fsl,qe"); in get_brgfreq()
103 if (!node) in get_brgfreq()
104 node = of_find_node_by_type(NULL, "qe"); in get_brgfreq()
[all …]
/arch/powerpc/platforms/cell/spufs/
Dsched.c139 int node; in spu_update_sched_info() local
142 node = ctx->spu->node; in spu_update_sched_info()
147 mutex_lock(&cbe_spu_info[node].list_mutex); in spu_update_sched_info()
149 mutex_unlock(&cbe_spu_info[node].list_mutex); in spu_update_sched_info()
155 static int __node_allowed(struct spu_context *ctx, int node) in __node_allowed() argument
157 if (nr_cpus_node(node)) { in __node_allowed()
158 const struct cpumask *mask = cpumask_of_node(node); in __node_allowed()
167 static int node_allowed(struct spu_context *ctx, int node) in node_allowed() argument
172 rval = __node_allowed(ctx, node); in node_allowed()
180 int node; in do_notify_spus_active() local
[all …]
/arch/x86/kernel/cpu/mce/
Dgenpool.c34 struct mce_evt_llist *node; in is_duplicate_mce_record() local
39 llist_for_each_entry(node, &l->llnode, llnode) { in is_duplicate_mce_record()
40 m2 = &node->mce; in is_duplicate_mce_record()
59 struct mce_evt_llist *node, *t; in mce_gen_pool_prepare_records() local
66 llist_for_each_entry_safe(node, t, head, llnode) { in mce_gen_pool_prepare_records()
67 if (!is_duplicate_mce_record(node, t)) in mce_gen_pool_prepare_records()
68 llist_add(&node->llnode, &new_head); in mce_gen_pool_prepare_records()
77 struct mce_evt_llist *node, *tmp; in mce_gen_pool_process() local
85 llist_for_each_entry_safe(node, tmp, head, llnode) { in mce_gen_pool_process()
86 mce = &node->mce; in mce_gen_pool_process()
[all …]
/arch/x86/mm/
Dsrat.c30 int pxm, node; in acpi_numa_x2apic_affinity_init() local
47 node = acpi_map_pxm_to_node(pxm); in acpi_numa_x2apic_affinity_init()
48 if (node < 0) { in acpi_numa_x2apic_affinity_init()
55 …NFO "SRAT: PXM %u -> APIC 0x%04x -> Node %u skipped apicid that is too big\n", pxm, apic_id, node); in acpi_numa_x2apic_affinity_init()
58 set_apicid_to_node(apic_id, node); in acpi_numa_x2apic_affinity_init()
59 node_set(node, numa_nodes_parsed); in acpi_numa_x2apic_affinity_init()
60 pr_debug("SRAT: PXM %u -> APIC 0x%04x -> Node %u\n", pxm, apic_id, node); in acpi_numa_x2apic_affinity_init()
67 int pxm, node; in acpi_numa_processor_affinity_init() local
81 node = acpi_map_pxm_to_node(pxm); in acpi_numa_processor_affinity_init()
82 if (node < 0) { in acpi_numa_processor_affinity_init()
[all …]
Dnuma.c68 void numa_set_node(int cpu, int node) in numa_set_node() argument
74 cpu_to_node_map[cpu] = node; in numa_set_node()
85 per_cpu(x86_cpu_to_node_map, cpu) = node; in numa_set_node()
87 set_cpu_numa_node(cpu, node); in numa_set_node()
104 unsigned int node; in setup_node_to_cpumask_map() local
111 for (node = 0; node < nr_node_ids; node++) in setup_node_to_cpumask_map()
112 alloc_bootmem_cpumask_var(&node_to_cpumask_map[node]); in setup_node_to_cpumask_map()
295 int node = numa_cpu_node(cpu); in init_cpu_to_node() local
297 if (node == NUMA_NO_NODE) in init_cpu_to_node()
309 if (!node_online(node)) in init_cpu_to_node()
[all …]
/arch/arm/mach-rockchip/
Dplatsmp.c166 static int __init rockchip_smp_prepare_sram(struct device_node *node) in rockchip_smp_prepare_sram() argument
174 ret = of_address_to_resource(node, 0, &res); in rockchip_smp_prepare_sram()
177 __func__, node); in rockchip_smp_prepare_sram()
210 struct device_node *node; in rockchip_smp_prepare_pmu() local
219 node = of_find_node_by_path("/cpus"); in rockchip_smp_prepare_pmu()
221 pmu = syscon_regmap_lookup_by_phandle(node, "rockchip,pmu"); in rockchip_smp_prepare_pmu()
222 of_node_put(node); in rockchip_smp_prepare_pmu()
232 node = of_find_compatible_node(NULL, NULL, "rockchip,rk3066-pmu"); in rockchip_smp_prepare_pmu()
233 if (!node) { in rockchip_smp_prepare_pmu()
238 pmu_base = of_iomap(node, 0); in rockchip_smp_prepare_pmu()
[all …]
/arch/arm/mach-sunxi/
Dplatsmp.c42 struct device_node *node; in sun6i_smp_prepare_cpus() local
44 node = of_find_compatible_node(NULL, NULL, "allwinner,sun6i-a31-prcm"); in sun6i_smp_prepare_cpus()
45 if (!node) { in sun6i_smp_prepare_cpus()
50 prcm_membase = of_iomap(node, 0); in sun6i_smp_prepare_cpus()
51 of_node_put(node); in sun6i_smp_prepare_cpus()
57 node = of_find_compatible_node(NULL, NULL, in sun6i_smp_prepare_cpus()
59 if (!node) { in sun6i_smp_prepare_cpus()
64 cpucfg_membase = of_iomap(node, 0); in sun6i_smp_prepare_cpus()
65 of_node_put(node); in sun6i_smp_prepare_cpus()
127 struct device_node *node; in sun8i_smp_prepare_cpus() local
[all …]
/arch/riscv/kernel/pi/
Dfdt_early.c11 int node, len; in get_kaslr_seed() local
15 node = fdt_path_offset((void *)dtb_pa, "/chosen"); in get_kaslr_seed()
16 if (node < 0) in get_kaslr_seed()
19 prop = fdt_getprop_w((void *)dtb_pa, node, "kaslr-seed", &len); in get_kaslr_seed()
37 static bool fdt_device_is_available(const void *fdt, int node) in fdt_device_is_available() argument
42 status = fdt_getprop(fdt, node, "status", &statlen); in fdt_device_is_available()
137 static bool early_cpu_isa_ext_available(const void *fdt, int node, const char *ext_name) in early_cpu_isa_ext_available() argument
142 prop = fdt_getprop(fdt, node, "riscv,isa-extensions", &len); in early_cpu_isa_ext_available()
146 prop = fdt_getprop(fdt, node, "riscv,isa", &len); in early_cpu_isa_ext_available()
164 int node, parent; in fdt_early_match_extension_isa() local
[all …]
/arch/alpha/kernel/
Dgct.c14 gct6_find_nodes(gct6_node *node, gct6_search_struct *search) in gct6_find_nodes() argument
20 if (node->magic != GCT_NODE_MAGIC) { in gct6_find_nodes()
29 if (node->type != wanted->type) in gct6_find_nodes()
31 if (node->subtype != wanted->subtype) in gct6_find_nodes()
36 wanted->callout(node); in gct6_find_nodes()
40 if (node->next) in gct6_find_nodes()
41 status |= gct6_find_nodes(GCT_NODE_PTR(node->next), search); in gct6_find_nodes()
44 if (node->child) in gct6_find_nodes()
45 status |= gct6_find_nodes(GCT_NODE_PTR(node->child), search); in gct6_find_nodes()
/arch/powerpc/boot/
Dsimpleboot.c30 int node, size, i; in platform_init() local
37 node = fdt_path_offset(_dtb_start, "/"); in platform_init()
38 if (node < 0) in platform_init()
40 na = fdt_getprop(_dtb_start, node, "#address-cells", &size); in platform_init()
43 ns = fdt_getprop(_dtb_start, node, "#size-cells", &size); in platform_init()
48 node = fdt_node_offset_by_prop_value(_dtb_start, -1, "device_type", in platform_init()
50 if (node < 0) in platform_init()
52 reg = fdt_getprop(_dtb_start, node, "reg", &size); in platform_init()
69 node = fdt_node_offset_by_prop_value(_dtb_start, -1, "device_type", in platform_init()
71 if (!node) in platform_init()
[all …]
/arch/s390/lib/
Dspinlock.c62 struct spin_wait *node; in arch_spin_lock_setup() local
65 node = per_cpu_ptr(&spin_wait[0], cpu); in arch_spin_lock_setup()
66 for (ix = 0; ix < 4; ix++, node++) { in arch_spin_lock_setup()
67 memset(node, 0, sizeof(*node)); in arch_spin_lock_setup()
68 node->node_id = ((cpu + 1) << _Q_TAIL_CPU_OFFSET) + in arch_spin_lock_setup()
106 static inline int arch_spin_yield_target(int lock, struct spin_wait *node) in arch_spin_yield_target() argument
110 if (node == NULL || node->prev == NULL) in arch_spin_yield_target()
112 while (node->prev) in arch_spin_yield_target()
113 node = node->prev; in arch_spin_yield_target()
114 return node->node_id >> _Q_TAIL_CPU_OFFSET; in arch_spin_yield_target()
[all …]
/arch/x86/kernel/cpu/
Dhygon.c29 int i, node; in nearby_node() local
32 node = __apicid_to_node[i]; in nearby_node()
33 if (node != NUMA_NO_NODE && node_online(node)) in nearby_node()
34 return node; in nearby_node()
37 node = __apicid_to_node[i]; in nearby_node()
38 if (node != NUMA_NO_NODE && node_online(node)) in nearby_node()
39 return node; in nearby_node()
49 int node; in srat_detect_node() local
52 node = numa_cpu_node(cpu); in srat_detect_node()
53 if (node == NUMA_NO_NODE) in srat_detect_node()
[all …]
/arch/x86/events/intel/
Duncore_discovery.c36 int node = pcibus_to_node(dev->bus); in get_device_die_id() local
43 if (node < 0) in get_device_die_id()
50 rb_entry((cur), struct intel_uncore_discovery_type, node)
68 struct rb_node *node = rb_find(&type_id, &discovery_tables, __type_cmp); in search_uncore_discovery_type() local
70 return (node) ? __node_2_type(node) : NULL; in search_uncore_discovery_type()
98 rb_add(&type->node, &discovery_tables, __type_less); in add_uncore_discovery_type()
120 unit = rb_entry(b, struct intel_uncore_discovery_unit, node); in pmu_idx_cmp()
143 unit = rb_entry(pos, struct intel_uncore_discovery_unit, node); in intel_uncore_find_discovery_unit()
149 unit = rb_entry(pos, struct intel_uncore_discovery_unit, node); in intel_uncore_find_discovery_unit()
177 a_node = rb_entry(a, struct intel_uncore_discovery_unit, node); in unit_less()
[all …]
/arch/powerpc/kexec/
Dcore.c212 static void __init export_crashk_values(struct device_node *node) in export_crashk_values() argument
216 of_remove_property(node, of_find_property(node, in export_crashk_values()
218 of_remove_property(node, of_find_property(node, in export_crashk_values()
223 of_add_property(node, &crashk_base_prop); in export_crashk_values()
225 of_add_property(node, &crashk_size_prop); in export_crashk_values()
233 of_update_property(node, &memory_limit_prop); in export_crashk_values()
238 struct device_node *node; in kexec_setup() local
240 node = of_find_node_by_path("/chosen"); in kexec_setup()
241 if (!node) in kexec_setup()
245 of_remove_property(node, of_find_property(node, kernel_end_prop.name, NULL)); in kexec_setup()
[all …]
/arch/arm64/mm/
Dkasan_init.c35 static phys_addr_t __init kasan_alloc_zeroed_page(int node) in kasan_alloc_zeroed_page() argument
39 MEMBLOCK_ALLOC_NOLEAKTRACE, node); in kasan_alloc_zeroed_page()
42 __func__, PAGE_SIZE, PAGE_SIZE, node, in kasan_alloc_zeroed_page()
48 static phys_addr_t __init kasan_alloc_raw_page(int node) in kasan_alloc_raw_page() argument
53 node); in kasan_alloc_raw_page()
56 __func__, PAGE_SIZE, PAGE_SIZE, node, in kasan_alloc_raw_page()
62 static pte_t *__init kasan_pte_offset(pmd_t *pmdp, unsigned long addr, int node, in kasan_pte_offset() argument
68 : kasan_alloc_zeroed_page(node); in kasan_pte_offset()
76 static pmd_t *__init kasan_pmd_offset(pud_t *pudp, unsigned long addr, int node, in kasan_pmd_offset() argument
82 : kasan_alloc_zeroed_page(node); in kasan_pmd_offset()
[all …]

12345678910>>...29