Lines Matching +full:col +full:- +full:offset

6  * Copyright (C) 2000, 05 by Ralf Baechle (ralf@linux-mips.org)
32 #include "ip27-common.h"
34 #define SLOT_PFNSHIFT (SLOT_SHIFT - PAGE_SHIFT)
35 #define PFN_NASIDSHFT (NASID_SHFT - PAGE_SHIFT)
64 if (router_a->rou_rflag == 1) in router_recurse()
70 router_a->rou_rflag = 1; in router_recurse()
73 if (router_a->rou_port[port].port_nasid == INVALID_NASID) in router_recurse()
77 router_a->rou_port[port].port_nasid, in router_recurse()
78 router_a->rou_port[port].port_offset); in router_recurse()
80 if (brd->brd_type == KLTYPE_ROUTER) { in router_recurse()
81 router = (klrou_t *)NODE_OFFSET_TO_K0(NASID_GET(brd), brd->brd_compts[0]); in router_recurse()
91 router_a->rou_rflag = 0; in router_recurse()
113 if (brd->brd_flags & DUPLICATE_BOARD) in compute_node_distance()
116 router = (klrou_t *)NODE_OFFSET_TO_K0(NASID_GET(brd), brd->brd_compts[0]); in compute_node_distance()
117 router->rou_rflag = 0; in compute_node_distance()
120 if (router->rou_port[port].port_nasid == INVALID_NASID) in compute_node_distance()
124 router->rou_port[port].port_nasid, in compute_node_distance()
125 router->rou_port[port].port_offset); in compute_node_distance()
127 if (dest_brd->brd_type == KLTYPE_IP27) { in compute_node_distance()
128 if (dest_brd->brd_nasid == nasid_a) in compute_node_distance()
130 if (dest_brd->brd_nasid == nasid_b) in compute_node_distance()
161 nasid_t row, col; in init_topology_matrix() local
164 for (col = 0; col < MAX_NUMNODES; col++) in init_topology_matrix()
165 __node_distances[row][col] = -1; in init_topology_matrix()
168 for_each_online_node(col) { in init_topology_matrix()
169 __node_distances[row][col] = in init_topology_matrix()
170 compute_node_distance(row, col); in init_topology_matrix()
182 nasid_t row, col; in dump_topology() local
187 for_each_online_node(col) in dump_topology()
188 pr_cont("%02d ", col); in dump_topology()
192 for_each_online_node(col) in dump_topology()
193 pr_cont("%2d ", node_distance(row, col)); in dump_topology()
205 if (brd->brd_flags & DUPLICATE_BOARD) in dump_topology()
210 router = (klrou_t *)NODE_OFFSET_TO_K0(NASID_GET(brd), brd->brd_compts[0]); in dump_topology()
213 if (router->rou_port[port].port_nasid == INVALID_NASID) in dump_topology()
217 router->rou_port[port].port_nasid, in dump_topology()
218 router->rou_port[port].port_offset); in dump_topology()
220 if (dest_brd->brd_type == KLTYPE_IP27) in dump_topology()
221 pr_cont(" %d", dest_brd->brd_nasid); in dump_topology()
222 if (dest_brd->brd_type == KLTYPE_ROUTER) in dump_topology()
253 size = (unsigned long)banks->membnk_bnksz[slot/4]; in slot_psize_compute()
277 * Probe for all CPUs - this creates the cpumask and sets up the in mlreset()
306 * widget 0. Memory mode, widget 0, offset 0 in mlreset()
363 node_data[node] = &__node_data[node]->pglist; in node_mem_init()
365 NODE_DATA(node)->node_start_pfn = start_pfn; in node_mem_init()
366 NODE_DATA(node)->node_spanned_pages = end_pfn - start_pfn; in node_mem_init()
368 cpumask_clear(&hub_data(node)->h_cpus); in node_mem_init()
374 ((slot_freepfn - slot_firstpfn) << PAGE_SHIFT)); in node_mem_init()