Home | History | Annotate | Download | only in dev

Lines Matching defs:totlen

394 	u_int len, totlen = 0;
402 totlen += len;
408 if (totlen > PAGE_SIZE)
412 if (totlen < ETHERMIN + sizeof(struct ether_header)) {
413 int pad = ETHERMIN + sizeof(struct ether_header) - totlen;
414 memset(sc->sc_txbuf + totlen, 0, pad);
415 totlen = ETHERMIN + sizeof(struct ether_header);
419 (*sc->sc_putpacket)(sc, totlen);
422 return totlen;
598 mace_get(struct mc_softc *sc, uint8_t *pkt, int totlen)
608 m->m_pkthdr.len = totlen;
613 while (totlen > 0) {
622 if (totlen >= MINCLSIZE) {
631 m->m_len = len = uimin(totlen, len);
634 totlen -= len;