Searched refs:tx_desc (Results 1 – 4 of 4) sorted by relevance
/qemu/hw/net/ |
H A D | npcm_gmac.c | 517 struct NPCMGMACTxDesc tx_desc; in gmac_try_send_next_packet() local 534 if (gmac_read_tx_desc(desc_addr, &tx_desc)) { in gmac_try_send_next_packet() 545 tx_desc.tdes0, tx_desc.tdes1, tx_desc.tdes2, tx_desc.tdes3); in gmac_try_send_next_packet() 548 if (!(tx_desc.tdes0 & TX_DESC_TDES0_OWN)) { in gmac_try_send_next_packet() 562 tx_desc.tdes0 &= ~TX_DESC_TDES0_OWN; in gmac_try_send_next_packet() 565 csum = gmac_tx_get_csum(tx_desc.tdes1); in gmac_try_send_next_packet() 569 tx_buf_addr = tx_desc.tdes2; in gmac_try_send_next_packet() 592 tx_buf_addr = tx_desc.tdes3; in gmac_try_send_next_packet() 624 gmac_write_tx_desc(desc_addr, &tx_desc); in gmac_try_send_next_packet() 628 desc_addr = tx_desc.tdes3; in gmac_try_send_next_packet() [all …]
|
H A D | npcm7xx_emc.c | 311 if (emc_write_tx_desc(tx_desc, desc_addr)) { in emc_set_next_tx_descriptor() 342 NPCM7xxEMCTxDesc tx_desc; in emc_try_send_next_packet() local 347 if (emc_read_tx_desc(desc_addr, &tx_desc)) { in emc_try_send_next_packet() 355 if (!(tx_desc.flags & TX_DESC_FLAG_OWNER_MASK)) { in emc_try_send_next_packet() 363 tx_desc.flags &= ~TX_DESC_FLAG_OWNER_MASK; in emc_try_send_next_packet() 364 tx_desc.status_and_length &= 0xffff; in emc_try_send_next_packet() 372 next_buf_addr = tx_desc.txbsa; in emc_try_send_next_packet() 374 length = TX_DESC_PKT_LEN(tx_desc.status_and_length); in emc_try_send_next_packet() 402 tx_desc.status_and_length |= TX_DESC_STATUS_TXCP; in emc_try_send_next_packet() 403 if (tx_desc.flags & TX_DESC_FLAG_INTEN) { in emc_try_send_next_packet() [all …]
|
H A D | opencores_eth.c | 288 unsigned tx_desc; member 298 static desc *tx_desc(OpenEthState *s) in tx_desc() function 300 return s->desc + s->tx_desc; in tx_desc() 346 s->tx_desc = 0; in open_eth_reset() 521 s->tx_desc = 0; 523 ++s->tx_desc; 524 if (s->tx_desc >= s->regs[TX_BD_NUM]) { 525 s->tx_desc = 0; 538 desc *tx = tx_desc(s); 594 s->tx_desc = 0;
|
H A D | igb_core.c | 607 union e1000_adv_tx_desc *tx_desc, in igb_process_tx_desc() argument 616 cmd_type_len = le32_to_cpu(tx_desc->read.cmd_type_len); in igb_process_tx_desc() 624 tx->first_olinfo_status = le32_to_cpu(tx_desc->read.olinfo_status); in igb_process_tx_desc() 630 tx_ctx_desc = (struct e1000_adv_tx_context_desc *)tx_desc; in igb_process_tx_desc() 647 buffer_addr = le64_to_cpu(tx_desc->read.buffer_addr); in igb_process_tx_desc() 831 union e1000_adv_tx_desc *tx_desc, in igb_txdesc_writeback() argument 835 uint32_t cmd_type_len = le32_to_cpu(tx_desc->read.cmd_type_len); in igb_txdesc_writeback() 854 uint32_t status = le32_to_cpu(tx_desc->wb.status) | E1000_TXD_STAT_DD; in igb_txdesc_writeback() 856 tx_desc->wb.status = cpu_to_le32(status); in igb_txdesc_writeback() 858 &tx_desc->wb, sizeof(tx_desc->wb)); in igb_txdesc_writeback()
|