Home
last modified time | relevance | path

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

12345678910>>...18

/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.c23 static phandle __prom_getchild(phandle node) in __prom_getchild() argument
29 cnode = prom_nodeops->no_child(node); in __prom_getchild()
39 phandle prom_getchild(phandle node) in prom_getchild() argument
43 if ((s32)node == -1) in prom_getchild()
46 cnode = __prom_getchild(node); in prom_getchild()
55 static phandle __prom_getsibling(phandle node) in __prom_getsibling() argument
61 cnode = prom_nodeops->no_nextnode(node); in __prom_getsibling()
71 phandle prom_getsibling(phandle node) in prom_getsibling() argument
75 if ((s32)node == -1) in prom_getsibling()
78 sibnode = __prom_getsibling(node); in prom_getsibling()
[all …]
Dtree_64.c19 static phandle prom_node_to_node(const char *type, phandle node) in prom_node_to_node() argument
26 args[3] = (unsigned int) node; in prom_node_to_node()
37 inline phandle __prom_getchild(phandle node) in __prom_getchild() argument
39 return prom_node_to_node("child", node); in __prom_getchild()
42 phandle prom_getchild(phandle node) in prom_getchild() argument
46 if ((s32)node == -1) in prom_getchild()
48 cnode = __prom_getchild(node); in prom_getchild()
55 inline phandle prom_getparent(phandle node) in prom_getparent() argument
59 if ((s32)node == -1) in prom_getparent()
61 cnode = prom_node_to_node("parent", node); in prom_getparent()
[all …]
/arch/ia64/mm/
Ddiscontig.c57 #define NODEDATA_ALIGN(addr, node) \ argument
59 (((node)*PERCPU_PAGE_SIZE) & (MAX_NODE_ALIGN_OFFSET - 1)))
75 int node) in build_node_maps() argument
78 struct bootmem_data *bdp = &bootmem_node_data[node]; in build_node_maps()
102 static int early_nr_cpus_node(int node) in early_nr_cpus_node() argument
107 if (node == node_cpuid[cpu].nid) in early_nr_cpus_node()
117 static unsigned long compute_pernodesize(int node) in compute_pernodesize() argument
121 cpus = early_nr_cpus_node(node); in compute_pernodesize()
123 pernodesize += node * L1_CACHE_BYTES; in compute_pernodesize()
140 static void *per_cpu_node_setup(void *cpu_data, int node) in per_cpu_node_setup() argument
[all …]
/arch/x86/platform/olpc/
Dolpc_dt.c27 static phandle __init olpc_dt_getsibling(phandle node) in olpc_dt_getsibling() argument
29 const void *args[] = { (void *)node }; in olpc_dt_getsibling()
30 void *res[] = { &node }; in olpc_dt_getsibling()
32 if ((s32)node == -1) in olpc_dt_getsibling()
35 if (olpc_ofw("peer", args, res) || (s32)node == -1) in olpc_dt_getsibling()
38 return node; in olpc_dt_getsibling()
41 static phandle __init olpc_dt_getchild(phandle node) in olpc_dt_getchild() argument
43 const void *args[] = { (void *)node }; in olpc_dt_getchild()
44 void *res[] = { &node }; in olpc_dt_getchild()
46 if ((s32)node == -1) in olpc_dt_getchild()
[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 = container_of(node, struct memtype, rb); in get_subtree_max_end()
79 struct rb_node *node = root->rb_node; in RB_DECLARE_CALLBACKS() local
82 while (node) { in RB_DECLARE_CALLBACKS()
83 struct memtype *data = container_of(node, struct memtype, rb); in RB_DECLARE_CALLBACKS()
85 if (get_subtree_max_end(node->rb_left) > start) { in RB_DECLARE_CALLBACKS()
87 node = node->rb_left; in RB_DECLARE_CALLBACKS()
[all …]
Dsrat.c76 int pxm, node; in acpi_numa_x2apic_affinity_init() local
94 node = setup_node(pxm); in acpi_numa_x2apic_affinity_init()
95 if (node < 0) { in acpi_numa_x2apic_affinity_init()
102 …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()
105 set_apicid_to_node(apic_id, node); in acpi_numa_x2apic_affinity_init()
106 node_set(node, numa_nodes_parsed); in acpi_numa_x2apic_affinity_init()
109 pxm, apic_id, node); in acpi_numa_x2apic_affinity_init()
116 int pxm, node; in acpi_numa_processor_affinity_init() local
130 node = setup_node(pxm); in acpi_numa_processor_affinity_init()
131 if (node < 0) { in acpi_numa_processor_affinity_init()
[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.c187 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/loongson64/loongson-3/
Dnuma.c124 static void __init szmem(unsigned int node) in szmem() argument
133 if (node_id != node) in szmem()
153 PFN_PHYS(end_pfn - start_pfn), node); in szmem()
167 PFN_PHYS(end_pfn - start_pfn), node); in szmem()
181 static void __init node_mem_init(unsigned int node) in node_mem_init() argument
187 node_addrspace_offset = nid_to_addroffset(node); in node_mem_init()
189 node, node_addrspace_offset); in node_mem_init()
191 get_pfn_range_for_nid(node, &start_pfn, &end_pfn); in node_mem_init()
193 if (node == 0) in node_mem_init()
196 node, start_pfn, end_pfn, freepfn); in node_mem_init()
[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/alpha/include/asm/
Dtopology.h11 int node; in cpu_to_node() local
16 node = alpha_mv.cpuid_to_nid(cpu); in cpu_to_node()
19 BUG_ON(node < 0); in cpu_to_node()
22 return node; in cpu_to_node()
27 static const struct cpumask *cpumask_of_node(int node) in cpumask_of_node() argument
31 if (node == -1) in cpumask_of_node()
34 cpumask_clear(&node_to_cpumask_map[node]); in cpumask_of_node()
37 if (cpu_to_node(cpu) == node) in cpumask_of_node()
38 cpumask_set_cpu(cpu, node_to_cpumask_map[node]); in cpumask_of_node()
41 return &node_to_cpumask_map[node]; in cpumask_of_node()
/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/platforms/cell/spufs/
Dsched.c151 int node; in spu_update_sched_info() local
154 node = ctx->spu->node; in spu_update_sched_info()
159 mutex_lock(&cbe_spu_info[node].list_mutex); in spu_update_sched_info()
161 mutex_unlock(&cbe_spu_info[node].list_mutex); in spu_update_sched_info()
167 static int __node_allowed(struct spu_context *ctx, int node) in __node_allowed() argument
169 if (nr_cpus_node(node)) { in __node_allowed()
170 const struct cpumask *mask = cpumask_of_node(node); in __node_allowed()
179 static int node_allowed(struct spu_context *ctx, int node) in node_allowed() argument
184 rval = __node_allowed(ctx, node); in node_allowed()
192 int node; in do_notify_spus_active() local
[all …]
/arch/powerpc/sysdev/
Dfsl_soc.c112 struct device_node *node; in get_brgfreq() local
119 node = of_find_compatible_node(NULL, NULL, "fsl,cpm-brg"); in get_brgfreq()
120 if (node) { in get_brgfreq()
121 prop = of_get_property(node, "clock-frequency", &size); in get_brgfreq()
125 of_node_put(node); in get_brgfreq()
130 node = of_find_node_by_type(NULL, "cpm"); in get_brgfreq()
131 if (!node) in get_brgfreq()
132 node = of_find_compatible_node(NULL, NULL, "fsl,qe"); in get_brgfreq()
133 if (!node) in get_brgfreq()
134 node = of_find_node_by_type(NULL, "qe"); in get_brgfreq()
[all …]
Dmpc5xxx_clocks.c14 unsigned long mpc5xxx_get_bus_frequency(struct device_node *node) in mpc5xxx_get_bus_frequency() argument
18 of_node_get(node); in mpc5xxx_get_bus_frequency()
19 while (node) { in mpc5xxx_get_bus_frequency()
20 p_bus_freq = of_get_property(node, "bus-frequency", NULL); in mpc5xxx_get_bus_frequency()
24 node = of_get_next_parent(node); in mpc5xxx_get_bus_frequency()
26 of_node_put(node); in mpc5xxx_get_bus_frequency()
/arch/alpha/kernel/
Dgct.c13 gct6_find_nodes(gct6_node *node, gct6_search_struct *search) in gct6_find_nodes() argument
19 if (node->magic != GCT_NODE_MAGIC) { in gct6_find_nodes()
28 if (node->type != wanted->type) in gct6_find_nodes()
30 if (node->subtype != wanted->subtype) in gct6_find_nodes()
35 wanted->callout(node); in gct6_find_nodes()
39 if (node->next) in gct6_find_nodes()
40 status |= gct6_find_nodes(GCT_NODE_PTR(node->next), search); in gct6_find_nodes()
43 if (node->child) in gct6_find_nodes()
44 status |= gct6_find_nodes(GCT_NODE_PTR(node->child), search); in gct6_find_nodes()
/arch/x86/kernel/cpu/mcheck/
Dmce-genpool.c32 struct mce_evt_llist *node, *tmp; in mce_gen_pool_process() local
40 llist_for_each_entry_safe(node, tmp, head, llnode) { in mce_gen_pool_process()
41 mce = &node->mce; in mce_gen_pool_process()
43 gen_pool_free(mce_evt_pool, (unsigned long)node, sizeof(*node)); in mce_gen_pool_process()
54 struct mce_evt_llist *node; in mce_gen_pool_add() local
59 node = (void *)gen_pool_alloc(mce_evt_pool, sizeof(*node)); in mce_gen_pool_add()
60 if (!node) { in mce_gen_pool_add()
65 memcpy(&node->mce, mce, sizeof(*mce)); in mce_gen_pool_add()
66 llist_add(&node->llnode, &mce_event_llist); in mce_gen_pool_add()
/arch/powerpc/boot/
Dsimpleboot.c33 int node, size, i; in platform_init() local
40 node = fdt_path_offset(_dtb_start, "/"); in platform_init()
41 if (node < 0) in platform_init()
43 na = fdt_getprop(_dtb_start, node, "#address-cells", &size); in platform_init()
46 ns = fdt_getprop(_dtb_start, node, "#size-cells", &size); in platform_init()
51 node = fdt_node_offset_by_prop_value(_dtb_start, -1, "device_type", in platform_init()
53 if (node < 0) in platform_init()
55 reg = fdt_getprop(_dtb_start, node, "reg", &size); in platform_init()
72 node = fdt_node_offset_by_prop_value(_dtb_start, -1, "device_type", in platform_init()
74 if (!node) in platform_init()
[all …]
Dcuboot-8xx.c25 void *node; in platform_fixups() local
31 node = finddevice("/soc/cpm"); in platform_fixups()
32 if (node) in platform_fixups()
33 setprop(node, "clock-frequency", &bd.bi_busfreq, 4); in platform_fixups()
35 node = finddevice("/soc/cpm/brg"); in platform_fixups()
36 if (node) in platform_fixups()
37 setprop(node, "clock-frequency", &bd.bi_busfreq, 4); in platform_fixups()
/arch/mips/sgi-ip27/
Dip27-memory.c265 static unsigned long __init slot_psize_compute(cnodeid_t node, int slot) in slot_psize_compute() argument
272 nasid = COMPACT_TO_NASID_NODEID(node); in slot_psize_compute()
358 cnodeid_t node; in szmem() local
360 for_each_online_node(node) { in szmem()
363 slot_psize = slot_psize_compute(node, slot); in szmem()
378 slot, node); in szmem()
382 memblock_add_node(PFN_PHYS(slot_getbasepfn(node, slot)), in szmem()
383 PFN_PHYS(slot_psize), node); in szmem()
388 static void __init node_mem_init(cnodeid_t node) in node_mem_init() argument
390 unsigned long slot_firstpfn = slot_getbasepfn(node, 0); in node_mem_init()
[all …]
/arch/powerpc/platforms/pasemi/
Dmisc.c34 static int __init find_i2c_driver(struct device_node *node, in find_i2c_driver() argument
40 if (!of_device_is_compatible(node, i2c_devices[i].of_device)) in find_i2c_driver()
54 struct device_node *node; in pasemi_register_i2c_devices() local
63 node = NULL; in pasemi_register_i2c_devices()
64 while ((node = of_get_next_child(adap_node, node))) { in pasemi_register_i2c_devices()
69 addr = of_get_property(node, "reg", &len); in pasemi_register_i2c_devices()
78 info.irq = irq_of_parse_and_map(node, 0); in pasemi_register_i2c_devices()
82 if (find_i2c_driver(node, &info) < 0) in pasemi_register_i2c_devices()
/arch/powerpc/kernel/
Dprom.c172 static void __init scan_features(unsigned long node, const unsigned char *ftrs, in scan_features() argument
211 static void __init check_cpu_pa_features(unsigned long node) in check_cpu_pa_features() argument
216 pa_ftrs = of_get_flat_dt_prop(node, "ibm,pa-features", &tablelen); in check_cpu_pa_features()
220 scan_features(node, pa_ftrs, tablelen, in check_cpu_pa_features()
225 static void __init init_mmu_slb_size(unsigned long node) in init_mmu_slb_size() argument
229 slb_size_ptr = of_get_flat_dt_prop(node, "slb-size", NULL) ? : in init_mmu_slb_size()
230 of_get_flat_dt_prop(node, "ibm,slb-size", NULL); in init_mmu_slb_size()
236 #define init_mmu_slb_size(node) do { } while(0) argument
261 static __init void identical_pvr_fixup(unsigned long node) in identical_pvr_fixup() argument
264 const char *model = of_get_flat_dt_prop(node, "model", NULL); in identical_pvr_fixup()
[all …]
/arch/m32r/include/asm/
Dmmzone.h38 int node; in pfn_to_nid() local
40 for (node = 0 ; node < MAX_NUMNODES ; node++) in pfn_to_nid()
41 if (pfn >= node_start_pfn(node) && pfn < node_end_pfn(node)) in pfn_to_nid()
44 return node; in pfn_to_nid()
/arch/x86/kernel/
Dkdebugfs.c33 struct setup_data_node *node = file->private_data; in setup_data_read() local
43 if (pos >= node->len) in setup_data_read()
46 if (count > node->len - pos) in setup_data_read()
47 count = node->len - pos; in setup_data_read()
49 pa = node->paddr + sizeof(struct setup_data) + pos; in setup_data_read()
79 struct setup_data_node *node) in create_setup_data_node() argument
89 type = debugfs_create_x32("type", S_IRUGO, d, &node->type); in create_setup_data_node()
93 data = debugfs_create_file("data", S_IRUGO, d, node, &fops_setup_data); in create_setup_data_node()
108 struct setup_data_node *node; in create_setup_data_nodes() local
123 node = kmalloc(sizeof(*node), GFP_KERNEL); in create_setup_data_nodes()
[all …]

12345678910>>...18