Lines Matching refs:first_bd
80 struct eth_tx_1st_bd *first_bd; in qede_free_tx_pkt() local
96 first_bd = (struct eth_tx_1st_bd *)qed_chain_consume(&txq->tx_pbl); in qede_free_tx_pkt()
100 nbds = first_bd->data.nbds; in qede_free_tx_pkt()
108 dma_unmap_single(&edev->pdev->dev, BD_UNMAP_ADDR(first_bd), in qede_free_tx_pkt()
109 BD_UNMAP_LEN(first_bd) + split_bd_len, DMA_TO_DEVICE); in qede_free_tx_pkt()
132 struct eth_tx_1st_bd *first_bd, in qede_free_failed_tx_pkt() argument
142 le16_to_cpu(txq->tx_db.data.bd_prod), first_bd); in qede_free_failed_tx_pkt()
144 first_bd = (struct eth_tx_1st_bd *)qed_chain_produce(&txq->tx_pbl); in qede_free_failed_tx_pkt()
153 dma_unmap_single(txq->dev, BD_UNMAP_ADDR(first_bd), in qede_free_failed_tx_pkt()
154 BD_UNMAP_LEN(first_bd) + split_bd_len, DMA_TO_DEVICE); in qede_free_failed_tx_pkt()
168 le16_to_cpu(txq->tx_db.data.bd_prod), first_bd); in qede_free_failed_tx_pkt()
1483 struct eth_tx_1st_bd *first_bd; in qede_start_xmit() local
1520 first_bd = (struct eth_tx_1st_bd *) in qede_start_xmit()
1522 memset(first_bd, 0, sizeof(*first_bd)); in qede_start_xmit()
1523 first_bd->data.bd_flags.bitfields = in qede_start_xmit()
1534 qede_free_failed_tx_pkt(txq, first_bd, 0, false); in qede_start_xmit()
1539 BD_SET_UNMAP_ADDR_LEN(first_bd, mapping, skb_headlen(skb)); in qede_start_xmit()
1560 first_bd->data.vlan = cpu_to_le16(skb_vlan_tag_get(skb)); in qede_start_xmit()
1561 first_bd->data.bd_flags.bitfields |= in qede_start_xmit()
1570 first_bd->data.bd_flags.bitfields |= in qede_start_xmit()
1574 first_bd->data.bd_flags.bitfields |= in qede_start_xmit()
1596 first_bd->data.bd_flags.bitfields |= in qede_start_xmit()
1602 first_bd->data.bd_flags.bitfields |= in qede_start_xmit()
1608 first_bd->data.bd_flags.bitfields |= 1 << tmp; in qede_start_xmit()
1612 first_bd->data.bd_flags.bitfields |= in qede_start_xmit()
1627 first_bd->nbytes, first_bd->addr.hi, in qede_start_xmit()
1628 first_bd->addr.lo); in qede_start_xmit()
1630 mapping = HILO_U64(le32_to_cpu(first_bd->addr.hi), in qede_start_xmit()
1631 le32_to_cpu(first_bd->addr.lo)) + in qede_start_xmit()
1635 le16_to_cpu(first_bd->nbytes) - in qede_start_xmit()
1643 first_bd->nbytes = cpu_to_le16(hlen); in qede_start_xmit()
1651 qede_free_failed_tx_pkt(txq, first_bd, 0, false); in qede_start_xmit()
1660 first_bd->data.bitfields = cpu_to_le16(val); in qede_start_xmit()
1669 qede_free_failed_tx_pkt(txq, first_bd, nbd, data_split); in qede_start_xmit()
1693 qede_free_failed_tx_pkt(txq, first_bd, nbd, data_split); in qede_start_xmit()
1700 first_bd->data.nbds = nbd; in qede_start_xmit()