Lines Matching refs:ccw

115 	struct mxs_dma_ccw		*ccw;  member
420 mxs_chan->ccw = dma_alloc_coherent(mxs_dma->dma_device.dev, in mxs_dma_alloc_chan_resources()
423 if (!mxs_chan->ccw) { in mxs_dma_alloc_chan_resources()
451 mxs_chan->ccw, mxs_chan->ccw_phys); in mxs_dma_alloc_chan_resources()
466 mxs_chan->ccw, mxs_chan->ccw_phys); in mxs_dma_free_chan_resources()
500 struct mxs_dma_ccw *ccw; in mxs_dma_prep_slave_sg() local
525 ccw = &mxs_chan->ccw[idx - 1]; in mxs_dma_prep_slave_sg()
526 ccw->next = mxs_chan->ccw_phys + sizeof(*ccw) * idx; in mxs_dma_prep_slave_sg()
527 ccw->bits |= CCW_CHAIN; in mxs_dma_prep_slave_sg()
528 ccw->bits &= ~CCW_IRQ; in mxs_dma_prep_slave_sg()
529 ccw->bits &= ~CCW_DEC_SEM; in mxs_dma_prep_slave_sg()
535 ccw = &mxs_chan->ccw[idx++]; in mxs_dma_prep_slave_sg()
539 ccw->pio_words[j++] = *pio++; in mxs_dma_prep_slave_sg()
541 ccw->bits = 0; in mxs_dma_prep_slave_sg()
542 ccw->bits |= CCW_IRQ; in mxs_dma_prep_slave_sg()
543 ccw->bits |= CCW_DEC_SEM; in mxs_dma_prep_slave_sg()
545 ccw->bits |= CCW_WAIT4END; in mxs_dma_prep_slave_sg()
546 ccw->bits |= CCW_HALT_ON_TERM; in mxs_dma_prep_slave_sg()
547 ccw->bits |= CCW_TERM_FLUSH; in mxs_dma_prep_slave_sg()
548 ccw->bits |= BF_CCW(sg_len, PIO_NUM); in mxs_dma_prep_slave_sg()
549 ccw->bits |= BF_CCW(MXS_DMA_CMD_NO_XFER, COMMAND); in mxs_dma_prep_slave_sg()
551 ccw->bits |= CCW_WAIT4RDY; in mxs_dma_prep_slave_sg()
560 ccw = &mxs_chan->ccw[idx++]; in mxs_dma_prep_slave_sg()
562 ccw->next = mxs_chan->ccw_phys + sizeof(*ccw) * idx; in mxs_dma_prep_slave_sg()
563 ccw->bufaddr = sg->dma_address; in mxs_dma_prep_slave_sg()
564 ccw->xfer_bytes = sg_dma_len(sg); in mxs_dma_prep_slave_sg()
566 ccw->bits = 0; in mxs_dma_prep_slave_sg()
567 ccw->bits |= CCW_CHAIN; in mxs_dma_prep_slave_sg()
568 ccw->bits |= CCW_HALT_ON_TERM; in mxs_dma_prep_slave_sg()
569 ccw->bits |= CCW_TERM_FLUSH; in mxs_dma_prep_slave_sg()
570 ccw->bits |= BF_CCW(direction == DMA_DEV_TO_MEM ? in mxs_dma_prep_slave_sg()
575 ccw->bits &= ~CCW_CHAIN; in mxs_dma_prep_slave_sg()
576 ccw->bits |= CCW_IRQ; in mxs_dma_prep_slave_sg()
577 ccw->bits |= CCW_DEC_SEM; in mxs_dma_prep_slave_sg()
579 ccw->bits |= CCW_WAIT4END; in mxs_dma_prep_slave_sg()
624 struct mxs_dma_ccw *ccw = &mxs_chan->ccw[i]; in mxs_dma_prep_dma_cyclic() local
627 ccw->next = mxs_chan->ccw_phys; in mxs_dma_prep_dma_cyclic()
629 ccw->next = mxs_chan->ccw_phys + sizeof(*ccw) * (i + 1); in mxs_dma_prep_dma_cyclic()
631 ccw->bufaddr = dma_addr; in mxs_dma_prep_dma_cyclic()
632 ccw->xfer_bytes = period_len; in mxs_dma_prep_dma_cyclic()
634 ccw->bits = 0; in mxs_dma_prep_dma_cyclic()
635 ccw->bits |= CCW_CHAIN; in mxs_dma_prep_dma_cyclic()
636 ccw->bits |= CCW_IRQ; in mxs_dma_prep_dma_cyclic()
637 ccw->bits |= CCW_HALT_ON_TERM; in mxs_dma_prep_dma_cyclic()
638 ccw->bits |= CCW_TERM_FLUSH; in mxs_dma_prep_dma_cyclic()
639 ccw->bits |= CCW_DEC_SEM; in mxs_dma_prep_dma_cyclic()
640 ccw->bits |= BF_CCW(direction == DMA_DEV_TO_MEM ? in mxs_dma_prep_dma_cyclic()
677 last_ccw = &mxs_chan->ccw[mxs_chan->desc_count - 1]; in mxs_dma_tx_status()