Lines Matching defs:amount
1285 * Given a source and destination address, copy 'amount' of a packet from
1290 ed_ring_copy(struct ed_softc *sc, bus_size_t src, char *dst, u_short amount)
1295 if (src + amount > sc->mem_end) {
1297 /* copy amount up to end of NIC memory */
1299 amount -= tmp_amount;
1303 sc->readmem(sc, src, dst, amount);
1363 * address, copy 'amount' from NIC to host using shared memory.
1364 * The 'amount' is rounded up to a word - okay as long as mbufs
1370 uint16_t amount)
1373 (amount + 1) / 2);
1378 * address, copy 'amount' from NIC to host using shared memory.
1383 uint16_t amount)
1385 bus_space_read_region_1(sc->mem_bst, sc->mem_bsh, src, dst, amount);
1390 * address, copy 'amount' from NIC to host using Programmed I/O.
1391 * The 'amount' is rounded up to a word - okay as long as mbufs
1397 uint16_t amount)
1408 if (amount & 1)
1409 ++amount;
1412 ed_nic_outb(sc, ED_P0_RBCR0, amount);
1413 ed_nic_outb(sc, ED_P0_RBCR1, amount >> 8);
1422 ed_asic_insw(sc, ED_NOVELL_DATA, dst, amount / 2);
1424 ed_asic_insb(sc, ED_NOVELL_DATA, dst, amount);