Lines Matching refs:devpath
91 struct pdc_module_path devpath; /* device path in parisc representation */ member
141 struct pdc_module_path *devpath; in pdcspath_fetch() local
146 devpath = &entry->devpath; in pdcspath_fetch()
149 entry, devpath, entry->addr); in pdcspath_fetch()
152 if (pdc_stable_read(entry->addr, devpath, sizeof(*devpath)) != PDC_OK) in pdcspath_fetch()
158 entry->dev = hwpath_to_device((struct hardware_path *)devpath); in pdcspath_fetch()
182 struct pdc_module_path *devpath; in pdcspath_store() local
186 devpath = &entry->devpath; in pdcspath_store()
194 device_to_hwpath(entry->dev, (struct hardware_path *)devpath); in pdcspath_store()
199 entry, devpath, entry->addr); in pdcspath_store()
202 if (pdc_stable_write(entry->addr, devpath, sizeof(*devpath)) != PDC_OK) in pdcspath_store()
224 struct pdc_module_path *devpath; in pdcspath_hwpath_read() local
231 devpath = &entry->devpath; in pdcspath_hwpath_read()
239 if (devpath->path.bc[i] < 0) in pdcspath_hwpath_read()
241 out += sprintf(out, "%d/", devpath->path.bc[i]); in pdcspath_hwpath_read()
243 out += sprintf(out, "%u\n", (unsigned char)devpath->path.mod); in pdcspath_hwpath_read()
344 struct pdc_module_path *devpath; in pdcspath_layer_read() local
351 devpath = &entry->devpath; in pdcspath_layer_read()
358 for (i = 0; i < 6 && devpath->layers[i]; i++) in pdcspath_layer_read()
359 out += sprintf(out, "%u ", devpath->layers[i]); in pdcspath_layer_read()
414 memcpy(&entry->devpath.layers, &layers, sizeof(layers)); in pdcspath_layer_write()
552 out += sprintf(out, "%s\n", (pathentry->devpath.path.flags & knob) ? in pdcs_auto_read()
605 out += sprintf(out, "%u\n", (pathentry->devpath.path.flags & PF_TIMER) ? in pdcs_timer_read()
606 (1 << (pathentry->devpath.path.flags & PF_TIMER)) : 0); in pdcs_timer_read()
786 flags = pathentry->devpath.path.flags; in pdcs_auto_write()
807 pathentry->devpath.path.flags = flags; in pdcs_auto_write()