Lines Matching refs:ndesc
108 static void get_pkt_info(dma_addr_t *buff, u32 *buff_len, dma_addr_t *ndesc, in get_pkt_info() argument
113 *ndesc = le32_to_cpu(desc->next_desc); in get_pkt_info()
150 static void set_pkt_info(dma_addr_t buff, u32 buff_len, u32 ndesc, in set_pkt_info() argument
155 desc->next_desc = cpu_to_le32(ndesc); in set_pkt_info()
580 struct knav_dma_desc *ndesc; in netcp_free_rx_desc_chain() local
582 unsigned int buf_len, dma_sz = sizeof(*ndesc); in netcp_free_rx_desc_chain()
589 ndesc = knav_pool_desc_unmap(netcp->rx_pool, dma_desc, dma_sz); in netcp_free_rx_desc_chain()
590 if (unlikely(!ndesc)) { in netcp_free_rx_desc_chain()
594 get_pkt_info(&dma_buf, &tmp, &dma_desc, ndesc); in netcp_free_rx_desc_chain()
598 buf_ptr = (void *)GET_SW_DATA0(ndesc); in netcp_free_rx_desc_chain()
643 struct knav_dma_desc *desc, *ndesc; in netcp_process_one_rx_packet() local
693 ndesc = knav_pool_desc_unmap(netcp->rx_pool, dma_desc, dma_sz); in netcp_process_one_rx_packet()
694 if (unlikely(!ndesc)) { in netcp_process_one_rx_packet()
699 get_pkt_info(&dma_buff, &buf_len, &dma_desc, ndesc); in netcp_process_one_rx_packet()
703 page = (struct page *)GET_SW_DATA0(ndesc); in netcp_process_one_rx_packet()
719 knav_pool_desc_put(netcp->rx_pool, ndesc); in netcp_process_one_rx_packet()
976 struct knav_dma_desc *ndesc = desc; in netcp_free_tx_desc_chain() local
980 while (ndesc) { in netcp_free_tx_desc_chain()
981 get_pkt_info(&dma_buf, &buf_len, &dma_desc, ndesc); in netcp_free_tx_desc_chain()
990 knav_pool_desc_put(netcp->tx_pool, ndesc); in netcp_free_tx_desc_chain()
991 ndesc = NULL; in netcp_free_tx_desc_chain()
993 ndesc = knav_pool_desc_unmap(netcp->tx_pool, dma_desc, in netcp_free_tx_desc_chain()
995 if (!ndesc) in netcp_free_tx_desc_chain()
1083 struct knav_dma_desc *desc, *ndesc, *pdesc; in netcp_tx_map_skb() local
1130 ndesc = knav_pool_desc_get(netcp->tx_pool); in netcp_tx_map_skb()
1131 if (IS_ERR_OR_NULL(ndesc)) { in netcp_tx_map_skb()
1137 desc_dma = knav_pool_desc_virt_to_dma(netcp->tx_pool, ndesc); in netcp_tx_map_skb()
1138 set_pkt_info(dma_addr, buf_len, 0, ndesc); in netcp_tx_map_skb()
1145 pdesc = ndesc; in netcp_tx_map_skb()