/* ibmvfc_map_sg_list - Initialize scatterlist @scmd: scsi command struct @nseg: number of scatterlist segments @md: memory descriptor list to initialize  */
static void ibmvfc_map_sg_list(struct scsi_cmnd *scmd, int nseg, struct srp_direct_buf *md)
/* ibmvfc_map_sg_list - Initialize scatterlist @scmd: scsi command struct @nseg: number of scatterlist segments @md: memory descriptor list to initialize  */
static void ibmvfc_map_sg_list(struct scsi_cmnd *scmd, int nseg, struct srp_direct_buf *md)
{
	int i;
	struct scatterlist *sg;
	scsi_for_each_sg(scmd, sg, nseg, i) {
		md[i].va = sg_dma_address(sg);
		md[i].len = sg_dma_len(sg);
		md[i].key = 0;
	}
}