Lines Matching refs:cchan
778 struct cppi41_channel *cchan, *chans; in cppi41_add_chans() local
793 cchan = &chans[i]; in cppi41_add_chans()
795 cchan->cdd = cdd; in cppi41_add_chans()
797 cchan->gcr_reg = cdd->ctrl_mem + DMA_TXGCR(i >> 1); in cppi41_add_chans()
798 cchan->is_tx = 1; in cppi41_add_chans()
800 cchan->gcr_reg = cdd->ctrl_mem + DMA_RXGCR(i >> 1); in cppi41_add_chans()
801 cchan->is_tx = 0; in cppi41_add_chans()
803 cchan->port_num = i >> 1; in cppi41_add_chans()
804 cchan->desc = &cdd->cd[i]; in cppi41_add_chans()
805 cchan->desc_phys = cdd->descs_phys; in cppi41_add_chans()
806 cchan->desc_phys += i * sizeof(struct cppi41_desc); in cppi41_add_chans()
807 cchan->chan.device = &cdd->ddev; in cppi41_add_chans()
808 list_add_tail(&cchan->chan.device_node, &cdd->ddev.channels); in cppi41_add_chans()
948 struct cppi41_channel *cchan; in cpp41_dma_filter_fn() local
956 cchan = to_cpp41_chan(chan); in cpp41_dma_filter_fn()
958 if (cchan->port_num != num[INFO_PORT]) in cpp41_dma_filter_fn()
961 if (cchan->is_tx && !num[INFO_IS_TX]) in cpp41_dma_filter_fn()
963 cdd = cchan->cdd; in cpp41_dma_filter_fn()
964 if (cchan->is_tx) in cpp41_dma_filter_fn()
971 if (WARN_ON(cchan->port_num >= ARRAY_SIZE(am335x_usb_queues_rx))) in cpp41_dma_filter_fn()
974 cchan->q_num = queues[cchan->port_num].submit; in cpp41_dma_filter_fn()
975 cchan->q_comp_num = queues[cchan->port_num].complete; in cpp41_dma_filter_fn()