Home
last modified time | relevance | path

Searched refs:rdesc_count (Results 1 – 4 of 4) sorted by relevance

/drivers/net/ethernet/amd/xgbe/
Dxgbe-desc.c132 for (i = 0; i < ring->rdesc_count; i++) { in xgbe_free_ring()
166 ring->rdesc_count), in xgbe_free_ring()
216 struct xgbe_ring *ring, unsigned int rdesc_count) in xgbe_init_ring() argument
224 size = rdesc_count * sizeof(struct xgbe_ring_desc); in xgbe_init_ring()
226 ring->rdesc_count = rdesc_count; in xgbe_init_ring()
233 size = rdesc_count * sizeof(struct xgbe_ring_data); in xgbe_init_ring()
407 for (j = 0; j < ring->rdesc_count; j++) { in xgbe_wrapper_tx_descriptor_init()
448 for (j = 0; j < ring->rdesc_count; j++) { in xgbe_wrapper_rx_descriptor_init()
542 packet->rdesc_count = 0; in xgbe_map_tx_skb()
646 packet->rdesc_count = cur_index - start_index; in xgbe_map_tx_skb()
[all …]
Dxgbe-drv.c265 return (ring->rdesc_count - (ring->cur - ring->dirty)); in xgbe_tx_avail_desc()
1141 for (j = 0; j < ring->rdesc_count; j++) { in xgbe_free_tx_data()
1164 for (j = 0; j < ring->rdesc_count; j++) { in xgbe_free_rx_data()
1773 packet->rdesc_count = 0; in xgbe_packet_info()
1782 packet->rdesc_count++; in xgbe_packet_info()
1786 packet->rdesc_count++; in xgbe_packet_info()
1806 packet->rdesc_count++; in xgbe_packet_info()
1819 packet->rdesc_count++; in xgbe_packet_info()
1826 packet->rdesc_count++; in xgbe_packet_info()
1970 ret = xgbe_maybe_stop_tx_queue(channel, ring, packet->rdesc_count); in xgbe_xmit()
Dxgbe.h260 ((_idx) & ((_ring)->rdesc_count - 1)))
359 unsigned int rdesc_count; member
460 unsigned int rdesc_count; member
Dxgbe-dev.c1475 for (i = 0; i < ring->rdesc_count; i++) { in xgbe_tx_desc_init()
1483 XGMAC_DMA_IOWRITE(channel, DMA_CH_TDRLR, ring->rdesc_count - 1); in xgbe_tx_desc_init()
1554 for (i = 0; i < ring->rdesc_count; i++) { in xgbe_rx_desc_init()
1562 XGMAC_DMA_IOWRITE(channel, DMA_CH_RDRLR, ring->rdesc_count - 1); in xgbe_rx_desc_init()
1572 rdata = XGBE_GET_DESC_DATA(ring, start_index + ring->rdesc_count - 1); in xgbe_rx_desc_init()
1889 for (i = cur_index - start_index + 1; i < packet->rdesc_count; i++) { in xgbe_dev_xmit()
1941 packet->rdesc_count, 1); in xgbe_dev_xmit()
1955 channel->name, start_index & (ring->rdesc_count - 1), in xgbe_dev_xmit()
1956 (ring->cur - 1) & (ring->rdesc_count - 1)); in xgbe_dev_xmit()
2116 ring->cur & (ring->rdesc_count - 1), ring->cur); in xgbe_dev_read()