Lines Matching refs:tx_desc

316   eth_mac->tx_desc[i].status = ETH_MAC_DMA_TDES0_TCH | ETH_MAC_DMA_TDES0_LS | ETH_MAC_DMA_TDES0_FS;  in XMC_ETH_MAC_InitTxDescriptors()
317 eth_mac->tx_desc[i].buffer1 = (uint32_t)&(eth_mac->tx_buf[i * XMC_ETH_MAC_BUF_SIZE]); in XMC_ETH_MAC_InitTxDescriptors()
323 eth_mac->tx_desc[i].buffer2 = (uint32_t)&(eth_mac->tx_desc[next]); in XMC_ETH_MAC_InitTxDescriptors()
325 eth_mac->regs->TRANSMIT_DESCRIPTOR_LIST_ADDRESS = (uint32_t)&(eth_mac->tx_desc[0]); in XMC_ETH_MAC_InitTxDescriptors()
399 if (eth_mac->tx_desc[eth_mac->tx_index].status & ETH_MAC_DMA_TDES0_OWN) in XMC_ETH_MAC_SendFrame()
416 dst = (uint8_t *)eth_mac->tx_desc[eth_mac->tx_index].buffer1; in XMC_ETH_MAC_SendFrame()
417 eth_mac->tx_desc[eth_mac->tx_index].length = len; in XMC_ETH_MAC_SendFrame()
422 eth_mac->tx_desc[eth_mac->tx_index].length += len; in XMC_ETH_MAC_SendFrame()
435 ctrl = eth_mac->tx_desc[eth_mac->tx_index].status | ETH_MAC_DMA_TDES0_CIC; in XMC_ETH_MAC_SendFrame()
449 eth_mac->tx_desc[eth_mac->tx_index].status = ctrl | ETH_MAC_DMA_TDES0_OWN; in XMC_ETH_MAC_SendFrame()
758 eth_mac->tx_desc[eth_mac->tx_index].status |= ETH_MAC_DMA_TDES0_CIC |ETH_MAC_DMA_TDES0_OWN; in XMC_ETH_MAC_ReturnTxDescriptor()
948 XMC_ETH_MAC_DMA_DESC_t *tx_desc; in XMC_ETH_MAC_GetTxTimeStamp() local
954 tx_desc = &eth_mac->tx_desc[eth_mac->tx_ts_index]; in XMC_ETH_MAC_GetTxTimeStamp()
955 if (tx_desc->status & ETH_MAC_DMA_TDES0_OWN) in XMC_ETH_MAC_GetTxTimeStamp()
961 …if ((tx_desc->status & (ETH_MAC_DMA_TDES0_TTSS | ETH_MAC_DMA_TDES0_LS)) == (ETH_MAC_DMA_TDES0_TTSS… in XMC_ETH_MAC_GetTxTimeStamp()
963 time->nanoseconds = (int32_t)(tx_desc->time_stamp_nanoseconds); /* accuracy of 1 ns */ in XMC_ETH_MAC_GetTxTimeStamp()
964 time->seconds = tx_desc->time_stamp_seconds; in XMC_ETH_MAC_GetTxTimeStamp()