#include "dwc-xlgmac.h"
#include "dwc-xlgmac-reg.h"
static void xlgmac_unmap_desc_data(struct xlgmac_pdata *pdata,
struct xlgmac_desc_data *desc_data)
{ … }
static void xlgmac_free_ring(struct xlgmac_pdata *pdata,
struct xlgmac_ring *ring)
{ … }
static int xlgmac_init_ring(struct xlgmac_pdata *pdata,
struct xlgmac_ring *ring,
unsigned int dma_desc_count)
{ … }
static void xlgmac_free_rings(struct xlgmac_pdata *pdata)
{ … }
static int xlgmac_alloc_rings(struct xlgmac_pdata *pdata)
{ … }
static void xlgmac_free_channels(struct xlgmac_pdata *pdata)
{ … }
static int xlgmac_alloc_channels(struct xlgmac_pdata *pdata)
{ … }
static void xlgmac_free_channels_and_rings(struct xlgmac_pdata *pdata)
{ … }
static int xlgmac_alloc_channels_and_rings(struct xlgmac_pdata *pdata)
{ … }
static int xlgmac_alloc_pages(struct xlgmac_pdata *pdata,
struct xlgmac_page_alloc *pa,
gfp_t gfp, int order)
{ … }
static void xlgmac_set_buffer_data(struct xlgmac_buffer_data *bd,
struct xlgmac_page_alloc *pa,
unsigned int len)
{ … }
static int xlgmac_map_rx_buffer(struct xlgmac_pdata *pdata,
struct xlgmac_ring *ring,
struct xlgmac_desc_data *desc_data)
{ … }
static void xlgmac_tx_desc_init(struct xlgmac_pdata *pdata)
{ … }
static void xlgmac_rx_desc_init(struct xlgmac_pdata *pdata)
{ … }
static int xlgmac_map_tx_skb(struct xlgmac_channel *channel,
struct sk_buff *skb)
{ … }
void xlgmac_init_desc_ops(struct xlgmac_desc_ops *desc_ops)
{ … }