Lines Matching refs:check_offset

135 	uint16_t offset = 0, check_offset;  in combios_get_table_offset()  local
143 check_offset = 0xc; in combios_get_table_offset()
146 check_offset = 0x14; in combios_get_table_offset()
149 check_offset = 0x2a; in combios_get_table_offset()
152 check_offset = 0x2c; in combios_get_table_offset()
155 check_offset = 0x2e; in combios_get_table_offset()
158 check_offset = 0x30; in combios_get_table_offset()
161 check_offset = 0x32; in combios_get_table_offset()
164 check_offset = 0x34; in combios_get_table_offset()
167 check_offset = 0x36; in combios_get_table_offset()
170 check_offset = 0x38; in combios_get_table_offset()
173 check_offset = 0x3e; in combios_get_table_offset()
176 check_offset = 0x40; in combios_get_table_offset()
179 check_offset = 0x42; in combios_get_table_offset()
182 check_offset = 0x46; in combios_get_table_offset()
185 check_offset = 0x48; in combios_get_table_offset()
188 check_offset = 0x4a; in combios_get_table_offset()
191 check_offset = 0x4c; in combios_get_table_offset()
194 check_offset = 0x4e; in combios_get_table_offset()
197 check_offset = 0x50; in combios_get_table_offset()
200 check_offset = 0x52; in combios_get_table_offset()
203 check_offset = 0x54; in combios_get_table_offset()
206 check_offset = 0x58; in combios_get_table_offset()
209 check_offset = 0x5a; in combios_get_table_offset()
212 check_offset = 0x5c; in combios_get_table_offset()
215 check_offset = 0x5e; in combios_get_table_offset()
218 check_offset = 0x60; in combios_get_table_offset()
221 check_offset = 0x62; in combios_get_table_offset()
224 check_offset = 0x64; in combios_get_table_offset()
227 check_offset = 0x66; in combios_get_table_offset()
230 check_offset = 0x68; in combios_get_table_offset()
233 check_offset = 0x6a; in combios_get_table_offset()
236 check_offset = 0x6c; in combios_get_table_offset()
239 check_offset = 0x6e; in combios_get_table_offset()
242 check_offset = 0x70; in combios_get_table_offset()
246 check_offset = in combios_get_table_offset()
248 if (check_offset) { in combios_get_table_offset()
249 rev = RBIOS8(check_offset); in combios_get_table_offset()
251 check_offset = RBIOS16(check_offset + 0x3); in combios_get_table_offset()
252 if (check_offset) in combios_get_table_offset()
253 offset = check_offset; in combios_get_table_offset()
258 check_offset = in combios_get_table_offset()
260 if (check_offset) { in combios_get_table_offset()
261 rev = RBIOS8(check_offset); in combios_get_table_offset()
263 check_offset = RBIOS16(check_offset + 0x5); in combios_get_table_offset()
264 if (check_offset) in combios_get_table_offset()
265 offset = check_offset; in combios_get_table_offset()
270 check_offset = in combios_get_table_offset()
272 if (check_offset) { in combios_get_table_offset()
273 rev = RBIOS8(check_offset); in combios_get_table_offset()
275 check_offset = RBIOS16(check_offset + 0x7); in combios_get_table_offset()
276 if (check_offset) in combios_get_table_offset()
277 offset = check_offset; in combios_get_table_offset()
282 check_offset = in combios_get_table_offset()
284 if (check_offset) { in combios_get_table_offset()
285 rev = RBIOS8(check_offset); in combios_get_table_offset()
287 check_offset = RBIOS16(check_offset + 0x9); in combios_get_table_offset()
288 if (check_offset) in combios_get_table_offset()
289 offset = check_offset; in combios_get_table_offset()
294 check_offset = in combios_get_table_offset()
296 if (check_offset) { in combios_get_table_offset()
297 while (RBIOS8(check_offset++)); in combios_get_table_offset()
298 check_offset += 2; in combios_get_table_offset()
299 if (check_offset) in combios_get_table_offset()
300 offset = check_offset; in combios_get_table_offset()
304 check_offset = in combios_get_table_offset()
306 if (check_offset) { in combios_get_table_offset()
307 check_offset = RBIOS16(check_offset + 0x11); in combios_get_table_offset()
308 if (check_offset) in combios_get_table_offset()
309 offset = check_offset; in combios_get_table_offset()
313 check_offset = in combios_get_table_offset()
315 if (check_offset) { in combios_get_table_offset()
316 check_offset = RBIOS16(check_offset + 0x13); in combios_get_table_offset()
317 if (check_offset) in combios_get_table_offset()
318 offset = check_offset; in combios_get_table_offset()
322 check_offset = in combios_get_table_offset()
324 if (check_offset) { in combios_get_table_offset()
325 check_offset = RBIOS16(check_offset + 0x15); in combios_get_table_offset()
326 if (check_offset) in combios_get_table_offset()
327 offset = check_offset; in combios_get_table_offset()
331 check_offset = in combios_get_table_offset()
333 if (check_offset) { in combios_get_table_offset()
334 check_offset = RBIOS16(check_offset + 0x17); in combios_get_table_offset()
335 if (check_offset) in combios_get_table_offset()
336 offset = check_offset; in combios_get_table_offset()
340 check_offset = in combios_get_table_offset()
342 if (check_offset) { in combios_get_table_offset()
343 check_offset = RBIOS16(check_offset + 0x2); in combios_get_table_offset()
344 if (check_offset) in combios_get_table_offset()
345 offset = check_offset; in combios_get_table_offset()
349 check_offset = in combios_get_table_offset()
351 if (check_offset) { in combios_get_table_offset()
352 check_offset = RBIOS16(check_offset + 0x4); in combios_get_table_offset()
353 if (check_offset) in combios_get_table_offset()
354 offset = check_offset; in combios_get_table_offset()
358 check_offset = 0; in combios_get_table_offset()
364 if (table < COMBIOS_ASIC_INIT_3_TABLE && check_offset && check_offset < size) in combios_get_table_offset()
365 offset = RBIOS16(rdev->bios_header_start + check_offset); in combios_get_table_offset()