Lines Matching refs:tx_ring
448 struct nx_host_tx_ring *tx_ring = adapter->tx_ring; in nx_fw_cmd_create_tx_ctx() local
490 prq_cds->host_phys_addr = cpu_to_le64(tx_ring->phys_addr); in nx_fw_cmd_create_tx_ctx()
491 prq_cds->ring_size = cpu_to_le32(tx_ring->num_desc); in nx_fw_cmd_create_tx_ctx()
503 tx_ring->crb_cmd_producer = netxen_get_ioaddr(adapter, in nx_fw_cmd_create_tx_ctx()
706 struct nx_host_tx_ring *tx_ring; in netxen_init_old_ctx() local
712 tx_ring = adapter->tx_ring; in netxen_init_old_ctx()
716 hwctx->cmd_ring_addr = cpu_to_le64(tx_ring->phys_addr); in netxen_init_old_ctx()
717 hwctx->cmd_ring_size = cpu_to_le32(tx_ring->num_desc); in netxen_init_old_ctx()
762 struct nx_host_tx_ring *tx_ring; in netxen_alloc_hw_resources() local
769 tx_ring = adapter->tx_ring; in netxen_alloc_hw_resources()
785 tx_ring->hw_consumer = in netxen_alloc_hw_resources()
789 addr = pci_alloc_consistent(pdev, TX_DESC_RINGSIZE(tx_ring), in netxen_alloc_hw_resources()
790 &tx_ring->phys_addr); in netxen_alloc_hw_resources()
799 tx_ring->desc_head = addr; in netxen_alloc_hw_resources()
876 struct nx_host_tx_ring *tx_ring; in netxen_free_hw_resources() local
909 tx_ring = adapter->tx_ring; in netxen_free_hw_resources()
910 if (tx_ring->desc_head != NULL) { in netxen_free_hw_resources()
912 TX_DESC_RINGSIZE(tx_ring), in netxen_free_hw_resources()
913 tx_ring->desc_head, tx_ring->phys_addr); in netxen_free_hw_resources()
914 tx_ring->desc_head = NULL; in netxen_free_hw_resources()