Lines Matching defs:first
1382 static int alx_tx_csum(struct sk_buff *skb, struct alx_txd *first)
1394 first->word1 |= cpu_to_le32((cso >> 1) << TPD_CXSUMSTART_SHIFT);
1395 first->word1 |= cpu_to_le32((css >> 1) << TPD_CXSUMOFFSET_SHIFT);
1396 first->word1 |= cpu_to_le32(1 << TPD_CXSUM_EN_SHIFT);
1401 static int alx_tso(struct sk_buff *skb, struct alx_txd *first)
1421 first->word1 |= 1 << TPD_IPV4_SHIFT;
1424 /* LSOv2: the first TPD only provides the packet length */
1425 first->adrl.l.pkt_len = skb->len;
1426 first->word1 |= 1 << TPD_LSO_V2_SHIFT;
1429 first->word1 |= 1 << TPD_LSO_EN_SHIFT;
1430 first->word1 |= (skb_transport_offset(skb) &
1432 first->word1 |= (skb_shinfo(skb)->gso_size &
1512 struct alx_txd *first;
1522 first = &txq->tpd[txq->write_idx];
1523 memset(first, 0, sizeof(*first));
1525 tso = alx_tso(skb, first);
1528 else if (!tso && alx_tx_csum(skb, first))