Lines Matching defs:desc
460 pr_err("%s:ERROR allocating the DMA Tx/Rx desc\n", __func__);
464 DBG(probe, INFO, "stmmac (%s) DMA desc rings: virt addr (Rx %p, "
505 priv->hw->desc->init_rx_desc(priv->dma_rx, rxsize, dis_ic);
506 priv->hw->desc->init_tx_desc(priv->dma_tx, txsize);
539 priv->hw->desc->get_tx_len(p),
612 if (priv->hw->desc->get_tx_owner(p))
616 last = priv->hw->desc->get_tx_ls(p);
619 priv->hw->desc->tx_status(&priv->dev->stats,
633 priv->hw->desc->get_tx_len(p),
654 priv->hw->desc->release_tx_desc(p);
695 rxret = priv->hw->desc->get_rx_owner(priv->dma_rx +
746 priv->hw->desc->init_tx_desc(priv->dma_tx, priv->dma_tx_size);
996 struct dma_desc *desc = priv->dma_tx + entry;
1002 desc->des2 = dma_map_single(priv->device, skb->data,
1004 desc->des3 = desc->des2 + BUF_SIZE_4KiB;
1005 priv->hw->desc->prepare_tx_desc(desc, 1, BUF_SIZE_8KiB,
1009 desc = priv->dma_tx + entry;
1011 desc->des2 = dma_map_single(priv->device,
1014 desc->des3 = desc->des2 + BUF_SIZE_4KiB;
1015 priv->hw->desc->prepare_tx_desc(desc, 0, buf2_size,
1017 priv->hw->desc->set_tx_owner(desc);
1020 desc->des2 = dma_map_single(priv->device, skb->data,
1022 desc->des3 = desc->des2 + BUF_SIZE_4KiB;
1023 priv->hw->desc->prepare_tx_desc(desc, 1, nopaged_len,
1042 struct dma_desc *desc, *first;
1075 desc = priv->dma_tx + entry;
1076 first = desc;
1087 desc = priv->dma_tx + entry;
1090 desc->des2 = dma_map_single(priv->device, skb->data,
1092 priv->hw->desc->prepare_tx_desc(desc, 1, nopaged_len,
1101 desc = priv->dma_tx + entry;
1104 desc->des2 = dma_map_page(priv->device, frag->page,
1108 priv->hw->desc->prepare_tx_desc(desc, 0, len, csum_insertion);
1109 priv->hw->desc->set_tx_owner(desc);
1113 priv->hw->desc->close_tx_desc(desc);
1118 priv->hw->desc->clear_tx_ic(desc);
1121 priv->hw->desc->set_tx_owner(first);
1180 priv->hw->desc->set_rx_owner(p + entry);
1200 while (!priv->hw->desc->get_rx_owner(p)) {
1213 status = (priv->hw->desc->rx_status(&priv->dev->stats,
1221 frame_len = priv->hw->desc->get_rx_frame_len(p);
1568 device->desc = &enh_desc_ops;
1571 device->desc = &ndesc_ops;
1831 priv->hw->desc->init_rx_desc(priv->dma_rx, priv->dma_rx_size,
1833 priv->hw->desc->init_tx_desc(priv->dma_tx, priv->dma_tx_size);