Lines Matching refs:sgl
558 static void destroy_bounce_buffer(struct scatterlist *sgl, in destroy_bounce_buffer() argument
565 page_buf = sg_page((&sgl[i])); in destroy_bounce_buffer()
570 kfree(sgl); in destroy_bounce_buffer()
573 static int do_bounce_buffer(struct scatterlist *sgl, unsigned int sg_count) in do_bounce_buffer() argument
585 if (sgl[i].offset + sgl[i].length != PAGE_SIZE) in do_bounce_buffer()
589 if (sgl[i].offset != 0) in do_bounce_buffer()
593 if (sgl[i].length != PAGE_SIZE || sgl[i].offset != 0) in do_bounce_buffer()
600 static struct scatterlist *create_bounce_buffer(struct scatterlist *sgl, in create_bounce_buffer() argument
1558 struct scatterlist *sgl; in storvsc_queuecommand() local
1617 sgl = (struct scatterlist *)scsi_sglist(scmnd); in storvsc_queuecommand()
1626 if (do_bounce_buffer(sgl, scsi_sg_count(scmnd)) != -1) { in storvsc_queuecommand()
1628 create_bounce_buffer(sgl, sg_count, in storvsc_queuecommand()
1638 copy_to_bounce_buffer(sgl, in storvsc_queuecommand()
1641 sgl = cmd_request->bounce_sgl; in storvsc_queuecommand()
1662 payload->range.offset = sgl[0].offset; in storvsc_queuecommand()
1664 cur_sgl = sgl; in storvsc_queuecommand()