Lines Matching refs:path
50 len = OF_package_to_path(node, dip->path, sizeof(dip->path));
52 DPRINTF("could not get path for disk node %x\n", node);
54 } else if (len >= sizeof(dip->path)) {
55 printf("disk device path too long: %s", dip->path);
58 dip->path[len] = '\0';
63 if (dip->path[i] == '/')
65 else if (dip->path[i] == '@') {
66 unit = &dip->path[i];
74 len = strlcat(dip->path, "@p0", sizeof(dip->path));
76 len = strlcat(dip->path, "@0", sizeof(dip->path));
77 if (len >= sizeof(dip->path)) {
78 printf("disk device path too long: %s", dip->path);
83 DPRINTF("found disk %s\n", dip->path);
85 ihandle = OF_open(dip->path);