Lines Matching refs:channel_head
163 if (!pdata->channel_head) in xlgmac_free_rings()
166 channel = pdata->channel_head; in xlgmac_free_rings()
179 channel = pdata->channel_head; in xlgmac_alloc_rings()
215 if (!pdata->channel_head) in xlgmac_free_channels()
218 kfree(pdata->channel_head->tx_ring); in xlgmac_free_channels()
219 pdata->channel_head->tx_ring = NULL; in xlgmac_free_channels()
221 kfree(pdata->channel_head->rx_ring); in xlgmac_free_channels()
222 pdata->channel_head->rx_ring = NULL; in xlgmac_free_channels()
224 kfree(pdata->channel_head); in xlgmac_free_channels()
226 pdata->channel_head = NULL; in xlgmac_free_channels()
232 struct xlgmac_channel *channel_head, *channel; in xlgmac_alloc_channels() local
237 channel_head = kcalloc(pdata->channel_count, in xlgmac_alloc_channels()
239 if (!channel_head) in xlgmac_alloc_channels()
243 "channel_head=%p\n", channel_head); in xlgmac_alloc_channels()
255 for (i = 0, channel = channel_head; i < pdata->channel_count; in xlgmac_alloc_channels()
287 pdata->channel_head = channel_head; in xlgmac_alloc_channels()
298 kfree(channel_head); in xlgmac_alloc_channels()
431 channel = pdata->channel_head; in xlgmac_tx_desc_init()
468 channel = pdata->channel_head; in xlgmac_rx_desc_init()