Lines Matching full:disp
149 struct display_timings *disp; in of_get_display_timings() local
160 disp = kzalloc(sizeof(*disp), GFP_KERNEL); in of_get_display_timings()
161 if (!disp) { in of_get_display_timings()
162 pr_err("%pOF: could not allocate struct disp'\n", np); in of_get_display_timings()
180 disp->num_timings = of_get_child_count(timings_np); in of_get_display_timings()
181 if (disp->num_timings == 0) { in of_get_display_timings()
187 disp->timings = kcalloc(disp->num_timings, in of_get_display_timings()
190 if (!disp->timings) { in of_get_display_timings()
195 disp->num_timings = 0; in of_get_display_timings()
196 disp->native_mode = 0; in of_get_display_timings()
216 np, disp->num_timings + 1); in of_get_display_timings()
222 disp->native_mode = disp->num_timings; in of_get_display_timings()
224 disp->timings[disp->num_timings] = dt; in of_get_display_timings()
225 disp->num_timings++; in of_get_display_timings()
235 np, disp->num_timings, in of_get_display_timings()
236 disp->native_mode + 1); in of_get_display_timings()
238 return disp; in of_get_display_timings()
242 display_timings_release(disp); in of_get_display_timings()
243 disp = NULL; in of_get_display_timings()
245 kfree(disp); in of_get_display_timings()