Lines Matching refs:first_desc
82 struct cppi5_host_desc_t *first_desc; in emac_send_command_sr1() local
108 first_desc = k3_cppi_desc_pool_alloc(tx_chn->desc_pool); in emac_send_command_sr1()
109 if (!first_desc) { in emac_send_command_sr1()
116 cppi5_hdesc_init(first_desc, CPPI5_INFO0_HDESC_EPIB_PRESENT, in emac_send_command_sr1()
118 cppi5_hdesc_set_pkttype(first_desc, PRUETH_PKT_TYPE_CMD); in emac_send_command_sr1()
119 epib = first_desc->epib; in emac_send_command_sr1()
123 cppi5_hdesc_attach_buf(first_desc, buf_dma, pkt_len, buf_dma, pkt_len); in emac_send_command_sr1()
124 swdata = cppi5_hdesc_get_swdata(first_desc); in emac_send_command_sr1()
127 cppi5_hdesc_set_pktlen(first_desc, pkt_len); in emac_send_command_sr1()
128 desc_dma = k3_cppi_desc_pool_virt2dma(tx_chn->desc_pool, first_desc); in emac_send_command_sr1()
132 ret = k3_udma_glue_push_tx_chn(tx_chn->tx_chn, first_desc, desc_dma); in emac_send_command_sr1()
145 prueth_xmit_free(tx_chn, first_desc); in emac_send_command_sr1()