Lines Matching refs:closure
1288 typedef void detailed_cb(struct detailed_timing *timing, void *closure);
1291 cea_for_each_detailed_block(u8 *ext, detailed_cb *cb, void *closure)
1299 cb((struct detailed_timing *)(det_base + 18 * i), closure);
1303 vtb_for_each_detailed_block(u8 *ext, detailed_cb *cb, void *closure)
1312 cb((struct detailed_timing *)(det_base + 18 * i), closure);
1316 drm_for_each_detailed_block(u8 *raw_edid, detailed_cb *cb, void *closure)
1325 cb(&(edid->detailed_timings[i]), closure);
1331 cea_for_each_detailed_block(ext, cb, closure);
1334 vtb_for_each_detailed_block(ext, cb, closure);
1900 struct detailed_mode_closure *closure = c;
1907 closure->modes += drm_dmt_modes_for_range(closure->connector,
1908 closure->edid,
1911 if (!version_greater(closure->edid, 1, 1))
1917 closure->modes += drm_gtf_modes_for_range(closure->connector,
1918 closure->edid,
1922 if (!version_greater(closure->edid, 1, 3))
1925 closure->modes += drm_cvt_modes_for_range(closure->connector,
1926 closure->edid,
1938 struct detailed_mode_closure closure = {
1944 &closure);
1946 return closure.modes;
1981 struct detailed_mode_closure *closure = c;
1985 closure->modes += drm_est3_modes(closure->connector, timing);
2003 struct detailed_mode_closure closure = {
2020 do_established_modes, &closure);
2022 return modes + closure.modes;
2028 struct detailed_mode_closure *closure = c;
2030 struct drm_connector *connector = closure->connector;
2031 struct edid *edid = closure->edid;
2044 closure->modes++;
2061 struct detailed_mode_closure closure = {
2079 &closure);
2083 return modes + closure.modes;
2138 struct detailed_mode_closure *closure = c;
2142 closure->modes += drm_cvt_modes(closure->connector, timing);
2148 struct detailed_mode_closure closure = {
2153 drm_for_each_detailed_block((u8 *)edid, do_cvt_mode, &closure);
2157 return closure.modes;
2163 struct detailed_mode_closure *closure = c;
2167 newmode = drm_mode_detailed(closure->connector->dev,
2168 closure->edid, timing,
2169 closure->quirks);
2173 if (closure->preferred)
2176 drm_mode_probed_add(closure->connector, newmode);
2177 closure->modes++;
2178 closure->preferred = 0;
2192 struct detailed_mode_closure closure = {
2200 if (closure.preferred && !version_greater(edid, 1, 3))
2201 closure.preferred =
2204 drm_for_each_detailed_block((u8 *)edid, do_detailed_mode, &closure);
2206 return closure.modes;