Lines Matching refs:desc
212 struct hix5hd2_desc *desc; member
219 struct sg_desc *desc; member
466 struct hix5hd2_desc *desc; in hix5hd2_rx_refill() local
493 desc = priv->rx_fq.desc + pos; in hix5hd2_rx_refill()
494 desc->buff_addr = cpu_to_le32(addr); in hix5hd2_rx_refill()
496 desc->cmd = cpu_to_le32(DESC_VLD_FREE | in hix5hd2_rx_refill()
512 struct hix5hd2_desc *desc; in hix5hd2_rx() local
534 desc = priv->rx_bq.desc + pos; in hix5hd2_rx()
535 len = (le32_to_cpu(desc->cmd) >> DESC_DATA_LEN_OFF) & in hix5hd2_rx()
537 addr = le32_to_cpu(desc->buff_addr); in hix5hd2_rx()
569 struct sg_desc *desc; in hix5hd2_clean_sg_desc() local
574 desc = priv->tx_ring.desc + pos; in hix5hd2_clean_sg_desc()
576 addr = le32_to_cpu(desc->linear_addr); in hix5hd2_clean_sg_desc()
577 len = le32_to_cpu(desc->linear_len); in hix5hd2_clean_sg_desc()
581 addr = le32_to_cpu(desc->frags[i].addr); in hix5hd2_clean_sg_desc()
582 len = le32_to_cpu(desc->frags[i].size); in hix5hd2_clean_sg_desc()
590 struct hix5hd2_desc *desc; in hix5hd2_xmit_reclaim() local
613 desc = priv->tx_rq.desc + pos; in hix5hd2_xmit_reclaim()
618 addr = le32_to_cpu(desc->buff_addr); in hix5hd2_xmit_reclaim()
705 struct sg_desc *desc; in hix5hd2_fill_sg_desc() local
710 desc = priv->tx_ring.desc + pos; in hix5hd2_fill_sg_desc()
712 desc->total_len = cpu_to_le32(skb->len); in hix5hd2_fill_sg_desc()
717 desc->linear_addr = cpu_to_le32(addr); in hix5hd2_fill_sg_desc()
718 desc->linear_len = cpu_to_le32(skb_headlen(skb)); in hix5hd2_fill_sg_desc()
728 desc->frags[i].addr = cpu_to_le32(addr); in hix5hd2_fill_sg_desc()
729 desc->frags[i].size = cpu_to_le32(len); in hix5hd2_fill_sg_desc()
738 struct hix5hd2_desc *desc; in hix5hd2_net_xmit() local
753 desc = priv->tx_bq.desc + pos; in hix5hd2_net_xmit()
756 desc->cmd = cpu_to_le32(cmd); in hix5hd2_net_xmit()
775 desc->buff_addr = cpu_to_le32(addr); in hix5hd2_net_xmit()
795 struct hix5hd2_desc *desc; in hix5hd2_free_dma_desc_rings() local
804 desc = priv->rx_fq.desc + i; in hix5hd2_free_dma_desc_rings()
805 addr = le32_to_cpu(desc->buff_addr); in hix5hd2_free_dma_desc_rings()
817 desc = priv->tx_rq.desc + i; in hix5hd2_free_dma_desc_rings()
818 addr = le32_to_cpu(desc->buff_addr); in hix5hd2_free_dma_desc_rings()
982 if (priv->pool[i].desc) { in hix5hd2_destroy_hw_desc_queue()
984 priv->pool[i].desc, in hix5hd2_destroy_hw_desc_queue()
986 priv->pool[i].desc = NULL; in hix5hd2_destroy_hw_desc_queue()
1011 priv->pool[i].desc = virt_addr; in hix5hd2_init_hw_desc_queue()
1024 struct sg_desc *desc; in hix5hd2_init_sg_desc_queue() local
1027 desc = dma_alloc_coherent(priv->dev, in hix5hd2_init_sg_desc_queue()
1030 if (!desc) in hix5hd2_init_sg_desc_queue()
1033 priv->tx_ring.desc = desc; in hix5hd2_init_sg_desc_queue()
1041 if (priv->tx_ring.desc) { in hix5hd2_destroy_sg_desc_queue()
1044 priv->tx_ring.desc, priv->tx_ring.phys_addr); in hix5hd2_destroy_sg_desc_queue()
1045 priv->tx_ring.desc = NULL; in hix5hd2_destroy_sg_desc_queue()