Lines Matching defs:desc
184 struct bcm_enet_desc *desc;
191 desc = &priv->rx_desc_cpu[desc_idx];
202 desc->address = p;
214 desc->len_stat = len_stat;
268 struct bcm_enet_desc *desc;
275 desc = &priv->rx_desc_cpu[desc_idx];
281 len_stat = desc->len_stat;
326 /* forget packet, just rearm desc */
331 dma_sync_single_for_cpu(kdev, desc->address,
334 dma_sync_single_for_device(kdev, desc->address,
338 dma_unmap_single(&priv->pdev->dev, desc->address,
375 struct bcm_enet_desc *desc;
382 desc = &priv->tx_desc_cpu[priv->tx_dirty_desc];
384 if (!force && (desc->len_stat & DMADESC_OWNER_MASK)) {
395 dma_unmap_single(&priv->pdev->dev, desc->address, skb->len,
405 if (desc->len_stat & DMADESC_UNDER_MASK)
513 struct bcm_enet_desc *desc;
526 dev_err(&priv->pdev->dev, "xmit called with no tx desc "
532 /* point to the next available desc */
533 desc = &priv->tx_desc_cpu[priv->tx_curr_desc];
537 desc->address = dma_map_single(&priv->pdev->dev, skb->data, skb->len,
552 /* dma might be already polling, make sure we update desc
555 desc->len_stat = len_stat;
562 /* stop queue if no more desc available */
995 struct bcm_enet_desc *desc;
1000 desc = &priv->rx_desc_cpu[i];
1001 dma_unmap_single(kdev, desc->address, priv->rx_skb_size,
1112 struct bcm_enet_desc *desc;
1117 desc = &priv->rx_desc_cpu[i];
1118 dma_unmap_single(kdev, desc->address, priv->rx_skb_size,