Lines Matching defs:ch_index
58 uint8_t ch_index;
154 ch->ch_index = index;
180 cs = DMAC_READ(sc, DMAC_CS(ch->ch_index));
181 DMAC_WRITE(sc, DMAC_CS(ch->ch_index), cs);
184 ce = DMAC_READ(sc, DMAC_DEBUG(ch->ch_index));
187 DMAC_WRITE(sc, DMAC_DEBUG(ch->ch_index), ce);
233 if (!fdtbus_intr_str(phandle, ch->ch_index, intrstr, sizeof(intrstr))) {
240 ch->ch_index);
241 ch->ch_ih = fdtbus_intr_establish_xname(phandle, ch->ch_index, ipl, 0,
245 "failed to establish interrupt for DMA%d and %s\n", ch->ch_index,
264 val = DMAC_READ(sc, DMAC_CS(ch->ch_index));
267 DMAC_WRITE(sc, DMAC_CS(ch->ch_index), val);
282 DMAC_WRITE(sc, DMAC_CONBLK_AD(ch->ch_index), addr);
291 val = DMAC_READ(sc, DMAC_CS(ch->ch_index));
296 DMAC_WRITE(sc, DMAC_CS(ch->ch_index), val);
308 val = DMAC_READ(sc, DMAC_CS(ch->ch_index));
310 DMAC_WRITE(sc, DMAC_CS(ch->ch_index), val);
315 DMAC_WRITE(sc, DMAC_NEXTCONBK(ch->ch_index), 0);
319 DMAC_WRITE(sc, DMAC_CS(ch->ch_index), val);