Lines Matching refs:rx_sg
66 struct scatterlist rx_sg[MAX_SKB_FRAGS + 2]; member
339 sg_set_buf(vi->rx_sg, &hdr->hdr, sizeof hdr->hdr); in add_recvbuf_small()
341 skb_to_sgvec(skb, vi->rx_sg + 1, 0, skb->len); in add_recvbuf_small()
343 err = virtqueue_add_buf_gfp(vi->rvq, vi->rx_sg, 0, 2, skb, gfp); in add_recvbuf_small()
364 sg_set_buf(&vi->rx_sg[i], page_address(first), PAGE_SIZE); in add_recvbuf_big()
380 sg_set_buf(&vi->rx_sg[0], p, sizeof(struct virtio_net_hdr)); in add_recvbuf_big()
384 sg_set_buf(&vi->rx_sg[1], p + offset, PAGE_SIZE - offset); in add_recvbuf_big()
388 err = virtqueue_add_buf_gfp(vi->rvq, vi->rx_sg, 0, MAX_SKB_FRAGS + 2, in add_recvbuf_big()
405 sg_init_one(vi->rx_sg, page_address(page), PAGE_SIZE); in add_recvbuf_mergeable()
407 err = virtqueue_add_buf_gfp(vi->rvq, vi->rx_sg, 0, 1, page, gfp); in add_recvbuf_mergeable()
949 sg_init_table(vi->rx_sg, ARRAY_SIZE(vi->rx_sg)); in virtnet_probe()