Home
last modified time | relevance | path

Searched refs:rx_sg (Results 1 – 4 of 4) sorted by relevance

/linux-2.6.39/drivers/net/
Dvirtio_net.c66 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()
[all …]
/linux-2.6.39/drivers/infiniband/ulp/iser/
Diser_initiator.c178 struct ib_sge *rx_sg; in iser_alloc_rx_descriptors() local
196 rx_sg = &rx_desc->rx_sg; in iser_alloc_rx_descriptors()
197 rx_sg->addr = rx_desc->dma_addr; in iser_alloc_rx_descriptors()
198 rx_sg->length = ISER_RX_PAYLOAD_SIZE; in iser_alloc_rx_descriptors()
199 rx_sg->lkey = device->mr->lkey; in iser_alloc_rx_descriptors()
Discsi_iser.h224 struct ib_sge rx_sg; member
Diser_verbs.c689 rx_wr->sg_list = &rx_desc->rx_sg; in iser_post_recvm()