Searched refs:sg (Results 1 – 3 of 3) sorted by relevance
354 struct scatterlist **sg, int *nsegs, int *cluster) in __blk_segment_map_sg() argument359 if (*sg && *cluster) { in __blk_segment_map_sg()360 if ((*sg)->length + nbytes > queue_max_segment_size(q)) in __blk_segment_map_sg()368 (*sg)->length += nbytes; in __blk_segment_map_sg()371 if (!*sg) in __blk_segment_map_sg()372 *sg = sglist; in __blk_segment_map_sg()384 sg_unmark_end(*sg); in __blk_segment_map_sg()385 *sg = sg_next(*sg); in __blk_segment_map_sg()388 sg_set_page(*sg, bvec->bv_page, nbytes, bvec->bv_offset); in __blk_segment_map_sg()396 struct scatterlist **sg) in __blk_bios_map_sg() argument[all …]
90 struct scatterlist *sg = NULL; in blk_rq_map_integrity_sg() local104 if (sg->length + iv.bv_len > queue_max_segment_size(q)) in blk_rq_map_integrity_sg()107 sg->length += iv.bv_len; in blk_rq_map_integrity_sg()110 if (!sg) in blk_rq_map_integrity_sg()111 sg = sglist; in blk_rq_map_integrity_sg()113 sg_unmark_end(sg); in blk_rq_map_integrity_sg()114 sg = sg_next(sg); in blk_rq_map_integrity_sg()117 sg_set_page(sg, iv.bv_page, iv.bv_len, iv.bv_offset); in blk_rq_map_integrity_sg()125 if (sg) in blk_rq_map_integrity_sg()126 sg_mark_end(sg); in blk_rq_map_integrity_sg()
57 Unlike SG v3 (aka block/scsi_ioctl.c drivers/scsi/sg.c), SG v4