Lines Matching refs:boff
341 lance_put(struct lance_softc *sc, int boff, struct mbuf *m) in lance_put() argument
355 (*sc->sc_copytobuf)(sc, mtod(m, caddr_t), boff, len); in lance_put()
356 boff += len; in lance_put()
362 (*sc->sc_zerobuf)(sc, boff, LEMINSIZE - tlen); in lance_put()
375 lance_get(struct lance_softc *sc, int boff, int totlen) in lance_get() argument
412 (*sc->sc_copyfrombuf)(sc, mtod(m, caddr_t), boff, len); in lance_get()
413 boff += len; in lance_get()
639 lance_copytobuf_contig(struct lance_softc *sc, void *from, int boff, int len) in lance_copytobuf_contig() argument
646 memcpy(buf + boff, from, len); in lance_copytobuf_contig()
650 lance_copyfrombuf_contig(struct lance_softc *sc, void *to, int boff, int len) in lance_copyfrombuf_contig() argument
657 memcpy(to, buf + boff, len); in lance_copyfrombuf_contig()
661 lance_zerobuf_contig(struct lance_softc *sc, int boff, int len) in lance_zerobuf_contig() argument
668 memset(buf + boff, 0, len); in lance_zerobuf_contig()
685 lance_copytobuf_gap2(struct lance_softc *sc, void *fromv, int boff, int len)
691 if (boff & 0x1) {
693 bptr = ((volatile uint16_t *)buf) + (boff - 1);
698 bptr = ((volatile uint16_t *)buf) + boff;
710 lance_copyfrombuf_gap2(struct lance_softc *sc, void *tov, int boff, int len)
717 if (boff & 0x1) {
719 bptr = ((volatile uint16_t *)buf) + (boff - 1);
724 bptr = ((volatile uint16_t *)buf) + boff;
737 lance_zerobuf_gap2(struct lance_softc *sc, int boff, int len)
742 if ((unsigned)boff & 0x1) {
743 bptr = ((volatile uint16_t *)buf) + (boff - 1);
748 bptr = ((volatile uint16_t *)buf) + boff;
763 lance_copytobuf_gap16(struct lance_softc *sc, void *fromv, int boff, int len)
769 bptr = buf + ((boff << 1) & ~0x1f);
770 boff &= 0xf;
771 xfer = min(len, 16 - boff);
773 memcpy(bptr + boff, from, xfer);
776 boff = 0;
783 lance_copyfrombuf_gap16(struct lance_softc *sc, void *tov, int boff, int len)
789 bptr = buf + ((boff << 1) & ~0x1f);
790 boff &= 0xf;
791 xfer = min(len, 16 - boff);
793 memcpy(to, bptr + boff, xfer);
796 boff = 0;
803 lance_zerobuf_gap16(struct lance_softc *sc, int boff, int len)
809 bptr = buf + ((boff << 1) & ~0x1f);
810 boff &= 0xf;
811 xfer = min(len, 16 - boff);
813 memset(bptr + boff, 0, xfer);
815 boff = 0;