Lines Matching refs:ccw

117 	struct mxs_dma_ccw		*ccw;  member
424 mxs_chan->ccw = dma_zalloc_coherent(mxs_dma->dma_device.dev, in mxs_dma_alloc_chan_resources()
427 if (!mxs_chan->ccw) { in mxs_dma_alloc_chan_resources()
457 mxs_chan->ccw, mxs_chan->ccw_phys); in mxs_dma_alloc_chan_resources()
472 mxs_chan->ccw, mxs_chan->ccw_phys); in mxs_dma_free_chan_resources()
506 struct mxs_dma_ccw *ccw; in mxs_dma_prep_slave_sg() local
532 ccw = &mxs_chan->ccw[idx - 1]; in mxs_dma_prep_slave_sg()
533 ccw->next = mxs_chan->ccw_phys + sizeof(*ccw) * idx; in mxs_dma_prep_slave_sg()
534 ccw->bits |= CCW_CHAIN; in mxs_dma_prep_slave_sg()
535 ccw->bits &= ~CCW_IRQ; in mxs_dma_prep_slave_sg()
536 ccw->bits &= ~CCW_DEC_SEM; in mxs_dma_prep_slave_sg()
542 ccw = &mxs_chan->ccw[idx++]; in mxs_dma_prep_slave_sg()
546 ccw->pio_words[j++] = *pio++; in mxs_dma_prep_slave_sg()
548 ccw->bits = 0; in mxs_dma_prep_slave_sg()
549 ccw->bits |= CCW_IRQ; in mxs_dma_prep_slave_sg()
550 ccw->bits |= CCW_DEC_SEM; in mxs_dma_prep_slave_sg()
552 ccw->bits |= CCW_WAIT4END; in mxs_dma_prep_slave_sg()
553 ccw->bits |= CCW_HALT_ON_TERM; in mxs_dma_prep_slave_sg()
554 ccw->bits |= CCW_TERM_FLUSH; in mxs_dma_prep_slave_sg()
555 ccw->bits |= BF_CCW(sg_len, PIO_NUM); in mxs_dma_prep_slave_sg()
556 ccw->bits |= BF_CCW(MXS_DMA_CMD_NO_XFER, COMMAND); in mxs_dma_prep_slave_sg()
565 ccw = &mxs_chan->ccw[idx++]; in mxs_dma_prep_slave_sg()
567 ccw->next = mxs_chan->ccw_phys + sizeof(*ccw) * idx; in mxs_dma_prep_slave_sg()
568 ccw->bufaddr = sg->dma_address; in mxs_dma_prep_slave_sg()
569 ccw->xfer_bytes = sg_dma_len(sg); in mxs_dma_prep_slave_sg()
571 ccw->bits = 0; in mxs_dma_prep_slave_sg()
572 ccw->bits |= CCW_CHAIN; in mxs_dma_prep_slave_sg()
573 ccw->bits |= CCW_HALT_ON_TERM; in mxs_dma_prep_slave_sg()
574 ccw->bits |= CCW_TERM_FLUSH; in mxs_dma_prep_slave_sg()
575 ccw->bits |= BF_CCW(direction == DMA_DEV_TO_MEM ? in mxs_dma_prep_slave_sg()
580 ccw->bits &= ~CCW_CHAIN; in mxs_dma_prep_slave_sg()
581 ccw->bits |= CCW_IRQ; in mxs_dma_prep_slave_sg()
582 ccw->bits |= CCW_DEC_SEM; in mxs_dma_prep_slave_sg()
584 ccw->bits |= CCW_WAIT4END; in mxs_dma_prep_slave_sg()
629 struct mxs_dma_ccw *ccw = &mxs_chan->ccw[i]; in mxs_dma_prep_dma_cyclic() local
632 ccw->next = mxs_chan->ccw_phys; in mxs_dma_prep_dma_cyclic()
634 ccw->next = mxs_chan->ccw_phys + sizeof(*ccw) * (i + 1); in mxs_dma_prep_dma_cyclic()
636 ccw->bufaddr = dma_addr; in mxs_dma_prep_dma_cyclic()
637 ccw->xfer_bytes = period_len; in mxs_dma_prep_dma_cyclic()
639 ccw->bits = 0; in mxs_dma_prep_dma_cyclic()
640 ccw->bits |= CCW_CHAIN; in mxs_dma_prep_dma_cyclic()
641 ccw->bits |= CCW_IRQ; in mxs_dma_prep_dma_cyclic()
642 ccw->bits |= CCW_HALT_ON_TERM; in mxs_dma_prep_dma_cyclic()
643 ccw->bits |= CCW_TERM_FLUSH; in mxs_dma_prep_dma_cyclic()
644 ccw->bits |= CCW_DEC_SEM; in mxs_dma_prep_dma_cyclic()
645 ccw->bits |= BF_CCW(direction == DMA_DEV_TO_MEM ? in mxs_dma_prep_dma_cyclic()
682 last_ccw = &mxs_chan->ccw[mxs_chan->desc_count - 1]; in mxs_dma_tx_status()