Lines Matching refs:tpd
1973 atl1c_get_tx_buffer(struct atl1c_adapter *adapter, struct atl1c_tpd_desc *tpd) in atl1c_get_tx_buffer() argument
1977 return &tpd_ring->buffer_info[tpd - in atl1c_get_tx_buffer()
2001 struct atl1c_tpd_desc **tpd, in atl1c_tso_csum() argument
2038 (*tpd)->word1 |= 1 << TPD_IPV4_PACKET_SHIFT; in atl1c_tso_csum()
2044 *(struct atl1c_tpd_ext_desc **)(tpd); in atl1c_tso_csum()
2047 *tpd = atl1c_get_tpd(adapter, type); in atl1c_tso_csum()
2065 (*tpd)->word1 |= 1 << TPD_LSO_VER_SHIFT; in atl1c_tso_csum()
2068 (*tpd)->word1 |= 1 << TPD_LSO_EN_SHIFT; in atl1c_tso_csum()
2069 (*tpd)->word1 |= (skb_transport_offset(skb) & TPD_TCPHDR_OFFSET_MASK) << in atl1c_tso_csum()
2071 (*tpd)->word1 |= (skb_shinfo(skb)->gso_size & TPD_MSS_MASK) << in atl1c_tso_csum()
2089 (*tpd)->word1 |= ((cso >> 1) & TPD_PLOADOFFSET_MASK) << in atl1c_tso_csum()
2091 (*tpd)->word1 |= ((css >> 1) & TPD_CCSUM_OFFSET_MASK) << in atl1c_tso_csum()
2093 (*tpd)->word1 |= 1 << TPD_CCSUM_EN_SHIFT; in atl1c_tso_csum()
2100 struct sk_buff *skb, struct atl1c_tpd_desc *tpd, in atl1c_tx_map() argument
2114 tso = (tpd->word1 >> TPD_LSO_EN_SHIFT) & TPD_LSO_EN_MASK; in atl1c_tx_map()
2118 use_tpd = tpd; in atl1c_tx_map()
2136 use_tpd = tpd; in atl1c_tx_map()
2139 memcpy(use_tpd, tpd, sizeof(struct atl1c_tpd_desc)); in atl1c_tx_map()
2159 memcpy(use_tpd, tpd, sizeof(struct atl1c_tpd_desc)); in atl1c_tx_map()
2183 struct atl1c_tpd_desc *tpd, enum atl1c_trans_queue type) in atl1c_tx_queue() argument
2211 struct atl1c_tpd_desc *tpd; in atl1c_xmit_frame() local
2237 tpd = atl1c_get_tpd(adapter, type); in atl1c_xmit_frame()
2240 if (atl1c_tso_csum(adapter, skb, &tpd, type) != 0) { in atl1c_xmit_frame()
2252 tpd->word1 |= 1 << TPD_INS_VTAG_SHIFT; in atl1c_xmit_frame()
2253 tpd->vlan_tag = tag; in atl1c_xmit_frame()
2257 tpd->word1 |= 1 << TPD_ETH_TYPE_SHIFT; /* Ethernet frame */ in atl1c_xmit_frame()
2259 atl1c_tx_map(adapter, skb, tpd, type); in atl1c_xmit_frame()
2260 atl1c_tx_queue(adapter, skb, tpd, type); in atl1c_xmit_frame()