Lines Matching refs:pos
227 u16 *pos; in hfa384x_from_bap() local
230 pos = (u16 *) buf; in hfa384x_from_bap()
234 pos += len / 2; in hfa384x_from_bap()
237 *((char *) pos) = HFA384X_INB(d_off); in hfa384x_from_bap()
246 u16 *pos; in hfa384x_to_bap() local
249 pos = (u16 *) buf; in hfa384x_to_bap()
253 pos += len / 2; in hfa384x_to_bap()
256 HFA384X_OUTB(*((char *) pos), d_off); in hfa384x_to_bap()
343 int i, pos; in prism2_plx_check_cis() local
363 pos = 0; in prism2_plx_check_cis()
364 while (pos < CIS_MAX_LEN - 1 && cis[pos] != CISTPL_END) { in prism2_plx_check_cis()
365 if (pos + 2 + cis[pos + 1] > CIS_MAX_LEN) in prism2_plx_check_cis()
368 switch (cis[pos]) { in prism2_plx_check_cis()
370 if (cis[pos + 1] < 2) in prism2_plx_check_cis()
372 rmsz = (cis[pos + 2] & 0x3c) >> 2; in prism2_plx_check_cis()
373 rasz = cis[pos + 2] & 0x03; in prism2_plx_check_cis()
374 if (4 + rasz + rmsz > cis[pos + 1]) in prism2_plx_check_cis()
376 *cor_index = cis[pos + 3] & 0x3F; in prism2_plx_check_cis()
379 *cor_offset += cis[pos + 4 + i] << (8 * i); in prism2_plx_check_cis()
392 if (cis[pos + 1] < 4) in prism2_plx_check_cis()
394 manfid1 = cis[pos + 2] + (cis[pos + 3] << 8); in prism2_plx_check_cis()
395 manfid2 = cis[pos + 4] + (cis[pos + 5] << 8); in prism2_plx_check_cis()
401 pos += cis[pos + 1] + 2; in prism2_plx_check_cis()
404 if (pos >= CIS_MAX_LEN || cis[pos] != CISTPL_END) in prism2_plx_check_cis()