Lines Matching defs:devpath
107 char devpath[256];
139 n = snprintf(devpath, sizeof(devpath), "");
141 n = snprintf(devpath, sizeof(devpath), "pci@%x",
147 n = snprintf(devpath, sizeof(devpath), "pci%x,%x@%x,%x",
155 n = snprintf(devpath, sizeof(devpath), "%s@",
158 if (n > sizeof(devpath))
159 n = sizeof(devpath);
161 n += snprintf(devpath + n, sizeof(devpath) - n, "%x",
165 if (n > sizeof(devpath))
166 n = sizeof(devpath);
171 n += snprintf(devpath + n, sizeof(devpath) - n, ":");
173 n = snprintf(devpath, sizeof(devpath), "cdrom@");
175 n = snprintf(devpath, sizeof(devpath), "harddisk@");
177 n = snprintf(devpath, sizeof(devpath), "tape@");
179 n = snprintf(devpath, sizeof(devpath), "floppy@");
185 if (n > sizeof(devpath))
186 n = sizeof(devpath);
187 n += snprintf(devpath + n, sizeof(devpath) - n, "%d",
189 if (n > sizeof(devpath))
190 n = sizeof(devpath);
192 n += snprintf(devpath + n, sizeof(devpath) - n, ",%d",
198 if (n > sizeof(devpath))
199 n = sizeof(devpath);
200 n += snprintf(devpath + n, sizeof(devpath) - n, "%d",
203 if (n > sizeof(devpath))
204 n = sizeof(devpath);
206 n += snprintf(devpath + n, sizeof(devpath) - n, "%d",
210 device_setprop_string(dev, "prep-fw-path-component", devpath);
243 printf("%s devpath: %s+%s == %s\n", device_xname(dev),