Lines Matching refs:dr
371 struct dma_region dr[MAX_DR_NUM]; /* maximal, 64 * 4KB = 256KB */ in ipw2200_load_fw() local
385 err = ipw2200_dma_region_alloc(sc, &dr[cnt], MAX_DR_SIZE, DDI_DMA_READ, in ipw2200_load_fw()
390 src = dr[cnt].dr_pbase; in ipw2200_load_fw()
406 if (off == dr[cnt].dr_size) { in ipw2200_load_fw()
416 err = ipw2200_dma_region_alloc(sc, &dr[cnt], in ipw2200_load_fw()
424 src = dr[cnt].dr_pbase; in ipw2200_load_fw()
427 mlen = min(mlen, dr[cnt].dr_size - off); in ipw2200_load_fw()
429 (void) memcpy(dr[cnt].dr_base + off, v, mlen); in ipw2200_load_fw()
430 (void) ddi_dma_sync(dr[cnt].dr_hnd, off, mlen, in ipw2200_load_fw()
514 ipw2200_dma_region_free(&dr[i]); in ipw2200_load_fw()
522 ipw2200_dma_region_free(&dr[i]); in ipw2200_load_fw()