Lines Matching defs:dma_mem_ptr
174 char *dma_mem_ptr;
192 dma_mem_ptr = isc->sc_dmacur;
197 * This loop relies on the dma_mem_ptr variable being set to the
204 * status is guaranteed to be at dma_mem_ptr, ie need
207 status = *((u_int16_t *) dma_mem_ptr);
208 dma_mem_ptr += 2;
209 if (dma_mem_ptr > (isc->sc_dmabase + isc->sc_dmasize)) {
210 dma_mem_ptr = isc->sc_dmabase;
212 pkt_length = *((u_int16_t *) dma_mem_ptr);
213 dma_mem_ptr += 2;
314 if ((dma_mem_ptr + pkt_length) <
320 memcpy(pBuff, dma_mem_ptr, pkt_length);
321 dma_mem_ptr += pkt_length;
325 dma_mem_ptr);
328 memcpy(pBuff, dma_mem_ptr, to_copy);
342 dma_mem_ptr = isc->sc_dmabase;
345 memcpy(pBuff, dma_mem_ptr, to_copy);
346 dma_mem_ptr += to_copy;
367 * dma_mem_ptr should point to the next packet to be
374 dma_mem_ptr += 3;
375 dma_mem_ptr = (char *)
376 ((long) dma_mem_ptr & 0xfffffffc);
377 if (dma_mem_ptr < (isc->sc_dmabase + isc->sc_dmasize)) {
378 isc->sc_dmacur = dma_mem_ptr;
380 dma_mem_ptr = isc->sc_dmacur = isc->sc_dmabase;