Lines Matching defs:tpd
1544 * get next usable tpd
1546 * there is enough tpd to use
1562 atl1e_get_tx_buffer(struct atl1e_adapter *adapter, struct atl1e_tpd_desc *tpd)
1566 return &tx_ring->tx_buffer[tpd - tx_ring->desc];
1599 struct sk_buff *skb, struct atl1e_tpd_desc *tpd)
1634 tpd->word3 |= (ip_hdr(skb)->ihl &
1637 tpd->word3 |= ((tcp_hdrlen(skb) >> 2) &
1640 tpd->word3 |= ((skb_shinfo(skb)->gso_size) &
1642 tpd->word3 |= 1 << TPD_SEGMENT_EN_SHIFT;
1659 tpd->word3 |= (cso & TPD_PLOADOFFSET_MASK) <<
1661 tpd->word3 |= (css & TPD_CCSUMOFFSET_MASK) <<
1663 tpd->word3 |= 1 << TPD_CC_SEGMENT_EN_SHIFT;
1671 struct sk_buff *skb, struct atl1e_tpd_desc *tpd)
1684 segment = (tpd->word3 >> TPD_SEGMENT_EN_SHIFT) & TPD_SEGMENT_EN_MASK;
1688 use_tpd = tpd;
1703 /* mapped_len == 0, means we should use the first tpd,
1706 use_tpd = tpd;
1709 memcpy(use_tpd, tpd, sizeof(struct atl1e_tpd_desc));
1739 memcpy(use_tpd, tpd, sizeof(struct atl1e_tpd_desc));
1764 if ((tpd->word3 >> TPD_SEGMENT_EN_SHIFT) & TPD_SEGMENT_EN_MASK)
1766 tpd->word3 |= 1 << TPD_HDRFLAG_SHIFT;
1767 /* The last tpd */
1776 struct atl1e_tpd_desc *tpd)
1793 struct atl1e_tpd_desc *tpd;
1815 tpd = atl1e_get_tpd(adapter);
1821 tpd->word3 |= 1 << TPD_INS_VL_TAG_SHIFT;
1823 tpd->word2 |= (atl1e_vlan_tag & TPD_VLANTAG_MASK) <<
1828 tpd->word3 |= 1 << TPD_VL_TAGGED_SHIFT;
1831 tpd->word3 |= 1 << TPD_ETHTYPE_SHIFT; /* 802.3 frame */
1834 if (atl1e_tso_csum(adapter, skb, tpd) != 0) {
1840 atl1e_tx_map(adapter, skb, tpd);
1841 atl1e_tx_queue(adapter, tpd_req, tpd);