Lines Matching defs:ch_index
192 uint8_t ch_index;
233 ((sc)->sc_dmamap->dm_segs[0].ds_addr + DESC_OFFS((chp)->ch_index, (n)))
285 uint8_t index = ch->ch_index;
368 DMA_WRITE(sc, DMA_MODE_REG(ch->ch_index),
372 bus_dmamap_sync(sc->sc_dmat, sc->sc_dmamap, DESC_OFFS(ch->ch_index, 0),
375 DMA_WRITE(sc, DMA_START_ADDR_REG(ch->ch_index),
377 DMA_WRITE(sc, DMA_EN_REG(ch->ch_index), DMA_EN_EN);
379 if ((DMA_READ(sc, DMA_EN_REG(ch->ch_index)) & DMA_EN_EN) == 0) {
381 "DMA Channel %u failed to start\n", ch->ch_index);
394 DMA_WRITE(sc, DMA_EN_REG(ch->ch_index), 0);
528 ch->ch_index = index;