Lines Matching refs:nasid
26 static void bridge_platform_create(nasid_t nasid, int widget, int masterwid) in bridge_platform_create() argument
35 offset = NODE_OFFSET(nasid); in bridge_platform_create()
39 pr_warn("xtalk:n%d/%x bridge create out of memory\n", nasid, widget); in bridge_platform_create()
54 pr_warn("xtalk:n%d/%x bridge create out of memory\n", nasid, widget); in bridge_platform_create()
58 pr_warn("xtalk:n%d/%x bridge failed to add platform resources.\n", nasid, widget); in bridge_platform_create()
62 pr_warn("xtalk:n%d/%x bridge failed to add platform data.\n", nasid, widget); in bridge_platform_create()
66 pr_warn("xtalk:n%d/%x bridge failed to add platform device.\n", nasid, widget); in bridge_platform_create()
74 pr_warn("xtalk:n%d/%x bridge create out of memory\n", nasid, widget); in bridge_platform_create()
79 pr_warn("xtalk:n%d/%x bridge create out of memory\n", nasid, widget); in bridge_platform_create()
84 bd->bridge_addr = RAW_NODE_SWIN_BASE(nasid, widget); in bridge_platform_create()
86 bd->nasid = nasid; in bridge_platform_create()
102 pr_warn("xtalk:n%d/%x bridge failed to add platform data.\n", nasid, widget); in bridge_platform_create()
106 pr_warn("xtalk:n%d/%x bridge failed to add platform device.\n", nasid, widget); in bridge_platform_create()
111 pr_info("xtalk:n%d/%x bridge widget\n", nasid, widget); in bridge_platform_create()
128 static int probe_one_port(nasid_t nasid, int widget, int masterwid) in probe_one_port() argument
134 (RAW_NODE_SWIN_BASE(nasid, widget) + WIDGET_ID); in probe_one_port()
140 bridge_platform_create(nasid, widget, masterwid); in probe_one_port()
144 nasid, widget, partnum); in probe_one_port()
151 static int xbow_probe(nasid_t nasid) in xbow_probe() argument
161 brd = find_lboard((lboard_t *)KL_CONFIG_INFO(nasid), KLTYPE_MIDPLANE8); in xbow_probe()
190 if (nasid != XBOW_PORT_NASID(xbow_p, i)) in xbow_probe()
196 probe_one_port(nasid, i, masterwid); in xbow_probe()
202 static void xtalk_probe_node(nasid_t nasid) in xtalk_probe_node() argument
208 hubreg = REMOTE_HUB_L(nasid, IIO_LLP_CSR); in xtalk_probe_node()
215 (RAW_NODE_SWIN_BASE(nasid, 0x0) + WIDGET_ID); in xtalk_probe_node()
220 bridge_platform_create(nasid, 0x8, 0xa); in xtalk_probe_node()
224 pr_info("xtalk:n%d/0 xbow widget\n", nasid); in xtalk_probe_node()
225 xbow_probe(nasid); in xtalk_probe_node()
228 pr_info("xtalk:n%d/0 unknown widget (0x%x)\n", nasid, partnum); in xtalk_probe_node()
235 nasid_t nasid; in xtalk_init() local
237 for_each_online_node(nasid) in xtalk_init()
238 xtalk_probe_node(nasid); in xtalk_init()