Lines Matching defs:dev
7 compatible_show (struct device *dev, struct device_attribute *attr, char *buf)
14 of = &to_macio_device (dev)->ofdev;
15 compat = of_get_property(of->dev.of_node, "compatible", &cplen);
33 static ssize_t modalias_show (struct device *dev, struct device_attribute *attr,
36 return of_device_modalias(dev, buf, PAGE_SIZE);
39 static ssize_t devspec_show(struct device *dev,
44 ofdev = to_platform_device(dev);
45 return sprintf(buf, "%pOF\n", ofdev->dev.of_node);
50 static ssize_t name_show(struct device *dev,
53 return sprintf(buf, "%pOFn\n", dev->of_node);
57 static ssize_t type_show(struct device *dev,
60 return sprintf(buf, "%s\n", of_node_get_device_type(dev->of_node));