Lines Matching defs:gl
1409 const struct pkt_gl *gl, unsigned int offset)
1414 ssi->frags[0].page = gl->frags[0].page;
1415 ssi->frags[0].page_offset = gl->frags[0].page_offset + offset;
1416 ssi->frags[0].size = gl->frags[0].size - offset;
1417 ssi->nr_frags = gl->nfrags;
1418 n = gl->nfrags - 1;
1420 memcpy(&ssi->frags[1], &gl->frags[1], n * sizeof(skb_frag_t));
1423 get_page(gl->frags[n].page);
1428 * @gl: the gather list
1435 struct sk_buff *cxgb4_pktgl_to_skb(const struct pkt_gl *gl,
1445 if (gl->tot_len <= RX_COPY_THRES) {
1446 skb = dev_alloc_skb(gl->tot_len);
1449 __skb_put(skb, gl->tot_len);
1450 skb_copy_to_linear_data(skb, gl->va, gl->tot_len);
1456 skb_copy_to_linear_data(skb, gl->va, pull_len);
1458 copy_frags(skb_shinfo(skb), gl, pull_len);
1459 skb->len = gl->tot_len;
1469 * @gl: the gather list
1474 static void t4_pktgl_free(const struct pkt_gl *gl)
1479 for (p = gl->frags, n = gl->nfrags - 1; n--; p++)
1488 const struct pkt_gl *gl)
1493 skb = cxgb4_pktgl_to_skb(gl, RX_PULL_LEN, RX_PULL_LEN);
1495 t4_pktgl_free(gl);
1508 static void do_gro(struct sge_eth_rxq *rxq, const struct pkt_gl *gl,
1516 t4_pktgl_free(gl);
1521 copy_frags(skb_shinfo(skb), gl, RX_PKT_PAD);
1522 skb->len = gl->tot_len - RX_PKT_PAD;