static inline unsigned int qs_intr_mmio(struct ata_host_set *host_set){	unsigned int handled = 0, port_no;	for (port_no = 0; port_no < host_set->n_ports; ++port_no) {		struct ata_port *ap;		ap = host_set->ports[port_no];		if (ap && (!(ap->flags & ATA_FLAG_PORT_DISABLED))) {			struct ata_queued_cmd *qc;			struct qs_port_priv *pp = ap->private_data;			if (!pp || pp->state != qs_state_mmio)				continue;			qc = ata_qc_from_tag(ap, ap->active_tag);			if (qc && (!(qc->tf.ctl & ATA_NIEN))) {				/* check main status, clearing INTRQ */				u8 status = ata_chk_status(ap);				if ((status & ATA_BUSY))					continue;				DPRINTK("ata%u: protocol %d (dev_stat 0x%X)\n",					ap->id, qc->tf.protocol, status);						/* complete taskfile transaction */				pp->state = qs_state_idle;				ata_qc_complete(qc, status);				handled = 1;			}		}	}	return handled;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/8a60a07129fad60bba779a2a4038c7518b167fc7/sata_qstor.c/clean/drivers/scsi/sata_qstor.c