Lines Matching refs:check_offset
134 uint16_t offset = 0, check_offset; in combios_get_table_offset() local
142 check_offset = 0xc; in combios_get_table_offset()
145 check_offset = 0x14; in combios_get_table_offset()
148 check_offset = 0x2a; in combios_get_table_offset()
151 check_offset = 0x2c; in combios_get_table_offset()
154 check_offset = 0x2e; in combios_get_table_offset()
157 check_offset = 0x30; in combios_get_table_offset()
160 check_offset = 0x32; in combios_get_table_offset()
163 check_offset = 0x34; in combios_get_table_offset()
166 check_offset = 0x36; in combios_get_table_offset()
169 check_offset = 0x38; in combios_get_table_offset()
172 check_offset = 0x3e; in combios_get_table_offset()
175 check_offset = 0x40; in combios_get_table_offset()
178 check_offset = 0x42; in combios_get_table_offset()
181 check_offset = 0x46; in combios_get_table_offset()
184 check_offset = 0x48; in combios_get_table_offset()
187 check_offset = 0x4a; in combios_get_table_offset()
190 check_offset = 0x4c; in combios_get_table_offset()
193 check_offset = 0x4e; in combios_get_table_offset()
196 check_offset = 0x50; in combios_get_table_offset()
199 check_offset = 0x52; in combios_get_table_offset()
202 check_offset = 0x54; in combios_get_table_offset()
205 check_offset = 0x58; in combios_get_table_offset()
208 check_offset = 0x5a; in combios_get_table_offset()
211 check_offset = 0x5c; in combios_get_table_offset()
214 check_offset = 0x5e; in combios_get_table_offset()
217 check_offset = 0x60; in combios_get_table_offset()
220 check_offset = 0x62; in combios_get_table_offset()
223 check_offset = 0x64; in combios_get_table_offset()
226 check_offset = 0x66; in combios_get_table_offset()
229 check_offset = 0x68; in combios_get_table_offset()
232 check_offset = 0x6a; in combios_get_table_offset()
235 check_offset = 0x6c; in combios_get_table_offset()
238 check_offset = 0x6e; in combios_get_table_offset()
241 check_offset = 0x70; in combios_get_table_offset()
245 check_offset = in combios_get_table_offset()
247 if (check_offset) { in combios_get_table_offset()
248 rev = RBIOS8(check_offset); in combios_get_table_offset()
250 check_offset = RBIOS16(check_offset + 0x3); in combios_get_table_offset()
251 if (check_offset) in combios_get_table_offset()
252 offset = check_offset; in combios_get_table_offset()
257 check_offset = in combios_get_table_offset()
259 if (check_offset) { in combios_get_table_offset()
260 rev = RBIOS8(check_offset); in combios_get_table_offset()
262 check_offset = RBIOS16(check_offset + 0x5); in combios_get_table_offset()
263 if (check_offset) in combios_get_table_offset()
264 offset = check_offset; in combios_get_table_offset()
269 check_offset = in combios_get_table_offset()
271 if (check_offset) { in combios_get_table_offset()
272 rev = RBIOS8(check_offset); in combios_get_table_offset()
274 check_offset = RBIOS16(check_offset + 0x7); in combios_get_table_offset()
275 if (check_offset) in combios_get_table_offset()
276 offset = check_offset; in combios_get_table_offset()
281 check_offset = in combios_get_table_offset()
283 if (check_offset) { in combios_get_table_offset()
284 rev = RBIOS8(check_offset); in combios_get_table_offset()
286 check_offset = RBIOS16(check_offset + 0x9); in combios_get_table_offset()
287 if (check_offset) in combios_get_table_offset()
288 offset = check_offset; in combios_get_table_offset()
293 check_offset = in combios_get_table_offset()
295 if (check_offset) { in combios_get_table_offset()
296 while (RBIOS8(check_offset++)); in combios_get_table_offset()
297 check_offset += 2; in combios_get_table_offset()
298 if (check_offset) in combios_get_table_offset()
299 offset = check_offset; in combios_get_table_offset()
303 check_offset = in combios_get_table_offset()
305 if (check_offset) { in combios_get_table_offset()
306 check_offset = RBIOS16(check_offset + 0x11); in combios_get_table_offset()
307 if (check_offset) in combios_get_table_offset()
308 offset = check_offset; in combios_get_table_offset()
312 check_offset = in combios_get_table_offset()
314 if (check_offset) { in combios_get_table_offset()
315 check_offset = RBIOS16(check_offset + 0x13); in combios_get_table_offset()
316 if (check_offset) in combios_get_table_offset()
317 offset = check_offset; in combios_get_table_offset()
321 check_offset = in combios_get_table_offset()
323 if (check_offset) { in combios_get_table_offset()
324 check_offset = RBIOS16(check_offset + 0x15); in combios_get_table_offset()
325 if (check_offset) in combios_get_table_offset()
326 offset = check_offset; in combios_get_table_offset()
330 check_offset = in combios_get_table_offset()
332 if (check_offset) { in combios_get_table_offset()
333 check_offset = RBIOS16(check_offset + 0x17); in combios_get_table_offset()
334 if (check_offset) in combios_get_table_offset()
335 offset = check_offset; in combios_get_table_offset()
339 check_offset = in combios_get_table_offset()
341 if (check_offset) { in combios_get_table_offset()
342 check_offset = RBIOS16(check_offset + 0x2); in combios_get_table_offset()
343 if (check_offset) in combios_get_table_offset()
344 offset = check_offset; in combios_get_table_offset()
348 check_offset = in combios_get_table_offset()
350 if (check_offset) { in combios_get_table_offset()
351 check_offset = RBIOS16(check_offset + 0x4); in combios_get_table_offset()
352 if (check_offset) in combios_get_table_offset()
353 offset = check_offset; in combios_get_table_offset()
357 check_offset = 0; in combios_get_table_offset()
363 if (table < COMBIOS_ASIC_INIT_3_TABLE && check_offset && check_offset < size) in combios_get_table_offset()
364 offset = RBIOS16(rdev->bios_header_start + check_offset); in combios_get_table_offset()