 return nelem; 
static void qs_fill_sg(struct ata_queued_cmd *qc){	struct scatterlist *sg;	struct ata_port *ap = qc->ap;	struct qs_port_priv *pp = ap->private_data;	unsigned int nelem;	u8 *prd = pp->pkt + QS_CPB_BYTES;	assert(qc->__sg != NULL);	assert(qc->n_elem > 0);	nelem = 0;	ata_for_each_sg(sg, qc) {		u64 addr;		u32 len;		addr = sg_dma_address(sg);		*(__le64 *)prd = cpu_to_le64(addr);		prd += sizeof(u64);		len = sg_dma_len(sg);		*(__le32 *)prd = cpu_to_le32(len);		prd += sizeof(u64);		VPRINTK("PRD[%u] = (0x%llX, 0x%X)\n", nelem,					(unsigned long long)addr, len);		nelem++;	}}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/828d09de4a6c922517f533093583b9fe8cbf5808/sata_qstor.c/buggy/drivers/scsi/sata_qstor.c