Lines Matching refs:of_node
112 simplefb_read_u32_of(struct drm_device *dev, struct device_node *of_node,
115 int ret = of_property_read_u32(of_node, name, value);
124 simplefb_read_string_of(struct drm_device *dev, struct device_node *of_node,
127 int ret = of_property_read_string(of_node, name, value);
136 simplefb_get_width_of(struct drm_device *dev, struct device_node *of_node)
139 int ret = simplefb_read_u32_of(dev, of_node, "width", &width);
147 simplefb_get_height_of(struct drm_device *dev, struct device_node *of_node)
150 int ret = simplefb_read_u32_of(dev, of_node, "height", &height);
158 simplefb_get_stride_of(struct drm_device *dev, struct device_node *of_node)
161 int ret = simplefb_read_u32_of(dev, of_node, "stride", &stride);
169 simplefb_get_format_of(struct drm_device *dev, struct device_node *of_node)
172 int ret = simplefb_read_string_of(dev, of_node, "format", &format);
180 simplefb_get_memory_of(struct drm_device *dev, struct device_node *of_node)
186 np = of_parse_phandle(of_node, "memory-region", 0);
198 if (of_property_present(of_node, "reg"))
277 struct device_node *of_node = pdev->dev.of_node;
282 if (dev_get_platdata(&pdev->dev) || !of_node)
285 sdev->clk_count = of_clk_get_parent_count(of_node);
295 clock = of_clk_get(of_node, i);
375 struct device_node *of_node = pdev->dev.of_node;
382 if (dev_get_platdata(&pdev->dev) || !of_node)
386 for_each_property_of_node(of_node, prop) {
401 for_each_property_of_node(of_node, prop) {
497 sdev->pwr_dom_count = of_count_phandle_with_args(dev->of_node, "power-domains",
600 struct device_node *of_node = pdev->dev.of_node;
651 } else if (of_node) {
652 width = simplefb_get_width_of(dev, of_node);
655 height = simplefb_get_height_of(dev, of_node);
658 stride = simplefb_get_stride_of(dev, of_node);
661 format = simplefb_get_format_of(dev, of_node);
664 mem = simplefb_get_memory_of(dev, of_node);
667 panel_node = of_parse_phandle(of_node, "panel", 0);