Lines Matching refs:devpath
104 struct device_path devpath; /* device path in parisc representation */
154 struct device_path *devpath;
159 devpath = &entry->devpath;
162 entry, devpath, entry->addr);
164 /* addr, devpath and count must be word aligned */
165 if (pdc_stable_read(entry->addr, devpath, sizeof(*devpath)) != PDC_OK)
171 entry->dev = hwpath_to_device((struct hardware_path *)devpath);
184 * It can be used in two ways: either by passing it a preset devpath struct
195 struct device_path *devpath;
199 devpath = &entry->devpath;
207 device_to_hwpath(entry->dev, (struct hardware_path *)devpath);
212 entry, devpath, entry->addr);
214 /* addr, devpath and count must be word aligned */
215 if (pdc_stable_write(entry->addr, devpath, sizeof(*devpath)) != PDC_OK) {
239 struct device_path *devpath;
246 devpath = &entry->devpath;
254 if (devpath->bc[i] >= 128)
256 out += sprintf(out, "%u/", (unsigned char)devpath->bc[i]);
258 out += sprintf(out, "%u\n", (unsigned char)devpath->mod);
341 struct device_path *devpath;
348 devpath = &entry->devpath;
355 for (i = 0; devpath->layers[i] && (likely(i < 6)); i++)
356 out += sprintf(out, "%u ", devpath->layers[i]);
399 memcpy(&entry->devpath.layers, &layers, sizeof(layers));
532 out += sprintf(out, "%s\n", (pathentry->devpath.flags & knob) ?
582 out += sprintf(out, "%u\n", (pathentry->devpath.flags & PF_TIMER) ?
583 (1 << (pathentry->devpath.flags & PF_TIMER)) : 0);
756 flags = pathentry->devpath.flags;
780 pathentry->devpath.flags = flags;