Lines Matching refs:devpath

91 	struct device_path devpath;	/* device path in parisc representation */  member
141 struct device_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 device_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 device_path *devpath; in pdcspath_hwpath_read() local
231 devpath = &entry->devpath; in pdcspath_hwpath_read()
239 if (devpath->bc[i] >= 128) in pdcspath_hwpath_read()
241 out += sprintf(out, "%u/", (unsigned char)devpath->bc[i]); in pdcspath_hwpath_read()
243 out += sprintf(out, "%u\n", (unsigned char)devpath->mod); in pdcspath_hwpath_read()
345 struct device_path *devpath; in pdcspath_layer_read() local
352 devpath = &entry->devpath; in pdcspath_layer_read()
359 for (i = 0; i < 6 && devpath->layers[i]; i++) in pdcspath_layer_read()
360 out += sprintf(out, "%u ", devpath->layers[i]); in pdcspath_layer_read()
416 memcpy(&entry->devpath.layers, &layers, sizeof(layers)); in pdcspath_layer_write()
549 out += sprintf(out, "%s\n", (pathentry->devpath.flags & knob) ? in pdcs_auto_read()
596 out += sprintf(out, "%u\n", (pathentry->devpath.flags & PF_TIMER) ? in pdcs_timer_read()
597 (1 << (pathentry->devpath.flags & PF_TIMER)) : 0); in pdcs_timer_read()
766 flags = pathentry->devpath.flags; in pdcs_auto_write()
787 pathentry->devpath.flags = flags; in pdcs_auto_write()