Lines Matching refs:amount
719 * Given a source and destination address, copy 'amount' of a packet from
724 ne2000_ring_copy(struct dp8390_softc *sc, int src, void *dstv, u_short amount)
736 if (src + amount > sc->mem_end) {
739 /* Copy amount up to end of NIC memory. */
743 amount -= tmp_amount;
749 amount, useword);
751 return src + amount;
777 * copy 'amount' from NIC to host using programmed i/o. The 'amount' is
783 int src, uint8_t *dst, size_t amount, int useword)
793 amount = roundup2(amount, sizeof(uint16_t));
796 bus_space_write_1(nict, nich, ED_P0_RBCR0, amount);
797 bus_space_write_1(nict, nich, ED_P0_RBCR1, amount >> 8);
810 (uint16_t *)dst, amount >> 1);
813 dst, amount);