Lines Matching refs:gl
212 cxgbit_copy_frags(struct sk_buff *skb, const struct pkt_gl *gl, in cxgbit_copy_frags() argument
219 __skb_fill_page_desc(skb, skb_frag_idx, gl->frags[0].page, in cxgbit_copy_frags()
220 gl->frags[0].offset + offset, in cxgbit_copy_frags()
221 gl->frags[0].size - offset); in cxgbit_copy_frags()
222 for (i = 1; i < gl->nfrags; i++) in cxgbit_copy_frags()
224 gl->frags[i].page, in cxgbit_copy_frags()
225 gl->frags[i].offset, in cxgbit_copy_frags()
226 gl->frags[i].size); in cxgbit_copy_frags()
228 skb_shinfo(skb)->nr_frags += gl->nfrags; in cxgbit_copy_frags()
231 get_page(gl->frags[gl->nfrags - 1].page); in cxgbit_copy_frags()
235 cxgbit_lro_add_packet_gl(struct sk_buff *skb, u8 op, const struct pkt_gl *gl) in cxgbit_lro_add_packet_gl() argument
243 struct cpl_iscsi_hdr *cpl = (struct cpl_iscsi_hdr *)gl->va; in cxgbit_lro_add_packet_gl()
249 pdu_cb->hdr = gl->va + offset; in cxgbit_lro_add_packet_gl()
253 if (unlikely(gl->nfrags > 1)) in cxgbit_lro_add_packet_gl()
258 struct cpl_iscsi_data *cpl = (struct cpl_iscsi_data *)gl->va; in cxgbit_lro_add_packet_gl()
265 pdu_cb->nr_dfrags = gl->nfrags; in cxgbit_lro_add_packet_gl()
271 cpl = (struct cpl_rx_iscsi_cmp *)gl->va; in cxgbit_lro_add_packet_gl()
275 pdu_cb->hdr = gl->va + offset; in cxgbit_lro_add_packet_gl()
281 if (unlikely(gl->nfrags > 1)) in cxgbit_lro_add_packet_gl()
299 cxgbit_copy_frags(skb, gl, offset); in cxgbit_lro_add_packet_gl()
301 pdu_cb->frags += gl->nfrags; in cxgbit_lro_add_packet_gl()
309 cxgbit_lro_init_skb(struct cxgbit_sock *csk, u8 op, const struct pkt_gl *gl, in cxgbit_lro_init_skb() argument
373 const struct pkt_gl *gl, struct t4_lro_mgr *lro_mgr, in cxgbit_lro_receive() argument
393 skb = cxgbit_lro_init_skb(csk, op, gl, rsp, napi); in cxgbit_lro_receive()
406 if ((gl && (((skb_shinfo(skb)->nr_frags + gl->nfrags) > in cxgbit_lro_receive()
413 if (gl) in cxgbit_lro_receive()
414 cxgbit_lro_add_packet_gl(skb, op, gl); in cxgbit_lro_receive()
428 const struct pkt_gl *gl, struct t4_lro_mgr *lro_mgr, in cxgbit_uld_lro_rx_handler() argument
455 rpl = gl ? (struct cpl_tx_data *)gl->va : in cxgbit_uld_lro_rx_handler()
467 if (!gl) { in cxgbit_uld_lro_rx_handler()
483 if (unlikely(op != *(u8 *)gl->va)) { in cxgbit_uld_lro_rx_handler()
485 gl->va, be64_to_cpu(*rsp), in cxgbit_uld_lro_rx_handler()
486 get_unaligned_be64(gl->va), in cxgbit_uld_lro_rx_handler()
487 gl->tot_len); in cxgbit_uld_lro_rx_handler()
493 if (!cxgbit_lro_receive(csk, op, rsp, gl, lro_mgr, in cxgbit_uld_lro_rx_handler()
499 skb = cxgb4_pktgl_to_skb(gl, RX_PULL_LEN, RX_PULL_LEN); in cxgbit_uld_lro_rx_handler()