Lines Matching refs:boff

328 lance_put(struct lance_softc *sc, int boff, struct mbuf *m)
339 (*sc->sc_copytobuf)(sc, mtod(m, void *), boff, len);
340 boff += len;
345 (*sc->sc_zerobuf)(sc, boff, LEMINSIZE - tlen);
358 lance_get(struct lance_softc *sc, int boff, int totlen)
393 (*sc->sc_copyfrombuf)(sc, mtod(m, caddr_t), boff, len);
394 boff += len;
404 lance_read(struct lance_softc *sc, int boff, int len)
423 m = lance_get(sc, boff, len);
620 lance_copytobuf_contig(struct lance_softc *sc, void *from, int boff, int len)
627 memcpy(buf + boff, from, len);
631 lance_copyfrombuf_contig(struct lance_softc *sc, void *to, int boff, int len)
638 memcpy(to, buf + boff, len);
642 lance_zerobuf_contig(struct lance_softc *sc, int boff, int len)
649 memset(buf + boff, 0, len);
666 lance_copytobuf_gap2(struct lance_softc *sc, void *fromv, int boff, int len)
672 if (boff & 0x1) {
674 bptr = ((volatile uint16_t *)buf) + (boff - 1);
679 bptr = ((volatile uint16_t *)buf) + boff;
691 lance_copyfrombuf_gap2(struct lance_softc *sc, void *tov, int boff, int len)
698 if (boff & 0x1) {
700 bptr = ((volatile uint16_t *)buf) + (boff - 1);
705 bptr = ((volatile uint16_t *)buf) + boff;
718 lance_zerobuf_gap2(struct lance_softc *sc, int boff, int len)
723 if ((unsigned int)boff & 0x1) {
724 bptr = ((volatile uint16_t *)buf) + (boff - 1);
729 bptr = ((volatile uint16_t *)buf) + boff;
744 lance_copytobuf_gap16(struct lance_softc *sc, void *fromv, int boff, int len)
751 bptr = buf + ((boff << 1) & ~0x1f);
752 boff &= 0xf;
753 xfer = min(len, 16 - boff);
755 memcpy(bptr + boff, from, xfer);
758 boff = 0;
765 lance_copyfrombuf_gap16(struct lance_softc *sc, void *tov, int boff, int len)
772 bptr = buf + ((boff << 1) & ~0x1f);
773 boff &= 0xf;
774 xfer = min(len, 16 - boff);
776 memcpy(to, bptr + boff, xfer);
779 boff = 0;
786 lance_zerobuf_gap16(struct lance_softc *sc, int boff, int len)
792 bptr = buf + ((boff << 1) & ~0x1f);
793 boff &= 0xf;
794 xfer = min(len, 16 - boff);
796 memset(bptr + boff, 0, xfer);
798 boff = 0;