Lines Matching defs:dmac
184 /* soft reset DMAC */
219 * On news68k, SCSI has its own DMAC so no need allocate it.
243 struct dma_regs *dmac = sc->sc_regs;
249 /* reset DMAC */
250 dmac->ctl = DC_CTL_RST;
251 dmac->ctl = 0;
258 dmac->tcnt = (uint32_t)len;
261 dmac->offset = offset;
264 dmac->tag = 0;
265 dmac->mapent = kvtop((void *)addr) >> DMAC_SEG_SHIFT;
272 dmac->tag = i;
273 dmac->mapent = kvtop((void *)addr) >> DMAC_SEG_SHIFT;
278 dmac->tag = 0;
287 dmac->ctl = 0;
291 dmac->ctl = DC_CTL_ENB;
299 dmac->ctl = DC_CTL_MOD;
303 dmac->ctl = DC_CTL_MOD | DC_CTL_ENB;
315 struct dma_regs *dmac = sc->sc_regs;
320 /* check DMAC interrupt status */
322 if ((dmac->stat & DC_ST_INT) != 0)
346 struct dma_regs *dmac = sc->sc_regs;
350 /* check DMAC interrupt status */
351 if ((dmac->stat & DC_ST_INT) == 0) {
366 /* stop DMAC */
367 resid = dmac->tcnt;
368 dmac->ctl &= ~DC_CTL_ENB;
395 /* reset DMAC */
396 dmac->ctl = DC_CTL_RST;
397 dmac->ctl = 0;