Lines Matching refs:pnpbios_scratchbuf

193 char *pnpbios_scratchbuf;  variable
333 pnpbios_scratchbuf = malloc(PNPBIOS_BUFSIZE, M_DEVBUF, M_WAITOK); in pnpbios_attach()
340 pnpbios_scratchbuf, PNPBIOS_BUFSIZE - 1, in pnpbios_attach()
523 short *help = (short *)(pnpbios_scratchbuf + PNPBIOS_BUFSIZE); in pnpbios_getnumnodes()
532 res = pnpbioscall(((char *)help) - pnpbios_scratchbuf); in pnpbios_getnumnodes()
536 *nump = *(short *)(pnpbios_scratchbuf + 0); in pnpbios_getnumnodes()
537 *sizep = *(short *)(pnpbios_scratchbuf + 2); in pnpbios_getnumnodes()
545 short *help = (short *)(pnpbios_scratchbuf + PNPBIOS_BUFSIZE); in pnpbios_getnode()
555 *(short *)(pnpbios_scratchbuf + 0) = *idxp; in pnpbios_getnode()
557 res = pnpbioscall(((char *)help) - pnpbios_scratchbuf); in pnpbios_getnode()
561 *idxp = *(short *)(pnpbios_scratchbuf + 0); in pnpbios_getnode()
562 memcpy(buf, pnpbios_scratchbuf + 2, len); in pnpbios_getnode()
573 short *help = (short *)(pnpbios_scratchbuf + PNPBIOS_BUFSIZE);
582 memcpy(pnpbios_scratchbuf, buf, len);
584 return (pnpbioscall(((void *)help) - pnpbios_scratchbuf));
593 short *help = (short *)(pnpbios_scratchbuf + PNPBIOS_BUFSIZE); in pnpbios_getevent()
600 res = pnpbioscall(((void *)help) - pnpbios_scratchbuf); in pnpbios_getevent()
601 *event = pnpbios_scratchbuf[0] + (pnpbios_scratchbuf[1] << 8); in pnpbios_getevent()
608 short *help = (short *)(pnpbios_scratchbuf + PNPBIOS_BUFSIZE); in pnpbios_sendmessage()
614 return (pnpbioscall(((void *)help) - pnpbios_scratchbuf)); in pnpbios_sendmessage()
621 short *help = (short *)(pnpbios_scratchbuf + PNPBIOS_BUFSIZE); in pnpbios_getdockinfo()
628 res = pnpbioscall(((void *)help) - pnpbios_scratchbuf); in pnpbios_getdockinfo()
629 memcpy(di, pnpbios_scratchbuf, sizeof(*di)); in pnpbios_getdockinfo()
641 short *help = (short *)(pnpbios_scratchbuf + PNPBIOS_BUFSIZE);
653 stacklen = (void *)help - pnpbios_scratchbuf;
656 *(uint16_t *)(pnpbios_scratchbuf) = origlen;
658 res = pnpbioscall(((void *)help) - pnpbios_scratchbuf);
659 *len = *(uint16_t *)pnpbios_scratchbuf;
666 memcpy(tab, pnpbios_scratchbuf + 2, *len);