Lines Matching refs:ccw
117 struct mxs_dma_ccw *ccw; member
416 mxs_chan->ccw = dma_zalloc_coherent(mxs_dma->dma_device.dev, in mxs_dma_alloc_chan_resources()
419 if (!mxs_chan->ccw) { in mxs_dma_alloc_chan_resources()
449 mxs_chan->ccw, mxs_chan->ccw_phys); in mxs_dma_alloc_chan_resources()
464 mxs_chan->ccw, mxs_chan->ccw_phys); in mxs_dma_free_chan_resources()
498 struct mxs_dma_ccw *ccw; in mxs_dma_prep_slave_sg() local
524 ccw = &mxs_chan->ccw[idx - 1]; in mxs_dma_prep_slave_sg()
525 ccw->next = mxs_chan->ccw_phys + sizeof(*ccw) * idx; in mxs_dma_prep_slave_sg()
526 ccw->bits |= CCW_CHAIN; in mxs_dma_prep_slave_sg()
527 ccw->bits &= ~CCW_IRQ; in mxs_dma_prep_slave_sg()
528 ccw->bits &= ~CCW_DEC_SEM; in mxs_dma_prep_slave_sg()
534 ccw = &mxs_chan->ccw[idx++]; in mxs_dma_prep_slave_sg()
538 ccw->pio_words[j++] = *pio++; in mxs_dma_prep_slave_sg()
540 ccw->bits = 0; in mxs_dma_prep_slave_sg()
541 ccw->bits |= CCW_IRQ; in mxs_dma_prep_slave_sg()
542 ccw->bits |= CCW_DEC_SEM; in mxs_dma_prep_slave_sg()
544 ccw->bits |= CCW_WAIT4END; in mxs_dma_prep_slave_sg()
545 ccw->bits |= CCW_HALT_ON_TERM; in mxs_dma_prep_slave_sg()
546 ccw->bits |= CCW_TERM_FLUSH; in mxs_dma_prep_slave_sg()
547 ccw->bits |= BF_CCW(sg_len, PIO_NUM); in mxs_dma_prep_slave_sg()
548 ccw->bits |= BF_CCW(MXS_DMA_CMD_NO_XFER, COMMAND); in mxs_dma_prep_slave_sg()
557 ccw = &mxs_chan->ccw[idx++]; in mxs_dma_prep_slave_sg()
559 ccw->next = mxs_chan->ccw_phys + sizeof(*ccw) * idx; in mxs_dma_prep_slave_sg()
560 ccw->bufaddr = sg->dma_address; in mxs_dma_prep_slave_sg()
561 ccw->xfer_bytes = sg_dma_len(sg); in mxs_dma_prep_slave_sg()
563 ccw->bits = 0; in mxs_dma_prep_slave_sg()
564 ccw->bits |= CCW_CHAIN; in mxs_dma_prep_slave_sg()
565 ccw->bits |= CCW_HALT_ON_TERM; in mxs_dma_prep_slave_sg()
566 ccw->bits |= CCW_TERM_FLUSH; in mxs_dma_prep_slave_sg()
567 ccw->bits |= BF_CCW(direction == DMA_DEV_TO_MEM ? in mxs_dma_prep_slave_sg()
572 ccw->bits &= ~CCW_CHAIN; in mxs_dma_prep_slave_sg()
573 ccw->bits |= CCW_IRQ; in mxs_dma_prep_slave_sg()
574 ccw->bits |= CCW_DEC_SEM; in mxs_dma_prep_slave_sg()
576 ccw->bits |= CCW_WAIT4END; in mxs_dma_prep_slave_sg()
621 struct mxs_dma_ccw *ccw = &mxs_chan->ccw[i]; in mxs_dma_prep_dma_cyclic() local
624 ccw->next = mxs_chan->ccw_phys; in mxs_dma_prep_dma_cyclic()
626 ccw->next = mxs_chan->ccw_phys + sizeof(*ccw) * (i + 1); in mxs_dma_prep_dma_cyclic()
628 ccw->bufaddr = dma_addr; in mxs_dma_prep_dma_cyclic()
629 ccw->xfer_bytes = period_len; in mxs_dma_prep_dma_cyclic()
631 ccw->bits = 0; in mxs_dma_prep_dma_cyclic()
632 ccw->bits |= CCW_CHAIN; in mxs_dma_prep_dma_cyclic()
633 ccw->bits |= CCW_IRQ; in mxs_dma_prep_dma_cyclic()
634 ccw->bits |= CCW_HALT_ON_TERM; in mxs_dma_prep_dma_cyclic()
635 ccw->bits |= CCW_TERM_FLUSH; in mxs_dma_prep_dma_cyclic()
636 ccw->bits |= CCW_DEC_SEM; in mxs_dma_prep_dma_cyclic()
637 ccw->bits |= BF_CCW(direction == DMA_DEV_TO_MEM ? in mxs_dma_prep_dma_cyclic()
690 last_ccw = &mxs_chan->ccw[mxs_chan->desc_count - 1]; in mxs_dma_tx_status()