Lines Matching refs:gl
219 cxgbit_copy_frags(struct sk_buff *skb, const struct pkt_gl *gl, in cxgbit_copy_frags() argument
226 __skb_fill_page_desc(skb, skb_frag_idx, gl->frags[0].page, in cxgbit_copy_frags()
227 gl->frags[0].offset + offset, in cxgbit_copy_frags()
228 gl->frags[0].size - offset); in cxgbit_copy_frags()
229 for (i = 1; i < gl->nfrags; i++) in cxgbit_copy_frags()
231 gl->frags[i].page, in cxgbit_copy_frags()
232 gl->frags[i].offset, in cxgbit_copy_frags()
233 gl->frags[i].size); in cxgbit_copy_frags()
235 skb_shinfo(skb)->nr_frags += gl->nfrags; in cxgbit_copy_frags()
238 get_page(gl->frags[gl->nfrags - 1].page); in cxgbit_copy_frags()
242 cxgbit_lro_add_packet_gl(struct sk_buff *skb, u8 op, const struct pkt_gl *gl) in cxgbit_lro_add_packet_gl() argument
250 struct cpl_iscsi_hdr *cpl = (struct cpl_iscsi_hdr *)gl->va; in cxgbit_lro_add_packet_gl()
256 pdu_cb->hdr = gl->va + offset; in cxgbit_lro_add_packet_gl()
260 if (unlikely(gl->nfrags > 1)) in cxgbit_lro_add_packet_gl()
265 struct cpl_iscsi_data *cpl = (struct cpl_iscsi_data *)gl->va; in cxgbit_lro_add_packet_gl()
272 pdu_cb->nr_dfrags = gl->nfrags; in cxgbit_lro_add_packet_gl()
278 cpl = (struct cpl_rx_iscsi_cmp *)gl->va; in cxgbit_lro_add_packet_gl()
282 pdu_cb->hdr = gl->va + offset; in cxgbit_lro_add_packet_gl()
288 if (unlikely(gl->nfrags > 1)) in cxgbit_lro_add_packet_gl()
306 cxgbit_copy_frags(skb, gl, offset); in cxgbit_lro_add_packet_gl()
308 pdu_cb->frags += gl->nfrags; in cxgbit_lro_add_packet_gl()
316 cxgbit_lro_init_skb(struct cxgbit_sock *csk, u8 op, const struct pkt_gl *gl, in cxgbit_lro_init_skb() argument
380 const struct pkt_gl *gl, struct t4_lro_mgr *lro_mgr, in cxgbit_lro_receive() argument
400 skb = cxgbit_lro_init_skb(csk, op, gl, rsp, napi); in cxgbit_lro_receive()
413 if ((gl && (((skb_shinfo(skb)->nr_frags + gl->nfrags) > in cxgbit_lro_receive()
420 if (gl) in cxgbit_lro_receive()
421 cxgbit_lro_add_packet_gl(skb, op, gl); in cxgbit_lro_receive()
435 const struct pkt_gl *gl, struct t4_lro_mgr *lro_mgr, in cxgbit_uld_lro_rx_handler() argument
462 rpl = gl ? (struct cpl_tx_data *)gl->va : in cxgbit_uld_lro_rx_handler()
474 if (!gl) { in cxgbit_uld_lro_rx_handler()
490 if (unlikely(op != *(u8 *)gl->va)) { in cxgbit_uld_lro_rx_handler()
492 gl->va, be64_to_cpu(*rsp), in cxgbit_uld_lro_rx_handler()
493 get_unaligned_be64(gl->va), in cxgbit_uld_lro_rx_handler()
494 gl->tot_len); in cxgbit_uld_lro_rx_handler()
500 if (!cxgbit_lro_receive(csk, op, rsp, gl, lro_mgr, in cxgbit_uld_lro_rx_handler()
506 skb = cxgb4_pktgl_to_skb(gl, RX_PULL_LEN, RX_PULL_LEN); in cxgbit_uld_lro_rx_handler()