Lines Matching refs:sg

147 	struct scatterlist sg;  in tell_host()  local
150 sg_init_one(&sg, vb->pfns, sizeof(vb->pfns[0]) * vb->num_pfns); in tell_host()
153 virtqueue_add_outbuf(vq, &sg, 1, vb, GFP_KERNEL); in tell_host()
162 struct scatterlist *sg, unsigned int nents) in virtballoon_free_page_report() argument
170 err = virtqueue_add_inbuf(vq, sg, nents, vb, GFP_NOWAIT | __GFP_NOWARN); in virtballoon_free_page_report()
376 struct scatterlist sg; in stats_handle_request() local
384 sg_init_one(&sg, vb->stats, sizeof(vb->stats[0]) * num_stats); in stats_handle_request()
385 virtqueue_add_outbuf(vq, &sg, 1, vb, GFP_KERNEL); in stats_handle_request()
539 struct scatterlist sg; in init_vqs() local
549 sg_init_one(&sg, vb->stats, sizeof(vb->stats[0]) * num_stats); in init_vqs()
550 err = virtqueue_add_outbuf(vb->stats_vq, &sg, 1, vb, in init_vqs()
584 struct scatterlist sg; in send_cmd_id_start() local
594 sg_init_one(&sg, &vb->cmd_id_active, sizeof(vb->cmd_id_active)); in send_cmd_id_start()
595 err = virtqueue_add_outbuf(vq, &sg, 1, &vb->cmd_id_active, GFP_KERNEL); in send_cmd_id_start()
603 struct scatterlist sg; in send_cmd_id_stop() local
611 sg_init_one(&sg, &vb->cmd_id_stop, sizeof(vb->cmd_id_stop)); in send_cmd_id_stop()
612 err = virtqueue_add_outbuf(vq, &sg, 1, &vb->cmd_id_stop, GFP_KERNEL); in send_cmd_id_stop()
622 struct scatterlist sg; in get_free_page_and_send() local
640 sg_init_one(&sg, p, VIRTIO_BALLOON_HINT_BLOCK_BYTES); in get_free_page_and_send()
643 err = virtqueue_add_inbuf(vq, &sg, 1, p, GFP_KERNEL); in get_free_page_and_send()