On Mon, 31 Oct 2011, yoma sophian wrote: > Hi all: > in scsi_init_sgtable, we create sgtable, sdb->table.sgl, and get the > page from blk_rq_map_sg. > But when the dma address of sdb->table.sgl will be calclated > before send the scsi command down to the usb device? The DMA address is calculated when the transfer is mapped for DMA, in the dma_map_sg() routine, which is called from usb_hcd_map_urb_for_dma(). Alan Stern -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html