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()
222 struct xgbe_channel *channel; in xgbe_alloc_ring_resources() local
228 channel = pdata->channel; in xgbe_alloc_ring_resources()
229 for (i = 0; i < pdata->channel_count; i++, channel++) { in xgbe_alloc_ring_resources()
231 channel->name); in xgbe_alloc_ring_resources()
233 ret = xgbe_init_ring(pdata, channel->tx_ring, in xgbe_alloc_ring_resources()
242 channel->name); in xgbe_alloc_ring_resources()
244 ret = xgbe_init_ring(pdata, channel->rx_ring, in xgbe_alloc_ring_resources()
357 struct xgbe_channel *channel; in xgbe_wrapper_tx_descriptor_init() local
366 channel = pdata->channel; in xgbe_wrapper_tx_descriptor_init()
367 for (i = 0; i < pdata->channel_count; i++, channel++) { in xgbe_wrapper_tx_descriptor_init()
368 ring = channel->tx_ring; in xgbe_wrapper_tx_descriptor_init()
389 hw_if->tx_desc_init(channel); in xgbe_wrapper_tx_descriptor_init()
398 struct xgbe_channel *channel; in xgbe_wrapper_rx_descriptor_init() local
407 channel = pdata->channel; in xgbe_wrapper_rx_descriptor_init()
408 for (i = 0; i < pdata->channel_count; i++, channel++) { in xgbe_wrapper_rx_descriptor_init()
409 ring = channel->rx_ring; in xgbe_wrapper_rx_descriptor_init()
432 hw_if->rx_desc_init(channel); in xgbe_wrapper_rx_descriptor_init()
491 static int xgbe_map_tx_skb(struct xgbe_channel *channel, struct sk_buff *skb) in xgbe_map_tx_skb() argument
493 struct xgbe_prv_data *pdata = channel->pdata; in xgbe_map_tx_skb()
494 struct xgbe_ring *ring = channel->tx_ring; in xgbe_map_tx_skb()