Home
last modified time | relevance | path

Searched refs:sgs (Results 1 – 6 of 6) sorted by relevance

/drivers/block/
Dvirtio_blk.c81 struct scatterlist hdr, status, cmd, sense, inhdr, *sgs[6]; in __virtblk_add_req() local
86 sgs[num_out++] = &hdr; in __virtblk_add_req()
96 sgs[num_out++] = &cmd; in __virtblk_add_req()
101 sgs[num_out++] = data_sg; in __virtblk_add_req()
103 sgs[num_out + num_in++] = data_sg; in __virtblk_add_req()
108 sgs[num_out + num_in++] = &sense; in __virtblk_add_req()
110 sgs[num_out + num_in++] = &inhdr; in __virtblk_add_req()
114 sgs[num_out + num_in++] = &status; in __virtblk_add_req()
116 return virtqueue_add_sgs(vq, sgs, num_out, num_in, vbr, GFP_ATOMIC); in __virtblk_add_req()
/drivers/virtio/
Dvirtio_ring.c124 struct scatterlist *sgs[], in virtqueue_add() argument
207 for (sg = sgs[n]; sg; sg = sg_next(sg)) { in virtqueue_add()
216 for (sg = sgs[n]; sg; sg = sg_next(sg)) { in virtqueue_add()
273 struct scatterlist *sgs[], in virtqueue_add_sgs() argument
284 for (sg = sgs[i]; sg; sg = sg_next(sg)) in virtqueue_add_sgs()
287 return virtqueue_add(_vq, sgs, total_sg, out_sgs, in_sgs, data, gfp); in virtqueue_add_sgs()
/drivers/scsi/
Dvirtio_scsi.c425 struct scatterlist *sgs[6], req, resp; in virtscsi_add_cmd() local
440 sgs[out_num++] = &req; in virtscsi_add_cmd()
446 sgs[out_num++] = scsi_prot_sglist(sc); in virtscsi_add_cmd()
447 sgs[out_num++] = out->sgl; in virtscsi_add_cmd()
452 sgs[out_num + in_num++] = &resp; in virtscsi_add_cmd()
458 sgs[out_num + in_num++] = scsi_prot_sglist(sc); in virtscsi_add_cmd()
459 sgs[out_num + in_num++] = in->sgl; in virtscsi_add_cmd()
462 return virtqueue_add_sgs(vq, sgs, out_num, in_num, cmd, GFP_ATOMIC); in virtscsi_add_cmd()
/drivers/spi/
Dspi-mxs.c180 const int sgs = DIV_ROUND_UP(len, desc_len); in mxs_spi_txrx_dma() local
194 dma_xfer = kcalloc(sgs, sizeof(*dma_xfer), GFP_KERNEL); in mxs_spi_txrx_dma()
210 for (sg_count = 0; sg_count < sgs; sg_count++) { in mxs_spi_txrx_dma()
218 if ((sg_count + 1 == sgs) && (flags & TXRX_DEASSERT_CS)) in mxs_spi_txrx_dma()
Dspi.c599 const int sgs = DIV_ROUND_UP(len, desc_len); in spi_map_buf() local
605 ret = sg_alloc_table(sgt, sgs, GFP_KERNEL); in spi_map_buf()
609 for (i = 0; i < sgs; i++) { in spi_map_buf()
/drivers/net/
Dvirtio_net.c976 struct scatterlist *sgs[4], hdr, stat; in virtnet_send_command() local
988 sgs[out_num++] = &hdr; in virtnet_send_command()
991 sgs[out_num++] = out; in virtnet_send_command()
995 sgs[out_num] = &stat; in virtnet_send_command()
997 BUG_ON(out_num + 1 > ARRAY_SIZE(sgs)); in virtnet_send_command()
998 virtqueue_add_sgs(vi->cvq, sgs, out_num, 1, vi, GFP_ATOMIC); in virtnet_send_command()