Lines Matching refs:devpath

104 	struct device_path devpath;	/* device path in parisc representation */  member
154 struct device_path *devpath; in pdcspath_fetch() local
159 devpath = &entry->devpath; in pdcspath_fetch()
162 entry, devpath, entry->addr); in pdcspath_fetch()
165 if (pdc_stable_read(entry->addr, devpath, sizeof(*devpath)) != PDC_OK) in pdcspath_fetch()
171 entry->dev = hwpath_to_device((struct hardware_path *)devpath); in pdcspath_fetch()
195 struct device_path *devpath; in pdcspath_store() local
199 devpath = &entry->devpath; in pdcspath_store()
207 device_to_hwpath(entry->dev, (struct hardware_path *)devpath); in pdcspath_store()
212 entry, devpath, entry->addr); in pdcspath_store()
215 if (pdc_stable_write(entry->addr, devpath, sizeof(*devpath)) != PDC_OK) in pdcspath_store()
237 struct device_path *devpath; in pdcspath_hwpath_read() local
244 devpath = &entry->devpath; in pdcspath_hwpath_read()
252 if (devpath->bc[i] >= 128) in pdcspath_hwpath_read()
254 out += sprintf(out, "%u/", (unsigned char)devpath->bc[i]); in pdcspath_hwpath_read()
256 out += sprintf(out, "%u\n", (unsigned char)devpath->mod); in pdcspath_hwpath_read()
358 struct device_path *devpath; in pdcspath_layer_read() local
365 devpath = &entry->devpath; in pdcspath_layer_read()
372 for (i = 0; i < 6 && devpath->layers[i]; i++) in pdcspath_layer_read()
373 out += sprintf(out, "%u ", devpath->layers[i]); in pdcspath_layer_read()
429 memcpy(&entry->devpath.layers, &layers, sizeof(layers)); in pdcspath_layer_write()
562 out += sprintf(out, "%s\n", (pathentry->devpath.flags & knob) ? in pdcs_auto_read()
609 out += sprintf(out, "%u\n", (pathentry->devpath.flags & PF_TIMER) ? in pdcs_timer_read()
610 (1 << (pathentry->devpath.flags & PF_TIMER)) : 0); in pdcs_timer_read()
779 flags = pathentry->devpath.flags; in pdcs_auto_write()
800 pathentry->devpath.flags = flags; in pdcs_auto_write()