• Home
  • Raw
  • Download

Lines Matching refs:tpd

1943 atl1c_get_tx_buffer(struct atl1c_adapter *adapter, struct atl1c_tpd_desc *tpd)  in atl1c_get_tx_buffer()  argument
1947 return &tpd_ring->buffer_info[tpd - in atl1c_get_tx_buffer()
1971 struct atl1c_tpd_desc **tpd, in atl1c_tso_csum() argument
2008 (*tpd)->word1 |= 1 << TPD_IPV4_PACKET_SHIFT; in atl1c_tso_csum()
2014 *(struct atl1c_tpd_ext_desc **)(tpd); in atl1c_tso_csum()
2017 *tpd = atl1c_get_tpd(adapter, type); in atl1c_tso_csum()
2035 (*tpd)->word1 |= 1 << TPD_LSO_VER_SHIFT; in atl1c_tso_csum()
2038 (*tpd)->word1 |= 1 << TPD_LSO_EN_SHIFT; in atl1c_tso_csum()
2039 (*tpd)->word1 |= (skb_transport_offset(skb) & TPD_TCPHDR_OFFSET_MASK) << in atl1c_tso_csum()
2041 (*tpd)->word1 |= (skb_shinfo(skb)->gso_size & TPD_MSS_MASK) << in atl1c_tso_csum()
2059 (*tpd)->word1 |= ((cso >> 1) & TPD_PLOADOFFSET_MASK) << in atl1c_tso_csum()
2061 (*tpd)->word1 |= ((css >> 1) & TPD_CCSUM_OFFSET_MASK) << in atl1c_tso_csum()
2063 (*tpd)->word1 |= 1 << TPD_CCSUM_EN_SHIFT; in atl1c_tso_csum()
2075 struct atl1c_tpd_desc *tpd; in atl1c_tx_rollback() local
2081 tpd = ATL1C_TPD_DESC(tpd_ring, index); in atl1c_tx_rollback()
2084 memset(tpd, 0, sizeof(struct atl1c_tpd_desc)); in atl1c_tx_rollback()
2092 struct sk_buff *skb, struct atl1c_tpd_desc *tpd, in atl1c_tx_map() argument
2106 tso = (tpd->word1 >> TPD_LSO_EN_SHIFT) & TPD_LSO_EN_MASK; in atl1c_tx_map()
2110 use_tpd = tpd; in atl1c_tx_map()
2131 use_tpd = tpd; in atl1c_tx_map()
2134 memcpy(use_tpd, tpd, sizeof(struct atl1c_tpd_desc)); in atl1c_tx_map()
2158 memcpy(use_tpd, tpd, sizeof(struct atl1c_tpd_desc)); in atl1c_tx_map()
2191 struct atl1c_tpd_desc *tpd, enum atl1c_trans_queue type) in atl1c_tx_queue() argument
2206 struct atl1c_tpd_desc *tpd; in atl1c_xmit_frame() local
2228 tpd = atl1c_get_tpd(adapter, type); in atl1c_xmit_frame()
2231 if (atl1c_tso_csum(adapter, skb, &tpd, type) != 0) { in atl1c_xmit_frame()
2243 tpd->word1 |= 1 << TPD_INS_VTAG_SHIFT; in atl1c_xmit_frame()
2244 tpd->vlan_tag = tag; in atl1c_xmit_frame()
2248 tpd->word1 |= 1 << TPD_ETH_TYPE_SHIFT; /* Ethernet frame */ in atl1c_xmit_frame()
2250 if (atl1c_tx_map(adapter, skb, tpd, type) < 0) { in atl1c_xmit_frame()
2254 atl1c_tx_rollback(adapter, tpd, type); in atl1c_xmit_frame()
2258 atl1c_tx_queue(adapter, skb, tpd, type); in atl1c_xmit_frame()