Home | History | Annotate | Download | only in dev

Lines Matching refs:amount

242  * Copy `amount' bytes from a packet in the ring buffer to a linear
247 ed_zbus_ring_copy(struct dp8390_softc *sc, int src, void *dst, u_short amount)
255 if (src + amount > sc->mem_end) {
258 /* copy amount up to end of NIC memory */
262 amount -= tmp_amount;
267 bus_space_read_region_stream_2(buft, bufh, src, dst, amount >> 1);
270 if (amount & 1) {
271 bus_space_read_region_stream_2(buft, bufh, src + amount - 1,
273 *((u_char *)dst + amount - 1) = readbyte[0];
274 amount++;
277 return src + amount;