Lines Matching refs:ccw

115 	struct mxs_dma_ccw		*ccw;  member
402 mxs_chan->ccw = dma_alloc_coherent(mxs_dma->dma_device.dev, in mxs_dma_alloc_chan_resources()
405 if (!mxs_chan->ccw) { in mxs_dma_alloc_chan_resources()
433 mxs_chan->ccw, mxs_chan->ccw_phys); in mxs_dma_alloc_chan_resources()
448 mxs_chan->ccw, mxs_chan->ccw_phys); in mxs_dma_free_chan_resources()
482 struct mxs_dma_ccw *ccw; in mxs_dma_prep_slave_sg() local
507 ccw = &mxs_chan->ccw[idx - 1]; in mxs_dma_prep_slave_sg()
508 ccw->next = mxs_chan->ccw_phys + sizeof(*ccw) * idx; in mxs_dma_prep_slave_sg()
509 ccw->bits |= CCW_CHAIN; in mxs_dma_prep_slave_sg()
510 ccw->bits &= ~CCW_IRQ; in mxs_dma_prep_slave_sg()
511 ccw->bits &= ~CCW_DEC_SEM; in mxs_dma_prep_slave_sg()
517 ccw = &mxs_chan->ccw[idx++]; in mxs_dma_prep_slave_sg()
521 ccw->pio_words[j++] = *pio++; in mxs_dma_prep_slave_sg()
523 ccw->bits = 0; in mxs_dma_prep_slave_sg()
524 ccw->bits |= CCW_IRQ; in mxs_dma_prep_slave_sg()
525 ccw->bits |= CCW_DEC_SEM; in mxs_dma_prep_slave_sg()
527 ccw->bits |= CCW_WAIT4END; in mxs_dma_prep_slave_sg()
528 ccw->bits |= CCW_HALT_ON_TERM; in mxs_dma_prep_slave_sg()
529 ccw->bits |= CCW_TERM_FLUSH; in mxs_dma_prep_slave_sg()
530 ccw->bits |= BF_CCW(sg_len, PIO_NUM); in mxs_dma_prep_slave_sg()
531 ccw->bits |= BF_CCW(MXS_DMA_CMD_NO_XFER, COMMAND); in mxs_dma_prep_slave_sg()
533 ccw->bits |= CCW_WAIT4RDY; in mxs_dma_prep_slave_sg()
542 ccw = &mxs_chan->ccw[idx++]; in mxs_dma_prep_slave_sg()
544 ccw->next = mxs_chan->ccw_phys + sizeof(*ccw) * idx; in mxs_dma_prep_slave_sg()
545 ccw->bufaddr = sg->dma_address; in mxs_dma_prep_slave_sg()
546 ccw->xfer_bytes = sg_dma_len(sg); in mxs_dma_prep_slave_sg()
548 ccw->bits = 0; in mxs_dma_prep_slave_sg()
549 ccw->bits |= CCW_CHAIN; in mxs_dma_prep_slave_sg()
550 ccw->bits |= CCW_HALT_ON_TERM; in mxs_dma_prep_slave_sg()
551 ccw->bits |= CCW_TERM_FLUSH; in mxs_dma_prep_slave_sg()
552 ccw->bits |= BF_CCW(direction == DMA_DEV_TO_MEM ? in mxs_dma_prep_slave_sg()
557 ccw->bits &= ~CCW_CHAIN; in mxs_dma_prep_slave_sg()
558 ccw->bits |= CCW_IRQ; in mxs_dma_prep_slave_sg()
559 ccw->bits |= CCW_DEC_SEM; in mxs_dma_prep_slave_sg()
561 ccw->bits |= CCW_WAIT4END; in mxs_dma_prep_slave_sg()
606 struct mxs_dma_ccw *ccw = &mxs_chan->ccw[i]; in mxs_dma_prep_dma_cyclic() local
609 ccw->next = mxs_chan->ccw_phys; in mxs_dma_prep_dma_cyclic()
611 ccw->next = mxs_chan->ccw_phys + sizeof(*ccw) * (i + 1); in mxs_dma_prep_dma_cyclic()
613 ccw->bufaddr = dma_addr; in mxs_dma_prep_dma_cyclic()
614 ccw->xfer_bytes = period_len; in mxs_dma_prep_dma_cyclic()
616 ccw->bits = 0; in mxs_dma_prep_dma_cyclic()
617 ccw->bits |= CCW_CHAIN; in mxs_dma_prep_dma_cyclic()
618 ccw->bits |= CCW_IRQ; in mxs_dma_prep_dma_cyclic()
619 ccw->bits |= CCW_HALT_ON_TERM; in mxs_dma_prep_dma_cyclic()
620 ccw->bits |= CCW_TERM_FLUSH; in mxs_dma_prep_dma_cyclic()
621 ccw->bits |= CCW_DEC_SEM; in mxs_dma_prep_dma_cyclic()
622 ccw->bits |= BF_CCW(direction == DMA_DEV_TO_MEM ? in mxs_dma_prep_dma_cyclic()
659 last_ccw = &mxs_chan->ccw[mxs_chan->desc_count - 1]; in mxs_dma_tx_status()