Lines Matching refs:txdesc
420 DmaDesc *txdesc = gmacdev->TxNextDesc; in m_numaker_gmacdev_get_tx_buf() local
422 if (!synopGMAC_is_desc_empty(txdesc)) { in m_numaker_gmacdev_get_tx_buf()
426 if (synopGMAC_is_desc_owned_by_dma(txdesc)) { in m_numaker_gmacdev_get_tx_buf()
430 return (uint8_t *)(txdesc->buffer1); in m_numaker_gmacdev_get_tx_buf()
435 DmaDesc *txdesc = gmacdev->TxNextDesc; in m_numaker_gmacdev_trigger_tx() local
442 txdesc->length |= ((length << DescSize1Shift) & DescSize1Mask); in m_numaker_gmacdev_trigger_tx()
443 txdesc->status |= (DescTxFirst | DescTxLast | DescTxIntEnable); in m_numaker_gmacdev_trigger_tx()
449 synopGMAC_tx_checksum_offload_tcp_pseudo(gmacdev, txdesc); in m_numaker_gmacdev_trigger_tx()
451 synopGMAC_tx_checksum_offload_bypass(gmacdev, txdesc); in m_numaker_gmacdev_trigger_tx()
454 txdesc->status |= DescOwnByDma; in m_numaker_gmacdev_trigger_tx()
456 gmacdev->TxNext = synopGMAC_is_last_tx_desc(gmacdev, txdesc) ? 0 : txnext + 1; in m_numaker_gmacdev_trigger_tx()
458 synopGMAC_is_last_tx_desc(gmacdev, txdesc) ? gmacdev->TxDesc : (txdesc + 1); in m_numaker_gmacdev_trigger_tx()