Lines Matching defs:head
1092 int head, tail;
1207 head = bc->rin;
1212 bc->rout = head;
1215 while (head != tail) {
1219 "port %d: p rx head = %d tail = %d\n",
1220 event.pnum, head, tail));
1221 top = (head > tail) ? head : wrapmask + 1;
1240 head = bc->rin;
1314 int head, tail;
1350 head = bc->tin;
1353 DLOG(DIGIDB_INT, (sc->dev, "port%d: s tx head = %d tail = %d\n",
1354 port->pnum, head, tail));
1356 if (head < tail)
1357 size = tail - head - 1;
1359 size = port->txbufsize - head;
1367 ocount = q_to_b(&tp->t_outq, port->txbuf + head, size);
1369 head += ocount;
1370 head &= wmask;
1372 bc->tin = head;
1378 if (head < tail)
1379 size = port->txbufsize - tail + head;
1381 size = head - tail;
1407 unsigned tail, head;
1414 head = port->sc->gdata->cin;
1415 mem[head + 0] = cmd;
1416 mem[head + 1] = port->pnum;
1417 *(u_short *)(mem + head + 2) = op1;
1419 head = (head + 4) & port->sc->gdata->cmax;
1420 port->sc->gdata->cin = head;
1423 head = port->sc->gdata->cin;
1425 n = (head - tail) & port->sc->gdata->cmax;