Lines Matching defs:tpd
927 /* 2 tpd queue, one high priority queue,
1952 * get next usable tpd
1954 * there is enough tpd to use
1972 atl1c_get_tx_buffer(struct atl1c_adapter *adapter, struct atl1c_tpd_desc *tpd)
1976 return &tpd_ring->buffer_info[tpd -
2000 struct atl1c_tpd_desc **tpd,
2037 (*tpd)->word1 |= 1 << TPD_IPV4_PACKET_SHIFT;
2043 *(struct atl1c_tpd_ext_desc **)(tpd);
2046 *tpd = atl1c_get_tpd(adapter, type);
2064 (*tpd)->word1 |= 1 << TPD_LSO_VER_SHIFT;
2067 (*tpd)->word1 |= 1 << TPD_LSO_EN_SHIFT;
2068 (*tpd)->word1 |= (skb_transport_offset(skb) & TPD_TCPHDR_OFFSET_MASK) <<
2070 (*tpd)->word1 |= (skb_shinfo(skb)->gso_size & TPD_MSS_MASK) <<
2088 (*tpd)->word1 |= ((cso >> 1) & TPD_PLOADOFFSET_MASK) <<
2090 (*tpd)->word1 |= ((css >> 1) & TPD_CCSUM_OFFSET_MASK) <<
2092 (*tpd)->word1 |= 1 << TPD_CCSUM_EN_SHIFT;
2099 struct sk_buff *skb, struct atl1c_tpd_desc *tpd,
2113 tso = (tpd->word1 >> TPD_LSO_EN_SHIFT) & TPD_LSO_EN_MASK;
2117 use_tpd = tpd;
2132 /* mapped_len == 0, means we should use the first tpd,
2135 use_tpd = tpd;
2138 memcpy(use_tpd, tpd, sizeof(struct atl1c_tpd_desc));
2158 memcpy(use_tpd, tpd, sizeof(struct atl1c_tpd_desc));
2174 /* The last tpd */
2182 struct atl1c_tpd_desc *tpd, enum atl1c_trans_queue type)
2210 struct atl1c_tpd_desc *tpd;
2236 tpd = atl1c_get_tpd(adapter, type);
2239 if (atl1c_tso_csum(adapter, skb, &tpd, type) != 0) {
2251 tpd->word1 |= 1 << TPD_INS_VTAG_SHIFT;
2252 tpd->vlan_tag = tag;
2256 tpd->word1 |= 1 << TPD_ETH_TYPE_SHIFT; /* Ethernet frame */
2258 atl1c_tx_map(adapter, skb, tpd, type);
2259 atl1c_tx_queue(adapter, skb, tpd, type);