Lines Matching refs:idx
444 size_t idx = 0; in bios_oem_strings() local
478 if (idx + tot > maxlen - 1) { in bios_oem_strings()
481 str, idx, tot, idx+tot, maxlen-1); in bios_oem_strings()
502 if (idx == 0) { in bios_oem_strings()
504 buffer[idx++] = c; in bios_oem_strings()
506 ((c == ' ') && (buffer[idx-1] != ' ')) ) in bios_oem_strings()
507 buffer[idx++] = c; in bios_oem_strings()
513 if ( (idx > 1) && (buffer[idx-1] == ' ') ) in bios_oem_strings()
514 idx--; in bios_oem_strings()
515 buffer[idx] = '\0'; in bios_oem_strings()
516 return (idx); in bios_oem_strings()
577 int idx, left; in pnpbios_identify() local
677 idx = 0; in pnpbios_identify()
678 while (idx < left) { in pnpbios_identify()
679 tag = pd->devdata[idx++]; in pnpbios_identify()
684 compid = (u_int32_t *)(pd->devdata + idx); in pnpbios_identify()
689 idx = left; in pnpbios_identify()
692 idx += PNP_SRES_LEN(tag); in pnpbios_identify()
697 idx += *(u_int16_t *)(pd->devdata + idx) + 2; in pnpbios_identify()