Lines Matching defs:tmp_buf
62 static void __init sparc32_path_component(struct device_node *dp, char *tmp_buf)
72 sprintf(tmp_buf, "%s@%x,%x",
78 static void __init sbus_path_component(struct device_node *dp, char *tmp_buf)
88 sprintf(tmp_buf, "%s@%x,%x",
95 static void __init pci_path_component(struct device_node *dp, char *tmp_buf)
108 sprintf(tmp_buf, "%s@%x,%x",
113 sprintf(tmp_buf, "%s@%x",
120 static void __init ebus_path_component(struct device_node *dp, char *tmp_buf)
131 sprintf(tmp_buf, "%s@%x,%x",
137 static void __init ambapp_path_component(struct device_node *dp, char *tmp_buf)
160 sprintf(tmp_buf, "%s:%d:%d@%x,%x",
165 static void __init __build_path_component(struct device_node *dp, char *tmp_buf)
172 return pci_path_component(dp, tmp_buf);
174 return sbus_path_component(dp, tmp_buf);
176 return ebus_path_component(dp, tmp_buf);
178 return ambapp_path_component(dp, tmp_buf);
184 return sparc32_path_component(dp, tmp_buf);
189 char tmp_buf[64], *n;
191 tmp_buf[0] = '\0';
192 __build_path_component(dp, tmp_buf);
193 if (tmp_buf[0] == '\0')
194 strcpy(tmp_buf, dp->name);
196 n = prom_early_alloc(strlen(tmp_buf) + 1);
197 strcpy(n, tmp_buf);