Home
last modified time | relevance | path

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

12345678910>>...21

/arch/mips/include/asm/netlogic/xlp-hal/
Diomap.h50 #define XLP_IO_DEV(node, dev) ((dev) + (node) * 8) argument
53 #define XLP_HDR_OFFSET(node, bus, dev, fn) \ argument
54 XLP_IO_PCI_OFFSET(bus, XLP_IO_DEV(node, dev), fn)
56 #define XLP_IO_BRIDGE_OFFSET(node) XLP_HDR_OFFSET(node, 0, 0, 0) argument
58 #define XLP_IO_CIC0_OFFSET(node) XLP_HDR_OFFSET(node, 0, 0, 1) argument
59 #define XLP_IO_CIC1_OFFSET(node) XLP_HDR_OFFSET(node, 0, 0, 2) argument
60 #define XLP_IO_CIC2_OFFSET(node) XLP_HDR_OFFSET(node, 0, 0, 3) argument
61 #define XLP_IO_PIC_OFFSET(node) XLP_HDR_OFFSET(node, 0, 0, 4) argument
63 #define XLP_IO_PCIE_OFFSET(node, i) XLP_HDR_OFFSET(node, 0, 1, i) argument
64 #define XLP_IO_PCIE0_OFFSET(node) XLP_HDR_OFFSET(node, 0, 1, 0) argument
[all …]
/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/ia64/mm/
Ddiscontig.c55 #define NODEDATA_ALIGN(addr, node) \ argument
57 (((node)*PERCPU_PAGE_SIZE) & (MAX_NODE_ALIGN_OFFSET - 1)))
72 int node) in build_node_maps() argument
79 if (!mem_data[node].min_pfn) { in build_node_maps()
80 mem_data[node].min_pfn = spfn; in build_node_maps()
81 mem_data[node].max_pfn = epfn; in build_node_maps()
83 mem_data[node].min_pfn = min(spfn, mem_data[node].min_pfn); in build_node_maps()
84 mem_data[node].max_pfn = max(epfn, mem_data[node].max_pfn); in build_node_maps()
98 static int early_nr_cpus_node(int node) in early_nr_cpus_node() argument
103 if (node == node_cpuid[cpu].nid) in early_nr_cpus_node()
[all …]
/arch/x86/mm/
Dpat_rbtree.c39 static int is_node_overlap(struct memtype *node, u64 start, u64 end) in is_node_overlap() argument
41 if (node->start >= end || node->end <= start) in is_node_overlap()
47 static u64 get_subtree_max_end(struct rb_node *node) in get_subtree_max_end() argument
50 if (node) { in get_subtree_max_end()
51 struct memtype *data = rb_entry(node, struct memtype, rb); in get_subtree_max_end()
57 #define NODE_END(node) ((node)->end) argument
66 struct rb_node *node = root->rb_node; in RB_DECLARE_CALLBACKS_MAX() local
69 while (node) { in RB_DECLARE_CALLBACKS_MAX()
70 struct memtype *data = rb_entry(node, struct memtype, rb); in RB_DECLARE_CALLBACKS_MAX()
72 if (get_subtree_max_end(node->rb_left) > start) { in RB_DECLARE_CALLBACKS_MAX()
[all …]
Dsrat.c30 int pxm, node; in acpi_numa_x2apic_affinity_init() local
48 node = acpi_map_pxm_to_node(pxm); in acpi_numa_x2apic_affinity_init()
49 if (node < 0) { in acpi_numa_x2apic_affinity_init()
56 …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()
59 set_apicid_to_node(apic_id, node); in acpi_numa_x2apic_affinity_init()
60 node_set(node, numa_nodes_parsed); in acpi_numa_x2apic_affinity_init()
62 pxm, apic_id, node); in acpi_numa_x2apic_affinity_init()
69 int pxm, node; in acpi_numa_processor_affinity_init() local
83 node = acpi_map_pxm_to_node(pxm); in acpi_numa_processor_affinity_init()
84 if (node < 0) { in acpi_numa_processor_affinity_init()
[all …]
/arch/arm/boot/dts/
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/sparc/kernel/
Dauxio_32.c32 phandle node, auxio_nd; in auxio_probe() local
43 node = prom_getchild(prom_root_node); in auxio_probe()
44 auxio_nd = prom_searchsiblings(node, "auxiliary-io"); in auxio_probe()
46 node = prom_searchsiblings(node, "obio"); in auxio_probe()
47 node = prom_getchild(node); in auxio_probe()
48 auxio_nd = prom_searchsiblings(node, "auxio"); in auxio_probe()
54 if(prom_searchsiblings(node, "leds")) { in auxio_probe()
115 phandle node; in auxio_power_probe() local
119 node = prom_getchild(prom_root_node); in auxio_power_probe()
120 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/mips/netlogic/common/
Dirq.c81 struct nlm_soc_info *node; member
93 spin_lock_irqsave(&pd->node->piclock, flags); in xlp_pic_enable()
94 nlm_pic_enable_irt(pd->node->picbase, pd->irt); in xlp_pic_enable()
95 spin_unlock_irqrestore(&pd->node->piclock, flags); in xlp_pic_enable()
104 spin_lock_irqsave(&pd->node->piclock, flags); in xlp_pic_disable()
105 nlm_pic_disable_irt(pd->node->picbase, pd->irt); in xlp_pic_disable()
106 spin_unlock_irqrestore(&pd->node->piclock, flags); in xlp_pic_disable()
130 nlm_pic_ack(pd->node->picbase, pd->irt); in xlp_pic_unmask()
184 void nlm_setup_pic_irq(int node, int picirq, int irq, int irt) in nlm_setup_pic_irq() argument
189 xirq = nlm_irq_to_xirq(node, irq); in nlm_setup_pic_irq()
[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/mips/netlogic/xlp/
Dusb-init-xlp2.c87 #define nlm_xlpii_get_usb_pcibase(node, inst) \ argument
89 XLP9XX_IO_USB_OFFSET(node, inst) : \
90 XLP2XX_IO_USB_OFFSET(node, inst))
91 #define nlm_xlpii_get_usb_regbase(node, inst) \ argument
92 (nlm_xlpii_get_usb_pcibase(node, inst) + XLP_IO_PCI_HDRSZ)
118 int node, irq; in xlp9xx_usb_ack() local
122 node = data->irq / NLM_IRQS_PER_NODE; in xlp9xx_usb_ack()
126 port_addr = nlm_xlpii_get_usb_regbase(node, 1); in xlp9xx_usb_ack()
129 port_addr = nlm_xlpii_get_usb_regbase(node, 2); in xlp9xx_usb_ack()
132 port_addr = nlm_xlpii_get_usb_regbase(node, 3); in xlp9xx_usb_ack()
[all …]
/arch/powerpc/sysdev/
Dfsl_soc.c102 struct device_node *node; in get_brgfreq() local
107 node = of_find_compatible_node(NULL, NULL, "fsl,cpm-brg"); in get_brgfreq()
108 if (node) { in get_brgfreq()
109 of_property_read_u32(node, "clock-frequency", &brgfreq); in get_brgfreq()
110 of_node_put(node); in get_brgfreq()
115 node = of_find_node_by_type(NULL, "cpm"); in get_brgfreq()
116 if (!node) in get_brgfreq()
117 node = of_find_compatible_node(NULL, NULL, "fsl,qe"); in get_brgfreq()
118 if (!node) in get_brgfreq()
119 node = of_find_node_by_type(NULL, "qe"); in get_brgfreq()
[all …]
Dmpc5xxx_clocks.c15 unsigned long mpc5xxx_get_bus_frequency(struct device_node *node) in mpc5xxx_get_bus_frequency() argument
19 of_node_get(node); in mpc5xxx_get_bus_frequency()
20 while (node) { in mpc5xxx_get_bus_frequency()
21 p_bus_freq = of_get_property(node, "bus-frequency", NULL); in mpc5xxx_get_bus_frequency()
25 node = of_get_next_parent(node); in mpc5xxx_get_bus_frequency()
27 of_node_put(node); in mpc5xxx_get_bus_frequency()
/arch/alpha/include/asm/
Dtopology.h13 int node; in cpu_to_node() local
18 node = alpha_mv.cpuid_to_nid(cpu); in cpu_to_node()
21 BUG_ON(node < 0); in cpu_to_node()
24 return node; in cpu_to_node()
29 static const struct cpumask *cpumask_of_node(int node) in cpumask_of_node() argument
33 if (node == NUMA_NO_NODE) in cpumask_of_node()
36 cpumask_clear(&node_to_cpumask_map[node]); in cpumask_of_node()
39 if (cpu_to_node(cpu) == node) in cpumask_of_node()
40 cpumask_set_cpu(cpu, node_to_cpumask_map[node]); in cpumask_of_node()
43 return &node_to_cpumask_map[node]; in cpumask_of_node()
/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/mips/loongson64/loongson-3/
Dnuma.c119 static void __init szmem(unsigned int node) in szmem() argument
128 if (node_id != node) in szmem()
146 PFN_PHYS(end_pfn - start_pfn), node); in szmem()
158 PFN_PHYS(end_pfn - start_pfn), node); in szmem()
170 static void __init node_mem_init(unsigned int node) in node_mem_init() argument
175 node_addrspace_offset = nid_to_addroffset(node); in node_mem_init()
177 node, node_addrspace_offset); in node_mem_init()
179 get_pfn_range_for_nid(node, &start_pfn, &end_pfn); in node_mem_init()
181 node, start_pfn, end_pfn); in node_mem_init()
183 __node_data[node] = prealloc__node_data + node; in node_mem_init()
[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/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 + sizeof(struct setup_data) + pos; in setup_data_read()
72 struct setup_data_node *node) in create_setup_data_node() argument
80 debugfs_create_x32("type", S_IRUGO, d, &node->type); in create_setup_data_node()
81 debugfs_create_file("data", S_IRUGO, d, node, &fops_setup_data); in create_setup_data_node()
86 struct setup_data_node *node; in create_setup_data_nodes() local
98 node = kmalloc(sizeof(*node), GFP_KERNEL); in create_setup_data_nodes()
[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/arm/mach-sunxi/
Dplatsmp.c44 struct device_node *node; in sun6i_smp_prepare_cpus() local
46 node = of_find_compatible_node(NULL, NULL, "allwinner,sun6i-a31-prcm"); in sun6i_smp_prepare_cpus()
47 if (!node) { in sun6i_smp_prepare_cpus()
52 prcm_membase = of_iomap(node, 0); in sun6i_smp_prepare_cpus()
53 of_node_put(node); in sun6i_smp_prepare_cpus()
59 node = of_find_compatible_node(NULL, NULL, in sun6i_smp_prepare_cpus()
61 if (!node) { in sun6i_smp_prepare_cpus()
66 cpucfg_membase = of_iomap(node, 0); in sun6i_smp_prepare_cpus()
67 of_node_put(node); in sun6i_smp_prepare_cpus()
129 struct device_node *node; in sun8i_smp_prepare_cpus() local
[all …]
/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/arm/mach-exynos/
Dexynos.c41 struct device_node *node; in exynos_sysram_init() local
43 for_each_compatible_node(node, NULL, "samsung,exynos4210-sysram") { in exynos_sysram_init()
44 if (!of_device_is_available(node)) in exynos_sysram_init()
46 sysram_base_addr = of_iomap(node, 0); in exynos_sysram_init()
47 sysram_base_phys = of_translate_address(node, in exynos_sysram_init()
48 of_get_address(node, 0, NULL, NULL)); in exynos_sysram_init()
49 of_node_put(node); in exynos_sysram_init()
53 for_each_compatible_node(node, NULL, "samsung,exynos4210-sysram-ns") { in exynos_sysram_init()
54 if (!of_device_is_available(node)) in exynos_sysram_init()
56 sysram_ns_base_addr = of_iomap(node, 0); in exynos_sysram_init()
[all …]

12345678910>>...21