Lines Matching refs:tpd
1952 atl1c_get_tx_buffer(struct atl1c_adapter *adapter, struct atl1c_tpd_desc *tpd) in atl1c_get_tx_buffer() argument
1956 return &tpd_ring->buffer_info[tpd - in atl1c_get_tx_buffer()
1980 struct atl1c_tpd_desc **tpd, in atl1c_tso_csum() argument
2017 (*tpd)->word1 |= 1 << TPD_IPV4_PACKET_SHIFT; in atl1c_tso_csum()
2023 *(struct atl1c_tpd_ext_desc **)(tpd); in atl1c_tso_csum()
2026 *tpd = atl1c_get_tpd(adapter, type); in atl1c_tso_csum()
2044 (*tpd)->word1 |= 1 << TPD_LSO_VER_SHIFT; in atl1c_tso_csum()
2047 (*tpd)->word1 |= 1 << TPD_LSO_EN_SHIFT; in atl1c_tso_csum()
2048 (*tpd)->word1 |= (skb_transport_offset(skb) & TPD_TCPHDR_OFFSET_MASK) << in atl1c_tso_csum()
2050 (*tpd)->word1 |= (skb_shinfo(skb)->gso_size & TPD_MSS_MASK) << in atl1c_tso_csum()
2068 (*tpd)->word1 |= ((cso >> 1) & TPD_PLOADOFFSET_MASK) << in atl1c_tso_csum()
2070 (*tpd)->word1 |= ((css >> 1) & TPD_CCSUM_OFFSET_MASK) << in atl1c_tso_csum()
2072 (*tpd)->word1 |= 1 << TPD_CCSUM_EN_SHIFT; in atl1c_tso_csum()
2084 struct atl1c_tpd_desc *tpd; in atl1c_tx_rollback() local
2090 tpd = ATL1C_TPD_DESC(tpd_ring, index); in atl1c_tx_rollback()
2093 memset(tpd, 0, sizeof(struct atl1c_tpd_desc)); in atl1c_tx_rollback()
2101 struct sk_buff *skb, struct atl1c_tpd_desc *tpd, in atl1c_tx_map() argument
2115 tso = (tpd->word1 >> TPD_LSO_EN_SHIFT) & TPD_LSO_EN_MASK; in atl1c_tx_map()
2119 use_tpd = tpd; in atl1c_tx_map()
2140 use_tpd = tpd; in atl1c_tx_map()
2143 memcpy(use_tpd, tpd, sizeof(struct atl1c_tpd_desc)); in atl1c_tx_map()
2167 memcpy(use_tpd, tpd, sizeof(struct atl1c_tpd_desc)); in atl1c_tx_map()
2200 struct atl1c_tpd_desc *tpd, enum atl1c_trans_queue type) in atl1c_tx_queue() argument
2215 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 if (atl1c_tx_map(adapter, skb, tpd, type) < 0) { in atl1c_xmit_frame()
2263 atl1c_tx_rollback(adapter, tpd, type); in atl1c_xmit_frame()
2268 atl1c_tx_queue(adapter, skb, tpd, type); in atl1c_xmit_frame()