Lines Matching refs:tmp_buf
73 static void __init sun4v_path_component(struct device_node *dp, char *tmp_buf) in sun4v_path_component() argument
85 sprintf(tmp_buf, "%s@%x,%x", in sun4v_path_component()
100 sprintf(tmp_buf, "%s@%s%x,%x", in sun4v_path_component()
104 sprintf(tmp_buf, "%s@%s%x", in sun4v_path_component()
109 sprintf(tmp_buf, "%s@%x", in sun4v_path_component()
114 static void __init sun4u_path_component(struct device_node *dp, char *tmp_buf) in sun4u_path_component() argument
125 sprintf(tmp_buf, "%s@%x,%x", in sun4u_path_component()
141 sprintf(tmp_buf, "%s@%x,%x", in sun4u_path_component()
149 static void __init sbus_path_component(struct device_node *dp, char *tmp_buf) in sbus_path_component() argument
159 sprintf(tmp_buf, "%s@%x,%x", in sbus_path_component()
166 static void __init pci_path_component(struct device_node *dp, char *tmp_buf) in pci_path_component() argument
179 sprintf(tmp_buf, "%s@%x,%x", in pci_path_component()
184 sprintf(tmp_buf, "%s@%x", in pci_path_component()
191 static void __init upa_path_component(struct device_node *dp, char *tmp_buf) in upa_path_component() argument
206 sprintf(tmp_buf, "%s@%x,%x", in upa_path_component()
213 static void __init vdev_path_component(struct device_node *dp, char *tmp_buf) in vdev_path_component() argument
224 sprintf(tmp_buf, "%s@%x", dp->name, *regs); in vdev_path_component()
228 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
260 sprintf(tmp_buf, "%s@%x,%x", in i2c_path_component()
265 static void __init usb_path_component(struct device_node *dp, char *tmp_buf) in usb_path_component() argument
277 sprintf(tmp_buf, "%s@%x", in usb_path_component()
280 sprintf(tmp_buf, "%s@%x,%x", in usb_path_component()
286 static void __init ieee1394_path_component(struct device_node *dp, char *tmp_buf) in ieee1394_path_component() argument
298 sprintf(tmp_buf, "%s@%08x%08x,%04x%08x", in ieee1394_path_component()
301 sprintf(tmp_buf, "%s@%08x%08x", in ieee1394_path_component()
306 static void __init __build_path_component(struct device_node *dp, char *tmp_buf) in __build_path_component() argument
313 pci_path_component(dp, tmp_buf); in __build_path_component()
317 sbus_path_component(dp, tmp_buf); in __build_path_component()
321 upa_path_component(dp, tmp_buf); in __build_path_component()
325 ebus_path_component(dp, tmp_buf); in __build_path_component()
330 usb_path_component(dp, tmp_buf); in __build_path_component()
334 i2c_path_component(dp, tmp_buf); in __build_path_component()
338 ieee1394_path_component(dp, tmp_buf); in __build_path_component()
342 vdev_path_component(dp, tmp_buf); in __build_path_component()
350 sun4v_path_component(dp, tmp_buf); in __build_path_component()
353 sun4u_path_component(dp, tmp_buf); in __build_path_component()
359 char tmp_buf[64], *n; in build_path_component() local
361 tmp_buf[0] = '\0'; in build_path_component()
362 __build_path_component(dp, tmp_buf); in build_path_component()
363 if (tmp_buf[0] == '\0') in build_path_component()
364 strcpy(tmp_buf, dp->name); in build_path_component()
366 n = prom_early_alloc(strlen(tmp_buf) + 1); in build_path_component()
367 strcpy(n, tmp_buf); in build_path_component()