Home
last modified time | relevance | path

Searched refs:sg (Results 1 – 3 of 3) sorted by relevance

/block/
Dblk-integrity.c72 struct scatterlist *sg = NULL; in blk_rq_map_integrity_sg() local
82 if (sg->length + iv.bv_len > queue_max_segment_size(q)) in blk_rq_map_integrity_sg()
85 sg->length += iv.bv_len; in blk_rq_map_integrity_sg()
88 if (!sg) in blk_rq_map_integrity_sg()
89 sg = sglist; in blk_rq_map_integrity_sg()
91 sg_unmark_end(sg); in blk_rq_map_integrity_sg()
92 sg = sg_next(sg); in blk_rq_map_integrity_sg()
95 sg_set_page(sg, iv.bv_page, iv.bv_len, iv.bv_offset); in blk_rq_map_integrity_sg()
103 if (sg) in blk_rq_map_integrity_sg()
104 sg_mark_end(sg); in blk_rq_map_integrity_sg()
Dblk-merge.c420 static inline struct scatterlist *blk_next_sg(struct scatterlist **sg, in blk_next_sg() argument
423 if (!*sg) in blk_next_sg()
433 sg_unmark_end(*sg); in blk_next_sg()
434 return sg_next(*sg); in blk_next_sg()
439 struct scatterlist **sg) in blk_bvec_map_sg() argument
461 *sg = blk_next_sg(sg, sglist); in blk_bvec_map_sg()
462 sg_set_page(*sg, page, len, offset); in blk_bvec_map_sg()
473 struct scatterlist *sglist, struct scatterlist **sg) in __blk_bvec_map_sg() argument
475 *sg = blk_next_sg(sg, sglist); in __blk_bvec_map_sg()
476 sg_set_page(*sg, bv.bv_page, bv.bv_len, bv.bv_offset); in __blk_bvec_map_sg()
[all …]
Dblk-crypto-fallback.c388 struct scatterlist sg; in blk_crypto_fallback_decrypt_bio() local
413 sg_init_table(&sg, 1); in blk_crypto_fallback_decrypt_bio()
414 skcipher_request_set_crypt(ciph_req, &sg, &sg, data_unit_size, in blk_crypto_fallback_decrypt_bio()
421 sg_set_page(&sg, page, data_unit_size, bv.bv_offset); in blk_crypto_fallback_decrypt_bio()
432 sg.offset += data_unit_size; in blk_crypto_fallback_decrypt_bio()