Lines Matching defs: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);
344 struct device_path *devpath;
351 devpath = &entry->devpath;
358 for (i = 0; i < 6 && devpath->layers[i]; i++)
359 out += sprintf(out, "%u ", devpath->layers[i]);
402 memcpy(&entry->devpath.layers, &layers, sizeof(layers));
535 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);
751 flags = pathentry->devpath.flags;
772 pathentry->devpath.flags = flags;