Lines Matching refs:tpd
1589 atl1e_get_tx_buffer(struct atl1e_adapter *adapter, struct atl1e_tpd_desc *tpd) in atl1e_get_tx_buffer() argument
1593 return &tx_ring->tx_buffer[tpd - tx_ring->desc]; in atl1e_get_tx_buffer()
1626 struct sk_buff *skb, struct atl1e_tpd_desc *tpd) in atl1e_tso_csum() argument
1661 tpd->word3 |= (ip_hdr(skb)->ihl & in atl1e_tso_csum()
1664 tpd->word3 |= ((tcp_hdrlen(skb) >> 2) & in atl1e_tso_csum()
1667 tpd->word3 |= ((skb_shinfo(skb)->gso_size) & in atl1e_tso_csum()
1669 tpd->word3 |= 1 << TPD_SEGMENT_EN_SHIFT; in atl1e_tso_csum()
1686 tpd->word3 |= (cso & TPD_PLOADOFFSET_MASK) << in atl1e_tso_csum()
1688 tpd->word3 |= (css & TPD_CCSUMOFFSET_MASK) << in atl1e_tso_csum()
1690 tpd->word3 |= 1 << TPD_CC_SEGMENT_EN_SHIFT; in atl1e_tso_csum()
1698 struct sk_buff *skb, struct atl1e_tpd_desc *tpd) in atl1e_tx_map() argument
1713 segment = (tpd->word3 >> TPD_SEGMENT_EN_SHIFT) & TPD_SEGMENT_EN_MASK; in atl1e_tx_map()
1717 use_tpd = tpd; in atl1e_tx_map()
1739 use_tpd = tpd; in atl1e_tx_map()
1742 memcpy(use_tpd, tpd, sizeof(struct atl1e_tpd_desc)); in atl1e_tx_map()
1760 tpd = atl1e_get_tpd(adapter); in atl1e_tx_map()
1761 tx_buffer = atl1e_get_tx_buffer(adapter, tpd); in atl1e_tx_map()
1790 memcpy(use_tpd, tpd, sizeof(struct atl1e_tpd_desc)); in atl1e_tx_map()
1812 tpd = atl1e_get_tpd(adapter); in atl1e_tx_map()
1813 tx_buffer = atl1e_get_tx_buffer(adapter, tpd); in atl1e_tx_map()
1831 if ((tpd->word3 >> TPD_SEGMENT_EN_SHIFT) & TPD_SEGMENT_EN_MASK) in atl1e_tx_map()
1833 tpd->word3 |= 1 << TPD_HDRFLAG_SHIFT; in atl1e_tx_map()
1844 struct atl1e_tpd_desc *tpd) in atl1e_tx_queue() argument
1860 struct atl1e_tpd_desc *tpd; in atl1e_xmit_frame() local
1879 tpd = atl1e_get_tpd(adapter); in atl1e_xmit_frame()
1885 tpd->word3 |= 1 << TPD_INS_VL_TAG_SHIFT; in atl1e_xmit_frame()
1887 tpd->word2 |= (atl1e_vlan_tag & TPD_VLANTAG_MASK) << in atl1e_xmit_frame()
1892 tpd->word3 |= 1 << TPD_VL_TAGGED_SHIFT; in atl1e_xmit_frame()
1895 tpd->word3 |= 1 << TPD_ETHTYPE_SHIFT; /* 802.3 frame */ in atl1e_xmit_frame()
1898 if (atl1e_tso_csum(adapter, skb, tpd) != 0) { in atl1e_xmit_frame()
1903 if (atl1e_tx_map(adapter, skb, tpd)) { in atl1e_xmit_frame()
1908 atl1e_tx_queue(adapter, tpd_req, tpd); in atl1e_xmit_frame()