Lines Matching refs:sg_len
152 static struct scatterlist *mmc_alloc_sg(int sg_len, int *err) in mmc_alloc_sg() argument
156 sg = kmalloc(sizeof(struct scatterlist)*sg_len, GFP_KERNEL); in mmc_alloc_sg()
161 sg_init_table(sg, sg_len); in mmc_alloc_sg()
464 unsigned int sg_len = 0; in mmc_queue_packed_map_sg() local
480 sg_len++; in mmc_queue_packed_map_sg()
485 sg_len += blk_rq_map_sg(mq->queue, req, __sg); in mmc_queue_packed_map_sg()
486 __sg = sg + (sg_len - 1); in mmc_queue_packed_map_sg()
489 sg_mark_end(sg + (sg_len - 1)); in mmc_queue_packed_map_sg()
490 return sg_len; in mmc_queue_packed_map_sg()
498 unsigned int sg_len; in mmc_queue_map_sg() local
517 sg_len = mmc_queue_packed_map_sg(mq, mqrq->packed, in mmc_queue_map_sg()
520 sg_len = blk_rq_map_sg(mq->queue, mqrq->req, mqrq->bounce_sg); in mmc_queue_map_sg()
522 mqrq->bounce_sg_len = sg_len; in mmc_queue_map_sg()
525 for_each_sg(mqrq->bounce_sg, sg, sg_len, i) in mmc_queue_map_sg()