Lines Matching full:rxd
123 void mac_drv_rx_complete(struct s_smc *smc, volatile struct s_smt_fp_rxd *rxd,
125 void mac_drv_requeue_rxd(struct s_smc *smc, volatile struct s_smt_fp_rxd *rxd,
128 void mac_drv_clear_rxd(struct s_smc *smc, volatile struct s_smt_fp_rxd *rxd,
1329 * It allocates the memory for the RxD and TxD descriptors.
1433 * descr - A pointer to a TxD or RxD, respectively.
1541 * be received. It also fills the RxD ring with new receive buffers if
1546 * rxd - A pointer to the first RxD which is used by the receive frame.
1555 void mac_drv_rx_complete(struct s_smc *smc, volatile struct s_smt_fp_rxd *rxd, in mac_drv_rx_complete() argument
1568 goto RequeueRxd; // Re-use the given RXD(s). in mac_drv_rx_complete()
1571 skb = rxd->rxd_os.skb; in mac_drv_rx_complete()
1573 pr_debug("No skb in rxd\n"); in mac_drv_rx_complete()
1638 rxd->rxd_os.skb = NULL; in mac_drv_rx_complete()
1648 pr_debug("Rx: re-queue RXD.\n"); in mac_drv_rx_complete()
1649 mac_drv_requeue_rxd(smc, rxd, frag_count); in mac_drv_rx_complete()
1662 * to the RxD and the frag_count into the receive queue again. This
1667 * rxd - A pointer to the first RxD which is used by the receive frame.
1674 void mac_drv_requeue_rxd(struct s_smc *smc, volatile struct s_smt_fp_rxd *rxd, in mac_drv_requeue_rxd() argument
1689 src_rxd = rxd; in mac_drv_requeue_rxd()
1692 rxd = HWM_GET_CURR_RXD(smc); in mac_drv_requeue_rxd()
1697 pr_debug("Requeue with no skb in rxd!\n"); in mac_drv_requeue_rxd()
1701 rxd->rxd_os.skb = skb; in mac_drv_requeue_rxd()
1709 rxd->rxd_os.dma_addr = b_addr; in mac_drv_requeue_rxd()
1713 rxd->rxd_os.skb = NULL; in mac_drv_requeue_rxd()
1718 // we use skb from old rxd in mac_drv_requeue_rxd()
1719 rxd->rxd_os.skb = skb; in mac_drv_requeue_rxd()
1725 rxd->rxd_os.dma_addr = b_addr; in mac_drv_requeue_rxd()
1740 * to fill the RxD ring with receive buffers. It is also called by
1742 * receive buffers into the RxD ring. mac_drv_fill_rxd queues new
1757 volatile struct s_smt_fp_rxd *rxd; in mac_drv_fill_rxd() local
1765 // Check if there is any RXD left. in mac_drv_fill_rxd()
1769 rxd = HWM_GET_CURR_RXD(smc); in mac_drv_fill_rxd()
1780 rxd->rxd_os.dma_addr = b_addr; in mac_drv_fill_rxd()
1792 rxd->rxd_os.skb = skb; in mac_drv_fill_rxd()
1811 * rxd - A pointer to the first RxD which is used by the receive buffer.
1818 void mac_drv_clear_rxd(struct s_smc *smc, volatile struct s_smt_fp_rxd *rxd, in mac_drv_clear_rxd() argument
1831 skb = rxd->rxd_os.skb; in mac_drv_clear_rxd()
1836 pci_unmap_single(&bp->pdev, rxd->rxd_os.dma_addr, in mac_drv_clear_rxd()
1840 rxd->rxd_os.skb = NULL; in mac_drv_clear_rxd()
1842 rxd = rxd->rxd_next; // Next RXD. in mac_drv_clear_rxd()