Lines Matching defs:dev
20 static ssize_t dio_show_id(struct device *dev, struct device_attribute *attr, char *buf)
24 d = to_dio_dev(dev);
29 static ssize_t dio_show_ipl(struct device *dev, struct device_attribute *attr, char *buf)
33 d = to_dio_dev(dev);
38 static ssize_t dio_show_secid(struct device *dev, struct device_attribute *attr, char *buf)
42 d = to_dio_dev(dev);
47 static ssize_t dio_show_name(struct device *dev, struct device_attribute *attr, char *buf)
51 d = to_dio_dev(dev);
56 static ssize_t dio_show_resource(struct device *dev, struct device_attribute *attr, char *buf)
58 struct dio_dev *d = to_dio_dev(dev);
69 struct device *dev = &d->dev;
73 if ((error = device_create_file(dev, &dev_attr_id)) ||
74 (error = device_create_file(dev, &dev_attr_ipl)) ||
75 (error = device_create_file(dev, &dev_attr_secid)) ||
76 (error = device_create_file(dev, &dev_attr_name)) ||
77 (error = device_create_file(dev, &dev_attr_resource)))