 return n_sg; 
static void ahci_fill_sg(struct ata_queued_cmd *qc){	struct ahci_port_priv *pp = qc->ap->private_data;	struct scatterlist *sg;	struct ahci_sg *ahci_sg;	VPRINTK("ENTER\n");	/*	 * Next, the S/G list.	 */	ahci_sg = pp->cmd_tbl_sg;	ata_for_each_sg(sg, qc) {		dma_addr_t addr = sg_dma_address(sg);		u32 sg_len = sg_dma_len(sg);		ahci_sg->addr = cpu_to_le32(addr & 0xffffffff);		ahci_sg->addr_hi = cpu_to_le32((addr >> 16) >> 16);		ahci_sg->flags_size = cpu_to_le32(sg_len - 1);		ahci_sg++;	}}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/828d09de4a6c922517f533093583b9fe8cbf5808/ahci.c/clean/drivers/scsi/ahci.c