Lines Matching refs:of_node

123 simplefb_read_u32_of(struct drm_device *dev, struct device_node *of_node,
126 int ret = of_property_read_u32(of_node, name, value);
135 simplefb_read_string_of(struct drm_device *dev, struct device_node *of_node,
138 int ret = of_property_read_string(of_node, name, value);
147 simplefb_get_width_of(struct drm_device *dev, struct device_node *of_node)
150 int ret = simplefb_read_u32_of(dev, of_node, "width", &width);
158 simplefb_get_height_of(struct drm_device *dev, struct device_node *of_node)
161 int ret = simplefb_read_u32_of(dev, of_node, "height", &height);
169 simplefb_get_stride_of(struct drm_device *dev, struct device_node *of_node)
172 int ret = simplefb_read_u32_of(dev, of_node, "stride", &stride);
180 simplefb_get_format_of(struct drm_device *dev, struct device_node *of_node)
183 int ret = simplefb_read_string_of(dev, of_node, "format", &format);
191 simplefb_get_memory_of(struct drm_device *dev, struct device_node *of_node)
197 np = of_parse_phandle(of_node, "memory-region", 0);
209 if (of_property_present(of_node, "reg"))
302 struct device_node *of_node = pdev->dev.of_node;
307 if (dev_get_platdata(&pdev->dev) || !of_node)
310 sdev->clk_count = of_clk_get_parent_count(of_node);
320 clock = of_clk_get(of_node, i);
400 struct device_node *of_node = pdev->dev.of_node;
407 if (dev_get_platdata(&pdev->dev) || !of_node)
411 for_each_property_of_node(of_node, prop) {
426 for_each_property_of_node(of_node, prop) {
522 sdev->pwr_dom_count = of_count_phandle_with_args(dev->of_node, "power-domains",
780 struct device_node *of_node = pdev->dev.of_node;
829 } else if (of_node) {
830 width = simplefb_get_width_of(dev, of_node);
833 height = simplefb_get_height_of(dev, of_node);
836 stride = simplefb_get_stride_of(dev, of_node);
839 format = simplefb_get_format_of(dev, of_node);
842 mem = simplefb_get_memory_of(dev, of_node);
845 panel_node = of_parse_phandle(of_node, "panel", 0);