Lines Matching defs:boff

335 lance_put(struct lance_softc *sc, int boff, struct mbuf *m)
346 (*sc->sc_copytobuf)(sc, mtod(m, void *), boff, len);
347 boff += len;
352 (*sc->sc_zerobuf)(sc, boff, LEMINSIZE - tlen);
365 lance_get(struct lance_softc *sc, int boff, int totlen)
396 (*sc->sc_copyfrombuf)(sc, mtod(m, void *), boff, len);
397 boff += len;
421 lance_read(struct lance_softc *sc, int boff, int len)
440 m = lance_get(sc, boff, len);
635 lance_copytobuf_contig(struct lance_softc *sc, void *from, int boff, int len)
642 memcpy(buf + boff, from, len);
646 lance_copyfrombuf_contig(struct lance_softc *sc, void *to, int boff, int len)
653 memcpy(to, buf + boff, len);
657 lance_zerobuf_contig(struct lance_softc *sc, int boff, int len)
664 memset(buf + boff, 0, len);
681 lance_copytobuf_gap2(struct lance_softc *sc, void *fromv, int boff, int len)
687 if (boff & 0x1) {
689 bptr = ((volatile uint16_t *)buf) + (boff - 1);
694 bptr = ((volatile uint16_t *)buf) + boff;
706 lance_copyfrombuf_gap2(struct lance_softc *sc, void *tov, int boff, int len)
713 if (boff & 0x1) {
715 bptr = ((volatile uint16_t *)buf) + (boff - 1);
720 bptr = ((volatile uint16_t *)buf) + boff;
733 lance_zerobuf_gap2(struct lance_softc *sc, int boff, int len)
738 if ((unsigned int)boff & 0x1) {
739 bptr = ((volatile uint16_t *)buf) + (boff - 1);
744 bptr = ((volatile uint16_t *)buf) + boff;
759 lance_copytobuf_gap16(struct lance_softc *sc, void *fromv, int boff, int len)
766 bptr = buf + ((boff << 1) & ~0x1f);
767 boff &= 0xf;
768 xfer = uimin(len, 16 - boff);
770 memcpy(bptr + boff, from, xfer);
773 boff = 0;
780 lance_copyfrombuf_gap16(struct lance_softc *sc, void *tov, int boff, int len)
787 bptr = buf + ((boff << 1) & ~0x1f);
788 boff &= 0xf;
789 xfer = uimin(len, 16 - boff);
791 memcpy(to, bptr + boff, xfer);
794 boff = 0;
801 lance_zerobuf_gap16(struct lance_softc *sc, int boff, int len)
807 bptr = buf + ((boff << 1) & ~0x1f);
808 boff &= 0xf;
809 xfer = uimin(len, 16 - boff);
811 memset(bptr + boff, 0, xfer);
813 boff = 0;