Lines Matching refs:tpd

1941 atl1c_get_tx_buffer(struct atl1c_adapter *adapter, struct atl1c_tpd_desc *tpd)  in atl1c_get_tx_buffer()  argument
1945 return &tpd_ring->buffer_info[tpd - in atl1c_get_tx_buffer()
1969 struct atl1c_tpd_desc **tpd, in atl1c_tso_csum() argument
2006 (*tpd)->word1 |= 1 << TPD_IPV4_PACKET_SHIFT; in atl1c_tso_csum()
2012 *(struct atl1c_tpd_ext_desc **)(tpd); in atl1c_tso_csum()
2015 *tpd = atl1c_get_tpd(adapter, type); in atl1c_tso_csum()
2031 (*tpd)->word1 |= 1 << TPD_LSO_VER_SHIFT; in atl1c_tso_csum()
2034 (*tpd)->word1 |= 1 << TPD_LSO_EN_SHIFT; in atl1c_tso_csum()
2035 (*tpd)->word1 |= (skb_transport_offset(skb) & TPD_TCPHDR_OFFSET_MASK) << in atl1c_tso_csum()
2037 (*tpd)->word1 |= (skb_shinfo(skb)->gso_size & TPD_MSS_MASK) << in atl1c_tso_csum()
2055 (*tpd)->word1 |= ((cso >> 1) & TPD_PLOADOFFSET_MASK) << in atl1c_tso_csum()
2057 (*tpd)->word1 |= ((css >> 1) & TPD_CCSUM_OFFSET_MASK) << in atl1c_tso_csum()
2059 (*tpd)->word1 |= 1 << TPD_CCSUM_EN_SHIFT; in atl1c_tso_csum()
2071 struct atl1c_tpd_desc *tpd; in atl1c_tx_rollback() local
2077 tpd = ATL1C_TPD_DESC(tpd_ring, index); in atl1c_tx_rollback()
2080 memset(tpd, 0, sizeof(struct atl1c_tpd_desc)); in atl1c_tx_rollback()
2088 struct sk_buff *skb, struct atl1c_tpd_desc *tpd, in atl1c_tx_map() argument
2102 tso = (tpd->word1 >> TPD_LSO_EN_SHIFT) & TPD_LSO_EN_MASK; in atl1c_tx_map()
2106 use_tpd = tpd; in atl1c_tx_map()
2127 use_tpd = tpd; in atl1c_tx_map()
2130 memcpy(use_tpd, tpd, sizeof(struct atl1c_tpd_desc)); in atl1c_tx_map()
2152 memcpy(use_tpd, tpd, sizeof(struct atl1c_tpd_desc)); in atl1c_tx_map()
2185 struct atl1c_tpd_desc *tpd, enum atl1c_trans_queue type) in atl1c_tx_queue() argument
2199 struct atl1c_tpd_desc *tpd; in atl1c_xmit_frame() local
2215 tpd = atl1c_get_tpd(adapter, type); in atl1c_xmit_frame()
2218 if (atl1c_tso_csum(adapter, skb, &tpd, type) != 0) { in atl1c_xmit_frame()
2229 tpd->word1 |= 1 << TPD_INS_VTAG_SHIFT; in atl1c_xmit_frame()
2230 tpd->vlan_tag = tag; in atl1c_xmit_frame()
2234 tpd->word1 |= 1 << TPD_ETH_TYPE_SHIFT; /* Ethernet frame */ in atl1c_xmit_frame()
2236 if (atl1c_tx_map(adapter, skb, tpd, type) < 0) { in atl1c_xmit_frame()
2240 atl1c_tx_rollback(adapter, tpd, type); in atl1c_xmit_frame()
2244 atl1c_tx_queue(adapter, skb, tpd, type); in atl1c_xmit_frame()