Lines Matching refs:dt

55  * @dt: display_timing that contains the result. I may be partially written in case of errors
58 struct display_timing *dt)
63 memset(dt, 0, sizeof(*dt));
65 ret |= parse_timing_property(np, "hback-porch", &dt->hback_porch);
66 ret |= parse_timing_property(np, "hfront-porch", &dt->hfront_porch);
67 ret |= parse_timing_property(np, "hactive", &dt->hactive);
68 ret |= parse_timing_property(np, "hsync-len", &dt->hsync_len);
69 ret |= parse_timing_property(np, "vback-porch", &dt->vback_porch);
70 ret |= parse_timing_property(np, "vfront-porch", &dt->vfront_porch);
71 ret |= parse_timing_property(np, "vactive", &dt->vactive);
72 ret |= parse_timing_property(np, "vsync-len", &dt->vsync_len);
73 ret |= parse_timing_property(np, "clock-frequency", &dt->pixelclock);
75 dt->flags = 0;
77 dt->flags |= val ? DISPLAY_FLAGS_VSYNC_HIGH :
80 dt->flags |= val ? DISPLAY_FLAGS_HSYNC_HIGH :
83 dt->flags |= val ? DISPLAY_FLAGS_DE_HIGH :
86 dt->flags |= val ? DISPLAY_FLAGS_PIXDATA_POSEDGE :
90 dt->flags |= val ? DISPLAY_FLAGS_SYNC_POSEDGE :
92 else if (dt->flags & (DISPLAY_FLAGS_PIXDATA_POSEDGE |
94 dt->flags |= dt->flags & DISPLAY_FLAGS_PIXDATA_POSEDGE ?
99 dt->flags |= DISPLAY_FLAGS_INTERLACED;
101 dt->flags |= DISPLAY_FLAGS_DOUBLESCAN;
103 dt->flags |= DISPLAY_FLAGS_DOUBLECLK;
117 * @dt: display_timing struct to fill
120 struct display_timing *dt)
132 ret = of_parse_display_timing(timing_np, dt);
199 struct display_timing *dt;
202 dt = kmalloc(sizeof(*dt), GFP_KERNEL);
203 if (!dt) {
209 r = of_parse_display_timing(entry, dt);
217 kfree(dt);
224 disp->timings[disp->num_timings] = dt;