Lines Matching refs:channel
174 struct xgbe_channel *channel; in xgbe_free_ring_resources() local
179 channel = pdata->channel; in xgbe_free_ring_resources()
180 for (i = 0; i < pdata->channel_count; i++, channel++) { in xgbe_free_ring_resources()
181 xgbe_free_ring(pdata, channel->tx_ring); in xgbe_free_ring_resources()
182 xgbe_free_ring(pdata, channel->rx_ring); in xgbe_free_ring_resources()
221 struct xgbe_channel *channel; in xgbe_alloc_ring_resources() local
227 channel = pdata->channel; in xgbe_alloc_ring_resources()
228 for (i = 0; i < pdata->channel_count; i++, channel++) { in xgbe_alloc_ring_resources()
229 DBGPR(" %s - tx_ring:\n", channel->name); in xgbe_alloc_ring_resources()
230 ret = xgbe_init_ring(pdata, channel->tx_ring, in xgbe_alloc_ring_resources()
238 DBGPR(" %s - rx_ring:\n", channel->name); in xgbe_alloc_ring_resources()
239 ret = xgbe_init_ring(pdata, channel->rx_ring, in xgbe_alloc_ring_resources()
351 struct xgbe_channel *channel; in xgbe_wrapper_tx_descriptor_init() local
360 channel = pdata->channel; in xgbe_wrapper_tx_descriptor_init()
361 for (i = 0; i < pdata->channel_count; i++, channel++) { in xgbe_wrapper_tx_descriptor_init()
362 ring = channel->tx_ring; in xgbe_wrapper_tx_descriptor_init()
383 hw_if->tx_desc_init(channel); in xgbe_wrapper_tx_descriptor_init()
392 struct xgbe_channel *channel; in xgbe_wrapper_rx_descriptor_init() local
401 channel = pdata->channel; in xgbe_wrapper_rx_descriptor_init()
402 for (i = 0; i < pdata->channel_count; i++, channel++) { in xgbe_wrapper_rx_descriptor_init()
403 ring = channel->rx_ring; in xgbe_wrapper_rx_descriptor_init()
426 hw_if->rx_desc_init(channel); in xgbe_wrapper_rx_descriptor_init()
487 static int xgbe_map_tx_skb(struct xgbe_channel *channel, struct sk_buff *skb) in xgbe_map_tx_skb() argument
489 struct xgbe_prv_data *pdata = channel->pdata; in xgbe_map_tx_skb()
490 struct xgbe_ring *ring = channel->tx_ring; in xgbe_map_tx_skb()