*(__le32 *)(&buf[ 8]) = cpu_to_le32(qc->n_elem); 
*(__le32 *)(&buf[ 8]) = cpu_to_le32(nelem); 
static void qs_qc_prep(struct ata_queued_cmd *qc){	struct qs_port_priv *pp = qc->ap->private_data;	u8 dflags = QS_DF_PORD, *buf = pp->pkt;	u8 hflags = QS_HF_DAT | QS_HF_IEN | QS_HF_VLD;	u64 addr;	VPRINTK("ENTER\n");	qs_enter_reg_mode(qc->ap);	if (qc->tf.protocol != ATA_PROT_DMA) {		ata_qc_prep(qc);		return;	}	qs_fill_sg(qc);	if ((qc->tf.flags & ATA_TFLAG_WRITE))		hflags |= QS_HF_DIRO;	if ((qc->tf.flags & ATA_TFLAG_LBA48))		dflags |= QS_DF_ELBA;	/* host control block (HCB) */	buf[ 0] = QS_HCB_HDR;	buf[ 1] = hflags;	*(__le32 *)(&buf[ 4]) = cpu_to_le32(qc->nsect * ATA_SECT_SIZE);	*(__le32 *)(&buf[ 8]) = cpu_to_le32(qc->n_elem);	addr = ((u64)pp->pkt_dma) + QS_CPB_BYTES;	*(__le64 *)(&buf[16]) = cpu_to_le64(addr);	/* device control block (DCB) */	buf[24] = QS_DCB_HDR;	buf[28] = dflags;	/* frame information structure (FIS) */	ata_tf_to_fis(&qc->tf, &buf[32], 0);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/828d09de4a6c922517f533093583b9fe8cbf5808/sata_qstor.c/buggy/drivers/scsi/sata_qstor.c