Lines Matching refs:np

18  * @np: device_node with the property
26 static int parse_timing_property(const struct device_node *np, const char *name,
32 prop = of_find_property(np, name, &length);
35 of_node_full_name(np), name);
41 ret = of_property_read_u32(np, name, &result->typ);
45 ret = of_property_read_u32_array(np, name, &result->min, cells);
48 of_node_full_name(np), name);
57 * @np: device_node with the properties
59 static int of_parse_display_timing(const struct device_node *np,
67 ret |= parse_timing_property(np, "hback-porch", &dt->hback_porch);
68 ret |= parse_timing_property(np, "hfront-porch", &dt->hfront_porch);
69 ret |= parse_timing_property(np, "hactive", &dt->hactive);
70 ret |= parse_timing_property(np, "hsync-len", &dt->hsync_len);
71 ret |= parse_timing_property(np, "vback-porch", &dt->vback_porch);
72 ret |= parse_timing_property(np, "vfront-porch", &dt->vfront_porch);
73 ret |= parse_timing_property(np, "vactive", &dt->vactive);
74 ret |= parse_timing_property(np, "vsync-len", &dt->vsync_len);
75 ret |= parse_timing_property(np, "clock-frequency", &dt->pixelclock);
78 if (!of_property_read_u32(np, "vsync-active", &val))
81 if (!of_property_read_u32(np, "hsync-active", &val))
84 if (!of_property_read_u32(np, "de-active", &val))
87 if (!of_property_read_u32(np, "pixelclk-active", &val))
91 if (of_property_read_bool(np, "interlaced"))
93 if (of_property_read_bool(np, "doublescan"))
95 if (of_property_read_bool(np, "doubleclk"))
100 of_node_full_name(np));
109 * @np: device_node with the timing subnode
113 int of_get_display_timing(struct device_node *np, const char *name,
118 if (!np)
121 timing_np = of_get_child_by_name(np, name);
124 of_node_full_name(np), name);
134 * @np: device_node with the subnodes
136 struct display_timings *of_get_display_timings(struct device_node *np)
143 if (!np)
146 timings_np = of_get_child_by_name(np, "display-timings");
149 of_node_full_name(np));
156 of_node_full_name(np));
167 of_node_full_name(np));
172 of_node_full_name(np), entry->name);
179 pr_err("%s: no timings specified\n", of_node_full_name(np));
187 of_node_full_name(np));
201 of_node_full_name(np));
212 of_node_full_name(np), disp->num_timings + 1);
230 of_node_full_name(np), disp->num_timings,
249 * @np: device_node with the timing
251 int of_display_timings_exist(struct device_node *np)
255 if (!np)
258 timings_np = of_parse_phandle(np, "display-timings", 0);