Lines Matching defs:first
1405 static int alx_tx_csum(struct sk_buff *skb, struct alx_txd *first)
1417 first->word1 |= cpu_to_le32((cso >> 1) << TPD_CXSUMSTART_SHIFT);
1418 first->word1 |= cpu_to_le32((css >> 1) << TPD_CXSUMOFFSET_SHIFT);
1419 first->word1 |= cpu_to_le32(1 << TPD_CXSUM_EN_SHIFT);
1424 static int alx_tso(struct sk_buff *skb, struct alx_txd *first)
1444 first->word1 |= 1 << TPD_IPV4_SHIFT;
1447 /* LSOv2: the first TPD only provides the packet length */
1448 first->adrl.l.pkt_len = skb->len;
1449 first->word1 |= 1 << TPD_LSO_V2_SHIFT;
1452 first->word1 |= 1 << TPD_LSO_EN_SHIFT;
1453 first->word1 |= (skb_transport_offset(skb) &
1455 first->word1 |= (skb_shinfo(skb)->gso_size &
1535 struct alx_txd *first;
1545 first = &txq->tpd[txq->write_idx];
1546 memset(first, 0, sizeof(*first));
1548 tso = alx_tso(skb, first);
1551 else if (!tso && alx_tx_csum(skb, first))