Searched refs:sg (Results 1 – 3 of 3) sorted by relevance
161 struct scatterlist **sg, int *nsegs, int *cluster) in __blk_segment_map_sg() argument166 if (*sg && *cluster) { in __blk_segment_map_sg()167 if ((*sg)->length + nbytes > queue_max_segment_size(q)) in __blk_segment_map_sg()175 (*sg)->length += nbytes; in __blk_segment_map_sg()178 if (!*sg) in __blk_segment_map_sg()179 *sg = sglist; in __blk_segment_map_sg()191 sg_unmark_end(*sg); in __blk_segment_map_sg()192 *sg = sg_next(*sg); in __blk_segment_map_sg()195 sg_set_page(*sg, bvec->bv_page, nbytes, bvec->bv_offset); in __blk_segment_map_sg()203 struct scatterlist **sg) in __blk_bios_map_sg() argument[all …]
93 struct scatterlist *sg = NULL; in blk_rq_map_integrity_sg() local107 if (sg->length + iv.bv_len > queue_max_segment_size(q)) in blk_rq_map_integrity_sg()110 sg->length += iv.bv_len; in blk_rq_map_integrity_sg()113 if (!sg) in blk_rq_map_integrity_sg()114 sg = sglist; in blk_rq_map_integrity_sg()116 sg_unmark_end(sg); in blk_rq_map_integrity_sg()117 sg = sg_next(sg); in blk_rq_map_integrity_sg()120 sg_set_page(sg, iv.bv_page, iv.bv_len, iv.bv_offset); in blk_rq_map_integrity_sg()128 if (sg) in blk_rq_map_integrity_sg()129 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