Lines Matching refs:tpd
1562 atl1e_get_tx_buffer(struct atl1e_adapter *adapter, struct atl1e_tpd_desc *tpd) in atl1e_get_tx_buffer() argument
1566 return &tx_ring->tx_buffer[tpd - tx_ring->desc]; in atl1e_get_tx_buffer()
1599 struct sk_buff *skb, struct atl1e_tpd_desc *tpd) in atl1e_tso_csum() argument
1634 tpd->word3 |= (ip_hdr(skb)->ihl & in atl1e_tso_csum()
1637 tpd->word3 |= ((tcp_hdrlen(skb) >> 2) & in atl1e_tso_csum()
1640 tpd->word3 |= ((skb_shinfo(skb)->gso_size) & in atl1e_tso_csum()
1642 tpd->word3 |= 1 << TPD_SEGMENT_EN_SHIFT; in atl1e_tso_csum()
1659 tpd->word3 |= (cso & TPD_PLOADOFFSET_MASK) << in atl1e_tso_csum()
1661 tpd->word3 |= (css & TPD_CCSUMOFFSET_MASK) << in atl1e_tso_csum()
1663 tpd->word3 |= 1 << TPD_CC_SEGMENT_EN_SHIFT; in atl1e_tso_csum()
1671 struct sk_buff *skb, struct atl1e_tpd_desc *tpd) in atl1e_tx_map() argument
1684 segment = (tpd->word3 >> TPD_SEGMENT_EN_SHIFT) & TPD_SEGMENT_EN_MASK; in atl1e_tx_map()
1688 use_tpd = tpd; in atl1e_tx_map()
1706 use_tpd = tpd; in atl1e_tx_map()
1709 memcpy(use_tpd, tpd, sizeof(struct atl1e_tpd_desc)); in atl1e_tx_map()
1739 memcpy(use_tpd, tpd, sizeof(struct atl1e_tpd_desc)); in atl1e_tx_map()
1764 if ((tpd->word3 >> TPD_SEGMENT_EN_SHIFT) & TPD_SEGMENT_EN_MASK) in atl1e_tx_map()
1766 tpd->word3 |= 1 << TPD_HDRFLAG_SHIFT; in atl1e_tx_map()
1776 struct atl1e_tpd_desc *tpd) in atl1e_tx_queue() argument
1793 struct atl1e_tpd_desc *tpd; in atl1e_xmit_frame() local
1815 tpd = atl1e_get_tpd(adapter); in atl1e_xmit_frame()
1821 tpd->word3 |= 1 << TPD_INS_VL_TAG_SHIFT; in atl1e_xmit_frame()
1823 tpd->word2 |= (atl1e_vlan_tag & TPD_VLANTAG_MASK) << in atl1e_xmit_frame()
1828 tpd->word3 |= 1 << TPD_VL_TAGGED_SHIFT; in atl1e_xmit_frame()
1831 tpd->word3 |= 1 << TPD_ETHTYPE_SHIFT; /* 802.3 frame */ in atl1e_xmit_frame()
1834 if (atl1e_tso_csum(adapter, skb, tpd) != 0) { in atl1e_xmit_frame()
1840 atl1e_tx_map(adapter, skb, tpd); in atl1e_xmit_frame()
1841 atl1e_tx_queue(adapter, tpd_req, tpd); in atl1e_xmit_frame()