Lines Matching full:dt
57 struct display_timing *dt) in of_parse_display_timing() argument
62 memset(dt, 0, sizeof(*dt)); in of_parse_display_timing()
64 ret |= parse_timing_property(np, "hback-porch", &dt->hback_porch); in of_parse_display_timing()
65 ret |= parse_timing_property(np, "hfront-porch", &dt->hfront_porch); in of_parse_display_timing()
66 ret |= parse_timing_property(np, "hactive", &dt->hactive); in of_parse_display_timing()
67 ret |= parse_timing_property(np, "hsync-len", &dt->hsync_len); in of_parse_display_timing()
68 ret |= parse_timing_property(np, "vback-porch", &dt->vback_porch); in of_parse_display_timing()
69 ret |= parse_timing_property(np, "vfront-porch", &dt->vfront_porch); in of_parse_display_timing()
70 ret |= parse_timing_property(np, "vactive", &dt->vactive); in of_parse_display_timing()
71 ret |= parse_timing_property(np, "vsync-len", &dt->vsync_len); in of_parse_display_timing()
72 ret |= parse_timing_property(np, "clock-frequency", &dt->pixelclock); in of_parse_display_timing()
74 dt->flags = 0; in of_parse_display_timing()
76 dt->flags |= val ? DISPLAY_FLAGS_VSYNC_HIGH : in of_parse_display_timing()
79 dt->flags |= val ? DISPLAY_FLAGS_HSYNC_HIGH : in of_parse_display_timing()
82 dt->flags |= val ? DISPLAY_FLAGS_DE_HIGH : in of_parse_display_timing()
85 dt->flags |= val ? DISPLAY_FLAGS_PIXDATA_POSEDGE : in of_parse_display_timing()
89 dt->flags |= val ? DISPLAY_FLAGS_SYNC_POSEDGE : in of_parse_display_timing()
91 else if (dt->flags & (DISPLAY_FLAGS_PIXDATA_POSEDGE | in of_parse_display_timing()
93 dt->flags |= dt->flags & DISPLAY_FLAGS_PIXDATA_POSEDGE ? in of_parse_display_timing()
98 dt->flags |= DISPLAY_FLAGS_INTERLACED; in of_parse_display_timing()
100 dt->flags |= DISPLAY_FLAGS_DOUBLESCAN; in of_parse_display_timing()
102 dt->flags |= DISPLAY_FLAGS_DOUBLECLK; in of_parse_display_timing()
116 * @dt: display_timing struct to fill
119 struct display_timing *dt) in of_get_display_timing() argument
131 ret = of_parse_display_timing(timing_np, dt); in of_get_display_timing()
198 struct display_timing *dt; in of_get_display_timings() local
201 dt = kzalloc(sizeof(*dt), GFP_KERNEL); in of_get_display_timings()
202 if (!dt) { in of_get_display_timings()
208 r = of_parse_display_timing(entry, dt); in of_get_display_timings()
216 kfree(dt); in of_get_display_timings()
223 disp->timings[disp->num_timings] = dt; in of_get_display_timings()