Lines Matching defs: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);
1898 struct detailed_mode_closure *closure = c;
1905 closure->modes += drm_dmt_modes_for_range(closure->connector,
1906 closure->edid,
1909 if (!version_greater(closure->edid, 1, 1))
1915 closure->modes += drm_gtf_modes_for_range(closure->connector,
1916 closure->edid,
1920 if (!version_greater(closure->edid, 1, 3))
1923 closure->modes += drm_cvt_modes_for_range(closure->connector,
1924 closure->edid,
1936 struct detailed_mode_closure closure = {
1942 &closure);
1944 return closure.modes;
1979 struct detailed_mode_closure *closure = c;
1983 closure->modes += drm_est3_modes(closure->connector, timing);
2001 struct detailed_mode_closure closure = {
2018 do_established_modes, &closure);
2020 return modes + closure.modes;
2026 struct detailed_mode_closure *closure = c;
2028 struct drm_connector *connector = closure->connector;
2029 struct edid *edid = closure->edid;
2042 closure->modes++;
2059 struct detailed_mode_closure closure = {
2077 &closure);
2081 return modes + closure.modes;
2136 struct detailed_mode_closure *closure = c;
2140 closure->modes += drm_cvt_modes(closure->connector, timing);
2146 struct detailed_mode_closure closure = {
2151 drm_for_each_detailed_block((u8 *)edid, do_cvt_mode, &closure);
2155 return closure.modes;
2161 struct detailed_mode_closure *closure = c;
2165 newmode = drm_mode_detailed(closure->connector->dev,
2166 closure->edid, timing,
2167 closure->quirks);
2171 if (closure->preferred)
2174 drm_mode_probed_add(closure->connector, newmode);
2175 closure->modes++;
2176 closure->preferred = 0;
2190 struct detailed_mode_closure closure = {
2198 if (closure.preferred && !version_greater(edid, 1, 3))
2199 closure.preferred =
2202 drm_for_each_detailed_block((u8 *)edid, do_detailed_mode, &closure);
2204 return closure.modes;