Lines Matching defs:tmp_buf
57 static void __init sparc32_path_component(struct device_node *dp, char *tmp_buf)
68 sprintf(tmp_buf, "%s@%x,%x",
74 static void __init sbus_path_component(struct device_node *dp, char *tmp_buf)
85 sprintf(tmp_buf, "%s@%x,%x",
92 static void __init pci_path_component(struct device_node *dp, char *tmp_buf)
106 sprintf(tmp_buf, "%s@%x,%x",
111 sprintf(tmp_buf, "%s@%x",
118 static void __init ebus_path_component(struct device_node *dp, char *tmp_buf)
130 sprintf(tmp_buf, "%s@%x,%x",
136 static void __init ambapp_path_component(struct device_node *dp, char *tmp_buf)
163 sprintf(tmp_buf, "%s@%x,%x", name, *intr, reg0);
166 static void __init __build_path_component(struct device_node *dp, char *tmp_buf)
173 return pci_path_component(dp, tmp_buf);
175 return sbus_path_component(dp, tmp_buf);
177 return ebus_path_component(dp, tmp_buf);
179 return ambapp_path_component(dp, tmp_buf);
185 return sparc32_path_component(dp, tmp_buf);
191 char tmp_buf[64], *n;
193 tmp_buf[0] = '\0';
194 __build_path_component(dp, tmp_buf);
195 if (tmp_buf[0] == '\0')
196 strcpy(tmp_buf, name);
198 n = prom_early_alloc(strlen(tmp_buf) + 1);
199 strcpy(n, tmp_buf);