37 unsigned int nopaged_len = skb_headlen(skb);
38 unsigned int bmax,
len;
40 if (priv->
plat->enh_desc)
45 len = nopaged_len - bmax;
52 priv->
hw->desc->prepare_tx_desc(desc, 1, bmax,
55 entry = (++priv->
cur_tx) % txsize;
56 desc = priv->dma_tx +
entry;
61 priv->
hw->desc->prepare_tx_desc(desc, 0, len, csum);
63 priv->
hw->desc->set_tx_owner(desc);
69 priv->
hw->desc->prepare_tx_desc(desc, 1, nopaged_len, csum);
75 static unsigned int stmmac_is_jumbo_frm(
int len,
int enh_desc)
85 static void stmmac_refill_desc3(
int bfsize,
struct dma_desc *p)
94 static void stmmac_init_desc3(
int des3_as_data_buf,
struct dma_desc *p)
105 static void stmmac_clean_desc3(
struct dma_desc *p)
111 static int stmmac_set_16kib_bfsize(
int mtu)
120 .is_jumbo_frm = stmmac_is_jumbo_frm,
122 .refill_desc3 = stmmac_refill_desc3,
123 .init_desc3 = stmmac_init_desc3,
124 .init_dma_chain = stmmac_init_dma_chain,
125 .clean_desc3 = stmmac_clean_desc3,
126 .set_16kib_bfsize = stmmac_set_16kib_bfsize,