Lines Matching refs:len
347 int len, tlen = 0;
352 len = m->m_len;
353 if (len == 0) {
358 (*sc->sc_copytobuf)(sc, mtod(m, caddr_t), boff, len);
359 boff += len;
360 tlen += len;
383 int len;
396 m0->m_pkthdr.len = totlen;
397 len = MHLEN;
404 len = MCLBYTES;
410 len -= newdata - m->m_data;
414 m->m_len = len = min(totlen, len);
415 (*sc->sc_copyfrombuf)(sc, mtod(m, caddr_t), boff, len);
416 boff += len;
418 totlen -= len;
423 len = MLEN;
636 lance_copytobuf_contig(struct lance_softc *sc, void *from, int boff, int len)
643 memcpy(buf + boff, from, len);
647 lance_copyfrombuf_contig(struct lance_softc *sc, void *to, int boff, int len)
654 memcpy(to, buf + boff, len);
658 lance_zerobuf_contig(struct lance_softc *sc, int boff, int len)
665 memset(buf + boff, 0, len);
682 lance_copytobuf_gap2(struct lance_softc *sc, void *fromv, int boff, int len)
693 len--;
696 while (len > 1) {
700 len -= 2;
702 if (len == 1)
707 lance_copyfrombuf_gap2(struct lance_softc *sc, void *tov, int boff, int len)
719 len--;
722 while (len > 1) {
727 len -= 2;
729 if (len == 1)
734 lance_zerobuf_gap2(struct lance_softc *sc, int boff, int len)
743 len--;
746 while (len > 0) {
749 len -= 2;
760 lance_copytobuf_gap16(struct lance_softc *sc, void *fromv, int boff, int len)
768 xfer = min(len, 16 - boff);
769 while (len > 0) {
774 len -= xfer;
775 xfer = min(len, 16);
780 lance_copyfrombuf_gap16(struct lance_softc *sc, void *tov, int boff, int len)
788 xfer = min(len, 16 - boff);
789 while (len > 0) {
794 len -= xfer;
795 xfer = min(len, 16);
800 lance_zerobuf_gap16(struct lance_softc *sc, int boff, int len)
808 xfer = min(len, 16 - boff);
809 while (len > 0) {
813 len -= xfer;
814 xfer = min(len, 16);