Lines Matching refs:tmp_buf
66 static void __init sun4v_path_component(struct device_node *dp, char *tmp_buf) in sun4v_path_component() argument
79 sprintf(tmp_buf, "%s@%x,%x", in sun4v_path_component()
94 sprintf(tmp_buf, "%s@%s%x,%x", in sun4v_path_component()
98 sprintf(tmp_buf, "%s@%s%x", in sun4v_path_component()
103 sprintf(tmp_buf, "%s@%x", in sun4v_path_component()
108 static void __init sun4u_path_component(struct device_node *dp, char *tmp_buf) in sun4u_path_component() argument
120 sprintf(tmp_buf, "%s@%x,%x", in sun4u_path_component()
136 sprintf(tmp_buf, "%s@%x,%x", in sun4u_path_component()
144 static void __init sbus_path_component(struct device_node *dp, char *tmp_buf) in sbus_path_component() argument
155 sprintf(tmp_buf, "%s@%x,%x", in sbus_path_component()
162 static void __init pci_path_component(struct device_node *dp, char *tmp_buf) in pci_path_component() argument
176 sprintf(tmp_buf, "%s@%x,%x", in pci_path_component()
181 sprintf(tmp_buf, "%s@%x", in pci_path_component()
188 static void __init upa_path_component(struct device_node *dp, char *tmp_buf) in upa_path_component() argument
204 sprintf(tmp_buf, "%s@%x,%x", in upa_path_component()
211 static void __init vdev_path_component(struct device_node *dp, char *tmp_buf) in vdev_path_component() argument
223 sprintf(tmp_buf, "%s@%x", name, *regs); in vdev_path_component()
227 static void __init ebus_path_component(struct device_node *dp, char *tmp_buf) in ebus_path_component() argument
239 sprintf(tmp_buf, "%s@%x,%x", in ebus_path_component()
246 static void __init i2c_path_component(struct device_node *dp, char *tmp_buf) in i2c_path_component() argument
261 sprintf(tmp_buf, "%s@%x,%x", in i2c_path_component()
266 static void __init usb_path_component(struct device_node *dp, char *tmp_buf) in usb_path_component() argument
279 sprintf(tmp_buf, "%s@%x", in usb_path_component()
282 sprintf(tmp_buf, "%s@%x,%x", in usb_path_component()
288 static void __init ieee1394_path_component(struct device_node *dp, char *tmp_buf) in ieee1394_path_component() argument
301 sprintf(tmp_buf, "%s@%08x%08x,%04x%08x", in ieee1394_path_component()
304 sprintf(tmp_buf, "%s@%08x%08x", in ieee1394_path_component()
309 static void __init __build_path_component(struct device_node *dp, char *tmp_buf) in __build_path_component() argument
316 pci_path_component(dp, tmp_buf); in __build_path_component()
320 sbus_path_component(dp, tmp_buf); in __build_path_component()
324 upa_path_component(dp, tmp_buf); in __build_path_component()
328 ebus_path_component(dp, tmp_buf); in __build_path_component()
333 usb_path_component(dp, tmp_buf); in __build_path_component()
337 i2c_path_component(dp, tmp_buf); in __build_path_component()
341 ieee1394_path_component(dp, tmp_buf); in __build_path_component()
345 vdev_path_component(dp, tmp_buf); in __build_path_component()
353 sun4v_path_component(dp, tmp_buf); in __build_path_component()
356 sun4u_path_component(dp, tmp_buf); in __build_path_component()
363 char tmp_buf[64], *n; in build_path_component() local
365 tmp_buf[0] = '\0'; in build_path_component()
366 __build_path_component(dp, tmp_buf); in build_path_component()
367 if (tmp_buf[0] == '\0') in build_path_component()
368 strcpy(tmp_buf, name); in build_path_component()
370 n = prom_early_alloc(strlen(tmp_buf) + 1); in build_path_component()
371 strcpy(n, tmp_buf); in build_path_component()