Lines Matching refs:ucc
1524 struct udma_chan_config *ucc; in udma_request() local
1535 ucc = &uc->config; in udma_request()
1543 uc->desc_tx = dma_alloc_coherent(ucc->hdesc_size, &dummy); in udma_request()
1544 memset(uc->desc_tx, 0, ucc->hdesc_size); in udma_request()
1547 ucc->hdesc_size * UDMA_RX_DESC_NUM, &dummy); in udma_request()
1548 memset(uc->desc_rx, 0, ucc->hdesc_size * UDMA_RX_DESC_NUM); in udma_request()
1682 struct udma_chan_config *ucc; in udma_receive() local
1695 ucc = &uc->config; in udma_receive()
1712 (ulong)(desc_rx + ucc->hdesc_size)); in udma_receive()
1731 struct udma_chan_config *ucc; in udma_of_xlate() local
1746 ucc = &uc->config; in udma_of_xlate()
1747 ucc->remote_thread_id = args->args[0]; in udma_of_xlate()
1748 if (ucc->remote_thread_id & K3_PSIL_DST_THREAD_ID_OFFSET) in udma_of_xlate()
1749 ucc->dir = DMA_MEM_TO_DEV; in udma_of_xlate()
1751 ucc->dir = DMA_DEV_TO_MEM; in udma_of_xlate()
1753 ep_config = psil_get_ep_config(ucc->remote_thread_id); in udma_of_xlate()
1757 ucc->dir = DMA_MEM_TO_MEM; in udma_of_xlate()
1758 ucc->remote_thread_id = -1; in udma_of_xlate()
1762 ucc->pkt_mode = ep_config->pkt_mode; in udma_of_xlate()
1763 ucc->channel_tpl = ep_config->channel_tpl; in udma_of_xlate()
1764 ucc->notdpkt = ep_config->notdpkt; in udma_of_xlate()
1765 ucc->ep_type = ep_config->ep_type; in udma_of_xlate()
1767 ucc->needs_epib = ep_config->needs_epib; in udma_of_xlate()
1768 ucc->psd_size = ep_config->psd_size; in udma_of_xlate()
1769 ucc->metadata_size = (ucc->needs_epib ? CPPI5_INFO0_HDESC_EPIB_SIZE : 0) + ucc->psd_size; in udma_of_xlate()
1771 ucc->hdesc_size = cppi5_hdesc_calc_size(ucc->needs_epib, in udma_of_xlate()
1772 ucc->psd_size, 0); in udma_of_xlate()
1773 ucc->hdesc_size = ALIGN(ucc->hdesc_size, ARCH_DMA_MINALIGN); in udma_of_xlate()
1777 dma->id, ucc->needs_epib, in udma_of_xlate()
1778 ucc->psd_size, ucc->metadata_size, in udma_of_xlate()
1779 ucc->remote_thread_id); in udma_of_xlate()